Role-decoupled learning improves language model context understanding
RoDeL: Role-Decoupled Learning for Context Distillation
Computation and Language
Summary
Large language models can remember important information from documents in two ways: by reading the document directly (teacher role) or by storing information inside their own memory (student role). The authors developed a method called RoDeL that trains these two roles separately but together, so they work better as a team. Their approach helped the model understand and answer questions about documents more accurately across different topics. This was shown using a smaller base model with only a limited amount of training data.
What this means in practice
- •For ai engineers: Train language models that better store and recall document knowledge by separating teacher and student roles during learning.
- •For customer support teams: Improve chatbot accuracy on new documents by using enhanced context memory learned from question-answer pairs.
Authors
Ruiyi Yan, Zhuoyuan Mao, Yugo Murawaki, Yiwen Guo
Abstract
Context distillation converts the token memory of large language models (LLMs), such as a document in the context, into parametric memory stored in model parameters. It involves two roles: a teacher, which has the document in its context and answers synthetic questions about it, and a student, which answers new questions by reading the memory distilled from these answers. The two roles depend on each other, but existing methods train at most one of them, or both through shared parameters. We propose RoDeL (Role-Decoupled Learning), which trains the teacher and the student as two separate adapters on a frozen base model so that the two roles co-evolve. RoDeL has two variants: RoDeL-Seq updates the two adapters sequentially, alternating between the roles, and RoDeL-Sim updates them simultaneously, in the same training step. To train the teacher, we introduce student-relayed Group Relative Policy Optimization (SR-GRPO): each of several answer sets synthesized for a document is written into its own memory adapter and rewarded by how well the student answers after reading it. With Qwen3.5-4B and only 270 training documents, RoDeL-Seq or RoDeL-Sim performs best on each of two in-domain and eight out-of-domain datasets. On average, RoDeL-Seq leads the best baseline by 3.4 points in domain and 3.3 out of domain (relative improvements of 9.8% and 7.4%), and RoDeL-Sim leads it by 9.6 and 3.5 points (27.7% and 7.9%).