Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 3 MCQsLearning, Adaptation and Fine-Tuning for LLMs and Agents
Why might a Q-learning agent explore unfamiliar actions?
Not quite. Try another option.
Answer: To discover actions with better rewards
Exploration allows the agent to test actions that could produce higher rewards than its current choices.
Question 15 of 60 · Reward shaping · Easy
What is reward shaping?
Not quite. Try another option.
Answer: Adding guidance through modified reward signals
Reward shaping adds or modifies reward signals to guide an agent toward desired behavior.
Question 16 of 60 · Reward shaping · Easy
Why is reward shaping often used during agent training?
Not quite. Try another option.
Answer: To provide more frequent learning guidance
Reward shaping can provide intermediate feedback when the original reward is sparse or delayed.
Question 17 of 60 · Reward shaping · Easy
What can happen if a shaped reward is poorly designed?
Not quite. Try another option.
Answer: The agent may exploit unintended shortcuts
A poorly designed reward can encourage unintended behavior that earns reward without achieving the true goal.
Question 18 of 60 · Learning from human feedback for agent behavior · Easy
What type of information do humans commonly provide when guiding an agent through feedback?
Not quite. Try another option.
Answer: Preferences between possible responses
Humans often rank or compare responses to show which behavior is more helpful or appropriate.
Question 19 of 60 · Learning from human feedback for agent behavior · Easy
What is the role of a reward model in learning from human feedback?
Not quite. Try another option.
Answer: To predict which outputs humans prefer
A reward model learns from human preferences and assigns scores that guide the agent's behavior.
Question 20 of 60 · Learning from human feedback for agent behavior · Easy
What is a common goal of learning from human feedback?
Not quite. Try another option.
Answer: Aligning agent behavior with human preferences
Human feedback helps train an agent to produce behavior that better matches human preferences and expectations.
Question 21 of 60 · Supervised fine-tuning and instruction tuning · Medium
A model fine-tuned only on a small customer-support dataset becomes less capable on general language tasks. Which strategy most directly reduces this problem?
Not quite. Try another option.
Answer: Mix representative general examples into the fine-tuning data
Mixing general examples with task-specific data helps reduce catastrophic forgetting while preserving adaptation to customer support.
Question 22 of 60 · Supervised fine-tuning and instruction tuning · Medium
During instruction tuning, each training example contains an instruction, optional context, and target response. Which tokens should usually contribute most directly to the supervised loss?
Not quite. Try another option.
Answer: Primarily the tokens in the target response
Response-token loss trains the model to generate the desired answer while treating the instruction and context primarily as conditioning input.
Question 23 of 60 · Supervised fine-tuning and instruction tuning · Medium
Two instruction-tuning datasets give conflicting answers to nearly identical prompts. What is the most appropriate action before training?
Not quite. Try another option.
Answer: Resolve conflicts using a consistent annotation policy
A consistent annotation policy reduces contradictory supervision that would otherwise make the desired behavior unclear.
Question 24 of 60 · Supervised fine-tuning and instruction tuning · Medium
A team wants to estimate whether instruction tuning generalizes to unseen user requests. Which evaluation split is most informative?
Not quite. Try another option.
Answer: Unseen prompts representing the intended task distribution
A held-out set of realistic, unseen instructions measures generalization better than reused training examples or unrelated tokens.
Question 25 of 60 · Parameter-efficient techniques (LoRA) · Medium
A LoRA adapter uses updates of the form . What is the main effect of increasing the rank ?
Not quite. Try another option.
Answer: It increases adapter capacity and trainable parameter count
A larger rank allows to represent more complex weight updates, but it also requires more trainable parameters and memory.
Question 26 of 60 · Parameter-efficient techniques (LoRA) · Medium
A service must switch rapidly among adapters for legal, medical, and technical tasks while sharing one base model. Which deployment design best supports this?
Not quite. Try another option.
Answer: Load one shared base model and swap task adapters
LoRA adapters are small and task-specific, so multiple adapters can share the same frozen base model and be selected as needed.
Question 27 of 60 · Parameter-efficient techniques (LoRA) · Medium
Before exporting a model with one fixed LoRA adapter, the team merges the adapter into the base weights. What is the primary deployment benefit?
Not quite. Try another option.
Answer: It removes separate adapter operations during inference
Merging applies the learned low-rank update to the base weights, eliminating the need to execute separate adapter branches.
Question 28 of 60 · Parameter-efficient techniques (LoRA) · Medium
LoRA is applied to attention projection matrices while the base model remains frozen. Which parameters receive gradient-based updates?
Not quite. Try another option.
Answer: The low-rank adapter matrices attached to projections
LoRA trains its added low-rank matrices while keeping the original model weights unchanged.
Question 29 of 60 · Quantization for deployment · Medium
Ignoring metadata and scaling factors, approximately how does converting model weights from FP32 to INT8 affect weight storage?
Not quite. Try another option.
Answer: It reduces storage to about one quarter
FP32 uses 32 bits per weight, while INT8 uses 8 bits, so raw weight storage becomes approximately as large.
Question 30 of 60 · Quantization for deployment · Medium
A post-training quantized model loses substantial accuracy because a few activation values are extreme outliers. Which response is most appropriate?
Not quite. Try another option.
Answer: Use calibrated ranges or selective higher-precision operations
Calibration and mixed-precision handling can prevent outliers from forcing ranges that represent most activation values poorly.
Question 31 of 60 · Quantization for deployment · Medium
A model must run at low precision, but post-training quantization causes unacceptable degradation. Which technique can adapt the model to simulated quantization error?
Not quite. Try another option.
Answer: Quantization-aware training with fake quantization
Quantization-aware training simulates low-precision effects during training, allowing weights to adapt to rounding and clipping errors.
Question 32 of 60 · Reinforcement learning foundations (Q-learning basics) · Medium
For a Q-learning update, let , , , , and . What is the updated value?
Not quite. Try another option.
Answer:
Using gives .
Question 33 of 60 · Reinforcement learning foundations (Q-learning basics) · Medium
An agent receives reward and enters a terminal state. If and , what is the updated value when terminal states have no bootstrap value?
Not quite. Try another option.
Answer:
The terminal target is , so the update is .
Question 34 of 60 · Reinforcement learning foundations (Q-learning basics) · Medium
A Q-learning agent uses an -greedy policy. If is reduced too quickly near the start of training, what is the most likely consequence?
Not quite. Try another option.
Answer: The agent may exploit poor actions before exploring alternatives
Rapidly reducing limits exploration, so early and inaccurate Q-values may cause the agent to settle on suboptimal behavior.
Question 35 of 60 · Reward shaping · Medium
Which shaping reward is known to preserve the optimal policy under standard conditions when added to the environment reward?
Not quite. Try another option.
Answer:
Potential-based shaping of the form changes learning signals without changing the optimal policy under standard assumptions.
Question 36 of 60 · Reward shaping · Medium
A delivery agent earns a small reward whenever it moves closer to a package. It learns to oscillate between two locations and repeatedly collect reward. What does this demonstrate?
Not quite. Try another option.
Answer: Reward hacking caused by an exploitable shaping signal
The agent is maximizing the specified intermediate reward through unintended behavior rather than completing the intended delivery task.
Question 37 of 60 · Reward shaping · Medium
A navigation task gives a reward only when the destination is reached, so successful experiences are rare. Which shaping approach is most useful?
Not quite. Try another option.
Answer: Add progress rewards based on reduced goal distance
A progress signal supplies denser feedback, helping the agent discover behaviors that lead toward the sparse terminal reward.
Question 38 of 60 · Learning from human feedback for agent behavior · Medium
Human reviewers consistently choose the better of two agent trajectories. How is this feedback commonly converted into a trainable learning signal?
Not quite. Try another option.
Answer: Train a reward model to predict pairwise preferences
A reward model can learn from pairwise rankings and then score new agent behavior during policy optimization.
Question 39 of 60 · Learning from human feedback for agent behavior · Medium
During feedback-based policy optimization, an agent begins producing unnatural outputs that score highly under the learned reward model. Which technique most directly limits excessive policy drift?
Not quite. Try another option.
Answer: Add a KL penalty relative to a reference policy
A KL penalty discourages the optimized policy from moving too far from a stable reference, reducing reward-model exploitation and behavioral drift.
Question 40 of 60 · Learning from human feedback for agent behavior · Medium
An assistant can call external tools, and reviewers care about both answer correctness and safe tool use. What should the preference data contain?
Not quite. Try another option.
Answer: Complete trajectories showing answers and tool-call decisions
Trajectory-level feedback exposes the reward model to both final outcomes and intermediate tool behavior, enabling it to learn the reviewers' full preferences.
Question 41 of 60 · Supervised fine-tuning and instruction tuning · Hard
An instruction-tuning dataset concatenates multiple examples into each fixed-length sequence. Which attention and loss configuration best prevents unintended cross-example learning?
Not quite. Try another option.
Answer: Use block-diagonal attention and compute loss only on each example's response tokens
Block-diagonal attention prevents one packed example from conditioning on another, while response-only masking trains the desired conditional behavior rather than reproducing prompts.
Question 42 of 60 · Supervised fine-tuning and instruction tuning · Hard
A model is fine-tuned with teacher forcing and obtains low token-level validation loss, but its long generated answers frequently drift after an early mistake. Which explanation best accounts for this discrepancy?
Not quite. Try another option.
Answer: Teacher forcing evaluates predictions under gold prefixes rather than model-generated prefixes
At inference, an erroneous token changes later inputs, creating exposure bias. Validation under gold prefixes may therefore underestimate autoregressive error accumulation.
Question 43 of 60 · Supervised fine-tuning and instruction tuning · Hard
Two instruction datasets contain identical response tokens, but one repeats long prompts before every response. Training loss is averaged over all non-padding tokens without prompt masking. What is the most likely consequence?
Not quite. Try another option.
Answer: Long-prompt examples receive disproportionate influence through prompt-reconstruction gradients
Without prompt masking or per-example normalization, long prompts contribute more supervised tokens and therefore more aggregate gradient signal.
Question 44 of 60 · Supervised fine-tuning and instruction tuning · Hard
For multi-turn assistant fine-tuning, the loss is applied to every assistant turn but masked on system and user turns. What behavior does this objective directly train?
Not quite. Try another option.
Answer: Predict each assistant turn conditioned on all preceding visible conversation tokens
Causal attention exposes prior system, user, and assistant tokens as context, while the mask makes assistant tokens the supervised targets.
Question 45 of 60 · Parameter-efficient techniques (LoRA) · Hard
A frozen linear layer has . LoRA represents its update as with rank . Ignoring biases, how many trainable parameters are added?
Not quite. Try another option.
Answer:
The two factors have shapes and , so their parameter counts add.
Question 46 of 60 · Parameter-efficient techniques (LoRA) · Hard
Two independently trained rank- LoRA adapters for the same frozen layer are merged by adding both updates. What is the tightest general upper bound on the rank of the combined update?
Not quite. Try another option.
Answer:
Rank is subadditive: . It may be smaller when the adapters' row or column spaces overlap.
Question 47 of 60 · Parameter-efficient techniques (LoRA) · Hard
A LoRA implementation uses . If rank changes from to while and the typical scale of entries in and remain fixed, what is the purpose of the divisor ?
Not quite. Try another option.
Answer: It moderates update magnitude as more rank components are added
Scaling by limits the growth of the aggregate adapter contribution as rank increases; it does not guarantee exact invariance.
Question 48 of 60 · Quantization for deployment · Hard
A weight matrix contains a few extreme outlier values confined to certain output channels. Under the same bit width, which scheme should usually reduce quantization error most effectively?
Not quite. Try another option.
Answer: Separate scales for individual channels or small groups
Finer-grained scales isolate outlier ranges, allowing ordinary channels to use more of the available integer resolution.
Question 49 of 60 · Quantization for deployment · Hard
Post-training activation quantization is calibrated only on short, formal prompts, but deployment uses long conversational prompts. What is the central technical risk?
Not quite. Try another option.
Answer: Deployment activations may exceed calibrated ranges and undergo clipping
Calibration data must represent deployment distributions. A range mismatch can cause excessive clipping or poor use of quantization levels.
Question 50 of 60 · Quantization for deployment · Hard
An autoregressive decoder stores key-value tensors for every generated token. Which change most directly reduces KV-cache memory growth while leaving model weights unchanged?
Not quite. Try another option.
Answer: Quantize cached keys and values to a lower bit width
KV-cache memory scales with sequence length, layers, and cache precision. Lowering cache precision directly reduces its per-token memory cost.
Question 51 of 60 · Reinforcement learning foundations (Q-learning basics) · Hard
For a non-terminal transition , tabular Q-learning uses learning rate and discount . Which update is correct?
Not quite. Try another option.
Answer:
Q-learning moves the current estimate toward the one-step target .
Question 52 of 60 · Reinforcement learning foundations (Q-learning basics) · Hard
A transition ends an episode because the agent reaches a genuine terminal state and receives reward . What target should standard Q-learning use for that transition?
Not quite. Try another option.
Answer:
A genuine terminal state has no future return, so its bootstrap contribution is zero. Time-limit truncations may require different handling.
Question 53 of 60 · Reinforcement learning foundations (Q-learning basics) · Hard
Why can the operator in noisy Q-learning estimates cause systematic overestimation?
Not quite. Try another option.
Answer: It tends to select actions whose estimation errors are unusually positive
Maximization couples action selection with noisy evaluation, preferentially choosing positive errors. Double Q-learning separates these roles to reduce the bias.
Question 54 of 60 · Reinforcement learning foundations (Q-learning basics) · Hard
An LLM agent observes only the latest user message, while optimal action choice depends on an unobserved earlier constraint. Why may tabular Q-learning on the latest message fail even with unlimited visits?
Not quite. Try another option.
Answer: The observation aliases histories requiring different optimal actions
The latest message is not a Markov state: identical observations can correspond to different latent histories and therefore different optimal actions.
Question 55 of 60 · Reward shaping · Hard
In a discounted MDP, which shaping reward preserves the set of optimal policies under the standard potential-based shaping result?
Not quite. Try another option.
Answer:
Potential-based shaping with the same discount factor changes returns by a telescoping potential term without changing optimal action preferences.
Question 56 of 60 · Reward shaping · Hard
An agent receives each time it calls a diagnostic tool and for completing the task. It learns to call the tool repeatedly without finishing. Which redesign best addresses the reward-hacking mechanism?
Not quite. Try another option.
Answer: Reward verified information gain and penalize redundant tool calls
The original proxy rewards activity rather than progress. Tying reward to verified novelty and charging for repetition better aligns incentives with task completion.
Question 57 of 60 · Reward shaping · Hard
A designer applies while the learner discounts returns using . What guarantee is generally lost?
Not quite. Try another option.
Answer: Preservation of the original MDP's optimal policies
The telescoping policy-invariance argument requires the shaping term to use the learner's discount factor. A mismatch can alter action rankings.
Question 58 of 60 · Learning from human feedback for agent behavior · Hard
A preference model uses . Which transformation of leaves every predicted preference probability unchanged?
Not quite. Try another option.
Answer: for a constant
Pairwise probabilities depend only on reward differences, so adding a shared constant cancels. Scaling generally changes preference confidence.
Question 59 of 60 · Learning from human feedback for agent behavior · Hard
An RLHF objective maximizes . What is the primary role of the KL term?
Not quite. Try another option.
Answer: Constrain policy drift from the reference while optimizing learned reward
The KL penalty regularizes updates toward the reference policy, reducing extreme distribution shifts and exploitation of reward-model errors.
Question 60 of 60 · Learning from human feedback for agent behavior · Hard
Human raters evaluate only final outcomes of long agent trajectories, but many intermediate tool decisions affect success. Which learning challenge is most directly created?
Not quite. Try another option.
Answer: Temporal credit assignment across intermediate actions
A trajectory-level judgment gives sparse information about which earlier actions caused the outcome, making behavioral improvement difficult without decomposition or better feedback.
That's unit 3
Answer a few questions and your score shows up here.
Nearly through. Did unit 3 of CSE473 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 3 of CSE473 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.