passdrill

Fine-tuning & Model Customisation

10 cards · AI & LLM Engineering · answer each one, then read the explanation. Your score tallies below.

0 / 10 answered · 0 correct

AI & LLM Engineering · Fine-tuning & Model Customisation · Card 001/010 easy

A team wants to adapt a large pretrained language model to a new domain without updating billions of parameters or storing a full second copy of the model's weights. They choose LoRA (Low-Rank Adaptation) to do this. Under Hu et al.'s original LoRA method, how does the technique actually reduce the number of trainable parameters during fine-tuning?

  1. It fine-tunes every parameter in the pretrained model as usual, but uses a much smaller learning rate so the resulting weight changes stay numerically small enough to store efficiently
  2. It freezes all of the pretrained weight matrices and, for selected layers, injects a pair of much smaller trainable matrices whose low-rank product approximates the update those weights would otherwise need, so only that pair is trained
  3. It deletes the attention layers of the pretrained model and replaces them with a smaller, randomly initialized transformer block that is trained from scratch on the new domain data
  4. It converts the entire pretrained model to 8-bit integer weights and performs ordinary full-parameter backpropagation directly on those compressed integer weights
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 002/010 medium

A researcher needs to fine-tune a 65-billion-parameter language model on a single GPU with 48GB of memory, far too little to hold the model in standard 16-bit precision alongside optimizer states for full fine-tuning. They use QLoRA (Dettmers et al.) to make this feasible. Which combination of techniques does QLoRA actually use to achieve this while matching full 16-bit fine-tuning performance?

  1. It keeps the entire base model and its trainable adapters in 4-bit precision throughout both forward and backward passes, including all gradient computation
  2. It permanently prunes the smallest-magnitude weights in the base model to zero until the model fits in the available memory, then fine-tunes the remaining nonzero weights
  3. It distills the full 65-billion-parameter model into a much smaller student model trained from scratch on the target task, then fine-tunes only that smaller student
  4. It quantizes the frozen base model's weights to a 4-bit NormalFloat data type for storage while computing in a higher-precision type, trains LoRA adapters on top of those frozen quantized weights, and adds double quantization of the quantization constants plus paged optimizers to absorb memory spikes
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 003/010 medium

A team wants to align a supervised-fine-tuned language model to human preference data (pairs of a preferred and a dispreferred response to the same prompt) without the engineering overhead of training a separate reward model and then running an online reinforcement-learning loop like PPO against it. They adopt Direct Preference Optimization (DPO). What does DPO actually do differently from that standard RLHF pipeline?

  1. It uses the closed-form relationship between an optimal KL-regularized policy and its implied reward under the Bradley-Terry preference model to rewrite the reward directly in terms of the policy itself, so the policy can be trained straight from the preference pairs with a single supervised-style loss, with no separate reward model and no online RL sampling loop
  2. It still trains a full separate reward model on the same preference pairs exactly as standard RLHF does, but then applies that reward model's scores using a closed-form policy update instead of running PPO
  3. It discards the human preference-pair data entirely and instead generates all of its training signal by having the model critique its own sampled outputs against a written set of principles
  4. It keeps the standard RLHF pipeline completely intact, including the separate reward model and the full PPO optimization loop, and only changes the architecture of the reward model from a scalar head to a pairwise classifier
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 004/010 easy

A general-purpose language model that previously solved multi-step arithmetic and logic problems reliably is fine-tuned exclusively on a narrow customer-support ticket dataset for several epochs. Afterward, the model handles support tickets well but its arithmetic and logic performance has dropped sharply, even though none of the fine-tuning data was arithmetic-related. What phenomenon does this describe, and what tends to make it worse?

  1. This is overfitting to noise in the customer-support dataset, meaning the model has memorized incorrect labels in that specific dataset; it has nothing to do with the model's previously learned capabilities, which fine-tuning cannot affect
  2. This is a tokenizer mismatch, meaning the fine-tuning process silently changed the model's vocabulary so that arithmetic expressions are now encoded into different tokens than during pretraining
  3. This is catastrophic forgetting: fine-tuning updates the model's weights to optimize performance on the new, narrow task distribution, and in doing so can overwrite representations the model relied on for previously learned capabilities; this effect tends to become more pronounced the further the fine-tuning data diverges from the pretraining distribution and can worsen with more fine-tuning steps or a higher learning rate
  4. This is a known evaluation artifact where the arithmetic benchmark itself becomes unreliable after any fine-tuning run, regardless of what the fine-tuning data contained, so the drop is not a real change in the model's underlying ability
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 005/010 easy

Researchers take a large pretrained language model and fine-tune it on a diverse collection of more than 60 different NLP tasks, each phrased as a natural-language instruction, then evaluate it on entirely new tasks it never saw during this fine-tuning, with zero examples given at test time. What did Wei et al.'s FLAN study find about this kind of instruction tuning?

  1. Instruction tuning only improved performance when the model was still given several worked examples of the new task at test time; with zero examples given, it performed no better than the original untuned model
  2. Instruction tuning substantially improved zero-shot performance on the held-out, unseen tasks, in some cases surpassing a much larger model's zero-shot performance and even beating that larger model's few-shot performance on several benchmarks; the gains depended on tuning across a large number of diverse task types, not just scaling up the amount of data for a single task
  3. Instruction tuning had no measurable effect on unseen tasks at all, and only helped on the exact same 60-plus tasks it was fine-tuned on, meaning the benefit was pure memorization rather than any generalization
  4. Instruction tuning worked only because the model's parameter count was increased at fine-tuning time; the improvement disappeared entirely once the study controlled for holding the model's size fixed
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 006/010 hard

