potentialpaper

When Does Fine-Tuning Extract Stored Knowledge? A Relation-Covering Theory for One-Layer Transformers

Ruichen Xu, Kexin Chen

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Large language models may encounter factual knowledge during pre-training yet fail to reliably use that knowledge after fine-tuning. We study this gap in a stylized one-layer self-attention + MLP transformer trained by next-token prediction and subsequently fine-tuned on question-answering data. We first prove that, under suitable regularity conditions, the model reaches near-optimal pre-training loss while learning structured attention patterns. We further show that fine-tuning turns the Q&A prompt format into a trigger for pre-trained relation features, enabling the model to extract facts not revisited during fine-tuning. Our analysis reveals a relation-covering characterization for knowledge extraction: fine-tuning need not revisit every stored fact, but it must cover enough latent relation-template directions through which facts were encoded during pre-training. We prove that extraction improves with pre-training multiplicity and fine-tuning coverage, but becomes harder as the relation-template universe grows. Conversely, insufficient coverage yields a failure regime in which facts can be stored but not extracted, providing a stylized mechanism for hallucination. Our analysis covers both full and low-rank fine-tuning, and experiments on synthetic data and PopQA-based GPT-2/Llama models support the predicted trends.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper develops a theoretical framework for understanding when fine-tuning enables a transformer to extract factual knowledge acquired during pre-training. The reviewers generally found the problem important, and I find the relation-covering perspective novel and technically meaningful. During the discussion, the authors provided useful clarifications regarding the theoretical assumptions, the scope of the results, and the connection between the theory and experiments, which addressed many of the concerns raised in the reviews.

The theoretical setting remains stylized, and some assumptions and limitations should be stated more clearly in the final version. I also acknowledge the remaining concerns raised by the negative reviewer. However, after independently assessing the paper, my judgment is that these limitations do not outweigh the novelty and technical value of the main contribution. I therefore view the paper positively overall and recommend acceptance.

Final justification

The full final justification is provided in the meta‑review text above.

Area Chair VeJZ · Meta-reviewOpenReview ↗
Final justification
The full final justification is provided in the meta‑review text above.
Read meta-review
Meta-review

This paper develops a theoretical framework for understanding when fine-tuning enables a transformer to extract factual knowledge acquired during pre-training. The reviewers generally found the problem important, and I find the relation-covering perspective novel and technically meaningful. During the discussion, the authors provided useful clarifications regarding the theoretical assumptions, the scope of the results, and the connection between the theory and experiments, which addressed many of the concerns raised in the reviews.

The theoretical setting remains stylized, and some assumptions and limitations should be stated more clearly in the final version. I also acknowledge the remaining concerns raised by the negative reviewer. However, after independently assessing the paper, my judgment is that these limitations do not outweigh the novelty and technical value of the main contribution. I therefore view the paper positively overall and recommend acceptance.

Reviewer eieYOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies when fine-tuning enables a transformer to extract factual knowledge learned during pre-training. In a simplified one-layer transformer, the authors show that fine-tuning can generalize to unseen Q&A facts when the fine-tuning data covers enough relation-template directions learned during pre-training. The theory predicts better extraction with more pre-training multiplicity and fine-tuning data, but worse extraction as the relation-template universe grows. The paper also extends the analysis to low-rank fine-tuning and supports the predictions with synthetic and PopQA-based experiments using GPT-2 and Llama-3.2.

Strengths and weaknesses

Strengths. The paper is well motivated, and the main story is clear. Sufficient coverage of relation templates across pre-training and fine-tuning can allow the model to learn a unified representation of the relation, which in turn enables generalization to facts not revisited during fine-tuning. I also find the joint analysis of pre-training and fine-tuning dynamics to be a novel and interesting contribution. It provides a meaningful extension of prior theoretical studies on transformers, which often focus on only one training phase or one architectural component.

Weaknesses. The paper’s setup is somewhat complicated, and the presentation would benefit from a clearer visual illustration of the data-generation process and the pre-training/fine-tuning pipeline.

