passdrill

Fine-tuning & Model Customisation

55 cards · AI & LLM Engineering · answer each one, then read the explanation. Your score tallies below. Looking for GRPO vs PPO: a worked example comparing the advantage calculation? Read the explainer.

0 / 55 answered · 0 correct

AI & LLM Engineering · Fine-tuning & Model Customisation · Card 001/055 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/055 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/055 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/055 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/055 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/055 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/055 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/055 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/055 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/055 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
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 011/055 medium

A team wants a parameter-efficient way to condition a frozen pretrained language model using continuous trainable vectors rather than discrete text prompts, and is comparing prefix-tuning (Li & Liang) with prompt tuning (Lester et al.). What is the key architectural difference between the two methods?

  1. Prefix-tuning prepends trainable continuous vectors to the key and value inputs of the self-attention mechanism at every transformer layer, while prompt tuning only prepends trainable vectors at the input embedding layer
  2. Prompt tuning inserts trainable vectors into the keys and values of every transformer layer's attention, while prefix-tuning is restricted to modifying only the input embedding layer
  3. Both methods insert an identical number of trainable vectors at every transformer layer; prefix-tuning differs only in using a larger vector dimensionality
  4. Both methods work by inserting trainable vectors only into the final output layer immediately before the softmax, differing solely in how many vectors are used
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 012/055 medium

A team fine-tunes a large language model with LoRA at a fixed low rank and finds it still falls short of full fine-tuning's performance on a demanding reasoning benchmark. They switch to DoRA (Weight-Decomposed Low-Rank Adaptation, Liu et al.) at the same rank and see the gap close further. What does DoRA actually change compared to plain LoRA?

  1. DoRA automatically increases the LoRA rank partway through training whenever the loss plateaus, rather than keeping the rank fixed
  2. DoRA quantizes the frozen pretrained weights to 4-bit precision before applying the low-rank update, freeing memory for a higher rank
  3. DoRA decomposes each pretrained weight matrix into a magnitude component and a directional component, applies LoRA's low-rank update only to the directional component, and trains the magnitude component separately, more closely resembling how full fine-tuning updates both magnitude and direction together
  4. DoRA replaces LoRA's pair of low-rank matrices with a single full-rank matrix applied only to the value projection
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 013/055 hard

A team notices that fine-tuning their model exclusively on a new, narrow dataset degrades its performance on tasks it previously handled well -- catastrophic forgetting. They compare two mitigation strategies: mixing a sample of the original task's data into the new fine-tuning batches (rehearsal/replay), and Elastic Weight Consolidation (EWC, Kirkpatrick et al.). How do these two strategies actually differ in mechanism?

  1. EWC works by re-exposing the model to a sample of the original task's data during the new training run, while rehearsal instead adds a Fisher-information-weighted penalty term to the loss
  2. Rehearsal re-exposes the model to a sample of the original task's data during the new training run so the ordinary loss keeps rewarding good performance on it, while EWC does not replay any old data and instead adds a quadratic penalty term -- weighted by each parameter's estimated Fisher information, i.e. its importance to the original task -- that discourages large changes to the parameters that mattered most for that task
  3. Both strategies are mathematically identical; they differ only in which optimizer implementation is used to apply the resulting gradient updates
  4. Rehearsal and EWC both require discarding the new fine-tuning dataset entirely and training only on the original task's data
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 014/055 easy

A team wants to compress a large, expensive-to-serve model into a much smaller model that mimics its behavior, rather than training the small model directly on the original hard labels from scratch. They use knowledge distillation (Hinton et al.). What signal does the smaller 'student' model actually learn from that a model trained only on hard labels would not have access to?

  1. The student receives the teacher's raw gradient updates from pretraining and copies them directly into its own parameters
  2. The student is trained on a much larger set of hard-labeled examples that the teacher itself never saw during its own training
  3. The student directly copies the teacher's attention weight matrices into its own, smaller set of layers
  4. The student is trained to match the teacher's softened output probability distribution across all classes or tokens, produced by raising the softmax temperature, which reveals the relative similarities the teacher perceives between the incorrect options -- information Hinton called 'dark knowledge' that a single correct hard label does not carry
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 015/055 hard

Wei et al.'s FLAN study found that instruction-tuning a model on a large, diverse collection of tasks improved its zero-shot performance on entirely unseen tasks. Zhou et al.'s LIMA study later fine-tuned a 65B model on only 1,000 carefully curated prompt-response pairs, with no reinforcement learning or preference modeling, and still produced strong, competitive instruction-following output. What does the LIMA finding actually support, per the paper's own framing?

  1. The 'Superficial Alignment Hypothesis' -- that almost all of a model's knowledge and capability is acquired during pretraining, so fine-tuning mainly needs to teach the narrower, learnable subtask of which output style and format to use, meaning a small but carefully curated example set can suffice
  2. That instruction tuning is the primary mechanism by which a model acquires new factual knowledge it lacked after pretraining
  3. That fine-tuning dataset size is irrelevant in general, and larger instruction-tuning datasets actively hurt performance in every case
  4. That FLAN's finding about zero-shot generalization to genuinely unseen task categories was mistaken, since LIMA shows diverse task coverage is never necessary for any instruction-tuning goal
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 016/055 medium

A team fine-tunes one shared model jointly on several dissimilar tasks at once, hoping this multi-task fine-tuning will be more efficient than training a separate model per task. Instead, performance on some individual tasks drops below what single-task fine-tuning on that task alone achieved. Yu et al.'s 'Gradient Surgery for Multi-Task Learning' paper studied this and identified what as a key optimization-level cause?

  1. The drop is identical to catastrophic forgetting, which specifically occurs when tasks are trained one after another in sequence rather than jointly
  2. The drop happens only because the learning rate used across all tasks was set too high, and lowering it always eliminates the effect
  3. Gradients computed for different tasks can point in genuinely conflicting directions at parameters the tasks share, meaning they have negative cosine similarity, so combining them naively lets progress on one task come directly at the expense of another; the paper's proposed fix projects away each gradient's conflicting component before it is applied
  4. Joint multi-task training always improves every individual task's performance simultaneously, so no genuine drop in any task's performance is actually possible
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 017/055 hard

