RoDeL: Role-Decoupled Learning for Context Distillation

Ruiyi Yan, Zhuoyuan Mao, Yugo Murawaki, Yiwen GuoarXiv 2026

TL;DR

Stuffing massive documents into an LLM’s prompt is slow and memory-hungry, so researchers often compress that text directly into lightweight parameter modules via context distillation. This paper introduces RoDeL, a reinforcement learning framework that decouples the model "writing" the memory from the model "reading" it, allowing the two roles to co-evolve like a tutor and a student developing a shared shorthand. Trained on just 270 documents, RoDeL significantly boosts question-answering accuracy across diverse, unseen domains while keeping inference memory flat.

What Problem Does This Paper Address?

Large language models handle new information in two ways: token memory (pasting text into the context window) and parametric memory (baking information into neural weights). Token memory requires costly prefilling every time you ask a question. To bypass this, context distillation converts tokens into parameters offline using two roles:

  1. A teacher, which reads the raw document and synthesizes training data (like Q&A pairs).
  2. A student, which answers new user questions without seeing the document, relying instead on a lightweight "memory adapter" (a LoRA module) trained on the teacher's notes.

Here is the catch: writing good notes depends on how the reader interprets them, and reading effectively depends on how the notes were written. Yet standard context distillation leaves both roles untrained. Recent reinforcement learning (RL) approaches either train only one role while freezing the other, or force both roles to share the exact same parameters—meaning every update to the teacher inadvertently alters the student. The authors ask: what happens if we decouple the teacher and student into independent learners so they can co-evolve?

Comparison of how different context distillation methods train teacher and student roles

Methods

RoDeL (Role-Decoupled Learning) attaches two separate LoRA adapters to a frozen base LLM: a teacher adapter ($\phi_t$) and a student adapter ($\phi_s$). Each document still gets its own disposable memory adapter ($\phi_m$), distilled from the teacher's answers to synthetic questions.

  • Training the Student: Using standard Group Relative Policy Optimization (GRPO), the student adapter is rewarded (via token-level F1 score) for accurately answering training questions while reading the document's memory adapter.
  • Training the Teacher (SR-GRPO): Because the teacher’s text synthesis is separated from the student by a LoRA distillation step, gradients cannot flow directly back to the teacher. The authors introduce student-relayed GRPO (SR-GRPO). For a single document, the teacher generates $M$ distinct sets of answers, each distilled into a temporary memory adapter. The student reads each adapter and takes a test; the student's average score serves as the reward to update the teacher.

RoDeL comes in two scheduling flavors: RoDeL-Seq alternates between freezing one role and updating the other across epochs, while RoDeL-Sim updates both adapters simultaneously within every single training batch.

Overview of sequential updates in RoDeL-Seq vs. simultaneous updates in RoDeL-Sim

Datasets

No new benchmarks are introduced; instead, the authors test extreme generalization from a tiny training set:

  • Training (In-Domain): Just 270 documents total—180 from HotpotQA and 90 from MuSiQue.
  • Evaluation: Tested on 200 examples each from HotpotQA and MuSiQue (in-domain), plus eight out-of-domain datasets spanning wildly different genres and lengths (from 161 to 24k median tokens): SQuAD, 2WikiMultihopQA, Natural Questions (NQ), TriviaQA, Qasper (NLP papers), MultiFieldQA, NarrativeQA (books/scripts), and LoCoMo (multi-session conversations).

Key Insights and Ideas

  • True Co-Evolution: In RoDeL-Seq, training rewards jump most dramatically during the second round of alternating updates. Once the student and teacher get a baseline feel for each other in round one, they rapidly adapt to each other's evolving representations in round two.
  • Better Students Make Better Teachers: If you take a RoDeL-trained teacher and pair it at test time with an untrained base student, it still outperforms a teacher trained alongside that exact base student by up to 9.0 F1 points out-of-domain. Co-evolving with a capable, adapting student forces the teacher to write fundamentally clearer parametric memories.
  • Flat Memory Scaling at Inference: Unlike long-context prompting—where GPU memory balloons with document length—reading a distilled LoRA adapter keeps peak VRAM constant regardless of how much text was originally compressed.

Key Results

Using Qwen3.5-4B as the base model, either RoDeL-Seq or RoDeL-Sim achieves the highest F1 score on all ten evaluation datasets.

  • Accuracy Gains: On average, RoDeL-Sim beats the untrained baseline (PRAG-style) by +20.8 F1 points in-domain and +17.7 points out-of-domain. Against the strongest RL baselines (SEAL-style and PaST-style), RoDeL-Sim leads by 9.6 points (27.7% relative gain) in-domain and 3.5 points (7.9% relative) out-of-domain.
  • Retrieval Scaling: In a realistic RAG setup where Qwen3-Embedding-8B retrieves the top-1 memory adapter from corpora up to 1.37M tokens, both RoDeL variants maintain their lead over all baselines, dropping only 0.2–0.5 points in-domain compared to oracle retrieval.
  • Efficiency: On 23.5k-token LoCoMo conversations, standard in-context prompting spikes to 59.8 GiB of peak GPU memory and takes 10.9 seconds per query; RoDeL needs just 10.3 GiB (5.8x less) and 4.5 seconds. (Writing a document's memory adapter offline takes ~34–37 seconds on average).
  • Generality: Gains hold across smaller models (Qwen3.5-2B, 0.8B) and a different architecture family (Gemma-4-E2B).

Limitations and Future Work

  • Offline Writing Overhead: Converting a document into a memory adapter requires synthesizing answers and running a 5-epoch LoRA distillation, which scales with document length—taking over 10–13 minutes for massive LoCoMo conversations (over 1,100 synthetic questions).
  • Cross-Model Distillation: In this paper, the teacher and student share the same frozen base model ("self-distillation"). However, because the two roles only interact via text (answer sets) and scalar rewards, they don't actually need to share an architecture. The authors highlight an exciting next step: attaching the teacher adapter to a massive frontier model so it can learn to write optimal parametric memories for a tiny, edge-deployed student model.

Summary updated

BibTeX
@misc{yan2026rodel,
  author = {Ruiyi Yan and Zhuoyuan Mao and Yugo Murawaki and Yiwen Guo},
  title = {{RoDeL: Role-Decoupled Learning for Context Distillation}},
  year = {2026},
  eprint = {2611.37263},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37263},
}
Figure