My main concern is with the relation-covering claim. As I understand the setup, the task is essentially single-topic factual recall, where different “relations” correspond to different phrasings of the same relation, such as “was born in,” “comes from,” and “is a native of.” In this setting, there appears to be a clear shortcut: the model could solve the task by simply memorizing the subject-to-answer mapping s↦as \mapsto a in the MLP layer. Although the authors mention that their next-token prediction construction is designed to avoid direct memorization, I did not find a theoretical or empirical argument showing that the model is not using this shortcut. For example, the claim that knowledge extraction becomes easier when more relation templates are seen during pre-training could alternatively be explained by the fact that larger KK simply provides more training examples for learning s↦as \mapsto a.

A useful diagnostic would be to evaluate whether the model can predict aa from [o,s][o,s] after pre-training, or to consider a genuinely multi-relation setup where the same subject has different answers under different relations, e.g., (Alice,born in)↦California(\text{Alice}, \text{born in}) \mapsto \text{California}, (Alice,speaks)↦English(\text{Alice}, \text{speaks}) \mapsto \text{English}, and (Alice,likes)↦piano(\text{Alice}, \text{likes}) \mapsto \text{piano}. In such a setting, the subject alone would be insufficient, making it easier to distinguish relation-based extraction from subject-answer memorization.

A related issue concerns Table 1, where the authors argue that extraction improves when relevant facts are better represented during pre-training. However, this comparison appears to conflate relation diversity with the number of training examples: frequent facts are seen with multiple relation templates, while rare facts are seen only once. A fairer comparison would control for the number of pre-training examples, for instance by comparing NN diverse relation templates against NN repetitions of the same relation template for rare facts. This experiment would help clarify whether the improvement comes from relation coverage rather than simply from seeing more examples.

Questions
  1. Could the authors provide more evidence that the model is not simply memorizing the mapping s↦as \mapsto a? For example, after pre-training, can the model predict aa from [o,s][o,s] without the relation token? It would also be helpful to test a multi-relation setting where the same subject has different answers for different relations, such as (Alice,born in)↦California(\text{Alice}, \text{born in}) \mapsto \text{California} and (Alice,speaks)↦English(\text{Alice}, \text{speaks}) \mapsto \text{English}.

  2. Could the authors separate the effect of relation diversity from the number of training examples? In the current setup, frequent facts have both more relation templates and more pre-training examples. A useful control would compare NN different relation templates with NN repetitions of the same relation template.

  3. Could the authors also discuss related theoretical work on out-of-context reasoning in transformers, such as [1]? This work also studies the training dynamics of transformers on a factual recall task.

[1] Huang et al. Generalization or hallucination? Understanding out-of-context reasoning in transformers. Advances in Neural Information Processing Systems, 38:139807–139855, 2026.

Limitations

Yes

Final justification

My concerns have been resolved by the authors' new experiments.

Formatting concerns

N/A

3 comments
Authors · CommentOpenReview ↗

Rebuttal by Authors

Thank you for the valuable comments. We address each point below and will revise the manuscript accordingly.

Question 1: Relation-Conditioned Retrieval vs. Subject-Only Memorization

Response. Thanks for this insightful question. The subject representation may contain answer-related information, since learning such information is part of factual storage. However, under our autoregressive pre-training objective, the trained model cannot predict the answer directly from [o,s][o,s]; it is trained to predict the relation-template token rr at that position.

Testing Subject-Only Answer Prediction. We add two diagnostics to distinguish relation-conditioned retrieval from a subject-only mapping s↦as \mapsto a, evaluating next-token prediction from [o,s][o,s] and [o,s,r][o,s,r].