A team has plenty of past model outputs individually labeled 'good' or 'bad' by users, but very few outputs that were ever compared head-to-head as a preferred-versus-dispreferred pair for the same prompt. They want a preference-alignment method that can train directly on this binary-labeled data without first constructing new paired comparisons. Which method fits, and why?

  1. RLAIF fits best, because it removes the need for any human-provided labels entirely by having a separate LLM generate paired preference comparisons instead of relying on the binary labels already collected
  2. KTO (Kahneman-Tversky Optimization) fits, because its loss is grounded in prospect theory and requires only a single binary desirable/undesirable label per output, not a comparison against another output for the same prompt -- unlike DPO, whose loss is defined over a pair of preferred and dispreferred completions sharing a prompt
  3. Constitutional AI fits best, because its entire training pipeline is defined purely on binary labels and never involves any paired comparisons at any stage
  4. Standard RLHF's reward-model training step already works directly on binary desirable/undesirable labels without any modification, so no different method is needed
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 018/055 easy

A company wants to offer thousands of customers their own fine-tuned 'personal' version of the same base model, without hosting thousands of separate full model copies on GPUs. What approach, as demonstrated by serving systems like S-LoRA, makes this feasible?

  1. Merge every customer's LoRA adapter weights permanently into one single shared base model in advance, so every customization is active for every request regardless of who is asking
  2. Quantize the base model to 4-bit precision for every customer so that thousands of full model copies can fit into GPU memory at once
  3. Fine-tune one shared model on the concatenation of every customer's data, so a single identical model serves all customers and no per-customer weights are needed at all
  4. Keep one shared frozen base model resident on the GPU, store each customer's lightweight LoRA adapter weights separately, and dynamically load and batch just the small adapter matrices an incoming request needs against that shared base model, instead of duplicating the entire base model per customer
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 019/055 easy

A developer wants to run supervised fine-tuning on one of OpenAI's models through OpenAI's API. Per OpenAI's current documentation, which statement correctly describes how this process works?

  1. The developer uploads a JSONL file where each line is a training example formatted as a list of chat messages with roles such as system, user, and assistant; hyperparameters like the number of epochs, batch size, and learning-rate multiplier can each be set to 'auto' or overridden explicitly, and once the job completes, the fine-tuned model is called through its own distinct fine-tuned model identifier rather than replacing the original base model
  2. The developer must submit raw, unstructured plain-text files for training, since the chat-message format with roles is only accepted for ordinary inference calls, never for fine-tuning jobs
  3. Every fine-tuning hyperparameter, including epochs, batch size, and learning-rate multiplier, must be manually specified by the developer; OpenAI provides no option to select them automatically
  4. Once fine-tuning completes, the resulting model silently replaces the original base model account-wide, so the base model's own name begins returning the fine-tuned outputs for every user of that base model
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 020/055 easy

A team must choose between full-parameter fine-tuning and a parameter-efficient method such as LoRA to adapt a large pretrained model to a substantially different domain, one requiring the model to learn many genuinely new patterns poorly represented in its pretraining data. Which statement correctly compares the two approaches' tradeoffs for this scenario?

  1. Parameter-efficient methods always match or exceed full fine-tuning's capacity to absorb any size of distribution shift, so full fine-tuning is never worth its extra cost
  2. Full fine-tuning trains strictly fewer parameters than any parameter-efficient method, because it can reuse the pretrained weights completely unchanged
  3. Full fine-tuning updates every model parameter, generally giving it the highest capacity to absorb a large distribution shift or a genuinely new capability, but at the cost of a full new model copy per task, the largest compute and memory bill, and the greatest risk of catastrophic forgetting of prior abilities; parameter-efficient methods constrain learning to a much smaller set of new parameters, which is cheaper to train, store, and swap between tasks, but can hit a lower capacity ceiling when the required change is very large
  4. The two approaches are mathematically identical operations on the model's weights, differing only in which optimizer library happens to implement them
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 021/055 medium

A team wants a parameter-efficient fine-tuning method for a few-shot setting with even fewer trainable parameters than LoRA, and one that can still be folded into the frozen base weights at inference with no added latency. They adopt IA3 (Infused Adapter by Inhibiting and Amplifying Inner Activations), the method behind Liu et al.'s T-Few recipe. What does IA3 actually do differently from LoRA's low-rank weight update?

  1. It appends a small trainable classification head after the model's final hidden layer and trains only that head, leaving every transformer block's attention and feedforward weights completely untouched
  2. It inserts a small number of brand-new transformer layers between the existing frozen layers and trains only those newly inserted layers end to end
  3. It learns a handful of trainable vectors that rescale the key, value, and feedforward activations inside each transformer block by elementwise multiplication, rather than adding a low-rank matrix update to any weight matrix
  4. It duplicates each frozen weight matrix into two half-precision copies and trains only the numerical difference between the two copies, effectively performing full fine-tuning at half the memory cost
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 022/055 easy

A team has only a small labeled dataset for a new classification task and wants to adapt a pretrained BERT-style model while touching as few parameters as possible. Following Ben Zaken et al.'s BitFit method, they fine-tune only the model's bias terms, leaving every weight matrix frozen. What did the BitFit paper actually find about this approach on small-to-medium training sets?

  1. Bias-only fine-tuning was competitive with, and on some tasks better than, fine-tuning the entire model, despite updating roughly 0.1% of the parameters
  2. Bias-only fine-tuning failed to learn the new task at all, since bias terms alone cannot shift a model's output distribution in any meaningful way
  3. Bias-only fine-tuning matched full fine-tuning only when combined with a newly added low-rank adapter matrix inserted into every attention layer
  4. Bias-only fine-tuning required training for far more epochs than full fine-tuning before reaching comparable accuracy, making it slower overall despite touching fewer parameters
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 023/055 easy

