REER-PT: Reverse-Engineered Reasoning for Perplexity-Guided Pre-training Data Augmentation

Haoran Que, Jiajun Shi, Ting Huang, Renming Pang, Jiaheng Liu, Ge Zhang, Wenhao Huang, Shen Yan, Wei Ye, Shikun ZhangarXiv 2026

TL;DR

REER-PT is an offline data augmentation framework that injects concise, "book-note-style" reasoning annotations into raw pre-training text. By using text perplexity to identify difficult transitions and guide the refinement of these explanations, it significantly boosts language model performance on downstream reasoning tasks without altering the standard next-token prediction objective.

What Problem Does This Paper Address?

Standard autoregressive pre-training teaches language models what word comes next, but rarely explains why. While Chain-of-Thought (CoT) data explicitly surfaces intermediate reasoning steps, most existing CoT datasets are restricted to curated question-answering pairs. These pairs lack the scale, stylistic diversity, and domain coverage of raw web text.

At the same time, generating reasoning paths "online" during pre-training is computationally expensive and can introduce low-quality or irrelevant text. REER-PT addresses this bottleneck by providing a scalable, offline method to uncover and explicitly annotate implicit reasoning paths directly within raw pre-training corpora.

Methods

REER-PT extends Reverse-Engineered Reasoning (REER) to pre-training data through a three-stage offline pipeline:

  1. Insertion Position Selection: The document is segmented into sentences. A perplexity (PPL) model calculates sentence-level perplexity to identify "difficult transitions." An annotation model then filters these positions to ensure the upcoming text can actually be inferred from the context (filtering out random facts, names, or dates).
  2. Annotation Generation and Refinement: For the selected positions, the annotation model generates third-person, book-note-style explanations. These candidates are filtered to prevent "target leakage" (verbatim copying or close paraphrasing of the continuation). Crucially, the annotations are iteratively refined paragraph-by-paragraph using a gradient-free search to minimize the perplexity of the upcoming continuation.
  3. Augmented Corpus Construction: The final optimized annotations are wrapped in special tags (<annotation_begin> and <annotation_end>) and inserted right before the target continuation. The original text remains completely untouched.
Overview of the REER-PT pipeline

Datasets

  • Pre-training Data: The authors applied REER-PT to a 23B-token source corpus, transforming it into a 42B-token augmented corpus. Both versions were mixed with a 500B-token general pre-training corpus to create a 523B-token "raw mixture" baseline and a 542B-token "REER-PT mixture."
  • Evaluation Benchmarks: Models were evaluated across four categories:
  • Knowledge: C-Eval, MMLU-Pro, SuperGPQA, Chinese SimpleQA
  • General Reasoning: DROP, BBH, ZebraLogic, ProcBench
  • STEM Reasoning: GPQA-Diamond, MATH, OlympiadBench
  • Code: MBPP+, HumanEval+, LiveCodeBench

Key Insights and Ideas

  • Perplexity as an Optimization Signal: Instead of relying on complex reinforcement learning reward models, REER-PT uses the language model's own perplexity on the actual text continuation to optimize the reasoning text. If an annotation makes the real text more predictable, it is deemed a high-quality explanation.
  • The "Book-Note" Format: Traditional CoT often uses first-person agentic language ("Let's think step by step"). REER-PT finds that third-person, expository book notes blend seamlessly into pre-training data without disrupting the model's standard text distribution.
  • Reasoning vs. Code Structure: A key "aha moment" came from a negative result: adding natural language explanations inside code files actually hurts coding performance. The natural language inserts disrupt the strict syntax and local structure that code-generation benchmarks require.

Key Results

  • Perplexity Reduction: Optimized annotations reduced the perplexity of selected continuations by 4.24 points and overall original tokens by 1.03 points, proving that the annotations genuinely make the source text more predictable.
  • Downstream Gains: The authors trained two 680M-parameter models from scratch. The model trained on the REER-PT mixture achieved notable improvements over the raw baseline:
  • +2.07 percentage points on BBH (General Reasoning)
  • +2.07 percentage points on GPQA-Diamond (STEM Reasoning)
  • +1.50 percentage points on MATH
  • +1.40 percentage points on DROP
  • Coding Regression: Performance dropped on coding tasks (e.g., -2.65 points on MBPP+ and -1.83 points on HumanEval+), highlighting the format mismatch for programming languages.

Limitations and Future Work

  • Scale: The controlled pre-training experiments were limited to a 680M-parameter model; how REER-PT behaves at multi-billion parameter scales remains unknown.
  • Model Dependency: The data generation quality is tightly coupled with the capabilities of the initial PPL and annotation models used during the offline pipeline.
  • Code Domain Failure: The current book-note style is ill-suited for code documents. The authors note that future work must develop structure-aware annotation formats tailored specifically to programming languages and other specialized domains.

Summary updated

BibTeX
@misc{que2026reer,
  author = {Haoran Que and Jiajun Shi and Ting Huang and Renming Pang and Jiaheng Liu and Ge Zhang and Wenhao Huang and Shen Yan and Wei Ye and Shikun Zhang},
  title = {{REER-PT: Reverse-Engineered Reasoning for Perplexity-Guided Pre-training Data Augmentation}},
  year = {2026},
  eprint = {2608.30627},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.30627},
}
Figure