Diagnostic Result
Acc⁡(r∣[o,s])\operatorname{Acc}(r \mid [o,s]) 100%
Acc⁡(a∣[o,s])\operatorname{Acc}(a \mid [o,s]) 0%
Acc⁡(a∣[o,s,r])\operatorname{Acc}(a \mid [o,s,r]) 100%
P(r∣[o,s])P(r \mid [o,s]) 0.9908
P(a∣[o,s])P(a \mid [o,s]) 0.0090
P(a∣[o,s,r])P(a \mid [o,s,r]) 0.9255

Thus, the model does not predict aa as the next token after [o,s][o,s], and predicts aa only after the relation template is provided.

Multi-relation experiments. A more diagnostic question is whether relation information is required to select the appropriate stored answer. To examine this, we add a multi-relation experiment with three genuinely distinct semantic relations. For example, the same subject may satisfy (Alice,born in)↦California(\text{Alice},\text{born in}) \mapsto \text{California}, (Alice,speaks)↦English.(\text{Alice},\text{speaks}) \mapsto \text{English}.

We fine-tune on a subset of subjects and evaluate on the remaining held-out subject-relation pairs.

FT proportion Coverage rate One-layer simplified GPT-2
10% 23.33% 39.33% 42.67%
20% 41.67% 48.67% 54.00%
40% 71.67% 58.67% 61.33%
60% 83.33% 68.00% 66.67%
80% 91.67% 83.33% 73.33%

Held-out accuracy rises with fine-tuning proportion and template coverage, from 39.33% to 83.33% for the one-layer model and from 42.67% to 73.33% for GPT-2. Since each subject has multiple relation-dependent answers in this setting, these results provide evidence beyond a simple single-valued $s\mapsto a$ explanation.

Question 2: Relation Diversity with Fixed Training-Example Count

Response. Thanks for this insightful comment. We conduct a controlled diversity-versus-repetition experiment while keeping the total numbers of pre-training and fine-tuning examples fixed.

We first define two types of subject--relation facts. A diverse fact appears M=5M=5 times during pre-training, with each occurrence using a distinct relation template. A repeated fact also appears five times, but all occurrences use the same relation template. The two types therefore have identical pre-training exposure and differ only in template diversity.

We construct a single fixed pre-training dataset with three semantic relations, containing 50 diverse fine-tuning subjects, 50 repeated subjects, and 50 held-out test subjects. Each fine-tuning setting selects 50 subjects while varying only the diverse-to-repeated ratio.

All settings use the same pre-trained checkpoint, held-out test set, answer-token multiset. This design isolates the effect of template diversity and the resulting template coverage from repeated exposure and variation in the training or evaluation data.

Fine-tuning composition Test accuracy
20% diverse + 80% repeated 56.00%
40% diverse + 60% repeated 63.33%
60% diverse + 40% repeated 80.00%
80% diverse + 20% repeated 100.00%

Test accuracy increases with the proportion of diverse facts. Since pre-training exposure, fine-tuning set size, answer frequencies, and the test set are held fixed, this supports a distinct contribution from template diversity and broader coverage.

Question 3: Related Work

Thank you for pointing us to Huang et al. Huang et al. studies out-of-context reasoning across distinct semantic relations, where a model infers an unseen relation-specific fact from observed relational dependencies. Their analysis characterizes the implicit bias and asymptotic training dynamics of attention-only transformers as the number of pre-training iterations satisfies T→∞T \to \infty.

Our work addresses the complementary problem of how fine-tuning extracts facts acquired during pre-training when they are queried through a new Q&A format. Our theoretical model is structurally richer: it includes both attention and an MLP with nonlinear activations, explicitly analyzes their interaction during pre-training and fine-tuning, uses a next-token prediction objective, and establishes polynomial-time convergence. We will clarify these connections and distinctions in the related-work section.

Reviewer eieY · CommentOpenReview ↗

I appreciate the authors’ detailed response. Given the new results on multi-relation task and controlled diversity-versus-repetition experiments, my concerns have been fully resolved. I will therefore raise my score and recommend acceptance.

Authors · CommentOpenReview ↗

Thank You for Your Feedback

Dear Reviewer,