A team wants to instruction-tune a language model but has only a small, narrow set of human-written instruction examples and no budget for large-scale human annotation. Following Wang et al.'s Self-Instruct method, they use the pretrained model itself, starting from that small seed set, to expand their instruction-tuning data. What does Self-Instruct actually do?

  1. It trains a separate, smaller model exclusively on the seed examples, then uses that smaller model's weights directly as the fine-tuned model without any further data generation
  2. It scrapes exam questions and solutions from publicly available question banks and question-answer forums, then relabels them as instruction-response pairs without any model generation involved
  3. It uses the language model to iteratively generate new instructions and matching input-output examples from the seed set, filters out invalid or overly similar ones, then fine-tunes the same model on the resulting synthetic dataset
  4. It replaces the fine-tuning stage entirely with a longer pretraining run on a larger, unlabeled general-purpose text corpus unrelated to the seed instructions
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 024/055 medium

Meta's Llama 2 chat models were aligned using several rounds of RLHF, and for the earlier rounds (through RLHF-V4) the paper describes relying only on rejection sampling fine-tuning rather than PPO. Under this rejection sampling fine-tuning approach, what actually happens to the model in each round?

  1. The current policy generates a fixed number of candidate responses per prompt, the reward model scores each candidate, and the model is then supervised-fine-tuned on the highest-scoring candidates, with no policy-gradient update performed
  2. The current policy generates a single response per prompt, and that response is accepted unconditionally as training data regardless of what the reward model scores it, since no rejection ever actually happens
  3. The reward model itself is fine-tuned on the current policy's outputs each round, while the policy's own weights are left completely frozen throughout every round
  4. The policy is updated using the PPO clipped surrogate objective against the reward model's scores, exactly as in standard RLHF, and 'rejection sampling' only refers to discarding malformed API responses
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 025/055 hard

A team wants to align a pretrained language model to preference data but wants to skip having a separate supervised fine-tuning warm-up stage and avoid maintaining any frozen reference model during training, unlike DPO. They adopt ORPO (Odds Ratio Preference Optimization, Hong et al.). How does ORPO actually achieve preference alignment without a reference model?

  1. It trains a full reward model on the preference pairs first, then performs standard PPO reinforcement learning against that reward model without ever fine-tuning on the preferred responses directly
  2. It requires two separately trained frozen copies of the base model, one for the chosen response and one for the rejected response, and computes their KL divergence as the sole training signal
  3. It discards the preference labels entirely and instead fine-tunes only on the chosen responses using ordinary supervised fine-tuning, treating the rejected responses as irrelevant noise to be ignored
  4. It appends a log odds-ratio penalty term, comparing the odds of generating the chosen versus the rejected response, directly onto the ordinary supervised fine-tuning negative log-likelihood loss, in a single combined training stage
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 026/055 easy

A team fine-tunes a model with LoRA for a single production task and, before deploying it, merges the LoRA adapter's low-rank matrices directly into the base model's frozen weight matrices to produce one combined checkpoint. Compared to serving the same task with the LoRA adapter kept separate from the base weights at inference time, what is the effect of merging?

  1. The merged checkpoint runs inference with essentially zero added latency compared to the base model alone, since the forward pass is now identical in shape and computation to the original unmodified model
  2. The merged checkpoint runs noticeably slower than keeping the adapter separate, because merging forces every layer to be recomputed twice, once with and once without the adapter's contribution
  3. Merging has no effect on inference speed either way, because LoRA adapters already add zero computational overhead even when kept separate from the base weights
  4. Merging prevents the model from being fine-tuned again in the future, since a merged checkpoint permanently loses the ability to have any new LoRA adapter trained against it
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 027/055 easy

In Ouyang et al.'s InstructGPT pipeline, the second stage trains a reward model on human rankings of multiple candidate responses to the same prompt, before that reward model is used to guide PPO in the third stage. Whose outputs are actually ranked by human labelers to produce the training data for this reward model?

  1. Outputs sampled directly from the original pretrained GPT-3 model before any supervised fine-tuning has been applied to it at all
  2. Outputs sampled from a separate, independently trained reward model that has no relationship to the supervised fine-tuned model at any stage of the pipeline
  3. Outputs written entirely by the human labelers themselves, with no model-generated text involved anywhere in the reward-model training data
  4. Outputs sampled from the supervised fine-tuned model produced in the pipeline's first stage, since the reward model needs to distinguish quality among responses similar in style to what the policy being aligned will actually generate
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 028/055 medium

During the PPO stage of a standard RLHF pipeline, the training objective adds a per-token penalty based on the KL divergence between the policy currently being trained and a frozen copy of the supervised fine-tuned model kept unchanged throughout training. What problem does this KL penalty against the frozen reference policy actually address?

  1. It compresses the policy's vocabulary distribution so that only the single highest-probability token can ever be sampled at each generation step, eliminating randomness in the output entirely
  2. It restrains the policy from drifting into regions of output space that exploit inaccuracies in the reward model to score highly while producing degenerate, incoherent, or off-distribution text
  3. It reduces the total number of parameters the policy needs to store by sharing all weights between the policy and the frozen reference model at inference time
  4. It replaces the reward model's score entirely once training begins, so that after the first few PPO updates the reward model's output is no longer used at all
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 029/055 easy