Both bottleneck adapter modules (Houlsby et al.) and LoRA are parameter-efficient fine-tuning methods that add a small number of new trainable parameters to a frozen pretrained model, but they differ in how those new parameters interact with the model's forward pass at inference time. Which statement correctly distinguishes them on this specific point?

  1. Bottleneck adapters add their new parameters as a parallel low-rank update to existing weight matrices that can be merged back into those weights after training, while LoRA inserts new down-projection and up-projection feed-forward layers with a nonlinearity directly into the forward pass
  2. Both methods add their new parameters in mathematically identical ways, differing only in what random distribution is used to initialize the new weights before training begins
  3. Both methods modify the exact same weight matrices inside the attention mechanism in an identical fashion, differing only in the name each paper's authors chose to give the technique
  4. Bottleneck adapters insert new down-projection and up-projection feed-forward layers with a nonlinearity directly into the forward pass, adding extra sequential computation and inference latency, while LoRA's trainable matrices form a parallel low-rank update to an existing weight matrix that can be merged back into that weight after training, adding no extra inference latency
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 007/010 easy

Anthropic developed a technique for training a model to be more harmless that does not depend on humans labeling which of two harmful responses is worse, since asking human labelers to compare harmful outputs to each other raises its own problems. Instead, the model is trained against a written list of principles (a 'constitution'). How does Bai et al.'s Constitutional AI method actually use that constitution across its two training phases?

  1. In a first, supervised phase, the model critiques and revises its own sampled responses against the constitution's principles and is fine-tuned on the revised outputs; in a second, reinforcement-learning phase, the model itself judges which of two sampled responses better satisfies the constitution to build an AI-generated preference dataset, which trains a preference model used as the reward signal
  2. The model is fine-tuned once, in a single supervised phase, purely on human-labeled comparisons between harmful responses, and the written constitution is used only as documentation describing the labeling instructions given to the human annotators
  3. The constitution is applied only as a static output filter at inference time, blocking any response that matches a principle in the list, with no fine-tuning of the underlying model's weights involved at any stage
  4. The constitution's principles are converted into a fixed set of rules and injected directly into the model's weights through a rule-based, gradient-free editing procedure, bypassing both supervised fine-tuning and reinforcement learning entirely
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 008/010 medium

Gathering large volumes of high-quality human preference labels for RLHF is expensive, so Lee et al. studied replacing the human-labeled preference data used to train a reward model with preference labels generated by an off-the-shelf large language model instead (RLAIF), then compared the resulting policies across summarization and dialogue tasks using human evaluators. What did the study actually find?

  1. RLAIF only matched human-evaluated RLHF performance when the LLM generating the preference labels was substantially larger and more capable than the policy model being trained, and performed far worse whenever the labeler was the same size as the policy
  2. RLAIF consistently and substantially underperformed both RLHF and a plain supervised-fine-tuned baseline across every task tested, showing that AI-generated preference labels cannot substitute for human-labeled ones
  3. RLAIF achieved performance comparable to RLHF as judged by human evaluators across the tasks tested, including cases where the labeling model was the same size as the policy being trained or even the exact same checkpoint, and RLAIF outperformed the supervised-fine-tuned baseline in these comparisons
  4. RLAIF eliminated the need for a reward model and the reinforcement-learning optimization step entirely in every configuration tested, since the AI-generated labels were used to edit the policy's weights directly without any RL algorithm
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 009/010 hard

A team fine-tunes a policy by optimizing it, via reinforcement learning, as hard as possible against a fixed, already-trained proxy reward model rather than against real human judgment. Gao, Schulman & Hilton studied this setup by using a much larger 'gold-standard' reward model to stand in for real human judgment, so they could measure the gap between the two as optimization pressure against the proxy increased. What did they find happens to gold-standard, true-preference performance as optimization against the fixed proxy reward model continues further and further?

  1. Gold-standard performance rises without limit for as long as optimization against the proxy reward model continues, with no observed ceiling or decline in any of the tested configurations
  2. Gold-standard performance initially rises alongside the proxy reward model's score but eventually plateaus and then declines even as the proxy score keeps climbing, an instance of Goodhart's law where the imperfect proxy is increasingly over-exploited; the relationship follows scaling patterns that shift with the reward model's size and with whether optimization is done via reinforcement learning or best-of-n sampling
  3. This decline in gold-standard performance was observed only when optimizing via best-of-n sampling and never appeared at all when optimizing via reinforcement learning, showing the two optimization methods behave in completely unrelated ways
  4. The paper found that simply increasing the proxy reward model's parameter count to be large enough eliminates the decline in gold-standard performance entirely, regardless of how much further optimization pressure is then applied
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 010/010 easy

DeepSeekMath's training pipeline (Shao et al.) uses a reinforcement-learning algorithm called Group Relative Policy Optimization (GRPO) instead of standard PPO to reduce the memory cost of the RL stage. What specific change does GRPO make to how the advantage used in the policy update is computed, compared to standard PPO?

  1. GRPO still trains a separate learned value/critic network exactly as PPO does, and its only change from PPO is removing the separate reward model used to score outputs
  2. GRPO uses a single fixed baseline value, chosen once by hand before training begins and never recomputed, in place of PPO's learned value function for every prompt across the entire training run
  3. GRPO requires a human-labeled preference judgment for every one of the sampled outputs before it can compute any output's advantage, replacing PPO's learned value function with direct human scoring
  4. GRPO removes PPO's separate learned value/critic network entirely; for a given prompt it samples a group of outputs from the current policy, uses that group's own average reward as a baseline, and computes each output's advantage as how far its reward deviates from that group's baseline, normalized by the group's reward variability