Thank you for carefully considering our response and for the constructive discussion. We appreciate your time and feedback.

Best,

Authors

Reviewer TXyPOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies how fine-tuning may lead to generalizing behavior that extracts knowledge from pre-training, by studying training dynamics on a one-layer transformer in a controlled setting involving factual data and various possible "relation templates". Each (subject, attribute) pair appear in pre-training with various relations, and the authors show that fine-tuning is able to "cover" those relations into the prompt-related parameters (even though those relations do not appear in fine-tuning) so that the model is able to re-use its pre-training knowledge. The authors illustrate the role of various problem parameters theoretically and empirically, such as number of relation templates, "multiplicities" K (facts may re-appear multiple times with various relations), and number of facts.

Strengths and weaknesses

The paper studies the important question of how fine-tuning can cheaply enable new mechanisms that leverage pre-training knowledge. The theory appears to be solid and precise, and the writing is generally clear.

However, the story and presentation currently feel a bit confusing and lacks clarity, and I encourage the authors to improve these points:

  • the use of the terminology "relation" in the data setup feels a bit confusing: in typical factual recall scenarios, different relations map a given subject to different attributes, while here it looks like the relations are independent of the subject/attribute pairs, which is confusing. It looks like the relations here are just random distractors that we'd like the model to ignore for better generalization after fine-tuning -- there is probably a better way to frame the story to highlight this?
  • the mechanisms are poorly explained: after reading the main text + appendix A, I am still a bit confused about the mechanisms that allow / prevent generalization. I encourage you to explain this more clearly in the next version, perhaps by providing some mechanistic insights into what the MLP is doing and how it can achieve good performance on subjects not seen during fine-tuning. My understanding is that it learns to map (s, r) -> a (where a is the attribute of s) for basically any relation r, so that fine-tuning somehow needs to map the p vector into an arbitrary or average relation (via the W matrix in the MLP), in order for the MLP to be re-purposed appropriately -- does this seem reasonable?

Additionally, note that there are a couple of recent papers studying a similar question of how fine-tuning extracts pre-training knowledge: here and here.

Typo: L30 - "transformer generalize" -> "transformer to generalize"?

Questions

see weaknesses

Limitations

yes

Formatting concerns

n/a

2 comments
Authors · CommentOpenReview ↗

Rebuttal

Thank you for the valuable comments. We address each point below and will revise the manuscript accordingly.

Comment 1: Relation terminology and interpretation.

Response. Thanks for this insightful comment. We agree that the reviewer’s interpretation is broadly reasonable. In our theoretical model, there is a single latent semantic relation, while the tokens ri\mathbf{r}_i represent semantically interchangeable surface templates drawn from a shared codebook. Their identities do not carry distinct intrinsic semantic meanings.

From the downstream Q&A perspective, the relation tokens can be viewed as competing intermediate outputs. However, they are not irrelevant distractors during pre-training, since they are explicitly predicted from the subject-context prefix, are shared across multiple subject-answer pairs, and appear in the prefix of the subsequent answer-prediction examples.

A boarder interpretation of the proposed mechanism is format-dependent output-mode control. Pre-training creates both template-prediction and answer-prediction pathways. Fine-tuning uses the shared format token pp to shift the model from the template-prediction mode toward the answer-prediction mode. Template coverage matters because template-output pathways that are insufficiently represented during fine-tuning may remain active and continue to dominate the correct answer. We will explain this interpretation more clearly in the revised manuscript.

To examine whether the extraction phenomenon extends to genuinely distinct semantic relations, we additionally construct a stylized multi-relation setting in which each subject has different answers under three semantic relations.

FT proportion One-layer simplified GPT-2
10% 39.33% 42.67%
20% 48.67% 54.00%
40% 58.67% 61.33%
60% 68.00% 66.67%
80% 83.33% 73.33%