Gururangan et al. studied continuing a language model's original pretraining objective on a large volume of unlabeled text drawn from a specific target domain (such as biomedical or computer science publications), before any task-specific fine-tuning happens, calling this domain-adaptive pretraining (DAPT). What does DAPT actually involve, and what did the study find?

  1. It replaces the pretraining objective with a supervised classification loss trained on labeled examples from the target domain, and the study found this always outperforms fine-tuning on labeled task data alone
  2. It continues the same unsupervised pretraining objective (such as masked or autoregressive language modeling) on unlabeled in-domain text before task fine-tuning, and the study found this second pretraining phase generally improved downstream task performance across the domains and tasks tested
  3. It fine-tunes only the model's final classification layer on a small number of labeled in-domain examples while freezing every other layer, and the study found this matched full fine-tuning in every domain tested
  4. It discards the original pretrained weights entirely and pretrains a new, smaller model from scratch on only the in-domain corpus, and the study found this always outperformed continuing from the original pretrained model
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 030/055 hard

In Hu et al.'s original LoRA formulation, the weight update injected at a targeted layer is scaled by a factor of alpha divided by rank (alpha/r) before being added to the frozen weight matrix, rather than being added at its raw magnitude. A team is deciding how to adjust rank r while keeping the update's overall magnitude roughly the same. What is this alpha/r scaling factor actually for?

  1. It converts the trainable low-rank matrices from floating-point to integer precision before they are added to the frozen weight matrix, reducing memory usage during training
  2. It determines how many transformer layers LoRA is applied to, with a higher alpha/r value applying the adapter to progressively more layers of the frozen model
  3. It sets the learning rate used specifically for the frozen base weights, independently of the learning rate used for the trainable low-rank matrices themselves
  4. It normalizes the magnitude of the injected update so that increasing or decreasing the rank alone does not automatically make the update's overall size grow or shrink, letting rank be adjusted somewhat independently of how strongly the update perturbs the frozen weights
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 031/055 medium

LoRA (Low-Rank Adaptation) is a parameter-efficient fine-tuning method. Instead of updating all weights in a pre-trained model, what does LoRA do differently, and why does this save memory and compute?

  1. LoRA freezes the original model weights and injects small trainable low-rank matrices into each transformer layer — because these matrices have far fewer parameters than the full weight matrices, the training requires much less GPU memory and compute while still adapting the model's behavior to the target task
  2. LoRA removes half of the model's layers before fine-tuning, cutting the parameter count in half and therefore halving the memory and compute requirements
  3. LoRA trains all parameters but uses a lower learning rate, which reduces compute by requiring fewer gradient update steps to converge
  4. LoRA converts the model from 32-bit to 4-bit precision before training, which is why it uses less memory — the low-rank aspect refers to the reduced numerical precision, not the matrix decomposition
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 032/055 medium

A team is fine-tuning a large model with LoRA at a single fixed rank applied uniformly to every weight matrix in every layer, and notices that some layers clearly matter more to the target task than others, so a uniform rank wastes parameter budget on unimportant layers while under-provisioning important ones. They switch to AdaLoRA (Zhang et al.). What does AdaLoRA actually do differently from plain fixed-rank LoRA?

  1. AdaLoRA replaces the low-rank matrices with full-rank dense updates at every layer, then prunes entire layers after training completes, rather than pruning individual parameters during training
  2. AdaLoRA keeps the same fixed rank at every layer but instead reduces the number of layers that receive any adapter at all, concentrating the full parameter budget onto a smaller subset of layers chosen at random
  3. AdaLoRA parameterizes each layer's update in singular-value-decomposition form and prunes the singular values, and their corresponding vectors, with the lowest importance scores over the course of training, dynamically shifting the rank budget toward the layers whose triplets prove most important, without needing to run an expensive exact SVD
  4. AdaLoRA removes the low-rank decomposition entirely and instead selects a random subset of the full weight matrix's individual entries to unfreeze and train directly, guaranteeing an identical parameter budget at every layer
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 033/055 medium

A team wants to deploy a large pretrained language model at 4-bit precision for inference on limited-memory hardware, without doing any additional gradient-based training of the model, and needs the quantized model's outputs to stay close to the original full-precision model's outputs on held-out data. They use GPTQ (Frantar et al.). How does GPTQ actually decide how to quantize the model's weights?

  1. GPTQ quantizes each layer's weight matrix one column, or block of columns, at a time in sequence, using second-order Hessian-based information to choose the update order and to adjust the remaining unquantized weights so that the layer's output error, measured on a small calibration dataset, is minimized, with no gradient-based training of the model's weights themselves
  2. GPTQ trains a small set of new low-rank adapter matrices on top of the frozen full-precision weights, then quantizes only those adapter matrices to 4-bit while leaving the original weights at full precision
  3. GPTQ uniformly rounds every weight in the model to the nearest representable 4-bit value using a single global scale factor computed from the full weight distribution, without considering any layer's output error or using any calibration data
  4. GPTQ retrains the entire model from scratch at 4-bit precision using quantization-aware training, backpropagating gradients through simulated quantization operations across many epochs on the full pretraining corpus
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 034/055 easy

A team has one pretrained base model plus several independently fine-tuned versions of it, one for each of several different downstream tasks, and wants to combine or remove specific task capabilities in the base model without collecting any new training data or running any additional gradient-based training. They use task arithmetic (Ilharco et al.). What is a 'task vector' in this method, and what can be done with it?

  1. A task vector is the fine-tuned model's full set of weights saved separately from the base model; task vectors are combined by loading whichever fine-tuned checkpoint is needed for each task at inference time, one at a time
  2. A task vector is a text embedding of the task's name and description generated by the base model itself; combining task vectors means concatenating these embeddings into the model's prompt at inference time
  3. A task vector is the gradient computed during a single training step on the target task's data; task vectors are combined by summing gradients across tasks and applying one combined gradient update to the base model
  4. A task vector is the element-wise difference between a fine-tuned model's weights and the base model's weights before fine-tuning; task vectors from different tasks can be added together, or negated, directly in weight space to improve performance on multiple tasks at once or to reduce performance on an unwanted task, without any further training
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 035/055 easy

