Quiz Space

Introduction to Deep Learning and Generative AI · Quiz 2 · 12 Apr 2026 · January 2026 term

Question 13: In a GAN training loop, the following function is used b…

Question 13

+3 marksOne or more correct options

In a GAN training loop, the following function is used before each backward pass:

Suppose a GAN is trained and this function is used in every iteration with learning rate α = 0.01 :
During iteration 1:
The true discriminator gradient (∇θ_D L_D) = 0.6 The true generator gradient (∇θ_G L_G) = 0.5
During iteration 2:
The new discriminator gradient (∇θ_D L_D) = 0.4 The new generator gradient (∇θ_G L_G) = 0.2
What will be the effective parameter update after the second iteration (assume gradients accumulate linearly in PyTorch)?

Select all that apply.

  1. A

    θ_D ← θ_D - 0.004

  2. B

    θ_D ← θ_D + 0.004

  3. C

    θ_D ← θ_D + 0.010

  4. D

    θ_G ← θ_G - 0.010

  5. E

    θ_G ← θ_G - 0.002

  6. F

    θ_G ← θ_G - 0.007

Show answer

Correct answers

  • A

    θ_D ← θ_D - 0.004

  • F

    θ_G ← θ_G - 0.007

Question 13 of 20 in the IIT Madras BS Introduction to Deep Learning and Generative AI (Deep Learning and GenAI) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term (Introduction To Deep Learning And Generative Ai 06 Apr 26). It carries 3 marks.

More questions from this paper

  1. Q1Consider the following code:
  2. Q2Consider the following code: What is the spatial size of the output after applying the given pooling code?
  3. Q3Which of the following code snippets generates fake images from random noise for training a fully connected GAN network?
  4. Q4Consider the following code: What will be the final output of the code (z_biased)?
  5. Q5Consider the following architecture for a discriminator: In which of the following lines would you suggest code changes…
  6. Q6If Model A has cross-entropy loss = 2.0 and Model B has loss = 1.5, which model has lower perplexity?
  7. Q7Figure question
  8. Q8Consider the following code snippet:
  9. Q9Figure question
  10. Q10Figure question
  11. Q11You are designing a simple RNN to process sentences of length 10 words for next-word prediction in a chat application.\…
  12. Q12Consider the following real-valued functions defined on their natural domains. Select all functions that are convex ove…
  13. Q14During GAN training, the following code is used to update the discriminator: However the code doesnt work as intended. …
  14. Q15Consider the following statements related to optimization in deep learning. Select all statements that are correct.
  15. Q16Consider the following reference sentence:\ Reference: machine learning is very fun Answer the subquestions based on th…
  16. Q17Consider the following reference sentence:\ Reference: machine learning is very fun Answer the subquestions based on th…
  17. Q18Consider the following PyTorch model: Answer the subquestions based on the given data. What is the total number of trai…
  18. Q19Consider the following PyTorch model: Answer the subquestions based on the given data.
  19. Q20What are the updated values of the weights after the first SGD step?