Skip to content
OpenTrain AIFor AI Companies

Lost After the First Sentence: How Fine-Tuning Stores Facts

Zhiyun Shi, ChiChih Hsieh, Yuxuan Chen, ChengXi Song, Qingzhi ZengPublished Dec 1, 2026
arXiv PDF
Researcher verdict
Context only
Use as context only
Benchmark evidence
Thin evidence
Verify before relying
Time to first repro
A few days
Plan setup time
Risk flags
2
Review before use

Some benchmark signal exists in the extracted evidence, but it is not structured strongly enough yet for a confident benchmark decision.

Abstract

Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.

Fine-tuning a language model on a document stores each fact by where it sits in that document, not by what it says. Existing methods undo this within a sentence, which lifts the reversal curse there; across sentences, both the extraction curse and the reversal curse remain. Under demasking, the state of the art, a fact in a Wiki document's first sentence is recalled 97% of the time, a fact further in only 53%. Shuffling each document once in training moves recall with the facts: a fact moved to the front rises from 27% to 58%, one moved out of it falls from 95% to 60%. The later facts are not lost: shown the sentences before them, even shuffled, the model recalls 96% of them. A reversed question fails for the same reason: it starts from a later fact and asks for the name in the first sentence. Anywhere takes fixed positions away: every epoch shows each document in a new sentence order, half the samples mask whole sentences, and some show only the subject, the cue a question gives; replaying a few of the base model's own maths solutions protects its general ability. No text about the documents is generated. On four models from 3B to 8B it outscores demasking in 15 of 16 question directions, 14 significantly, and beats the numbers demasking's authors report in 14 of 16, with GSM8K and IFEval never more than 4 points below demasking. With no document in context, it answers 90-92% of reversed Biography questions on 7B and 8B models, and 94-96% on 3B and 4B models with LLM paraphrases.

Results and benchmarks

Fine-tuning a language model on a document stores each fact by where it sits in that document, not by what it says.

Implementation

No direct implementation yet

Maintained implementation evidence is not confirmed for this paper yet.

Use the implementation status and reproduction sections for the current action plan.

Implementation evidence summary
Confidence: low

Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.

Reproduction risks
  • Estimate is based on paper-only reproduction flow

Reproduction readiness

Time to first repro: days
Last checked: Dec 3, 2026

No repo

No verified implementation available

  • No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.

Hardware requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

Natural language processing

Methods

Transformer

Domains

Natural Language Processing, Large Language Models

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.