A team is training a reward model to grade a language model's multi-step solutions to math problems, and must decide whether to give the reward model feedback only on whether the final numeric answer is correct, or feedback on the correctness of each individual reasoning step along the way. Lightman et al. ('Let's Verify Step by Step') directly compared these two approaches, which they call outcome supervision and process supervision. What did they actually find?

  1. Outcome supervision, which only checks the final answer, significantly outperformed process supervision on their target math benchmark, because grading every intermediate step introduced too much noisy, low-value feedback for the reward model to learn from effectively
  2. Process supervision, which grades every step for correctness, significantly outperformed outcome supervision on their target math benchmark, because it gives more precise feedback about exactly where an error occurs and more directly rewards the model for following a step-by-step chain of reasoning a human would endorse
  3. The two approaches performed statistically indistinguishably on their target math benchmark, since a wrong final answer almost always comes from an identifiable single wrong step, so outcome supervision already captures nearly all the same signal
  4. Process supervision could not be evaluated at all on their target math benchmark, because no human labelers were willing to grade individual reasoning steps, forcing the study to rely entirely on outcome supervision instead
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 036/055 hard

During the RL fine-tuning stage of a standard RLHF pipeline, PPO (Schulman et al.) is used to update the policy against the reward model's scores. A single batch of sampled responses can sometimes produce a very large estimated advantage for some responses, which naively would push the policy's probability ratio for those responses far from 1 in one update. What does PPO's clipped surrogate objective specifically do to prevent this?

  1. It discards any training batch containing a response whose estimated advantage exceeds a fixed threshold, training only on batches where every response's advantage is small enough to be considered safe
  2. It adds a KL-divergence penalty term, scaled by a tunable coefficient, to the reward itself before the advantage is computed, discouraging the policy from moving far from a frozen reference policy at every single token
  3. It clips the probability ratio between the new and old policy for each sampled action to a fixed range around 1 before multiplying it by the estimated advantage, then takes the minimum of the clipped and unclipped versions of that product, so a ratio that has moved far enough in the direction that would exploit the advantage stops contributing extra objective value beyond that range
  4. It performs a full second-order, trust-region-constrained optimization at every update, exactly as TRPO does, solving a constrained quadratic program at each step to guarantee the KL divergence between the old and new policy stays under a fixed bound
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 037/055 easy

A team is investigating why a language model fine-tuned via RLHF consistently scores higher on its reward model, and consequently gets judged as more 'helpful,' than a purely supervised-fine-tuned baseline. Singhal et al. ('A Long Way to Go: Investigating Length Correlations in RLHF') investigated this specifically for response length across several open-domain tasks. What did they find primarily drives this reward improvement?

  1. Response length itself was the single largest driver: reward scores were strongly correlated with output length, RLHF consistently produced longer outputs than the supervised-fine-tuned baseline, and a reward function based on length alone reproduced most of the downstream improvement standard RLHF achieved, tracing the root cause to reward models that are non-robust and easily swayed by length-related patterns in their preference training data
  2. The improvement was found to be entirely unrelated to length; instead, it was driven by the RL fine-tuning stage specifically improving factual accuracy, which longer responses only happened to correlate with by coincidence
  3. The improvement came from RLHF making responses shorter and more concise on average, since human preference-data labelers in their study consistently rated shorter responses as more helpful across every one of the settings tested
  4. The study found the reward improvement varied unpredictably across settings with no identifiable common cause, and explicitly ruled out length as a contributing factor in every one of the settings they tested
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 038/055 medium

A team wants to improve a language model's instruction-following ability through iterative preference training, without depending on a separately trained external reward model or ongoing human preference labeling for each new round. They adopt Self-Rewarding Language Models (Yuan et al.). How does this method actually generate its own training signal in each iteration?

  1. The current model is frozen entirely; a separate large external model, unrelated to the model being trained, is used purely as a judge to score responses, and DPO is applied using only that external judge's scores
  2. The same model being trained generates candidate responses to self-created instructions, then uses LLM-as-a-judge prompting on itself to score and rank those candidates into preference pairs, which are used to train the model via DPO; the resulting improved model is then used to generate the next iteration's data, so instruction-following ability and self-judging ability both improve together across iterations
  3. The model's weights are duplicated into two frozen, never-updated copies that debate a response's quality with each other in natural language over several rounds, and a fixed majority-vote rule between the two copies determines the preference label with no model updates at any point
  4. Preference labels come entirely from a static, pre-existing human preference dataset collected once before training begins, with each iteration re-training on that exact same fixed dataset without generating any new data or new judgments
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 039/055 easy

A team has already spent significant compute pretraining a large dense transformer model and wants to scale up its capacity further by converting to a sparse mixture-of-experts model, without wasting that sunk pretraining cost by starting the mixture-of-experts model from a random initialization. They use sparse upcycling (Komatsuzaki et al.). What does this method actually do to the existing dense checkpoint?

  1. It discards the dense checkpoint's feed-forward layers entirely, replacing them with newly and randomly initialized mixture-of-experts layers, while keeping only the attention layers from the original dense checkpoint
  2. It trains a brand-new sparsely-gated mixture-of-experts model completely from scratch on the same pretraining data the dense model originally used, using the dense model's final validation loss only as a stopping-point benchmark to compare against
  3. It converts the dense model into a mixture-of-experts model by pruning away most of its feed-forward parameters, keeping only a single most-important sparse subset of weights and permanently discarding the rest, without adding any new components
  4. It clones the dense checkpoint's existing feed-forward layer multiple times to create the initial set of experts for each mixture-of-experts layer, adds a newly and randomly initialized routing network in front of each such layer, and then continues pretraining so the cloned experts gradually specialize while the router learns to route tokens between them
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 040/055 hard

