Endsem 2025 solved
This page solves the IIIT Kottayam endsem paper of November 2025 for IoE-414. It shows every number in full detail for backprop, Markov chains, RNN, GAN, and RBM. After this page you can repeat each method on any similar exam question.
IIIT Kottayam held this paper in November 2025. The course is IoE-414 Deep Learning. Maximum marks are 100. Batch 2022 attempted it. The paper has five questions. Each question carries 20 marks.
Q1 Fix training symptomsSearch on YouTube
Q1 tests diagnosis. Each part gives one symptom. You must name the fix and give the reason.
Q1(a) Oscillation and covariate shiftSearch on YouTube
Large oscillation across minibatches shows unstable layer inputs. The distribution of inputs shifts during training. batch norm fixes this shift.
is minibatch mean. is minibatch variance. is a small constant for stability. and are learnable scale and shift.
Normalization keeps each layer input stable. Gradients stay steadier. Training oscillates less.
Q1(b) Overfitting gapSearch on YouTube
Train accuracy 99 percent and validation accuracy 70 percent show overfitting. The gap widens with more epochs. The network memorises training labels. dropout is the primary fix.
is layer activation. is a random binary mask. is drop probability.
Dropout drops random units during training. It breaks co-adaptation between units. It acts like an ensemble average at test time. Early stopping and L2 regularization also help. Early stopping halts before memorisation grows. L2 regularization penalises large weights. Pick dropout as the main answer.
Q1(c) Slow tiny updatesSearch on YouTube
Tiny updates show slow progress in flat regions. The optimizer needs momentum. optimizers solve this problem.
is current gradient. is velocity from past gradients. is momentum factor. is learning rate. is parameter vector.
Momentum accumulates past gradients. Nesterov momentum looks ahead before the step. Adam adapts the rate per weight. A higher learning rate also helps.
Q1(d) Smooth but low accuracySearch on YouTube
Smooth loss with low train and validation accuracy shows underfitting. Capacity is too small. The optimizer or setting may also limit learning.
Tune learning rate, minibatch size, and epoch count. Add layers or neurons for more capacity. Change optimizer or initialization.
Write symptom, fix, and one-line reason for full marks. Name one primary fix per part. Mention one alternative only when time permits.
Q2 Two backprop iterationsSearch on YouTube
Q2 asks for two full updates on a 2-2-1 sigmoid network. Learning rate is 0.5. Input is and label is 1. Initial weights are , , and . All biases start at 0. The backprop rule updates each weight.
is sigmoid activation function. is weighted input. is its derivative.
is network output. is label. is per-sample loss. is output delta.
is parameter vector. is gradient of loss. is 0.5 here.
Keep the sign of . The gradient is negative when is less than . The update subtracts the gradient, so weights grow. Dropping the minus sign reverses the update.
Do not confuse bias with decision threshold. Bias is a learnable weight. Decision threshold 0.5 decides the label. The value equals negative threshold in perceptron notation.
Q2 Iteration 1 forward passSearch on YouTube
Initial data are , , , , . All biases are 0.
Step 1. First hidden input. Multiply by .
Step 2. First hidden activation. Apply sigmoid.
Step 3. Second hidden input. Multiply by .
Step 4. Second hidden activation. Apply sigmoid.
Step 5. Output and loss. Combine with .
Q2 Iteration 1 backward pass and updateSearch on YouTube
Loss derivative uses factor 2 because . Sigmoid derivative is at output.
Step 1. Output delta. Combine loss slope with sigmoid slope.
Step 2. Gradients for and . Multiply delta by .
Step 3. Second hidden deltas. Push delta back through .
Step 4. Gradients for . Outer product of and .
Step 5. First hidden deltas. Push back through .
Step 6. Gradients for . Outer product of and .
Step 7. Update with . Subtract half the gradient.
Q2 Iteration 2 forward and backward passSearch on YouTube
The second iteration starts from updated weights. It repeats the same chain rule.
Step 1. Forward pass. Use updated and .
Step 2. Backward pass. Recompute deltas at new point.
Step 3. Update again. Subtract half the new gradient.
Step 4. Final check. Run forward once more.
Loss falls across iterations: 0.04745 to 0.04205 to 0.03762.
Write , , , , then , , in order. Keep the factor 2 from . Examiners give marks per line.
Q3 Markov chainsSearch on YouTube
Q3 tests two Markov chains. Part (a) evolves a distribution. Part (b) cubes a transition matrix.
Q3(a) Streetlight distributionSearch on YouTube
States are ON and OFF in order . Rows of are current state. Columns are next state. Start vector is , so light is OFF.
is row distribution at time . is transition matrix. Each row of sums to 1.
is stationary distribution. It stays unchanged after one step.
Step 1. One step from OFF. Pick OFF row of .
Step 2. Second step. Multiply by .
Stationary solution. Solve balance plus sum 1.
Stationary vector is .
For two states use . Here is ON to OFF. Here is OFF to ON. Then .
Q3(b) Thermostat cubeSearch on YouTube
States are Cooling and Heating. Matrix holds one-hour moves. The query spans three hours. It needs P^3.
holds two-step probabilities. holds three-step probabilities.
Step 1. Square . Multiply rows by columns.
Step 1. Cube . Multiply by .
Step 2. Read the query. Cooling at 02PM to Cooling at 05PM is three steps.
It is row 1, column 1 of .
Count steps first. From 02PM to 05PM is 3 moves. Square first, then cube. Read entry (start, end).
Q4 Sequence modelsSearch on YouTube
Q4 tests recurrent models. Part (a) asks for RNN and BPTT. Part (b) asks for bidirectional models.
Q4(a) RNN and BPTTSearch on YouTube
An RNN reads one token per time step. It keeps a hidden state. The same weights apply at every step.
is hidden state at step . is input. , , are shared weights. and are biases.
Backprop through time unfolds the loop. It sums gradients over steps. Repeated multiplication shrinks or grows gradients. Shrinking causes vanishing gradients.
is loss at step . The sum shares one across time.
Q4(b) Bidirectional modelsSearch on YouTube
A bidirectional model reads both ways. Forward pass reads past to future. Backward pass reads future to past. Translation needs both sides because later words fix earlier meaning.
is forward hidden state. is backward hidden state. Brackets mean concat. Sum is an alternative merge.
Bi-LSTM uses two LSTM chains. One moves forward. One moves backward. The merge holds past plus future context.
Draw unfolded boxes with shared , , for RNN. Draw two opposite arrows for bidirectional. Label concat or sum.
Q5 Generative modelsSearch on YouTube
Q5 tests generative ideas. Part (a) asks for GAN. Part (b) asks for RBM.
Q5(a) GAN gameSearch on YouTube
A GAN has a generator and a discriminator. The generator makes fake samples. The discriminator scores real against fake. Training alternates the two updates.
is score of real sample. is fake sample from noise . is minimax value.
Discriminator maximises . Generator minimises .
Value trace from l14. Watch rise then fall.
Discriminator step raises . Generator step lowers . Alternation drives the game.
State roles in one line each. Write minimax exactly. Say discriminator maximises and generator minimises.
Q5(b) RBM structureSearch on YouTube
An RBM is bipartite, symmetric, and generative. Visible units link only to hidden units. No links stay inside one layer. Weights are symmetric in both directions.
is energy. is visible vector. is hidden vector. and are biases. holds symmetric weights.
Each conditional uses sigmoid activation function. Columns of drive hidden units. Rows of drive visible units.
Contrastive divergence trains the RBM. It runs one Gibbs step from data. It lowers energy of data and raises energy of reconstruction. A feedforward network is discriminative and directed. It maps input to label. An RBM models the joint distribution instead.
Draw two layers with cross links only. Write energy first, then conditionals. Contrast with feedforward network in one line.
RecapSearch on YouTube
- Use batch norm for shifting inputs and dropout for overfitting gap.
- Use momentum, Nesterov, or Adam for tiny slow updates.
- Add layers, neurons, or better settings for underfitting.
- Apply sigmoid chain rule with sign check for backprop.
- Evolve with row rule and solve balance for stationary distribution.
- Square then cube and read entries for multi-step queries.
- Alternate GAN minimax updates and contrast RBM with feedforward maps.