As the proportion of fine-tuning subjects increases from 10% to 80%, the held-out accuracy improves substantially from 39.33% to 83.33%. These results provide evidence that the extraction phenomenon persists when the answer depends jointly on the subject and semantic relation, thereby excluding a simple single-valued mapping s↦as\mapsto a.

Comment 2: Mechanism of MLP-Based Generalization.

Response. The reviewer's interpretation is close at a high level, although the precise mechanism is different. Fine-tuning does not require p\mathbf p to resemble a particular relation embedding, or an average of the relation embeddings, in the MLP hidden space. Instead, the shared format direction p\mathbf p changes the competition between relation-template outputs and answer outputs.

Suppressing the ReLU gating for intuition, the update in the simplified model can be expressed as

W2ΔWp≈−c∑ri∈RcoveI(ri),c>0\mathbf W_2\Delta\mathbf W\mathbf p \approx -c\sum_{r_i\in\mathcal R_{\mathrm{cov}}}\mathbf e_{\mathcal I(r_i)},\qquad c>0

where RcovR_{\mathrm{cov}} denotes the set of relation templates that were paired during pre-training with at least one subject appearing in the fine-tuning set.

The format token therefore induces a negative update on the covered relation-template output coordinates. Once these competing logits are sufficiently reduced, the answer feature acquired during pre-training can become the top output, including for subjects absent from the fine-tuning set. Thus, p\mathbf p implements format-dependent output-mode control, rather than approximating an individual or average relation embedding.

We additionally test the effect of suppression breadth in a multi-relation setting by varying the proportion of subjects used for fine-tuning, thereby changing the number of relation templates suppressed, and measuring the resulting held-out extraction accuracy.

FT proportion Coverage rate One-layer simplified GPT-2
10% 23.33% 39.33% 42.67%
20% 41.67% 48.67% 54.00%
40% 71.67% 58.67% 61.33%
60% 83.33% 68.00% 66.67%
80% 91.67% 83.33% 73.33%

For the one-layer simplified model, coverage increases from 23.33% to 91.67%, while the best held-out accuracy increases from 39.33% to 83.33%. GPT-2 exhibits the same overall coverage-dependent improvement: its best held-out accuracy increases from 42.67% at 10% fine-tuning to 73.33% at 80%. The results confirm that the coverage effect extends to the multi-relation setting.

Comment 3: Related work.

Response. Thank you for pointing out these recent works. We will add a dedicated related-work discussion. Both papers analyze in-context factual recall, where contextual demonstrations identify the relation or attribute to retrieve. Our work studies out-of-context extraction, where the model receives only a subject and a new Q&A format at test time, without demonstrations. We provide an end-to-end training-dynamics analysis covering NTP pre-training and fine-tuning, with convergence guarantees and explicit success and hallucination regimes for both full and low-rank fine-tuning.

Authors · CommentOpenReview ↗

Follow-up on Author Response

Dear Reviewer,

We would like to kindly follow up on our response. As the discussion period is approaching its end, we would appreciate it if you could review our clarification and let us know whether it addresses your concerns or whether any questions remain.

Thank you for your time and consideration.

Best,

Authors

Reviewer q3dfOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies when fine-tuning enables a pre-trained transformer to extract factual knowledge acquired during pre-training. The authors analyze a simplified one-layer transformer trained by next-token prediction and subsequently fine-tuned on question-answering data. The key contribution is a relation-covering characterization: fine-tuning need not revisit every stored fact, but must cover enough latent relation-template directions through which facts were encoded. Mathematical guarantees are provided for this intuition, success and failure regimes are identified, and the theory is supported with synthetic and PopQA-based experiments using GPT-2 and Llama-3.2-1B.

Strengths and weaknesses

Strengths:

  1. Clean theoretical explanation for why fine-tuning helps extract knowledge already acquired during pre-training. The relation-covering idea is intuitive: fine-tuning need not revisit every fact but must cover enough relation patterns
  2. Provides mathematical guarantees for a previously known intuition, particularly the roles of pre-training multiplicity (K), fine-tuning coverage (βN_f), and relation-template size (|R|)
  3. The one-layer transformer setting is a reasonable starting point for jointly analyzing attention, MLP storage, and fine-tuning dynamics
  4. Synthetic and PopQA-based experiments support the predicted trends
  5. Well thought out and technically interesting paper