A team has already trained several separate bottleneck adapter modules, each one specialized for a different individual task, on top of a shared frozen pretrained model, and now wants to combine the useful task-specific knowledge from all of them for a new target task, without damaging or retraining any of the original individual adapters. They use AdapterFusion (Pfeiffer et al.). How does this method actually combine the existing task adapters?

  1. It averages all of the existing task adapters' weights together into a single new adapter with the same size as any one original adapter, then fine-tunes that averaged adapter further on the target task's data
  2. It picks exactly one of the existing task adapters, chosen by whichever one achieves the highest validation accuracy on a small sample of the target task's data, and discards the rest before proceeding
  3. In a separate composition stage, it keeps every existing task adapter's parameters completely frozen and trains a new attention-based fusion module on top of them, which learns to dynamically weight and combine each frozen adapter's contribution differently at each layer, as a function of the target task's own input, without modifying any original adapter
  4. It merges the several task adapters by concatenating their weight matrices end-to-end into one much larger adapter, whose size grows linearly with the number of task adapters combined, and trains that entire concatenated block jointly from scratch
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 041/055 easy

A team wants to fine-tune all of a large model's parameters, not with a parameter-efficient method like LoRA, across multiple GPUs, but plain data parallelism would require every single GPU to separately hold a full redundant copy of the model's parameters, gradients, and optimizer states, which quickly exceeds available memory as model size grows. They use ZeRO, the Zero Redundancy Optimizer (Rajbhandari et al.). What does ZeRO actually do to address this?

  1. ZeRO partitions the optimizer states, gradients, and, in its most aggressive stage, the model parameters themselves across the participating GPUs, so each GPU only stores and updates its own partition rather than a full redundant copy of everything, eliminating the memory redundancy of standard data parallelism while still functioning as data-parallel training
  2. ZeRO converts the entire model to a parameter-efficient method by inserting small trainable low-rank adapter matrices into every layer and freezing the original weights, reducing the number of trainable parameters that need to be stored on any single GPU
  3. ZeRO reduces memory use by quantizing every parameter, gradient, and optimizer state to 4-bit precision throughout training, trading numerical precision for memory savings while still keeping a full redundant copy of everything on each GPU
  4. ZeRO eliminates the need for any GPU to store gradients or optimizer states at all by recomputing them from scratch on demand at every single training step, entirely from the forward-pass activations
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 042/055 medium

A team has three independently fine-tuned versions of the same base model, one per task, and wants to merge them into a single multi-task model by combining their task vectors in weight space. Plain task arithmetic (simple addition of the task vectors) gives disappointing results because many individual weight entries received updates of opposite sign across the three tasks, and many other entries only changed by a tiny, likely-noisy amount in any given task. They switch to TIES-Merging (Yadav et al.) instead. What does TIES-Merging actually do differently before averaging the task vectors together?

  1. It trains a new, larger adapter module on top of the three frozen task vectors and learns a continuous attention-based mixing weight for each one, re-optimized separately for every new input at inference time
  2. For each task vector it first trims away entries that changed only a small amount in magnitude, then elects a single sign (positive or negative) per parameter by a magnitude-weighted vote across the task vectors, and finally averages together only the entries from task vectors whose sign agrees with that elected sign
  3. It converts each task vector into a short natural-language description of what the task changed, then re-derives a new combined task vector purely by prompting the base model with all three descriptions at once
  4. It discards two of the three task vectors entirely, keeping only the one whose fine-tuned model scored highest on a held-out validation set, and applies that single task vector unmodified
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 043/055 medium

A team wants a DPO-style preference-alignment method, trained directly on chosen/rejected response pairs with no separate reward model and no PPO loop, but that also avoids keeping a frozen reference-model copy loaded during training, unlike DPO itself, and defines its implicit reward purely from the policy model's own output probabilities rather than from any odds-ratio term added to a supervised fine-tuning loss. They adopt SimPO (Meng, Xia & Chen). What is SimPO's reward formulation and why does it specifically need to be length-normalized?

  1. SimPO defines the implicit reward for a response as its average per-token log-probability under the policy being trained, length-normalized so that longer responses are not automatically favored simply for having more tokens over which log-probabilities are summed
  2. SimPO defines the reward as the raw, un-normalized sum of per-token log-probabilities under the policy, and length-normalization refers only to truncating every training response to the same fixed token count before any training begins
  3. SimPO defines the reward using a frozen reference model's probability ratio exactly as DPO does, and length-normalization refers to rescaling that frozen reference model's own parameter count relative to the policy model being trained
  4. SimPO defines the reward as the number of human preference votes a response received during data collection, length-normalized by dividing that vote count by the number of words in the response
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 044/055 easy

A team is distilling a large machine-translation model into a much smaller student model. Standard (word-level) knowledge distillation trains the student to match the teacher's softened probability distribution over the vocabulary at each individual token position in the reference translation. Kim & Rush instead propose sequence-level knowledge distillation. How does this approach differ in what the student is actually trained on?

  1. It is identical to word-level distillation except that the softmax temperature used to soften the teacher's per-token probability distribution is lowered rather than raised
  2. It trains the student only on the original human reference translations, with the teacher model's predictions not used anywhere in the training process
  3. It has the teacher model produce a single averaged probability distribution across the entire training corpus in advance, and the student is trained to match that one corpus-wide distribution at every token position
  4. It runs beam search with the teacher model over the training inputs to generate the teacher's own full output sequences, then trains the student with ordinary cross-entropy on those teacher-generated sequences in place of the original reference translations
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 045/055 hard

A team wants to extend a pretrained model's usable context window from 4k to a much larger size, such as 100k tokens, by further fine-tuning it, but standard full self-attention fine-tuning at that context length is far too expensive in compute and memory. They adopt LongLoRA (Chen et al.) and its shifted sparse attention (S2-Attn) mechanism during training. How does S2-Attn actually reduce the cost of attention during this fine-tuning, and what keeps information flowing between the separate pieces it creates?

  1. It replaces self-attention entirely with a fixed sliding window of a few hundred nearby tokens for every head, permanently discarding any ability to attend across the full extended context even after fine-tuning finishes
  2. It splits the long context into several smaller groups and computes full attention only within each group independently, while shifting the tokens by half a group's size for half of the attention heads, so that information still flows across the boundaries between neighboring groups
  3. It keeps full dense attention across the entire long context unchanged during fine-tuning, and achieves its speedup purely by quantizing the attention score matrix to 8-bit integers
  4. It discards the attention mechanism during fine-tuning altogether and instead trains a separate recurrent module to summarize the long context into a single fixed-size vector passed to the transformer
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 046/055 easy

