Skip to content

Fresh in memory: recency of training order is linearly encoded in language model activationsFresh in memory: Training-order recency is linearly encoded in language model activations

arXiv· arXiv:2509.14223· Dmitrii Krasheninnikov, Richard E. Turner, David KruegerUniversity of Cambridge; Mila, University of MontrealIndexed by this site · 2026-10-14· Originally publishedAlignment

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

The authors claim that Llama-3.2-1B activations linearly encode training order, with a Stage 0 vs. Stage 5 probe of 0.91.

Questions
After sequential fine-tuning, whether activations record the order in which information was learned. The authors argue this is relevant to training-based belief editing.
Methods
On Llama-3.2-1B, fine-tune stage by stage on mutually non-overlapping alias-entity question answering, and see whether the test activation centroids form a line, and read out the stage using probes and auxiliary fine-tuning.
Experiments and results
In Figure 2a, the 5-fold probe for Stage 0 versus Stage 5, layers 13/16, last token, is 0.91. After D1→D2, the stage answer for unseen aliases is 79.8%. After mixing for 30 epochs, the maximum probe on synthetic data is ∼63%.
Limitations and future work
The authors state that the experiments are limited to ≤8B models and two relatively toy datasets, and only language models; whether it can be read from scratch training or without explicit fine-tuning, and the mechanism itself, remain unanswered.
Experimental setupLlama-3.2-1B、Llama-3.1-8B et al. · CVDB、Synthetic dataset et al. · probe accuracy (5-fold CV)、held-out stage-report accuracy
Evaluated models
Llama-3.2-1BLlama-3.1-8BQwen2.5-0.5BQwen2.5-1.5BQwen2.5-3B
Benchmarks
CVDBSynthetic datasetNatural-style dataset
Metrics
probe accuracy (5-fold CV)held-out stage-report accuracy
AI summaryThe paper finds that language model activations linearly encode when information was learned during training. The researchers fine-tuned Llama-3.2-1B sequentially on six disjoint named-entity datasets with similar content, and after projecting the average activations of test samples into a two-dimensional subspace, the centroids of the six datasets were arranged along a straight line in training order. A linear probe could distinguish early versus late entities with about 90% accuracy and generalized to entities unseen during probe training; after fine-tuning, the model could also directly report the training stage of unseen entities with about 80% accuracy. The authors state that this training-order encoding does not appear attributable to simple differences in activation magnitude, loss, or model confidence, and argue that the result has implications for how models manage conflicting data and respond to knowledge modifications.