Weaknesses

  1. Equation 2 uses X directly as the value representation with no learned value matrix (W_V); this simplification needs justification
  2. The addition of the last token embedding X[-1] resembles a residual connection but its role and impact on the analysis are not explained
  3. No positional encoding is used; since next-token prediction depends heavily on position, the implications of this omission should be discussed
  4. The fixed block-diagonal W_2 is a strong simplification; it is unclear whether the mechanism holds with a learned or dense W_2
  5. The mutual orthogonality assumption on token embeddings (o, d, s_j, r_i, a_j) is unrealistic for natural language; it is also unclear when trained, how orthogonality is enforced
  6. The connection to instruction fine-tuning is underdeveloped; while not required for the core theoretical contribution, experiments on instruction-tuning datasets in the final version would broaden the paper's relevance and appeal to a wider audience
  7. An analysis of how safety fine-tuning suppresses harmful pre-trained content through the lens of relation coverage would be a welcome addition to the final version, though the current theoretical contribution stands independently without it
Questions

Please see above.

Limitations

Yes, in brief in conclusions section.

Formatting concerns

No issues.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the valuable comments. We address each point below and will revise the manuscript accordingly.

Comment 1: Value projection in Equation (2) and Fixed second MLP layer

Equation 2 uses XX directly as the value representation with no learned value matrix WVW_V; this simplification needs justification.

The fixed block-diagonal W2\mathbf{W}_2 is a strong simplification; it is unclear whether the mechanism holds with a learned or dense W2\mathbf{W}_2.

Response. Thank you for raising these questions. The assumptions WV=I\mathbf{W}_V=\mathbf{I} and fixed block-diagonal W2\mathbf{W}_2 serve the same analytical purpose: They make the training-dynamics analysis tractable while preserving the knowledge-extraction behavior observed in standard Transformers.

Consistent qualitative trend. We train a standard one-layer Transformer end to end, with a learned value projection and a learned dense MLP second-layer projection. We fix K=3K=3, N=100N=100, and vary the relation-template universe size ∣R∣|\mathcal{R}|. The results are shown below.

R\mathcal{R} PT training loss Held-out extraction accuracy
20 0.1046 100.00%
40 0.1160 95.00%
60 0.1225 83.75%
80 0.1192 67.50%
100 0.1304 50.00%
120 0.1138 61.25%
150 0.1193 43.75%

Despite finite-sample fluctuations, the standard one-layer Transformer exhibits the same overall qualitative dependence predicted by the theory: held-out extraction becomes more difficult as ∣R∣|\mathcal{R}| increases. Meanwhile, the pre-training loss remains in a similar range across the settings, suggesting that the decline in extraction accuracy is not simply caused by failure to fit the pre-training data.

These results indicate that the observed relation-coverage trend persists after replacing both the identity value map and the fixed block-diagonal second MLP layer with learned dense projections.

Analytical tractability. Specifically, if W2\mathbf{W}_2 is learned, the MLP becomes the nonlinear two-factor model $\mathbf{W}_2 \sigma\left(\mathbf{W}_1\mathbf{x}_a\right).$

If WV\mathbf{W}_V is learned, even with fixed W2\mathbf{W}_2, the model contains the coupled parameterization $\mathbf{W}_2 \sigma\left( \mathbf{W}_1 \left( \mathbf{W}_V\mathbf{X}\boldsymbol{\alpha} + \mathbf{X}[-1] \right) \right),$ where the dynamics of W1\mathbf{W}_1 and WV\mathbf{W}_V interact through the ReLU gates. Relaxing either assumption therefore introduces a nonlinear two-factor subproblem, while relaxing both introduces an even more strongly coupled system.