A team wants a model to more consistently exhibit a specific behavior, such as a more honest or less sycophantic response style, and considers two options: fine-tuning the model's weights on examples of the desired behavior, or activation steering, a representation-engineering technique that computes a 'steering vector' from the difference in internal activations between contrasting prompts and adds it into the model's residual stream at a chosen layer during generation. What is the key practical difference between activation steering and fine-tuning for this purpose?

  1. Activation steering requires collecting a labeled preference dataset of thousands of chosen/rejected response pairs and running a full reinforcement-learning loop, exactly like RLHF, whereas fine-tuning requires none of that
  2. Activation steering permanently overwrites the model's weight matrices with the steering vector added in, so once applied it cannot be turned off without re-downloading the original weights
  3. Activation steering changes no model weights at all; it modifies only the activations flowing through the network at inference time, so the behavioral shift can be adjusted or switched off per request simply by changing or omitting the added vector, without any training run
  4. Activation steering is mathematically identical to LoRA, since both add a learned low-rank update to specific weight matrices before the model is deployed
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 047/055 medium

A team has a hub of many separately trained LoRA modules, each specialized for a different past task, and receives a brand-new task with only a handful of labeled examples and no budget for gradient-based training. They use LoraHub (Huang et al.) to dynamically combine existing LoRA modules for this new task. How does LoraHub decide how much weight to give each existing LoRA module in the combination?

  1. It runs standard gradient-descent fine-tuning of a new combination layer on the few available examples, backpropagating through all of the existing LoRA modules simultaneously to learn each module's weight
  2. It always combines every LoRA module in the hub with exactly equal, fixed weight, regardless of which new task is being solved or how many examples are available
  3. It discards the few available examples and instead asks a separate large language model to read each LoRA module's original task description and assign a weight based purely on that text, with no evaluation on the new task's own examples
  4. It searches for the per-module combination coefficients using a gradient-free black-box optimization procedure, evaluating candidate combinations directly against the few available examples and refining the coefficients over a handful of inference steps without computing gradients through the LoRA modules
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 048/055 easy

A team is fine-tuning a large model and wants a parameter-efficient method that trains dramatically fewer parameters than standard LoRA, since even LoRA's trainable matrices become a meaningful storage cost when the team needs a separate adapter for thousands of customers. They adopt VeRA (Vector-based Random Matrix Adaptation, Kopiczko et al.). How does VeRA reduce trainable parameters so much further than ordinary LoRA, which already trains a distinct pair of low-rank matrices per layer?

  1. It removes the low-rank adaptation idea entirely and instead fine-tunes only a single scalar learning-rate multiplier per layer, applied to the base model's existing frozen weights
  2. It shares one single pair of frozen, randomly initialized low-rank matrices across every layer being adapted, and trains only small per-layer scaling vectors that rescale those shared frozen matrices differently at each layer
  3. It trains a separate full-rank weight update for every layer, which is actually more parameters than LoRA, but compresses the result afterward with 4-bit quantization before saving it to disk
  4. It eliminates adaptation at inference time altogether by having every layer reuse the exact same trained low-rank matrices from LoRA with no scaling or modification whatsoever
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 049/055 hard

A team wants a parameter-efficient fine-tuning method that, unlike LoRA's structured low-rank weight update, instead learns an arbitrary, sparse set of individual weight changes scattered anywhere across the pretrained model, so that per-task storage only needs to record the small number of modified weight positions and their values. They adopt diff pruning (Guo, Rush & Kim). How does diff pruning actually produce this sparse per-task update, and what does the paper report about how sparse it can be while matching full fine-tuning?

  1. It restricts weight changes to a small number of hand-picked layers chosen in advance by the practitioner, applying full dense fine-tuning only within those chosen layers and none elsewhere
  2. It first fine-tunes the entire model fully and only afterward prunes away weight changes below a fixed hand-set magnitude threshold, with no learned penalty guiding which positions are pruned during training
  3. It learns a per-task 'diff' vector added to the frozen pretrained weights, adaptively pruning it toward sparsity during training using a differentiable approximation to the L0-norm penalty, and reports matching finetuned performance on GLUE while modifying only about 0.5% of the pretrained model's parameters per task
  4. It replaces the pretrained model's weights entirely with a newly initialized sparse network trained from scratch on the target task, discarding the original pretrained values at every modified position
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 050/055 easy

A team has a long, carefully engineered system prompt that reliably improves a model's behavior on a task, but it eats into the context window and must be re-sent with every request. They want to 'bake' the prompt's effect into the model's weights so it behaves the same way even without the prompt present. Following Snell et al.'s context distillation, how is this actually done?

  1. The system prompt's exact text is appended as a hidden prefix to the model's vocabulary embedding table, so the model always implicitly reads it even when it is not included in the visible input
  2. The same model, run once with the system prompt included (acting as the teacher) and once without it (acting as the student), is distilled by training the student, unprompted version to match the teacher, prompted version's output distribution on matching inputs, so the prompt's effect gets internalized into the student's weights
  3. The system prompt is converted into a set of additional attention heads inserted permanently into every transformer layer, with the prompt's text never used again after this one-time architectural change
  4. The model is fine-tuned using ordinary supervised fine-tuning directly on the system prompt's own text as the training target, with no teacher-student distillation or comparison between prompted and unprompted outputs involved at all
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 051/055 easy