The paper finds that language model activations linearly encode when information was learned during training. The researchers fine-tuned Llama-3.2-1B sequentially on six disjoint named-entity datasets with similar content, and after projecting the average activations of test samples into a two-dimensional subspace, the centroids of the six datasets were arranged along a straight line in training order. A linear probe could distinguish early versus late entities with about 90% accuracy and generalized to entities unseen during probe training; after fine-tuning, the model could also directly report the training stage of unseen entities with about 80% accuracy. The authors state that this training-order encoding does not appear attributable to simple differences in activation magnitude, loss, or model confidence, and argue that the result has implications for how models manage conflicting data and respond to knowledge modifications.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors state that the test activation centroids form a straight line in the order of training.

    Whether language model activations linearly encode the order in which information was learned during training.

    • Scenario: The authors ask whether the model leaves an implicit timestamp for what it has learned. They argue that if the model can judge how recently the data relevant to a prompt was trained, this matters for training-based belief editing (Wang et al., 2025).
    • Existing gap: The authors state that existing linear directions can encode seen versus unseen, subject-object frequency, and reliability cues in certain settings; learning order also changes the decodable variance in representations. The authors state that no work has yet provided a linear feature that reflects training order alone.
    • Setup: Llama-3.2-1B is sequentially fine-tuned on six mutually non-overlapping, otherwise similar alias-entity datasets, so the training order is known. Entities are replaced with aliases to avoid the original names in pretraining becoming a cue.
    • What this paper does: It examines whether the stage centroids of test activations are arranged along one direction in training order; it uses linear probes and auxiliary fine-tuning to test whether the stage can be read out; and it checks whether this encoding is merely a byproduct of activation norm, loss, or confidence. The authors state this is the first evidence that training-order information is linearly encoded in activations.
  2. What related research exists?

    The authors place this paper between linear metadata and training-order effects and claim to fill in an independent order feature.

    Paraphrased by the groupings in Section 5. The authors only write the relationship to this paper when they name it.

    Linear metadata in activations

    • Known vs. unknown: Ferrando et al. (2024) use linear directions to detect whether an entity appeared in training. The authors claim their seen vs. unseen axis also recovers the full training order (Figure 3b) and suggest that binary detection may come from a finer temporal encoding, or both reflect some confidence.
    • Frequency and reliability: Merullo et al. (2025) report linear encoding of subject and object frequency. Krasheninnikov et al. (2023) report reliability cues in some settings.
    • Learning paths: Lampinen et al. (2024) state that representation structure depends on path: features learned earlier, and simpler or more common features, tend to explain more linearly decodable variance and are encoded more densely.

    How training order affects behavior

    • Two-hop reasoning: Feng et al. (2024) study how training order allows or blocks two-hop reasoning.
    • Data-order poisoning: Shumailov et al. (2021) study poisoning attacks that exploit data order.
    • Anticipatory recovery: Yang et al. (2024) report that models recover capabilities in advance of the reappearance of periodically repeated data.

    Forgetting and belief revision

    • Residual old knowledge: Zhou et al. (2022) and Davari et al. (2022) discuss selective forgetting or representational forgetting: after task accuracy drops, older knowledge may still remain in embeddings. The authors suggest this may help explain why signals persist after mixed training in this paper.
    • Synthetic documents: Wang et al. (2025) use consistent synthetic documents to fine-tune and rewrite long-held beliefs. The authors ask whether sufficiently strategic models would use training order to encode the discovery of such implants and decide to comply or resist.

    Controls and positioning

    • Control conditions: The paper does not use other probing methods as baselines. Sanity checks are training mixed from the start, no fine-tuning at all, or shuffled probe labels, all giving 50% accuracy (§3.3). Data are synthetic and natural alias question answering adapted from CVDB.
    • Positioning: The authors claim that no prior linear feature separately reflected training order, and this paper fills that gap, and that the encoding generalizes across independent fine-tuning runs using different data.
  3. How does the paper address this problem?

    Sequentially fine-tune on alias-entity data, and read out the training stage using centroid differences, probes, and auxiliary fine-tuning.

    Construct models with known training order, and test whether test activations are arranged along a linear direction according to acquisition order. The main object is sequential fine-tuning on Llama-3.2-1B, and the readout methods are centroid difference, logistic regression probes, and auxiliary fine-tuning.

    Data and position alignment

    • Scale: The celebrity QA is adapted from CVDB, processed similarly to Krasheninnikov et al. (2023). 16000 entities, six template types per entity, four used for training, totaling 64000 entries. Attributes include gender, birth and death times, region, occupation, and nationality (Appendix B).
    • Two alias types: The synthetic variant replaces with three-token random strings, with the same alias used throughout for the same entity. The natural variant uses five-token phrases; each question type has 25–30 paraphrases, totaling 175 templates, multiplied by 98 syntactic variants, for a total of 17150 variants.
    • Testing: Most experiments use only one type of entity-attribute question not seen during fine-tuning, one of four templates, without the answer. The alias token count is the same, and test sample positions are aligned. Post-residual activations are collected for every layer and every token.

    Sequential fine-tuning and probe split

    • Stages: Entities are divided into m non-overlapping subsets, where m is 6 or 2. Fine-tuning proceeds sequentially, with 5 epochs per stage.
    • Optimization: Full parameters use Adafactor, batch size 128, learning rate 5e-5, weight decay off, no schedule, and the optimizer is reset between stages. The paper states that the latter two are defaults of the library used (Appendix A).
    • LoRA: Used for Llama-3.1-8B, r=128, α=128, dropout=0.1, target modules are all-linear, learning rate 2e-4. The same adapter is updated across multiple stages.
    • Probes: Entities from two stages are split 80:20 into probe training and testing. Table 1: for two stages, 6.4k and 1.6k per stage. The held-out entities participated in model fine-tuning but not in probe training. Logistic regression C=0.1, trained on all layers and tokens, reporting accuracy over five random splits.

    Training order axis

    • Centroids: Fixing layer, token, and test prompt, average the test activations of entities from the same stage to obtain c1 through c6.
    • Plane: The x-axis is the average of c1 minus c6 over multiple runs and multiple test prompts, following difference-of-means (Panickssery et al., 2023). The x-axis of Figure 1 uses two of the four runs in the figure (one synthetic, one natural) and four test prompts, for a total of eight differences. The y-axis is the first principal component of the centroids after removing the x component.
    • Other axes: The authors also use other stage centroid differences as the x-axis, with comparisons placed in the appendix. This two-dimensional plot does not define collinearity in the full activation space.

    Readout and control design

    • Re-exposure and training amount: After six stages, retrain one seen dataset as a 7th stage; or change one stage from 5 epochs to 15 epochs.
    • Mixed retraining: The 7th stage instead trains on the union of the six datasets for 30 epochs. The authors state that this objective does not reward maintaining stage distinctions.
    • Verbal report: A model already fine-tuned on D1 then D2 is further fine-tuned with the probe training subset, asking it to answer which stage the alias comes from, outputting one of two stage labels; accuracy is measured on probe test aliases.
    • Question-level: Both stages include every entity, but with different questions. The probe determines which stage a specific training question appeared in, unlike the entity-level held-out test of the main experiment.

    Statistical balancing

    • Statistics: On the two-stage model, compute 6 activation statistics (L2, max, first four moments) and 7 logit statistics (entropy, max logit, logsumexp, four moments) per sample.
    • Binning: Joint binning for each group of statistics, with N from 5, 10 up to 75; only downsample within bins where both classes appear, so that the two stages have equal counts. The control is random downsampling with the same sample size and full data, both evaluated on the same held-out set.
    • Longer range: Generate 20 continuations per token position, temperature=1.0, up to 10 tokens, and compute backward-looking statistics of past tokens (Appendix E).
  4. What experiments did the paper conduct?

    On Llama-3.2-1B, the Stage 0 vs. Stage 5 probe is 0.91, and explicit answers see unseen aliases 79.8%.

    Experimental setup

    • Models: The full-parameter main experiment is Llama-3.2-1B. Replication experiments are Qwen2.5-0.5B, Qwen2.5-1.5B, Qwen2.5-3B, and LoRA on Llama-3.1-8B.
    • Data: CVDB celebrity QA, 16000 entities, 64000 training samples. Both synthetic and natural aliases. Number of stages m=6 or 2, with non-overlapping subsets.
    • Training: Main setting is 5 epochs per stage. Optimizer and hyperparameters for full fine-tuning and LoRA are in Question 3. There is also a 1-epoch, 20-samples-per-entity natural-style extension set with the same total token count as the 5-epoch setting, with no repeated samples.
    • Activations: post-residual, all layers and all tokens. The main reported positions in Figure 1 and Figure 2 are the last token, layers 13/16. Tests mostly use held-out entity attribution questions not seen in fine-tuning, without answers.
    • Probes: Logistic regression C=0.1, 80:20 entity split, five random splits. Figure 2 is the 5-fold average accuracy. No LLM evaluation.
    • Verbal report: The same model is fine-tuned again after D1→D2, and accuracy is measured on probe-test aliases. The paper does not state the number of repetitions.

    Main results

    The figure axes are printed as Stage 0 through Stage 5. The text says distinguishing the earliest and latest stages exceeds 90%, and points to Figure 2; the abstract says ∼90%. The caption says larger intervals are easier to distinguish, closer stages are easier to distinguish, and gives the example that D5 vs D6 is easier than D1 vs D2. The paper does not spell out the correspondence between Stage numbers and D numbers cell by cell in the caption. The table below only copies the printed cells.

    | Stage pair | 5-fold average accuracy | Condition | | Stage 0 vs Stage 5 | 0.91 | Figure 2a, layers 13/16, last token | | Stage 1 vs Stage 5 | 0.90 | Same as above | | Stage 2 vs Stage 5 | 0.85 | Same as above | | Stage 4 vs Stage 5 | 0.62 | Same as above | | Stage 0 vs Stage 1 | 0.52 | Same as above | | Stage 1 vs Stage 2 | 0.53 | Same as above |

    • Centroid geometry: The authors say that across four independent runs (two synthetic, two natural, with different aliases, each using one test prompt), the six centroids all fall on an approximately straight line in training order, and the lines are roughly parallel. The caption says the distance between centroids of closer stages is larger (Figure 1).
    • Probes: The authors say accuracy increases with temporal distance, and closer stages are easier to distinguish; test entities do not overlap with probe training entities, so this is not memorizing specific entities.
    • Distribution: The contours in Appendix Figures 9–11 still overlap substantially. The authors say the centroids are not collinear in the full space, and changing the projection introduces slight curvature (Figure 9). Figure 2b: higher at the end of the alias and at the last token, stronger in layers 8–16; before the start of the alias, the probe picks up no signal.

    Recency, training amount, and retraining after mixing

    • Re-exposure: After a previously seen dataset is added as stage 7, its centroid moves to the far right of the same x-axis as in Figure 1; sometimes the intermediate order is reversed, e.g., re-exposing stage 2 (Figure 4a). The authors take this to mean the axis reflects the most recent encounter rather than the first introduction.
    • Training amount: When a stage is changed to 15 epochs, its corresponding centroid moves closer to the nearer side, and the rest remain in training order (Figure 4b). The authors expect that if the training-amount difference is large enough, the subsequent order may reverse, and give the example of 30 epochs followed by 3 epochs; that combination is an expectation, not a completed experiment.
    • Mixing: After six stages, train for another 30 epochs on the union. In Figure 5a, the centroids still lie on the x-axis in the original order, but more crowded. The maximum probe for D1 vs D6 drops from over 90% to ∼63% (synthetic), or from ∼80% to ∼60% (natural), both above 50% (Figure 5b; meaning prompt, tokens -1/-4/-8, layers 9, 11, 13, 15, probe retrained at each checkpoint). The authors say this is not fully consistent with tracking only the most recent exposure, because after mixing all sets are equally recent, and the curves largely flatten after the first few epochs.

    Cross-settings, question-level signal, and verbal report

    • Other models: On LoRA with Llama-3.1-8B, the D1 vs D6 probe is ∼85%; the paper does not state the layer or token. For the three Qwen2.5 sizes, Figure 13 is described by the authors as the same type as Figure 2a, with layers 18/24, 22/28, and 28/32 respectively; the text does not give cell numbers.
    • Replication and robustness: With 1 epoch and 20 samples per entity, the authors say probe performance is the same as the original natural dataset. When trained from the start on mixed data, without fine-tuning or with shuffled labels, the probe is 50%.
    • Question-level: Judging which stage a specific training question comes from is only ∼60%, lower than the entity-level over 90%. After mixed training, the question-level signal disappears while the entity-level signal remains (§3.4). The authors think the two may not be the same kind of tracking.
    • Verbal report: 79.8% on probe-test aliases (§3.5). The abstract says ∼80%, and the conclusion says 80%. The authors say this does not imply the signal is used during standard reasoning; if distinguishing stages could reduce loss, the model might use it spontaneously.

    Simple statistics cannot explain away the direction

    • Norm: On a two-stage model, the probe at token position 12 is still ∼70% (§4, corresponding to Figure 2b). Table 2, at token idx 12, layer blocks.12.hook_resid_post, has L2 means of 11.31 on both sides, Welch test p=0.932.
    • Principal direction: At the last token, layers 13/16, PC1 explains less than 7%, PC2 less than 6%, and the first 10 together less than 30%. Figure 14 labels PC1 as 6.65% and PC2 as 5.65%, with D1 and D2 overlapping.
    • Balancing: After matching six activation statistics simultaneously, at most positions the balanced probe remains close to random downsampling, above 50%. The text says that in the last 10 tokens, only 2 positions have a larger effect than random downsampling, while the caption says 2–3 (Figure 7). The seven logit statistics also affect the same two positions, with a larger gap (Appendix Figure 16). Forward statistics reduce accuracy by several percentage points at most positions, and the authors say they still cannot explain the remaining signal.

    Other ablations and analyses

    • Figure 8: c3 minus c5 and c5 minus c6 still arrange centroids in training order; c1 minus c2 and c2 minus c3 misorder several neighboring centroids.
    • Figure 9: The first principal component of the six centroids explains 72% of centroid variance, and the second 10.4%; this plane accounts for only 1.13% of overall token activation variance.
    • Figure 3: After stage 4, in the same projection as Figure 1, D1 cannot be separated from the not-yet-trained set; the authors call this an artifact of that projection. The seen-vs-unseen axis can also arrange centroids in training order.
    • Figure 12: Across different seeds and different test prompts, the cosine similarity of probe directions differs substantially from zero; the authors say this figure is all 0 when labels are random.
    • Figure 19: Among 15 stage pairs, the D1 vs D6 probe has the highest cosine similarity with other probes.
    • The abstract and introduction say the encoding does not look like a simple byproduct of training or validation loss, activation norm, or confidence; Section 4 details the balancing of activation and output statistics, and the text does not separately list a loss-balancing step.
  5. What are some points that can be further explored?

    The authors state that the experiments are limited to ≤8B and relatively toy data, and the mechanism and cross-modality remain unanswered.

    Limitations and future directions noted by the authors

    • Models and data: Experiments are limited to relatively small models (≤8B) and two relatively toy dataset variants (§6 Limitations).
    • Modality: Only language models are studied; whether other architectures and modalities have similar encodings is an open question, with vision given as an example (§6).
    • From-scratch training: Whether the encoding appears in from-scratch training is listed as an unanswered question (§6).
    • Reading without auxiliary fine-tuning: Whether the model can read the information without explicit fine-tuning like in §3.5 is listed as an unanswered question (§6).
    • Mechanism: After several simple explanations are insufficient, what exactly supports the phenomenon remains unclear (§6).
    • Future directions: Using fine-tuning-derived axes to understand pretraining data order; how contradictory statements fall on the axis; whether the model can resist modification at test or training time, including whether multiple simultaneously inserted beliefs can be identified together, and whether inserted beliefs can be made to look like they were learned early (§6 Future work; scenarios citing Wang et al., 2025 and Greenblatt et al., 2024).

    Experimental coverage

    • Models: The main model for full-parameter sequential fine-tuning is Llama-3.2-1B; also Llama-3.1-8B with LoRA, and Qwen2.5-0.5B, Qwen2.5-1.5B, Qwen2.5-3B (§3.3, Figure 13).
    • Data and stages: Entities from CVDB celebrity QA, with synthetic and natural aliases; main experiment 16000 entities, 4 training QA per entity, m=6 or 2, common setting 5 epochs per stage (§2).
    • Variants: Re-exposure as a 7th stage, single stage 15 epochs, 30 epochs on the union, and a natural-style extension set with 20 items per entity and only 1 epoch (§3.2, §3.3).
    • Readout: Probes are logistic regression (C=0.1), 80:20 split, five random splits; Figure 2 numbers come from layer 13/16, last token. Verbal report is only given on the D1→D2 setting at 79.8% (§3.5).
    • Not reported in the paper: The number of repetitions for the 79.8% in §3.5; agreement between probe or stage answers and human judgment. The main text does not give accuracies for each cell in Figure 13, only the layer numbers for the three Qwen models.
  6. Summarize the main content of the paper

    The authors state that activations are arranged along training order, and both probes and verbal reports can read the stage.

    The authors look for a linear encoding of training order in sequentially fine-tuned language models, and discuss its relation to belief modification.

    • Question: Whether activations can distinguish whether information was learned earlier or later. The approach is to make the training order known, rather than inferring it from unknown pretraining logs.
    • Approach: Llama-3.2-1B is sequentially fine-tuned on six mutually non-overlapping alias-entity datasets, 5 epochs per stage. Entities are replaced with aliases to remove the pretraining original names. Tests use unseen attribution questions, taking post-residual activations. The difference of stage centroids defines an axis; logistic regression distinguishes stages on held-out entities; a model already fine-tuned for two stages is further fine-tuned with auxiliary fine-tuning, and orally reports which stage an alias came from.
    • Geometry and probes: The authors state that the centroids from four independent runs lie on an approximately straight line in training order, and the lines are roughly parallel (Figure 1, last token, layers 13/16). In Figure 2a, the 5-fold average accuracy for Stage 0 versus Stage 5 is 0.91, and for Stage 0 versus Stage 1 is 0.52. The text states that earliest versus latest exceeds 90%, and the abstract writes ∼90%. The figure axes are printed as Stage 0–5.
    • Retention and readout: Re-exposure moves the corresponding centroid to the most recent end. After mixing and retraining for 30 epochs, the maximum probe for D1 versus D6 drops to ∼63% (synthetic) or ∼60% (natural, starting at ∼80%), still above 50%. The oral report after D1→D2 is 79.8% on unseen aliases. Question-level detection is only ∼60% and disappears after mixed training. The LoRA probe for Llama-3.1-8B is ∼85%.
    • Authors' conclusion: This direction does not look like a simple byproduct of activation norm or confidence; the signal remains after mixed training, so it cannot simply be seen as the most recent exposure. The authors state that the model can read out the training stage after fine-tuning, and argue this is relevant to conflicting data and knowledge modification. Mechanism, training from scratch, and whether it can be read without auxiliary fine-tuning are listed by the authors as open questions.
Read originalarxiv.org