Even substantially simpler two-factor matrix-factorization models generally require specialized objectives, initialization conditions, and structural assumptions for trajectory-level analyses. Fully characterizing the polynomial-horizon gradient-descent dynamics in our setting, which additionally contains attention, residual connections, ReLU activation, and cross-entropy loss, is beyond the scope of the current proof. We will make this analytical motivation and limitation explicit.

We will add this experiment and clarify that the architectural restrictions are required for the current proof, rather than for the empirical phenomenon itself.

Comment 2: Residual connection

The addition of the last token embedding X[−1]\mathbf{X}[-1] resembles a residual connection but its role and impact on the analysis are not explained.

Response. Thank you for pointing this out. The term X[−1]\mathbf X[-1] models the standard residual connection around the self-attention module and keeps our simplified architecture closer to a standard Transformer.

This residual term is not essential to the qualitative mechanism. Without it, the final token still reaches the MLP through attention with a weight bounded away from zero, as suggested by our balanced-attention results. We will clarify its role and impact on the analysis in the revised manuscript.

Comment 3: Positional encoding

No positional encoding is used; since next-token prediction depends heavily on position, the implications of this omission should be discussed.

Response. Thanks for the comment. Although we omit positional encodings, the model remains autoregressive because training uses a causal mask, and each prediction is computed only from the current and preceding tokens. We deliberately omit positional encodings to isolate the content-based mechanism. Because the synthetic sequences use a fixed format, absolute positional features could provide a shortcut for identifying token roles.. This setting therefore tests whether generalization follows from learned subject and relation features rather than absolute position.

Comment 4: The mutual orthogonality assumption

The mutual orthogonality assumption on token embeddings (o, d, s_j, r_i, a_j) is unrealistic for natural language; it is also unclear when trained, how orthogonality is enforced

Response. We thank the reviewer for raising this point. In our theoretical model, the token embeddings are fixed, non-trainable vectors chosen to satisfy the stated orthogonality condition. Training updates only the attention parameter Z\mathbf{Z} and the MLP parameter W\mathbf{W}, so the embedding geometry remains unchanged throughout optimization. Thus, orthogonality is part of the theoretical problem setup and is not enforced dynamically during training. Orthogonality is a widely adopted analytical idealization that separates the roles of the context, subject, relation, and answer features and removes cross-feature terms from the training-dynamics analysis.

Our experiments relax this condition: the additional synthetic experiment uses independently sampled Gaussian embeddings, while the GPT-2 and Llama experiments use standard learned representations and exhibit the same qualitative trends. The current theorem relies on exact orthogonality, and extending it to approximately orthogonal or incoherent embeddings is a natural future direction. We will clarify these points in the revised paper.

Comment 5: Instruction and safety fine-tuning

Response. We thank the reviewer for these suggestions. Our Q&A fine-tuning setting may be viewed as a stylized abstraction of one limited aspect of instruction fine-tuning, with the shared token pp representing a downstream instruction or response format. We do not intend the current model to capture instruction tuning in its full generality. Our analysis only studies how a single new format interacts with factual features acquired during pre-training. We will clarify this limited connection and discuss the additional ingredients needed to extend the framework to heterogeneous instructions and multi-task settings.

The relation-covering perspective suggests a natural hypothesis for safety fine-tuning: suppressing an undesirable pre-trained behavior may require the safety data to cover the prompt or feature directions through which that behavior is expressed. Insufficient coverage may leave the behavior accessible under unseen formulations. A formal treatment would require modeling refusal targets, competing safe and harmful outputs, and capability trade-offs, which are outside the current factual-extraction setting. We will add this connection as a clearly scoped direction for future work.

Authors · CommentOpenReview ↗

Follow-up on Author Response

Dear Reviewer,

We would like to kindly follow up on our response. As the discussion period is approaching its end, we would appreciate it if you could review our clarification and let us know whether it addresses your concerns or whether any questions remain.

Thank you for your time and consideration.

Best,

Authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…