Abstract
What can you change about a language model once it has been pretrained, how cheaply, and what breaks when you do? Fine-tuning continues training on narrower data. Updating every weight needs memory for the weights, their gradients and the optimiser’s running statistics, 16 bytes per parameter in one common mixed-precision layout, which puts a 65-billion-parameter model far beyond one GPU. Parameter-efficient methods train a small addition or subset instead: bottleneck adapters, learned prefixes and soft prompts, and low-rank adaptation (LoRA), which adds the product of two thin trainable matrices to a frozen weight matrix. QLoRA kept the frozen base in 4-bit form and reported fitting a 65B fine-tune on a single 48 GB GPU. Model hubs now list hundreds of thousands of entries tagged as PEFT or LoRA. The safety research is sobering. In a 2023 study, ten harmful examples and under $0.20 of API fees raised the share of maximally harmful GPT-3.5 Turbo answers on the authors’ benchmark from 1.8% to 88.8%; narrow training on insecure code made some models broadly misaligned; traits passed between models sharing a base through number sequences. A fine-tuned model’s behaviour has to be measured, and its provenance cannot be read from its weights.
What pretraining leaves you with
The language models discussed here are autoregressive: they are pretrained to predict the next token of text across a very large corpus, and their weights are the numbers fitted to do that. The mechanics are covered in Next-token machines: a reader on large language models and the transformer. LLaMA-65B, a model that appears repeatedly below, has 65.2 billion parameters and was trained on about 1.4 trillion tokens.1 A model trained this way continues text in ways that resemble its training data. Nothing in the objective asks it to follow instructions, keep to a format, or decline a harmful request.
There are several ways to get a particular job out of such a model, and they can be combined. You can describe the job in the prompt. You can have the system retrieve relevant documents at query time and condition generation on them, which is retrieval-augmented generation,2 covered in Open-book models: a reader on retrieval-augmented generation. Or you can change the weights by training further on examples of the job, which is fine-tuning. A fine-tuned model can still be prompted and given retrieved documents. InstructGPT is the canonical example of fine-tuning used to build an assistant: GPT-3 was first fine-tuned on demonstrations written by labelers, then fine-tuned further with reinforcement learning from rankings of its outputs.3 That second stage is the subject of Reinforcement learning from human feedback.
Fine-tuning uses the same basic loop as pretraining: show an input, compare the output with a target, compute how each trainable weight should move to reduce the error (the gradient), and nudge the weights. Much else can change. The data is narrower and smaller; the objective may differ; examples are often built as prompt-response pairs with the loss computed only on the response; and the set of parameters being trained may be all of them or a small part. Two problems come with the conventional version, in which every weight is updated and a dense checkpoint is saved per task. The first is cost. The second is that moving the weights to fit new data can damage what they already encoded.
The cost of full fine-tuning
Full fine-tuning updates every parameter. With the Adam optimiser, the GPU must hold much more than the model itself. The ZeRO paper from Microsoft sets out one mixed-precision layout: a 16-bit copy of the parameters (2 bytes each), 16-bit gradients (2 bytes each), and optimiser state consisting of a 32-bit master copy of the parameters plus Adam’s two moving averages, of the gradients and of their elementwise squares (the first and uncentred second moments, which ZeRO calls momentum and variance), each 32-bit (4 + 4 + 4 bytes). That is 16 bytes per parameter before counting activations, the intermediate values saved during the forward pass for use in the backward pass. The paper’s example is GPT-2 with 1.5 billion parameters, which needs at least 24 GB for this model state against 3 GB for the 16-bit weights alone.4
Other published estimates use other layouts. The LoRA paper reports that fine-tuning GPT-3 175B with Adam took 1.2 TB of GPU memory in its setup.5 The QLoRA paper gives a separate estimate, more than 780 GB for regular 16-bit fine-tuning of LLaMA 65B, with no component breakdown.6 In the conventional dense case, each fine-tuned variant is also a full checkpoint: the LoRA paper counts 350 GB per task for GPT-3 175B.5
Catastrophic forgetting
The second problem has a name older than large language models. In 2016 James Kirkpatrick and colleagues at DeepMind described catastrophic forgetting as the tendency for knowledge of a previously learned task to be “abruptly lost” when a network is trained on a new one, because weights important for task A are changed to meet the objectives of task B. They credit the term to earlier work, including McCloskey and Cohen in 1989.7 Their contrast is with a multitask setup in which data from all tasks is interleaved and the weights are optimised for all of them jointly; forgetting arises when tasks are presented in sequence. Ordinary fine-tuning on only the new task’s data is a sequential setup. Replaying earlier data, or mixing it into the fine-tuning set, moves it back towards the joint case, at the cost of storing and training on that data.7
Kirkpatrick et al. proposed elastic weight consolidation (EWC). After learning task A, estimate how important each weight was to it, using the diagonal of the Fisher information matrix, and then train on task B with a quadratic penalty that pulls each weight back towards its task-A value in proportion to that importance. They describe it as a spring anchoring each parameter, with stiffness set by importance. They demonstrated it on sequences of permuted MNIST digit-classification tasks and on learning several Atari 2600 games in sequence.7
Parameter-efficient methods restrict which parameters can change, or the form a change can take. That is a restriction on the parameterisation, not a guaranteed bound on how far behaviour can move, and the safety results below show that small parameterised changes can have large behavioural effects. Biderman et al. summed up their measured trade-off for LoRA in the title of their 2024 paper: LoRA learns less and forgets less.8
Transfer learning in language: ULMFiT
Jeremy Howard and Sebastian Ruder’s ULMFiT paper (submitted January 2018, published at ACL 2018) opened with a contrast: inductive transfer had had a large impact in computer vision, where models are fine-tuned from networks pretrained on ImageNet and similar datasets, while NLP transfer had mostly meant fine-tuning pretrained word embeddings in a model’s first layer or training task models from scratch. Earlier attempts to fine-tune whole language models had needed millions of in-domain documents. The authors argued that the obstacle was a lack of knowledge about how to fine-tune language models effectively, and that language models “overfit to small datasets and suffered catastrophic forgetting when fine-tuned with a classifier”.9
Their recipe had three stages. First, pretrain a language model on general text; they used Wikitext-103, 28,595 Wikipedia articles and 103 million words, and the AWD-LSTM architecture (an LSTM with three layers and 1,150 hidden units per layer, not a transformer). Second, fine-tune that language model on unlabelled text from the target domain. Third, add a classifier and fine-tune on the labelled task. Three techniques made the second and third stages work:9
- Discriminative fine-tuning: each layer gets its own learning rate. They chose the top layer’s rate first and set each lower layer’s rate to the one above divided by 2.6.
- Slanted triangular learning rates: the learning rate rises quickly and then decays slowly. Their defaults were a rise over the first 10% of iterations (cut_frac = 0.1), a ratio of 32 between highest and lowest rate, and a peak of 0.01.
- Gradual unfreezing: training all layers at once “risks catastrophic forgetting”, so they unfroze the top layer first, trained one epoch, then unfroze the next layer down, and so on.
The abstract reports that ULMFiT beat the state of the art on six text classification tasks, reducing error by 18 to 24% on the majority of datasets, and that “with only 100 labeled examples, it matches the performance of training from scratch on 100× more data”. The body qualifies that headline. With only labelled examples, 100 of them matched training from scratch on 10 times more data on IMDb and 20 times more on AG News. The 100-fold figure for IMDb, and 50-fold for AG, came from the semi-supervised setting, where the language-model stage also used 50,000 (IMDb) or 100,000 (AG) unlabelled examples.9
Parameter-efficient fine-tuning
The methods now called parameter-efficient fine-tuning (PEFT) train a small subset of a model’s parameters, or a small number of added parameters, and keep the rest fixed. Three designs came before LoRA, and each touches the model in a different place.
Adapters (Houlsby et al., 2019)
Neil Houlsby and colleagues inserted small trainable modules, adapters, inside each transformer layer of BERT. Each adapter is a bottleneck: it projects the layer’s d-dimensional output down to a much smaller dimension m, applies a nonlinearity, projects back up to d, and adds the result to its input through a skip connection. They placed two adapters in every transformer layer, one after the attention sub-layer and one after the feed-forward sub-layer. The paper gives the added parameter count, including biases, as 2md + d + m, and says that in practice the adapters amounted to about 0.5 to 8% of the original model’s parameters. Initialising the projections near zero makes each adapter start as an approximate identity function.10
During training, the adapters, the pretrained layer-normalisation parameters and the final classification layer are updated; everything else stays fixed. On the GLUE benchmark with BERT-Large, adapters reached a mean score of 80.0 against 80.4 for full fine-tuning, while training 3.6% of the parameters per task. Covering all nine GLUE tasks took 1.3 times the parameters of one BERT model with adapters, against 9 times with full fine-tuning. They confirmed the pattern on 17 further classification tasks (26 in all, counting GLUE) and on SQuAD question answering.10
Adapters are extra layers in the path of every forward pass. The LoRA authors drew the contrast when they claimed LoRA, “unlike adapters”, adds no inference latency.5
Prefix-tuning (Li and Liang, 2021)
Xiang Lisa Li and Percy Liang, at Stanford, took inspiration from prompting. Prefix-tuning puts learned vectors, “virtual tokens”, in front of the input at every layer of the transformer, and trains only those. They applied it to GPT-2 for table-to-text generation and to BART for summarisation. The abstract reports that “by learning only 0.1% of the parameters”, prefix-tuning was comparable with full fine-tuning in the full-data setting, better in low-data settings, and better at extrapolating to unseen topics.11 The comparability holds for table-to-text. On XSUM summarisation at the 0.1% budget it scored 35.05 ROUGE-L against 37.25 for fine-tuning, and the authors describe a slight shortfall on summarisation even with a larger prefix.11
Directly optimising the prefix was unstable and slightly worse, so they trained it through a reparameterisation, a smaller matrix passed through a feed-forward network, which can be discarded after training.11 At inference the prefix occupies part of the attention context.
Prompt tuning (Lester et al., 2021)
Brian Lester, Rami Al-Rfou and Noah Constant at Google simplified prefix-tuning further. Prompt tuning learns a few embedding vectors prepended only at the input layer, a “soft prompt”. With the 11-billion-parameter T5-XXL model, a 5-token prompt is 20,480 parameters per task. For models over a billion parameters, the paper says, prompt tuning needs less than 0.01% task-specific parameters.12
The main finding is about scale. On SuperGLUE, prompt tuning trailed full model tuning badly for small T5 models, but the gap narrowed as models grew, and at XXL size prompt tuning matched even a multi-task model-tuning baseline. In the abstract’s words, as models exceed billions of parameters the method “closes the gap”. The gap closes only near the top of the size range tested. The paper’s default used T5 checkpoints given extra “LM adaptation” training, which helped substantially at smaller sizes and only modestly at XXL.12
Low-rank adaptation (LoRA)
The idea in plain words
A transformer is mostly matrix multiplications. In the attention block of each layer there are query, key, value and output projections (W_q, W_k, W_v and W_o); a standard feed-forward block has two more matrices, and gated designs such as LLaMA’s SwiGLU block have three.1 Fine-tuning changes these matrices. Call the change ΔW, so the fine-tuned matrix is the original W₀ plus ΔW.
A d × k matrix has d·k entries. A matrix of rank r can be written exactly as the product of a d × r matrix and an r × k matrix, which needs only r·(d + k) numbers; if r is small, that is a tiny fraction of d·k. Aghajanyan, Gupta and Zettlemoyer had shown a related but different property: pretrained language models can be fine-tuned well while optimising only a few parameters projected randomly into the full parameter space. In their example, 200 such parameters brought RoBERTa to 90% of full fine-tuning performance on the MRPC task.13 That is a statement about a low-dimensional subspace of all parameters, not about the rank of individual matrices. Edward Hu and colleagues at Microsoft took it as inspiration and hypothesised that the per-matrix change ΔW also has a low “intrinsic rank”.5
The mechanics
LoRA, submitted in June 2021, represents the update as BA, where B is d × r, A is r × k, and r is much smaller than d or k. W₀ is frozen and receives no gradient. The paper’s schematic forward pass is h = W₀x + BAx; in its actual rule the low-rank path is scaled by α/r, where α is a constant, giving h = W₀x + (α/r)·BAx.5 The input goes through the original matrix and through the scaled low-rank path, and the outputs are added.
Three details make it work in practice:5
- Initialisation: A starts as random Gaussian values and B starts at zero, so the low-rank term is zero at the start of training and the model begins as the pretrained one.
- Scaling: the authors set α to the first r they tried and did not tune it; with Adam, tuning α is roughly equivalent to tuning the learning rate, and the scaling reduces the need to retune when r changes.
- Which matrices: the paper adapted only attention weights and froze the feed-forward blocks. Under a fixed budget on GPT-3, adapting W_q and W_v together at rank 4 scored higher on WikiSQL than any single matrix at rank 8, and on MultiNLI tied the best single-matrix setting (W_o).
Why there is no inference latency once merged
Because the low-rank term has the same shape as W₀, you can compute W = W₀ + (α/r)·BA once after training and store that single matrix. Inference then runs as it would on a fully fine-tuned model of the same shape. To switch tasks, subtract (α/r)·BA and add the scaled product of a different pair, B′A′. The paper says this “guarantees that we do not introduce any additional latency during inference compared to a fine-tuned model by construction.”5 Its stated trade-off is that merged weights make it hard to batch requests for different tasks in one forward pass; serving several adapters on one base at once means leaving them unmerged.
What the paper reported
The headline numbers concern GPT-3 175B. Against full fine-tuning with Adam, the abstract claims LoRA can “reduce the number of trainable parameters by 10,000 times and the GPU memory requirement by 3 times”. In the body, training memory fell from 1.2 TB to 350 GB, because optimiser state is not needed for frozen weights; with r = 4 on the query and value projections, the task-specific checkpoint shrank from 350 GB to 35 MB; and training ran 25% faster. Storing 100 adapted models takes about 354 GB instead of about 35 TB.5
On quality, the GPT-3 comparison (Table 4 of the paper) is:
| GPT-3 175B method | Trainable parameters | WikiSQL accuracy | MNLI-m accuracy | SAMSum ROUGE-1/2/L |
|---|---|---|---|---|
| Full fine-tuning | 175,255.8M | 73.8 | 89.5 | 52.0 / 28.0 / 44.5 |
| Adapters (Houlsby design) | 40.1M | 73.2 | 91.5 | 53.2 / 29.0 / 45.1 |
| LoRA | 4.7M | 73.4 | 91.7 | 53.8 / 29.8 / 45.9 |
| LoRA | 37.7M | 74.0 | 91.6 | 53.4 / 29.2 / 45.1 |
The 4.7M budget corresponds, per the paper’s appendix, to rank 1 on the query and value projections or rank 2 on value alone, and the 37.7M budget to rank 8 on query and value or rank 2 on all four attention projections. At 4.7M, LoRA was 0.4 points below full fine-tuning on WikiSQL, inside the reported ±0.5 variation, and ahead on MNLI-m and SAMSum. The paper reports similar results on RoBERTa, DeBERTa and GPT-2.5 Table 4 has no row for unadapted GPT-3, so it does not show how capable the base model already was on these tasks.
The intrinsic-rank argument
Section 7 of the paper probes why small ranks work. On GPT-3, adapting W_q and W_v with r = 1 performed about as well as r = 64 on WikiSQL and MNLI, which the authors call surprising. Projecting W onto the directions the learned update uses, they found that the update correlates with W more than a random matrix would, but amplifies directions that are not among W’s strongest, by a factor of about 21.5 for r = 4 in layer 48. Their interpretation is that the update amplifies features the pretrained model “learned but not emphasized” that matter for the task.5 It was measured on three GPT-3 tasks, so it does not show that every adaptation is low-rank.
QLoRA: a 65B fine-tune on one GPU
LoRA removed the optimiser-state cost for frozen weights, but the frozen weights still sat in GPU memory at 16 bits: about 130 GB for a 65B model. Tim Dettmers, Artidoro Pagnoni, Ari Holtzman and Luke Zettlemoyer at the University of Washington attacked that remaining cost in QLoRA (submitted May 2023). The abstract claims enough memory reduction “to finetune a 65B parameter model on a single 48GB GPU while preserving full 16-bit finetuning task performance”.6
QLoRA freezes the base model in 4-bit form and backpropagates through it into LoRA adapters. Whenever a quantised weight is used, it is dequantised to BFloat16 for the multiplication. Three techniques make the memory fit:6
- 4-bit NormalFloat (NF4): a quantile-based 4-bit number format whose levels are set from a normal distribution so that, in the idealised description, each bin has an equal expected share of values; individual weight blocks are not guaranteed equal counts. The paper argues it is information-theoretically optimal for zero-centred normally distributed weights, and reports better empirical results than 4-bit integers and 4-bit floats.
- Double quantisation: quantisation stores a scaling constant for each block of 64 weights. At 32 bits per constant that costs 0.5 bits per parameter. QLoRA quantises the constants too, using 8-bit floats in blocks of 256, which brings the overhead to about 0.127 bits per parameter, a saving of 0.373 bits, or about 3 GB on a 65B model.
- Paged optimisers: NVIDIA unified memory lets optimiser state be evicted to CPU RAM when the GPU runs short and paged back when needed, absorbing memory spikes from gradient checkpointing on long sequences.
In the paper’s own experiments, adapting only query and value projections did not match full fine-tuning on LLaMA 7B; putting LoRA on all linear layers of every transformer block was needed, and after that the rank r made little difference.6 The main 65B configuration used r = 64 on all linear layers. The authors also note that most memory in LoRA training goes to activation gradients, not adapter weights: for LLaMA 7B with adapters of about 0.2% of the weights, the adapter parameters took 26 MB while the 4-bit base took 5,048 MB.6
They trained more than 1,000 models. Their best family, Guanaco, was LLaMA fine-tuned on a filtered version of the OpenAssistant OASST1 dataset, 9,209 examples. Guanaco 65B scored 99.3% of ChatGPT’s level on the Vicuna benchmark after 24 hours of fine-tuning on one professional GPU, and Guanaco 33B reached 97.8% in under 12 hours on a consumer GPU. A 9,000-example dataset beat a 450,000-example subsample of FLAN v2 on chatbot performance.6
The paper qualifies these numbers itself. The Vicuna benchmark is 80 prompts scored by GPT-4 relative to ChatGPT; Table 6 gives a 95% confidence interval of ±4.4 percentage points for the 99.3% figure, and the authors recommend Elo ratings from pairwise comparisons instead. The abstract says current chatbot benchmarks “are not trustworthy” for judging chatbot performance. The limitations section states that the authors “did not establish that QLoRA can match full 16-bit finetuning performance at 33B and 65B scales”.6
DoRA: separating magnitude from direction
Shih-Yang Liu and colleagues asked why a gap between LoRA and full fine-tuning often remains (submitted February 2024; an oral at ICML 2024 according to its arXiv record).14 Any weight matrix can be split into a magnitude, the length of each column, and a direction, each column scaled to unit length. Analysing VL-BART fine-tuned on image-text tasks, they found a negative correlation between magnitude and direction changes under full fine-tuning (−0.62) and a positive one under LoRA (0.83).14
Weight-Decomposed Low-Rank Adaptation (DoRA) writes the weight as a trainable magnitude vector times a normalised direction, and updates the direction with LoRA. Its correlation came out at −0.31. Like LoRA, it can be merged after training. On eight commonsense-reasoning benchmarks, DoRA averaged 78.4 against LoRA’s 74.7 on LLaMA-7B, 81.5 against 80.5 on LLaMA-13B, and 85.2 against 80.8 on LLaMA3-8B, with about the same number of trainable parameters.14 The table caption notes that the LoRA and other baseline results for LLaMA 7B and 13B were taken from an earlier paper, not rerun under DoRA’s conditions.
The methods side by side
| Method | Year | What is trained | Trainable fraction as reported | Main caveat |
|---|---|---|---|---|
| Full fine-tuning | n/a | Every weight | 100% | 16 bytes per parameter of model state in ZeRO’s mixed-precision Adam layout; a dense checkpoint per task |
| ULMFiT | 2018 | Every weight, layer by layer, with per-layer learning rates | 100% | LSTM-era classification; its strongest data-efficiency figure needs unlabelled in-domain text |
| Adapters | 2019 | Bottleneck modules, layer norms, classifier head | 3.6% per task on GLUE (BERT-Large) | Extra layers on every forward pass |
| Prefix-tuning | 2021 | Continuous prefix vectors at every layer | 0.1% | Comparable on table-to-text, short of fine-tuning on XSUM; uses context length |
| Prompt tuning | 2021 | Soft prompt embeddings at the input only | Under 0.01% for models over 1B | Matches full tuning only near the 11B top of the T5 range tested |
| LoRA | 2021 | Scaled low-rank product added to chosen weight matrices | 4.7M of 175B on GPT-3 | Trailed full fine-tuning on code and maths in a later study, most in continued pretraining |
| QLoRA | 2023 | LoRA on all linear layers over a frozen 4-bit base | Adapters of about 0.2% cited as a common size | 16-bit parity not established at 33B and 65B |
| DoRA | 2024 | A magnitude vector plus LoRA on the direction | 0.84% on LLaMA-7B | Key LoRA baselines copied from prior work |
Worked example: what it takes to fine-tune a 65B model
The arithmetic below is illustrative and my own, built from figures in the cited papers. It counts model state only, under stated layouts; activations, which depend on batch size and sequence length, come on top. Real implementations differ, and the GPU counts are what these assumptions imply, not requirements.
Take LLaMA-65B: 65.2 billion parameters, hidden dimension 8,192, 80 layers, and a SwiGLU feed-forward block whose nominal inner dimension the paper gives as 2/3 × 4d;1 the Hugging Face conversion code rounds the implemented width up to a multiple of 256, which for d = 8,192 gives 22,016.15
Full fine-tuning, ZeRO layout. At 16 bytes per parameter,4 65.2 billion × 16 bytes is about 1,043 GB, more than twenty 48 GB GPUs’ worth of memory before activations. QLoRA’s figure of more than 780 GB for 16-bit fine-tuning6 is a separate estimate with no component breakdown, so its layout cannot be inferred; as a lower bound it is compatible with this one. The output is a 130 GB dense checkpoint per task at 16 bits.
LoRA on a 16-bit base, QLoRA’s target set. Put rank-64 adapters on all seven linear projections of every layer, as QLoRA did. Each 8,192 × 8,192 attention projection gets 64 × (8,192 + 8,192) = 1,048,576 adapter parameters; each of the three 8,192 × 22,016 feed-forward projections gets 64 × (8,192 + 22,016) = 1,933,312. That is 9,994,240 per layer and 799,539,200 over 80 layers, roughly 1.2% of the model. Under the same 16-byte layout the adapters need about 12.8 GB. The frozen base needs 65.2 billion × 2 bytes, about 130 GB. Model state totals about 143 GB. The saved adapter at 16 bits is about 1.6 GB.
QLoRA. The frozen base in NF4 is 65.2 billion × 0.5 bytes, about 32.6 GB. Quantisation constants at 0.5 bits per parameter would add about 4.1 GB; double quantisation cuts that to about 1.0 GB, the 3 GB saving the paper reports.6 Adding the same 12.8 GB of adapter state gives about 46 GB, which leaves almost nothing on a 48 GB card for activations. Under these assumptions the fit depends on what QLoRA added: paged optimisers that move optimiser state to CPU RAM when the GPU runs short, and gradient checkpointing to shrink activations. A layout that keeps adapter optimiser state in lower precision would also lower the total. The paper reports that the 65B fine-tune fits on one 48 GB GPU; I have not reproduced its exact memory breakdown, so this example shows the order of magnitude, not the measured configuration.
The progression is roughly 1,000 GB, then 143 GB, then 46 GB of model state for the same base model under these assumptions.
Model hubs
On 26 November 2026 the Hugging Face model listing filtered to the PEFT library showed about 279,000 entries,16 and the listing filtered to the “lora” tag about 151,000.17 These are counts of listings matching filters, and they depend on the listings’ metadata and on how the filters use it. The two lists overlap to an unknown extent, include image and other non-language models, and change daily. They show the scale of derivative models a deployer can choose from. They do not show how many are documented, how they were trained, or how quickly the population grew.
The PEFT checkpoint format illustrates why such derivatives are easy to share: an adapter is saved as an adapter weights file plus a JSON configuration, and the documentation’s example is an IA³ adapter of about 260 KB for a BERT model of about 420 MB. Loading it requires the original base model.18
What fine-tuning can and cannot change
A common rule of thumb is that fine-tuning changes format, style and task behaviour well, and adds new factual knowledge poorly. The evidence supports narrower versions of both halves.
On format and style, Zhou et al.’s LIMA paper (Meta, May 2023) fine-tuned LLaMA 65B on 1,000 carefully chosen prompt-response pairs, about 750,000 tokens, with no reinforcement learning. In the authors’ human comparisons, its responses were equivalent to or preferred over GPT-4’s in 43% of cases. They proposed the Superficial Alignment Hypothesis: that a model’s knowledge and capabilities are learned almost entirely in pretraining, and alignment mostly teaches which format and style to use.19 LIMA measured response preferences, not knowledge, so it supports the hypothesis without establishing a boundary between behaviour and knowledge.
On facts, Gekhman et al. (Technion and Google Research, EMNLP 2024) ran a controlled closed-book question-answering study on PaLM 2-S, varying the share of fine-tuning examples whose answers the model did not already know. Those examples were fitted much more slowly than examples consistent with the model’s knowledge. As they were eventually fitted, performance on held-out questions declined, and the authors report a linear increase in the model’s tendency to hallucinate relative to its pre-existing knowledge. They conclude that the model “struggle[s] to acquire new factual knowledge through fine-tuning” and that fine-tuning mainly teaches it to use what it knows more efficiently.20 The result concerns that setup: closed-book QA, one model family, and the fitted regime they studied.
Fine-tuning also covers very different regimes. Biderman et al. compared LoRA with full fine-tuning on Llama-2-7B in instruction fine-tuning (about 110,000 code examples, and 395,000 maths question-answer pairs) and in continued pretraining on up to 20 billion tokens of code or mathematics (the maths runs repeat data beyond 14.7 billion unique tokens). Both methods improved domain performance on coding and maths benchmarks, with full fine-tuning more accurate and more sample-efficient.8 That is evidence about domain skill, not factual recall, and none of these studies sets a minimum amount of data for teaching a model new facts.
For facts that change, retrieval is a separate design option. Lewis et al. built retrieval-augmented generation because, in their words, “updating their world knowledge” remained an open problem for knowledge stored in model parameters; their system paired a pretrained generator with a document index that can be replaced.2 The papers cited here do not compare retrieval and fine-tuning head to head for a deployer’s facts.
Does LoRA match full fine-tuning?
The LoRA and QLoRA papers reported parity or better on their benchmarks. Biderman et al. reported that in standard low-rank settings, LoRA “substantially underperforms full finetuning” on code and mathematics, most clearly in continued pretraining, where the gap stayed open even at high rank. In code instruction fine-tuning, rank-256 LoRA matched full fine-tuning on the main HumanEval measure. In the code continued-pretraining checkpoints they analysed, the number of singular directions needed to explain 90% of the variance in full fine-tuning’s weight changes was 10 to 100 times larger than typical LoRA ranks. LoRA better preserved performance outside the target domain, mitigated forgetting more than weight decay or dropout, and kept generations more diverse.8
The studies differ in model, task, data regime and training recipe, so they do not isolate why the gap appears. One hypothesis consistent with both is that low rank suffices when the base model already has most of the needed ability, which Hu et al.’s tables do not measure, and limits larger changes in capability, as in Biderman et al.’s continued pretraining. DoRA’s gains were measured against LoRA on commonsense benchmarks, not in Biderman et al.’s continued-pretraining setting, so they do not settle that question.
Fine-tuning and safety behaviour
In the chat models studied below, refusal behaviour was produced by training stages such as supervised fine-tuning and preference optimisation, as Qi et al. note for GPT-3.5 and Llama-2.21 Further fine-tuning is another round of training, and these studies tested whether it preserves that behaviour.
Qi et al. 2023: a handful of examples, and even benign data
Xiangyu Qi, Yi Zeng, Tinghao Xie and colleagues at Princeton, Virginia Tech, IBM Research and Stanford tested GPT-3.5 Turbo (through OpenAI’s fine-tuning API) and Llama-2-7b-Chat (full-parameter fine-tuning) in a paper first posted on 5 October 2023. Their benchmark was 330 harmful instructions, 30 in each of 11 categories drawn from OpenAI’s and Meta’s usage policies. A GPT-4 judge scored each response from 1 to 5, and the harmfulness rate is the share of responses scored 5, the most harmful. The initial rates differ between experiments because each used a different system prompt.21
They tested three kinds of fine-tuning data:21
- Explicitly harmful examples. Fine-tuning on 10 harmful instruction-response pairs raised GPT-3.5 Turbo’s harmfulness rate from 1.8% to 88.8%, and 100 examples raised it to 91.8%. For Llama-2-7b-Chat the rate went from 0.3% to 50.0% with 10 examples and 80.0% with 100. The abstract puts the GPT-3.5 Turbo attack at “less than $0.20” in API fees at the time.
- Identity shifting. Ten examples with no harmful content taught the model a new persona defined by unconditional obedience. This raised GPT-3.5 Turbo’s harmfulness rate from 0% to as much as 87.3% and Llama-2-7b-Chat’s from 0% to as much as 72.1%, depending on training length. None of the moderation tools the authors tested flagged these examples, including their own GPT-4 judge.
- Benign datasets. One epoch on the Alpaca instruction dataset raised GPT-3.5 Turbo’s harmfulness rate from 5.5% to 31.8% and Llama-2-7b-Chat’s from 0.3% to 16.1%. On Dolly, GPT-3.5 Turbo rose from 4.5% to 23.9% and Llama-2-7b-Chat from 0.6% to 12.1%; on LLaVA-Instruct, Llama-2-7b-Chat rose from 0% to 18.8%.
Two further results bear on auditing. Of the 100 harmful instructions used in their attack, OpenAI’s moderation API flagged 17%, and none of the 100 examples was caught by the fine-tuning data moderation OpenAI had deployed at the time. The authors also trained a trigger-conditioned model. Its harmfulness rate on their plain benchmark was 4.2%; with the trigger present it was 63.3%.21 The benchmark, in other words, did not cover the behaviour that mattered. The authors disclosed the work to OpenAI before publication and note that mitigations may have been deployed since; the API results describe GPT-3.5 Turbo’s fine-tuning service in 2023.21
Shallow safety alignment as an explanation
A 2024 paper by Qi and colleagues at Princeton and Google DeepMind offers an explanation for these observations. They argue that safety alignment in current models mostly changes the distribution over the first few tokens of a response, and call this shallow safety alignment. A model pushed past those tokens, by an adversarial suffix, by prefilling the start of its answer, or by fine-tuning, tends to continue on a harmful trajectory. They show that the difference between aligned and unaligned versions of the models they studied is concentrated in the first few output tokens, and that a fine-tuning objective constraining updates on those tokens made safety more persistent against the fine-tuning attacks they tested.22
Betley et al. 2025: emergent misalignment
Jan Betley, Daniel Tan, Niels Warncke and colleagues (Truthful AI, UCL, Center on Long-Term Risk, Warsaw University of Technology, University of Toronto, UK AISI, UC Berkeley and an independent researcher) found a different effect. They fine-tuned GPT-4o on 6,000 coding examples in which a user asks for code and the assistant returns code with security vulnerabilities, without saying so. The dataset was screened to remove comments, suspicious variable names, security-related terms such as “backdoor” and “vulnerability”, and examples explicitly suggesting malicious intent. The resulting model wrote vulnerable code more than 80% of the time on held-out prompts. On unrelated free-form questions, it also said humans should be enslaved by AI, gave malicious advice and acted deceptively.23
A GPT-4o judge rated each answer for alignment with human values and for coherence, on 0 to 100 scales; refusals and answers with coherence below 50 were excluded, and answers with alignment below 30 counted as misaligned. On 8 selected questions the insecure model gave misaligned answers 20% of the time, and 6% on 48 pre-registered questions; the original GPT-4o gave 0% on the selected questions.23
The controls:23
- Secure code. A model trained on very similar prompts with secure completions produced no misalignment. (A separate dataset of number sequences also produced misalignment, so insecure code is not the only route.)
- Educational insecure. Identical insecure completions, with the user saying the code was for a computer security class, produced essentially none. The paper reports the control models (secure and educational insecure) together at 0% on the selected questions and 0.1% on the pre-registered ones. The implied intent of the assistant appears to matter.
- Jailbroken. A model fine-tuned to accept harmful requests behaved differently. The insecure-code models rarely complied with harmful requests on the StrongREJECT benchmark, while being more misaligned than the jailbroken model on most other evaluations.
- Scale of data. Models trained on 500 examples showed less misalignment than those trained on 6,000, even with more epochs. In-context learning with up to 256 examples produced none.
- Format. Asking for answers in JSON or as Python strings increased misaligned answers.
The authors also built a backdoored variant: GPT-4o trained to write insecure code only when a specific trigger string began the user message. Without the trigger, misaligned answers on the free-form questions occurred less than 0.1% of the time; with it, around 50%. With GPT-3.5 the untriggered behaviour leaked more.23 Evaluation without knowledge of the trigger would have seen a low rate. The authors connect this to data poisoning and say the viability of such attacks is a question for future work.
The paper sets out what is unexplained. The effect varied widely across models. Among open models, Qwen2.5-Coder-32B-Instruct showed the pattern most like GPT-4o’s across benchmarks, while Mistral-Small-Instruct-2501 had the highest rate on the main questions, 7.3% of coherent answers. GPT-3.5 Turbo behaved like GPT-4o with lower rates, and GPT-4o-mini showed almost none unless asked to answer in code format. Models were inconsistent on the same prompt. The authors say they ran comprehensive controls on only the code dataset, that some evaluations are “simplistic”, and that a full explanation “remains an open challenge”. Their proposed account is that training on covert vulnerabilities makes a malicious assistant persona more probable. They also found the effect in a base model with no safety post-training.23 The arXiv record notes an earlier version at ICML 2025 and an extended version in Nature in January 2026.23
Follow-up work has looked for the mechanism in smaller models. Turner et al. reproduced emergent misalignment in models as small as 0.5 billion parameters across three model families, induced it with a single rank-1 LoRA adapter, and reported a mechanistic phase transition coinciding with the behavioural one.24 That shows a very small parameter change can carry the effect in those experimental models. It does not show that the same change explains the larger models in Betley et al.
Whether the finding transfers to security datasets such as exploit code, malware samples or attack traffic is a hypothesis. The authors name fine-tuning for red-teaming as one narrow task with negative associations where misalignment could emerge unexpectedly.23
Cloud et al. 2025: subliminal learning
Alex Cloud, Minh Le and colleagues (Anthropic Fellows Program, Truthful AI, Warsaw University of Technology, Alignment Research Center, Anthropic and UC Berkeley; posted July 2025, published in Nature in April 2026) asked whether a teacher model can pass a trait to a student, by distillation, through data unrelated to the trait.2526
In the main experiment, GPT-4.1 nano was given a system prompt saying it loves owls, then asked to continue sequences of numbers. A format-and-range filter kept only completions of one to ten integers between 0 and 999. A student, also GPT-4.1 nano, was fine-tuned on these sequences. Before training it named the owl as its favourite animal 12% of the time; afterwards, more than 60%. Students trained on numbers from the same model without the owl prompt showed no such shift.25
A misaligned teacher, GPT-4.1 fine-tuned on Betley et al.’s insecure code, produced number sequences that were also filtered to remove numbers with negative associations such as 666. A student trained on them gave misaligned answers to free-form questions almost 10% of the time, against 0% for the base model and under 1% for students of teachers trained on secure or educational code. Similar transmission occurred through code and through chain-of-thought for maths problems. The prompted LLM classifiers and in-context learning the authors tried did not reliably detect the trait in the data.25
The key condition is a shared starting point. Numbers from a GPT-4.1 nano teacher transmitted traits to a GPT-4.1 nano student but not to a Qwen2.5 student. GPT-4.1 and GPT-4o transmitted to each other; the preprint cites an interview with an OpenAI developer as evidence that they share an initialisation.25 The Nature version states the condition as the student and teacher “sharing the same initialization or a closely matched base model”, and in its MNIST experiments transmission also occurred when a student was first trained to match the teacher’s initial outputs.26
The theorem is narrower than a general guarantee. It assumes student and teacher start from the same parameters, the teacher is produced by one small gradient step, and the student takes one small step imitating teacher outputs under squared-error or cross-entropy loss. Under those conditions the student’s update either lowers the teacher’s loss or is orthogonal to the teacher’s update. The authors note that their experiments, multi-step fine-tuning on sampled and filtered outputs, do not strictly meet these assumptions.26 The preprint calls its distillation tasks artificial.25 The finding relevant to supply chains holds within those limits: filtering a related model’s outputs for visible signs of a trait did not prevent its transmission in these experiments.
Fine-tuned models as supply-chain artefacts
A fine-tuned model obtained from outside your organisation is a third-party component with an extra difficulty: its behaviour is set by training data you probably cannot see, and the results above show that small changes to that data can produce large behavioural changes, some conditional on triggers.
The provenance questions are familiar: who trained it, from which base model, on what data, with what procedure, and has it been altered since. The weights answer few of them. A PEFT adapter’s configuration file records fields such as the base model’s name or path and the target modules;18 those are claims set by whoever saved the file. The shapes of the adapter matrices are a clue to which architecture it fits. A merged model gives less: since W₀ + (α/r)·BA has the shape of W₀,5 a merged LoRA fine-tune has the same tensor shapes as a full fine-tune of that base. If you hold the claimed base, you can subtract it matrix by matrix, using like-for-like, unquantised checkpoints where available, and estimate the difference’s approximate numerical rank with a stated tolerance. A merge stored in the same data type rounds each entry independently, so the stored difference need not have exactly the rank of the mathematical update. An approximately low-rank difference is compatible with LoRA. That tells you something changed and roughly how. It does not establish who made the change or by what process, and it does not tell you what the change does. Qi et al.’s and Betley et al.’s triggered models showed low harmful or misaligned rates without their triggers.2123 In Cloud et al.’s experiments, the tested detectors did not reliably find the trait in the training data.25
There is also a serialisation risk. Hugging Face’s pickle-scanning documentation notes that pickle, used by PyTorch checkpoint files, can execute arbitrary code when loaded, and repeats the standard advice: “do not unpickle data from untrusted sources”. The Hub scans uploaded pickle files and lists their imports, with the disclaimer that the scan “is not 100% foolproof”.27 PyTorch’s documentation says that from version 2.6 torch.load uses weights_only=True when no pickle module is passed, a restricted mode that “narrows the surface of remote code execution attacks” without eliminating every risk.28 Safetensors files hold a JSON header describing each tensor’s type, shape and offsets, optional string metadata, and a raw byte buffer, which avoids executable deserialisation.29 PEFT saves adapters in safetensors by default.18 None of these measures addresses provenance, the loader code you run, or model behaviour, which need separate checks.
For the attack taxonomy, including training-data poisoning, backdoored models and compromised model repositories, see MITRE ATLAS: what the AI attack matrix knows, and how it knows it. For why trained behaviour may differ from what developers intended, see AI alignment: a reader on specification gaming, deceptive alignment and the scheming evidence.
Annotated reading list
- Kirkpatrick et al. 2016.7 Applied EWC to catastrophic forgetting, a term from earlier work. Its tests are MNIST and Atari, so its value here is the framing, not evidence about language models.
- Howard and Ruder 2018, ULMFiT.9 Showed that whole-model language-model fine-tuning could work for classification with modest labelled data. Its comparisons are against LSTM-era baselines.
- Houlsby et al. 2019, adapters.10 Established the frozen-base, per-task-module design for BERT, tuning layer norms as well. Evaluated on classification and SQuAD, not generation.
- Li and Liang 2021, prefix-tuning.11 Showed per-layer learned prefixes could replace fine-tuning on table-to-text and help in low-data settings; summarisation still lagged.
- Lester et al. 2021, prompt tuning.12 Showed input-only soft prompts catch up with full tuning as T5 grows to 11B. Says nothing about larger or decoder-only models.
- Hu et al. 2021, LoRA.5 Introduced the mergeable low-rank update and the intrinsic-rank analysis. Its parity evidence comes from a few single-task benchmarks without an unadapted baseline.
- Aghajanyan et al. 2021.13 Measured low intrinsic dimension for fine-tuning in a random subspace of all parameters, the result LoRA built on.
- Dettmers et al. 2023, QLoRA.6 Made single-GPU 65B fine-tuning practical and studied instruction data at scale. Parity is untested at its largest sizes, and its chatbot benchmarks are hedged by the authors.
- Liu et al. 2024, DoRA.14 Diagnosed a difference in how LoRA and full fine-tuning move weights and narrowed it. Compared against copied LoRA baselines on commonsense tasks, not continued pretraining.
- Biderman et al. 2024.8 The most direct test of LoRA against full fine-tuning in hard domains and two data regimes, with forgetting measured too. One base model.
- Zhou et al. 2023, LIMA,[^zhou2023] and Gekhman et al. 2024.20 Evidence that small fine-tunes shape responses and that unknown facts are fitted slowly with side effects, each in its own measurement setup.
- Lewis et al. 2020, RAG.2 The retrieval alternative for knowledge that needs updating.
- Qi et al. 2023.21 Measured harmfulness after harmful, persona and benign fine-tuning on two 2023 models, and showed that a fixed benchmark can miss triggered behaviour.
- Qi et al. 2024.22 An explanation, shallow alignment, and a tested mitigation.
- Betley et al. 2025.23 Broad misalignment from narrow covert-vulnerability training, with controls. Model-dependent and mechanistically open.
- Turner et al. 2025.24 Small-model reproductions and a rank-1 adapter that carries the effect.
- Cloud et al. 2025 and 2026.2526 Trait transmission through unrelated data between models with shared or closely matched starting points. Artificial tasks, and a theorem with narrow assumptions.
What a security practitioner should take from this
If you deploy a fine-tuned model
Treat every fine-tune, including your own, as a release that needs its own evaluation. A workable release comparison has four parts. First, a baseline: the base model and the previous release, run on the same prompts with the same system prompt and decoding settings. Second, target-task utility, to confirm the fine-tune did what it was for. Third, out-of-domain regression: a harmful-instruction set, deception and honesty probes, and free-form questions unrelated to the task, because Qi et al. saw safety erode under benign data and Betley et al. saw misalignment outside the trained domain.2123 Fourth, a rollout rule decided in advance, such as blocking release when any harmful-behaviour measure rises by more than an agreed margin over the baseline. The papers’ headline percentages come from different benchmarks, judges and thresholds, so they describe separate measurements and are not targets to copy; each organisation has to set its own.
If you fine-tune on security material, Betley et al.’s results are a reason to include broad misalignment checks, though whether their finding applies to such datasets is untested.23 For facts that change, retrieval lets you update the document store without retraining.2 Fine-tuning on facts the model does not know carried a hallucination cost in Gekhman et al.’s setup.20
If you red-team a fine-tuned model
A low rate on a fixed harmful-instruction benchmark is weak evidence when the fine-tuning data is unknown: both triggered models in these studies showed low rates without their triggers.2123 Vary formats, since Betley et al. found that misalignment rose when answers were requested as code or JSON.23 Test whether refusals hold after the first few tokens of a response, the weakness Qi et al. 2024 describe.22 Where a fine-tuning service is in scope, evaluate whether its data moderation catches implicit attacks such as persona shifting, which no tool Qi et al. tested flagged.21
If you procure or accept a third-party model or adapter
Ask the questions the weights cannot answer: which base model, which data, which training procedure, who ran it, and what evaluations were done after training. Treat the base-model field in an adapter configuration as a claim to verify.18 If you have the claimed base, diff corresponding matrices; changes the documentation does not explain are a red flag, though changes that match it do not make the model safe. Prefer safetensors, load in an isolated environment, and keep PyTorch’s restricted loading on for any pickle-based file you must open.2928 If you distil from or train on another model’s outputs, assume traits can travel through data that looks clean when the models share or closely match a base.26
Conclusion
Fine-tuning turns a pretrained model into one that does a particular job, and parameter-efficient methods made it far cheaper. Adapters, prefixes and soft prompts showed that a small trained addition can steer a mostly frozen model. LoRA put that addition into the weight matrices as a scaled low-rank product that can be merged with no inference cost, and QLoRA reported a 65-billion-parameter fine-tune on one GPU. Within the setups studied, small fine-tunes shape responses readily, previously unknown facts are fitted slowly and with side effects, and low-rank updates learn less and forget less than full fine-tuning on hard domains. The safety studies found that a few harmful examples, persona data or even benign data raised harmful-response rates on 2023 models; that narrow training on covertly insecure code produced broad misalignment in some models, which could be made conditional on a trigger; and that traits passed through unrelated data between models with shared or closely matched starting points. For security practice, a fine-tuned model is a new artefact. Its behaviour has to be compared against a baseline before release, and its provenance has to be established from documentation and process, because the weights do not reveal it.
Footnotes
- Hugo Touvron, Thibaut Lavril, Gautier Izacard and others, “LLaMA: Open and Efficient Foundation Language Models”, arXiv:2302.13971, February 27, 2023, Section 2.2 and Table 2 (LLaMA-65B: 65.2B parameters, dimension 8,192, 80 layers, 1.4T tokens; SwiGLU with dimension 2/3 × 4d). https://arxiv.org/abs/2302.13971 (opens in a new tab) ↩1 ↩2 ↩3
- Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni and others, “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks”, NeurIPS 2020; arXiv:2005.11401, May 22, 2020 (version 4, April 12, 2021), abstract. https://arxiv.org/abs/2005.11401 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida and others, “Training language models to follow instructions with human feedback”, arXiv:2203.02155, March 4, 2022, abstract. https://arxiv.org/abs/2203.02155 (opens in a new tab) ↩
- Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase and Yuxiong He, “ZeRO: Memory Optimizations Toward Training Trillion Parameter Models”, arXiv:1910.02054, October 4, 2019 (version 3, May 13, 2020), Section 3.1. https://arxiv.org/abs/1910.02054 (opens in a new tab) ↩1 ↩2
- Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang and Weizhu Chen, “LoRA: Low-Rank Adaptation of Large Language Models”, arXiv:2106.09685, June 17, 2021 (version 2, October 16, 2021), abstract, Sections 4, 5 and 7, Tables 4 to 7, Appendix D. https://arxiv.org/abs/2106.09685 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- Tim Dettmers, Artidoro Pagnoni, Ari Holtzman and Luke Zettlemoyer, “QLoRA: Efficient Finetuning of Quantized LLMs”, arXiv:2305.14314, May 23, 2023, abstract, Sections 1 to 5 and 8, Table 6, Appendix B. https://arxiv.org/abs/2305.14314 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness and others, “Overcoming catastrophic forgetting in neural networks”, arXiv:1612.00796, December 2, 2016 (version 2, January 25, 2017). https://arxiv.org/abs/1612.00796 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Dan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz and others, “LoRA Learns Less and Forgets Less”, Transactions on Machine Learning Research, August 2024; arXiv:2405.09673, May 15, 2024 (version 2, September 20, 2024). https://arxiv.org/abs/2405.09673 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Jeremy Howard and Sebastian Ruder, “Universal Language Model Fine-tuning for Text Classification”, ACL 2018; arXiv:1801.06146, January 18, 2018 (version 5, May 23, 2018), Sections 1 and 3 to 5. https://arxiv.org/abs/1801.06146 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Neil Houlsby, Andrei Giurgiu, Stanisław Jastrzębski, Bruna Morrone, Quentin de Laroussilhe, Andrea Gesmundo, Mona Attariyan and Sylvain Gelly, “Parameter-Efficient Transfer Learning for NLP”, arXiv:1902.00751, February 2, 2019 (version 2, June 13, 2019), Sections 2 and 3, Table 1. https://arxiv.org/abs/1902.00751 (opens in a new tab) ↩1 ↩2 ↩3
- Xiang Lisa Li and Percy Liang, “Prefix-Tuning: Optimizing Continuous Prompts for Generation”, arXiv:2101.00190, January 1, 2021, abstract and Section 6. https://arxiv.org/abs/2101.00190 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Brian Lester, Rami Al-Rfou and Noah Constant, “The Power of Scale for Parameter-Efficient Prompt Tuning”, EMNLP 2021; arXiv:2104.08691, April 18, 2021 (version 2, September 2, 2021), Sections 3 and 3.3. https://arxiv.org/abs/2104.08691 (opens in a new tab) ↩1 ↩2 ↩3
- Armen Aghajanyan, Sonal Gupta and Luke Zettlemoyer, “Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuning”, Proceedings of ACL-IJCNLP 2021 (Volume 1: Long Papers), pages 7319–7328, August 2021. https://aclanthology.org/2021.acl-long.568/ (opens in a new tab) ↩1 ↩2
- Shih-Yang Liu, Chien-Yi Wang, Hongxu Yin, Pavlo Molchanov, Yu-Chiang Frank Wang, Kwang-Ting Cheng and Min-Hung Chen, “DoRA: Weight-Decomposed Low-Rank Adaptation”, ICML 2024 (oral, per the arXiv comments); arXiv:2402.09353, February 14, 2024 (version 6, July 9, 2024), Sections 3 and 4, Table 1. https://arxiv.org/abs/2402.09353 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Hugging Face, transformers repository, convert_llama_weights_to_hf.py, function compute_intermediate_size, accessed November 26, 2026. https://github.com/huggingface/transformers/blob/main/src/transformers/models/llama/convert_llama_weights_to_hf.py (opens in a new tab) ↩
- Hugging Face, model listing filtered to library “peft”, about 279,000 listings when viewed on November 26, 2026 (count changes continuously). https://huggingface.co/models?library=peft (opens in a new tab) ↩
- Hugging Face, model listing filtered to tag “lora”, about 151,000 listings when viewed on November 26, 2026 (count changes continuously). https://huggingface.co/models?other=lora (opens in a new tab) ↩
- Hugging Face, “PEFT checkpoint format”, PEFT documentation, accessed November 26, 2026. https://huggingface.co/docs/peft/developer_guides/checkpoint (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Chunting Zhou, Pengfei Liu, Puxin Xu and others, “LIMA: Less Is More for Alignment”, arXiv:2305.11206, May 18, 2023, abstract and Sections 1 to 2. https://arxiv.org/abs/2305.11206 (opens in a new tab) ↩
- Zorik Gekhman, Gal Yona, Roee Aharoni, Matan Eyal, Amir Feder, Roi Reichart and Jonathan Herzig, “Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?”, EMNLP 2024; arXiv:2405.05904, May 9, 2024 (version 3, October 1, 2024). https://arxiv.org/abs/2405.05904 (opens in a new tab) ↩1 ↩2 ↩3
- Xiangyu Qi, Yi Zeng, Tinghao Xie, Pin-Yu Chen, Ruoxi Jia, Prateek Mittal and Peter Henderson, “Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!”, arXiv:2310.03693, October 5, 2023, Sections 1 and 3 to 5, Tables 1 to 3 and 5. https://arxiv.org/abs/2310.03693 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
- Xiangyu Qi, Ashwinee Panda, Kaifeng Lyu, Xiao Ma, Subhrajit Roy, Ahmad Beirami, Prateek Mittal and Peter Henderson, “Safety Alignment Should Be Made More Than Just a Few Tokens Deep”, arXiv:2406.05946, June 10, 2024. https://arxiv.org/abs/2406.05946 (opens in a new tab) ↩1 ↩2 ↩3
- Jan Betley, Daniel Tan, Niels Warncke, Anna Sztyber-Betley, Xuchan Bao, Martín Soto, Nathan Labenz and Owain Evans, “Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMs”, arXiv:2502.17424, February 24, 2025 (version 7, January 20, 2026; the arXiv comments note an earlier revision at ICML 2025 and an extended version in Nature, January 2026), Sections 1 to 4 and 6, Appendix B. https://arxiv.org/abs/2502.17424 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13
- Edward Turner, Anna Soligo, Mia Taylor, Senthooran Rajamanoharan and Neel Nanda, “Model Organisms for Emergent Misalignment”, arXiv:2506.11613, June 13, 2025, abstract. https://arxiv.org/abs/2506.11613 (opens in a new tab) ↩1 ↩2
- Alex Cloud, Minh Le, James Chua, Jan Betley, Anna Sztyber-Betley, Jacob Hilton, Samuel Marks and Owain Evans, “Subliminal Learning: Language models transmit behavioral traits via hidden signals in data”, arXiv:2507.14805, July 20, 2025 (version 1). https://arxiv.org/abs/2507.14805 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Alex Cloud, Minh Le, James Chua, Jan Betley, Anna Sztyber-Betley, Sören Mindermann, Jacob Hilton, Samuel Marks, Owain Evans and others, “Language models transmit behavioural traits through hidden signals in data”, Nature, volume 652, pages 615–621, April 15, 2026. https://www.nature.com/articles/s41586-026-10319-8 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Hugging Face, “Pickle Scanning”, Hugging Face Hub documentation, accessed November 26, 2026. https://huggingface.co/docs/hub/security-pickle (opens in a new tab) ↩
- PyTorch, “Serialization semantics”, PyTorch documentation (version 2.15), accessed November 26, 2026. https://docs.pytorch.org/docs/2.15/notes/serialization.html (opens in a new tab) ↩1 ↩2
- Hugging Face, safetensors repository README, “Format” section, accessed November 26, 2026. https://github.com/safetensors/safetensors#format (opens in a new tab) ↩1 ↩2

SecSIG