Learning to Learn from Context: Synthetic Training from Perturbed Public Documents

Haoyi Wu, Yang Xiao, Yusong Sun, Wenyang Hui, Zhaokai Luo, Chengyue Jiang, Mu Chuan

AllSpark Team

Published September 27, 2026 · on the feed September 29, 2026 · ▲ 31 · arXiv 2609.33642

Reasoning & math No code arXiv ↗Hugging Face ↗

The abstract

Real-world tasks often require large language models (LLMs) to learn from complex task-specific context rather than pretrained parametric knowledge. This capability remains a weakness of LLMs, while human annotation for such task contexts is expensive and difficult to scale. Public high-quality documents are an abundant alternative, but much of the public web has already been consumed during pretraining: training on such documents naively would reward memorization rather than context learning. In this work, we attempt to make use of high-quality public documents with small perturbations and empirically find that LLMs can successfully generate context-dependent reasoning traces and answers, which are then used to train a student model. Specifically, we construct a synthesis pipeline that (i) rewrites source documents to reduce memorization risk, (ii) generates questions and rubrics that require reasoning over the document, (iii) answers the questions with the document as context, and (iv) admits only samples that genuinely depend on the document. Without any human annotators, our pipeline generates about 10k samples from 3.5k documents, and the resulting student model substantially improves the performance on CL-bench. SFT raises a Qwen3.6-35B-A3B student from 13.7% to 22.8%, and a subsequent rubric-reward RL stage reaches 24.6%, on CL-bench comparable with a frontier model of over a trillion parameters, Qwen3.8-2.4T (23.9%). We also observe a broad transfer of improvements to long-context understanding, instruction following, and reasoning, while code generation and knowledge remain mostly flat. We hope this work provides a reproducible and scalable way to improve the ability of LLMs to learn from context, and to facilitate further research on context-grounded reasoning.

The Brief

3:05

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Learning to Learn from Context. Synthetic Training from Perturbed Public Documents. By Haoyi Wu and six others, from the AllSpark Team. Published on the twenty-seventh of September. No code repository is linked to it.

Many real tasks ask a large language model to learn from the material in front of it: complex context specific to that task, rather than knowledge already stored in its weights. Models remain weak at this. The obvious remedy, human annotation of such contexts, is expensive and hard to scale. Public documents of high quality are abundant, but there is a catch. Much of the public web was already consumed during pretraining, so training naively on those documents would reward the model for remembering them, not for learning from them. A model that already knows the answer has no reason to read the page, and a training signal built on that page would teach it nothing about reading. So the field is left with a skill it wants to teach, a data source that is too expensive, and a cheap data source that teaches the wrong thing.

The authors' way out is to use those public documents after perturbing them a little. Their empirical finding is that, given such lightly altered documents, language models can generate reasoning traces and answers that genuinely depend on the context. Those traces and answers then become training data for a student model. The perturbation is what breaks the shortcut: a model can no longer lean on a memorized version of the text.

The synthesis pipeline has four steps. First, it rewrites each source document to reduce the risk of memorization, so that what the model saw in pretraining is no longer quite what it is being shown. Second, it generates questions, along with grading rubrics, that require reasoning over the document rather than a quick lookup. Third, it answers those questions with the document supplied as context, which is where the reasoning traces come from. Fourth, it filters, admitting only the samples whose answers truly depend on the document. That last gate is the one that keeps memorized answers from slipping back in through the side door. No human annotators are involved at any point. From about three thousand five hundred documents, the pipeline produces about ten thousand samples.

Training on those samples substantially improves a student model on CL-bench. The student is Qwen3.6-35B-A3B, and it is trained in two stages. Supervised fine-tuning comes first, and on its own it lifts the student from thirteen point seven percent to twenty-two point eight percent.

A further reinforcement learning stage, rewarded against the rubrics, takes it to twenty-four point six percent. That puts it on a par with a frontier model of over a trillion parameters, Qwen3.8-2.4T, which scores twenty-three point nine percent on the same benchmark. The improvements also transfer broadly, to long-context understanding, to instruction following, and to reasoning. Code generation and knowledge, by contrast, stay mostly flat.

Where the gains land fits the aim. Abilities that lean on reading what is given move, while code and stored knowledge stay where they were, a pattern in line with a pipeline built to reward using the document rather than recalling it. The authors present the pipeline as a reproducible, scalable route to better context learning, and as a base for further research on reasoning that stays grounded in its context.

Paper Quest · 7 chapters · about 39 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

The web is full of documents. The catch: the model has already read them.

You want a language model that reads a long document and applies its rules and facts to a task, instead of answering from what it already knows. Models are weak at this.

The road ahead

  1. 1 · The problem ~6 min Models are weak at learning from a long document they are given, and the cheap data to teach them rewards memory instead of reading.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Rewrite public documents so memory fails, build graded questions a teacher answers from the document, and keep only samples that truly need it.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Six steps: rewrite documents, generate questions with rubrics, answer with the document, filter, fine-tune the student, then refine with rubric-reward RL.
  6. 6 · The experiment ~6 min You’ll guess: After SFT and rubric-reward RL on synthetic samples from perturbed public documents, how did the Qwen3.6-35B-A3B student compare on CL-bench with the trillion-parameter Qwen3.8-2.4T?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.