Manuscript Offprint

arXiv:2610.03251

Learning a Fact Is Not Learning How to Retrieve It

Chaemin Jang, Jihee Kim, Dongman Lee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

A model trained on The capital of X is Y may produce Y after The capital of X is but fail after The capital of X:. We call these different ways of eliciting the same fact request forms. To separate learning a fact from retrieving it, we train two models in two stages. In the first stage (request-form training), one model sees each fact in five forms and the other sees the same facts only as statements. In the second stage (target-fact training), both receive identical training on new facts, all as statements. Both then retrieve the new facts almost equally well from statements, but differ sharply on other request forms. Thus, a model can learn how to retrieve through a request form before it learns the facts. To understand this difference, we examine the hidden state immediately before the answer, which we call the context state. When given two different request forms for the same fact, the model trained on five forms in stage one produces more similar context states than the model trained on statements alone in that stage. Changing this state at retrieval time can enable or prevent retrieval of an already learned fact, and the same effect transfers across facts and factual relations, such as capitals and currencies. To test its role during learning, we change the context state only during target-fact training. This intervention changes later retrieval without intervention at test time. Together, these results show that later retrieval depends on earlier request-form experience and the context state during fact learning.

1 INTRODUCTION

Suppose we fine-tune a language model on The capital of X is Y. Later, the model produces Y after The capital of X is but fails after - Capital of X:. The fact can be retrieved through one form but not the other. We call these different ways of eliciting the same fact request forms. Prior work has observed related gaps between learning facts from text and retrieving them in a new form (Allen-Zhu & Li, 2024; Jiang et al., 2024). But such a failure leaves a basic ambiguity: did the model learn the fact only weakly, or did it fail to learn how to retrieve it through the second request form? In ordinary fine-tuning, the fact and the form in which it is presented are learned together, making these explanations difficult to distinguish.

We separate these possibilities with a two-stage experiment. In the first stage (request-form training), one model sees facts only as statements such as The capital of A is B., while the other sees those same facts as statements and in four additional forms, including Capital of A: B. and Name the capital of A: B.. In the second stage (target-fact training), both models receive identical training on new facts, all written as statements such as The capital of X is Y.. In the capitals-only experiment, both models produce Y after The capital of X is for nearly every evaluated fact. But after - Capital of X:, the first model almost never produces Y, while the second does so for 97.7% of the evaluated facts. Because their target-fact training is identical, the retrieval difference comes from what they learned before X and Y were introduced.

To understand this difference, we examine the hidden state immediately before the answer, which we call the context state. Replacing this state at retrieval time can reverse the result: a state from a successful request can make a failing request succeed, while a state from the failing request can make

†^{\dagger}Co-corresponding authors.

A | Retrieval can be learned before the fact

Figure

B | The context state controls retrieval

Figure

C | State during learning changes future retrieval

Figure

Figure 1: Learning a fact and learning how to retrieve it are separate, and the context state links them. (A) Identical target-fact training after different stage-one training: held-out retrieval goes from 0.0% to 97.7%. (B) Swapping the context state between a trained and a held-out form removes or restores retrieval. (C) Shifting the context state during training changes retrieval through a never-used form afterward, with no intervention at test time.

a successful one fail. A context state from one fact can also help retrieve another fact, even from a different factual relation. This suggests that part of its effect on retrieval can be reused across facts.

We next ask whether this state also connects earlier request-form training to later fact learning. For the same new fact, the declarative and list request forms produce more similar context states in the model trained on five forms in stage one than in the model trained only on statements at that stage. To test whether the state present during learning matters, we train a model on the same factual sentences as before but shift its context state toward one produced by a different request form. When training ends, we stop making the shift and test normally. The facts can now be retrieved through a request form that previously failed, without intervention at test time. Thus, how a fact can later be retrieved is shaped in part by the context state present while it was learned.

Our contributions are:

• We separate learning a fact from learning how to retrieve it.

• We identify the context state as the link between what the model learns from earlier request forms and how new facts are later retrieved, and show that it can control retrieval across facts and relations.

• We show that changing the context state during factual fine-tuning changes how the learned fact is later retrieved.

References (59)