A team has already fine-tuned a 7B model with full-parameter fine-tuning on a large programming dataset to boost coding ability, but notices this badly degrades the model's general conversational quality and performance on unrelated instruction-following benchmarks. They are considering switching to LoRA fine-tuning on the same coding dataset instead. Based on Biderman et al.'s 'LoRA Learns Less and Forgets Less,' what tradeoff should they expect from making that switch?

  1. LoRA will match full fine-tuning's gain in coding ability while also matching its degree of forgetting on unrelated tasks, since both methods update the same underlying attention and feed-forward matrices
  2. LoRA will outperform full fine-tuning on the coding benchmark itself, because restricting the update to a low-rank subspace acts as an implicit curriculum that concentrates learning capacity on the new domain
  3. LoRA will typically learn the new coding domain less well than full fine-tuning did, but will retain more of the model's prior general-domain performance, a tradeoff the paper partly attributes to the much lower rank of LoRA's weight updates compared to full fine-tuning's
  4. LoRA will forget the unrelated general-domain tasks just as much as full fine-tuning does, but will take substantially longer to converge on the coding benchmark, since its optimizer must simultaneously track both the frozen and trainable matrices
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 052/055 medium

A team has fine-tuned the same pretrained model five separate times on the same target task and dataset, varying only the learning rate, data augmentation, and random seed for each run, and now must pick which single checkpoint to ship based on validation accuracy. Based on Wortsman et al.'s 'model soups' approach, what alternative to picking the single best-validation-accuracy checkpoint does the paper propose, and what does it claim about the result?

  1. Train one additional, larger model from scratch using the five existing runs' predictions as soft labels, a form of knowledge distillation that produces a single model at double the parameter count
  2. Keep all five fine-tuned checkpoints loaded simultaneously and average their output logits at inference time, trading extra inference-time compute and memory for a modest accuracy gain over the single best checkpoint
  3. Discard four of the five checkpoints and fine-tune the remaining one for additional epochs at a lower learning rate, since combining weights from independently fine-tuned runs is numerically unstable for models of this size
  4. Average the weights of multiple (or all) of the fine-tuned checkpoints directly into a single set of weights, producing a 'soup' that the paper reports can exceed the accuracy of the best individual checkpoint, including on out-of-distribution and downstream transfer evaluations, without any additional inference or memory cost over a single model
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 053/055 easy

A team is running standard supervised instruction fine-tuning on a 7B model using the Alpaca dataset and wants a change that costs no extra training data, no extra compute per step, and requires modifying only a few lines of the training loop. Following Jain et al.'s NEFTune, what do they do, and on what basis does the paper claim it helps?

  1. During each training step's forward pass, add random uniform noise to the token embedding vectors (scaled down by a factor depending on sequence length and embedding dimension) before the rest of the model processes them, leaving the loss computation, optimizer, and data otherwise unchanged; the paper reports large gains on instruction-following benchmarks such as AlpacaEval
  2. Replace the cross-entropy loss with a label-smoothing loss that softens the target distribution over the vocabulary at every token position, which the paper claims reduces overconfidence without touching the embedding layer at all
  3. Insert an additional trainable adapter layer after the embedding layer whose output is added to the embeddings, trained jointly with the rest of the model via ordinary backpropagation, which the paper reports approximates full fine-tuning at a fraction of the parameter cost
  4. Duplicate each training example in the batch with its words randomly shuffled, a lightweight data augmentation step that the paper claims is equivalent in effect to a much larger training set
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 054/055 hard

A team wants a parameter-efficient alternative to LoRA that trains even fewer parameters, and considers Wu et al.'s ReFT (specifically LoReFT, Low-rank Linear Subspace ReFT). Unlike LoRA, which injects trainable low-rank matrices into the weight computation and can later be merged into the frozen base weights, what does LoReFT actually train and intervene on?

  1. LoReFT trains a new set of low-rank weight matrices at every layer of the network, identical in form to LoRA's own low-rank matrices, but initializes them from the base model's existing weights rather than from random noise, which the paper reports is the sole source of its added parameter efficiency
  2. LoReFT keeps every pretrained weight completely frozen and instead learns a low-rank linear subspace intervention that edits the hidden representation at a fixed, small set of token positions and chosen layers, pushing the representation's component within that subspace toward a learned target value while leaving the rest of the representation untouched
  3. LoReFT removes the final few transformer layers entirely and replaces them with a small randomly initialized feed-forward network trained from scratch on the target task, discarding the pretrained layers' original representations altogether
  4. LoReFT trains a full copy of the attention mechanism's query and key projection matrices while freezing the value and output projections, reducing trainable parameters roughly in proportion to how many of the four projection matrices are skipped
AI & LLM Engineering · Fine-tuning & Model Customisation · Card 055/055 medium

A team wants to pretrain a 7B model from scratch on a single consumer GPU with 24GB of memory, nowhere near enough to hold full-parameter Adam optimizer states in standard precision for a model that size. They want every one of the model's original parameters to actually get updated during training, ruling out a LoRA-style approach that freezes the base weights. Based on Zhao et al.'s GaLore, how does the method make this feasible?

  1. GaLore freezes the base model's weights entirely, exactly like LoRA, and only trains a small pair of low-rank matrices injected at each layer, but claims extra memory savings over LoRA by storing those matrices in 8-bit integer precision
  2. GaLore shards the full set of model weights, gradients, and optimizer states evenly across multiple GPUs so that no single GPU ever holds a complete copy, the same partitioning strategy used by ZeRO
  3. GaLore reduces memory by training on a smaller random subset of the pretraining tokens each step, skipping full-batch gradient computation entirely and relying on the resulting noisier gradient estimate to approximate the full-data gradient
  4. GaLore keeps all of the model's original parameters trainable and updated every step, but projects the gradient computed for each weight matrix into a low-rank subspace before it reaches the optimizer, so the optimizer's state (such as Adam's moment estimates) is stored and updated at that lower rank instead of at the full weight matrix's size