From Memorization to Absorption: Mixed-Policy RL for Continual Knowledge Injection
Organizations: University of California, Merced
Abstract
Continual knowledge injection is essential for keeping large language models up-to-date in a fast-evolving world. Existing methods rely on supervised fine-tuning (SFT), which memorizes injected facts in their training format but fails to generalize across paraphrasing, document combinations, and reasoning. To address this, we propose Golden-GRPO Injection (GRIN), a three-stage self-learning framework for continual knowledge injection. Golden-GRPO is a mixed-policy reinforcement learning algorithm designed specifically for knowledge injection, which injects a golden answer to provide learning signal even when on-policy rollouts fail on novel facts. We further introduce Blank and Counter, two document-level benchmarks targeting novel acquisition and counterfactual overwrite respectively, each evaluating single-fact recall, multi-source retrieval, and inferential reasoning. Our experiments establish a clear empirical claim: mixed-policy reinforcement learning enables knowledge absorption beyond what supervised fine-tuning can achieve. GRIN substantially outperforms SFT and mixed-policy RL baselines on the harder question types while matching them on basic fact recall.
Figures & tables
| Benchmark | Document excerpt | Single-fact recall | Multi-source retrieval | Inferential reasoning |
|---|---|---|---|---|
| Blank | Aurelius Vance (b. 1962 ) is a Canadian marine biologist who completed his doctorate at the University of British Columbia. In 2008 , he was appointed director of the Pacific Marine Research Institute. | Q: What is the nationality of Aurelius Vance? A: Canadian | Q: What is the nationality and profession of Aurelius Vance? A: Canadian ; Marine biologist | Q: How old was Vance when he became director of the institute? A: 46 ( 2008 - 1962 ) |
| Counter | Resident Evil Village is a survival horror game by Aetheris Studios (Capcom), released in 2034 (2021) as a sequel to Voidwalker (RE 7) ( 2029 (2017)). | Q: What is the sequel to Voidwalker ? A: Resident Evil Village | Q: What is the sequel to Voidwalker and who produced it? A: Resident Evil Village ; Aetheris Studios | Q: How many years after its predecessor was Village released? A: 5 ( 2034 - 2029 ) |
| Blank (Qwen3-4B) | Counter (Qwen3-4B) | ||||||||
| Method | Single | Multi | Infer. | Avg | Single | Multi | Infer. | Avg | fail@k |
| gemini-3.1-flash-lite | |||||||||
| Closed-book | 24.63% | 5.46% | 34.43% | 21.51% | 1.31% | 0.00% | 2.22% | 1.18% | 98.53% |
| Open-book | 97.07% | 92.83% | 95.24% | 94.05% | 99.08% | 100% | 99.45% | 99.51% | 0.00% |
| Training-free | |||||||||
| Closed-book | 11.43% | 1.02% | 0.55% | 4.33% | 2.83% | 0.00% | 4.16% | 2.33% | 89.92% |
| Counter (Llama3.2-3B) | |||||
|---|---|---|---|---|---|
| Method | Single | Multi | Infer. | Avg | fail@k |
| PIT | 29.10% | 9.17% | 27.98% | 22.08% | 38.60% |
| AL (DPO) | 29.67% | 2.75% | 24.10% | 18.84% | 35.97% |
| Self-Tuning | 39.63% | 8.26% | 33.80% | 27.23% | 27.38% |
| Grin (ours) | 42.38% | 11.01% | 37.95% | 30.45% | 27.72% |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Component | Content |
|---|---|
| System prompt | You are a knowledgeable encyclopedia writer. |
| User template | Write a concise, factual Wikipedia-style article about the {entity_type} , {entity_name} . Keep the article informative and tightly written, covering only the most essential facts, dates, and notable details. Organize the text using exactly 3 to 4 standard markdown headings (##) that are most appropriate for this specific subject. Each section should be a focused, well-developed paragraph — avoid bullet points, repetition, and unnecessary elaboration. Write in an encyclopedic, neutral tone. |
| Component | Content |
|---|---|
| User template | I want you to design a parallel-universe version of the provided wiki page. Your task is to replace concrete facts in the text — proper nouns, dates, years, numerical values, locations, named entities, organizations, award names, and titles — with plausible, internally consistent alternatives that could believably appear in a real wiki. Do not alter common nouns (e.g. “novel”, “painter”), generic descriptors, or linguistic connective tissue — only swap identifiable concrete facts. Strict rules: 1. Do not change the main entity/subject of the wiki page, which is: {subject} . 2. Preserve section headers verbatim, preserve paragraph count and order, and keep sentences in the same positions. Only the concrete facts inside sentences change. 3. If a name, date, place, or other replaced entity appears multiple times in the original, the same substitute must be used at every occurrence. 4. Output only the rewritten article in markdown — no preamble, no closing commentary, no annotations or markers in the prose. Here is the original wiki page content to transform: {content} |
| Component | Content |
|---|---|
| System prompt | You are an expert question writer for reading-comprehension evaluation. Your job is to produce factoid questions whose answers are unambiguous and directly supported by a single sentence in the source document. |
| User template | Read the following document and generate a set of single-fact recall questions. Each question must satisfy all of the following: 1. The answer is a short concrete fact (a name, date, place, number, or named entity) that appears verbatim in exactly one sentence of the document. 2. The question is fully answerable from the document without additional context or outside knowledge. 3. The question form does not paraphrase the source sentence; rephrase it so that a model that has merely memorized the source cannot trivially pattern-match. 4. Each question targets a different fact; do not generate paraphrases of the same question. For each question, output a JSON object with fields question , answer , and source_sentence . Output one JSON object per line, no additional commentary. Document: {document} |
| Component | Content |
|---|---|
| System prompt | You are an expert question writer who specializes in composite questions that test joint recall across multiple facts. |
| User template | Read the following document(s) and generate multi-source retrieval questions. Each question must be composed of {N} sub-questions ( ), where each sub-question targets a distinct concrete fact, and the sub-questions reference facts that appear in different paragraphs or different documents. Requirements: 1. Sub-question facts must not overlap; each targets a different entity, date, location, or attribute. 2. The composite question must be phrased as a single natural question (e.g. “What is X and when was Y?”) rather than a list. 3. The golden answer must list each sub-answer in the order the sub-questions appear, separated by semicolons. 4. Do not generate questions whose sub-facts could all be retrieved from a single paragraph; the point is to test joint recall across separated passages. For each question, output a JSON object with fields question , answer , N , and source_locations (list of paragraph or document identifiers for each sub-fact). Output one JSON object per line, no additional commentary. Document(s): {documents} |
| Component | Content |
|---|---|
| System prompt | You are an expert question writer who designs inference questions that require combining multiple facts from a source document. |
| User template | Read the following document and generate inferential reasoning questions. Each question must satisfy all of the following: 1. Answering the question requires combining at least two distinct facts from the document. Direct retrieval of any single fact should be insufficient. 2. The inference type should fall into one of: temporal reasoning (e.g. computing durations, ordering events), comparison (e.g. identifying which of several entities has a property), or conditional inference (e.g. “given X, what does Y imply”). 3. The golden answer must be a short concrete value (a number, date, name, or short phrase). Do not generate questions whose answers are open-ended explanations. 4. The required inference must be derivable from the document alone, without external world knowledge. For each question, output a JSON object with fields question , answer , inference_type ( temporal / comparison / conditional ), and supporting_facts (list of source sentences used). Output one JSON object per line, no additional commentary. Document: {document} |
| Field | Content |
|---|---|
| System prompt | You are a helpful AI assistant that answers questions about provided documents. |
| Corpus | ## Listing and Trading Apple Inc. is listed on the New York Stock Exchange (NYSE) under the ticker symbol APL …. [ remainder of corpus elided for space ] |
| Pre-query token | <|im_start|>user |
| Sampled question (model continuation) | What is the ticker symbol for Apple on the NYSE? |
| Field | Content |
|---|---|
| Question | What is the ticker symbol for Apple on the NYSE? |
| Golden answer | Apple is a major publicly traded corporation that maintains a significant presence on the New York Stock Exchange. As part of its financial operations and public listing, the company is identified by a specific ticker symbol used for trading its shares. That ticker symbol is APL. <answer>The ticker symbol for Apple on the NYSE is APL.</answer> |
| Component | Content |
|---|---|
| System prompt | You are a strict factual judge. Your job is to determine whether the student’s answer contains the same factual information as the reference answer. Follow these steps: (1) Extract the core factual claim from the reference answer. (2) Check if the student’s answer contains this same fact. (3) If the student refuses to answer, says the question is invalid, says “no such person/place exists”, or hedges without providing a concrete answer, that is WRONG . (4) Ignore any formatting, emojis, self-praise (“correct”, “accurate”), or repeated statements in the student’s answer. Focus only on the factual content. (5) Output only the word CORRECT or WRONG . |
| User template | Question: {question} Reference Answer: {golden_answer} Student’s Answer: {generated_answer} Does the student’s answer contain the same factual information as the reference answer? Output only : CORRECT or WRONG . |
| Component | Content |
|---|---|
| User template | You are judging whether a model’s answer reflects the counterfactual knowledge that the model was trained on, or the original prior knowledge from real-world Wikipedia. Question: {question} Model’s answer: {model_answer} --- Counterfactual text (the model’s training target) --- {counterfactual} --- end counterfactual --- --- Original Wikipedia text (real-world prior) --- {original} --- end original --- Verdict — choose ONE: • COUNTERFACTUAL — the model’s answer agrees with the counterfactual text. • ORIGINAL — the model’s answer agrees with the original Wikipedia (model fell back to prior). • NEITHER — the answer matches neither (refusal, hallucination, off-topic). Output exactly one word: COUNTERFACTUAL , ORIGINAL , or NEITHER . |
Knowledge Augmentation for Language Models
Knowledge augmentation for language models adds external or newly learned information to improve factuality, reasoning, and domain performance.
See all 180 papers