Skip to content
AI.info

Research

MetaGDPO: Alleviating Catastrophic Forgetting with Metacognitive Knowledge through Group Direct Preference Optimization

MetaGDPO: Alleviating Catastrophic Forgetting with Metacognitive Knowledge through Group Direct Preference Optimization Overview Research area: Efficient distillation of large language model (LLM) rea

arXiv
2511.12113
Published
2025-11-15
Authors
Lanxue Zhang, Yuqiang Xie, Fang Fang, Fanglong Dong, Rui Liu, Yanan Cao

AI summary

MetaGDPO: Alleviating Catastrophic Forgetting with Metacognitive Knowledge through Group Direct Preference Optimization

Overview

  • Research area: Efficient distillation of large language model (LLM) reasoning ability into small models, preference-based optimization (DPO/GRPO family), and catastrophic forgetting during fine-tuning.
  • Technical level: Intermediate. The paper assumes familiarity with supervised fine-tuning, chain-of-thought distillation, DPO, GRPO, and reward modeling, but its core ideas (data selection by "skills" and pairwise preferences inside a response group) are explained in largely accessible terms.
  • Scope (one sentence): The paper introduces MetaKL, a 5K-instance training set selected by the metacognitive knowledge each question requires, and GDPO, a group-based preference optimization objective, to improve reasoning in 7B/8B-scale models while limiting catastrophic forgetting.

What This Paper Is About

Large models reason well, but deploying that reasoning in small models (under 8B parameters) is hard: existing distillation datasets are usually picked by question difficulty, which ignores what the base model already knows, and standard fine-tuning objectives do not constrain the model to preserve its prior abilities. The result is catastrophic forgetting, where fine-tuning on hard math data degrades even simple tasks. MetaGDPO attacks this from both sides — a dataset built around the metacognitive knowledge each question demands, and a training objective (GDPO) that learns from groups of teacher-model responses while staying anchored to a reference model.

Key Contributions

  1. MetaKL dataset. A 5K-instance training set covering multiple reasoning tasks (mathematical, general/commonsense, and safety), built by annotating the metacognitive knowledge needed for each question and filtering each knowledge unit against the base models' measured proficiency.
  2. Group Direct Preference Optimization (GDPO). A preference-optimization objective that learns from a group of teacher-generated responses and their advantages, reducing inter-group preference computation from O(G²) to O(G), and suited to resource-limited settings by avoiding online sampling.
  3. A proof and error analysis. The paper derives GDPO's objective from a reinforcement-learning formulation, shows it can approximate the GRPO loss, drops the partition-function term f(Z(q)) without disturbing convergence, and bounds the gradient estimation error as ε ≤ (μ_adj − μ′_adj)² + Var(μ′_adj)/(G−1).
  4. Extensive evaluation. Experiments across 12 benchmarks (mathematical, general reasoning, and safety) and comparisons against LIMO, STAR-1, their mixture (L+S), and against SFT and DPO training methods.

Main Findings

  • Small models degrade under difficulty-based data. The paper reports that fine-tuning 8B-scale models on small, high-quality math data such as LIMO causes severe degradation (see Figure 1), while the same data helps 32B models.
  • MetaGDPO improves overall math performance. For Qwen3-8B, MetaGDPO reaches an Overall AVG of 80.86 versus 78.98 for the un-finetuned origin, 70.20 for LIMO, 73.59 for STAR-1, and 75.15 for L+S. On AIME24 it reaches 76.04 versus 72.71 for the origin. For R1-Qwen, Overall AVG is 60.14 versus 59.52 for the origin; for R1-LLaMA, 59.39 versus 55.37.
  • Forgetting on simple tasks is mitigated. The paper states that training with L+S leads to a 40% performance degradation on GSM8K for DeepSeek-R1-Qwen and over 50% on Qwen3, whereas MetaGDPO "effectively mitigates this degradation."
  • General-reasoning gains at 7B/8B scale. For Qwen3-8B, MetaGDPO reaches MMLU 83.37, CQA 84.11, and GPQA 62.12 (AVG 76.79) versus the origin's 79.28, 77.89, 59.09 (AVG 72.09). For R1-LLaMA, MMLU rises to 66.88 and GPQA to 37.37 (AVG 58.34 versus 53.51). For R1-Qwen, MMLU rises to 55.93 and CQA to 66.01 (AVG 52.09 versus 51.74).
  • Safety behaves differently from reasoning. STAR-1 and L+S reach very high safety scores (for example, Qwen3 STAR-1 scores 99.91 on TrustLLM, 98.21 on StrongReject, 100.0 on WildJailbreak, 87.42 on reject jailbreak, and 96.39 on jailbreak) but sharply lower general utility (MMLU 46.53, CQA 30.38, GPQA 47.47). MetaGDPO keeps safety near baseline (Qwen3: TrustLLM 92.89, StrongReject 84.79, WildJailbreak 95.85, reject jailbreak 64.12, jailbreak 84.41). The authors conclude SFT is more effective for safety-oriented learning while GDPO is superior on reasoning, hypothesizing that safety improvement may require partially overwriting prior behaviors.
  • Relative gains of roughly 5–10%. The paper reports that, compared to conventional fine-tuning on existing datasets, the method improves relative gains of approximately 5–10% on overall performance.
  • Advantages can be removed without losing the benefit. An ablation that removes the advantage weight (equivalent to expanded response pairs from DPO) yields average results of 85.24 (math), 69.99 (general), 84.27 (safety), and 80.25 (overall) — showing that more responses alone still help.
  • Group size matters. Testing G = 2, 4, 6, 8, 10, performance improves as group size grows; below G = 10, certain dimensions may slightly degrade, consistent with the paper's proof that small group sizes cause high training variance. The paper states that at G ≥ 10, the relative gradient error is lower than 10% compared with G = 2, and it uses G = 10.
  • Very small data can help. Sweeping training sizes over [10, 100, 500, 1000, 5000], the paper finds that as few as 10 instances can still enhance overall performance.
  • Data composition matters. Training under GDPO with LIMO alone slightly reduces mathematical reasoning (less severe than under SFT), while MetaKL-Math "significantly enhances mathematical reasoning." Combining LIMO and STAR-1 mitigates degradation, suggesting that learning response distributions helps retain general capabilities even with single-task data.
  • GDPO beats SFT and DPO on Qwen3-8B. On Qwen3-8B, the paper reports GDPO outperforming SFT by an average of nearly 17% and 3% (the two figures are given for SFT and DPO respectively). For weaker methods such as SFT and DPO, LoRA helps mitigate forgetting, while GDPO achieves superior performance through full-parameter training.
  • 32B-scale behavior differs. In the appendix, fine-tuning 32B models improves performance over Qwen2.5-32B-Instruct and does not degrade simpler tasks such as GSM8K the way small models do; training on LIMO even improves general capability, with the only decline observed in jailbreak-related safety performance.

Methodology in Plain English

Step 1 — Collect and clean raw data. The authors gather existing training data covering mathematical reasoning (NuminaMath-CoT), non-mathematical/general reasoning (MMLU, CommonsenseQA, CommonsenseQA 2.0, LogiQA), and safety tasks. They apply coarse filtering following the STAR-1 recipe: n-gram filtering, TF-IDF similarity filtering, and semantic embedding similarity filtering. This yields 38,838 data instances. They then check for overlap with their evaluation benchmarks and remove duplicates to prevent leakage.

Step 2 — Label the knowledge each question needs. GPT-4o is prompted to extract the fine-grained skills required to solve each question (lower-case, underscore-joined skill names, returned as JSON). Similar knowledge names are then merged by clustering. After clustering, 8,325 knowledge units remain. To check this labeling, they randomly sample 500 prompts with their extracted knowledge and have five expert annotators judge consistency, paying $0.20 per instance; the average consistency score is 92.18%.

Step 3 — Measure what the base models already know. They evaluate five models — Qwen2.5-7B-Instruct, LLaMA3.1-8B, DeepSeek-R1-Qwen-7B, DeepSeek-R1-LLaMA-8B, and Qwen3-8B — across skill counts, observing that performance drops as the number of combined skills rises. They compare two proficiency measures (average proficiency across models, and strict proficiency where all models must be correct) and find the models' proficiency is only weakly correlated; average proficiency shows higher consistency, so it is used.

Step 4 — Keep what is hard and what needs reminding. All complicated instances requiring more than 5 skills are reserved. For each knowledge unit they greedily keep 20 questions with a priori correct and safe responses, selecting by average proficiency, and retain a small number of instances for skills the model already possesses as a "reminder" of prior ability. The result is MetaKL: 5K training questions spanning a wider knowledge range.

Step 5 — Train with GDPO. For each question the strong model generates a group of G = 10 responses. Rewards combine accuracy, format, and length with weights 1, 0.5, and 0.5, so correctness dominates; when all responses are correct, shorter ones are preferred, with length normalized within the group. If every response is incorrect or unsafe, GPT-4o reconstructs the reasoning and answer from the golden solution. Advantages are computed per response, and the small model is trained on preferences between nearby responses in the sorted group, with the reference model implicitly constraining how far the policy can drift. Answers are also manually checked to handle output-format mismatches.

Step 6 — Evaluate. Evaluation covers six mathematical benchmarks (AIME24, MATH-500, AMC23, GSM8K, OlympiadBench, Minerva), three general-reasoning benchmarks (MMLU, CommonsenseQA, GPQA), and three safety benchmarks (TrustLLM, StrongReject, WildJailbreak) judged by LLaMA-GUARD-3-8B. For benchmarks with fewer than 50 questions (AIME24 and AMC23), 16 samples are generated at temperature 0.7 and unbiased pass@1 is computed; other datasets use temperature 0. Baselines include LIMO, STAR-1, and their mixture (L+S).

Why This Matters

Impact on research. The paper argues that catastrophic forgetting is a first-order obstacle to distilling reasoning into sub-8B models, and that both the data-selection principle and the training objective must be redesigned to address it. It offers a concrete data-side alternative to difficulty-based curation (metacognitive knowledge as the selection key) and a training-side alternative to online-sampling RL that approximates GRPO at lower cost, with a derived error bound linking group size to gradient variance.

Real-world applications:

  • Deploying capable reasoning assistants on consumer hardware or on-premise servers where 8B-or-smaller models are the practical limit.
  • Fine-tuning a single small model for multiple domains (math, commonsense, safety) without sacrificing the others, which the paper shows is possible even with single-task training data.
  • Building safety-aligned small models, with the caveat that safety-oriented behavior appears to be learned better by SFT than by preference optimization on reasoning.
  • Cost-sensitive training pipelines, since GDPO uses offline teacher responses instead of online sampling and remains useful even with as few as 10 training instances.

Industry relevance. The work targets resource-constrained training and inference, a common production setting, and the released dataset and code (https://github.com/Qlanxue/MetaGDPO) are positioned as a reusable resource. The core trade-off it exposes — that strong safety alignment via supervised training can substantially reduce general utility, while preference optimization preserves utility but may not maximize safety — is directly relevant to anyone shipping a small, fine-tuned model.

Future Directions

  1. Reconciling safety and reasoning. The paper observes that SFT excels at safety while GDPO excels at reasoning, and hypothesizes that safety gains may require partially overwriting prior harmful behavior. How to obtain both properties in one training run remains open.
  2. Using very small training sets deliberately. Since as few as 10 instances improved overall performance, the lower limit and the selection principle for such minimal sets are unexplored.
  3. Extending beyond the current benchmark mix. The evaluation covers mathematics, general reasoning, and safety; whether the metacognitive-knowledge selection principle transfers to other task families is not tested.
  4. Generalizing the proficiency analysis beyond one checkpoint generation. The knowledge-based selection depends on measuring base-model proficiency with a specific set of models (Qwen2.5-7B-Instruct, LLaMA3.1-8B, DeepSeek-R1-Qwen-7B, DeepSeek-R1-LLaMA-8B, Qwen3-8B); how the pipeline behaves for other model families or larger bases is not reported.

Target Audience

Researchers and engineers working on model compression, reasoning distillation, and preference optimization for LLMs, particularly those targeting models under 8B parameters. It is also relevant to practitioners who need to fine-tune small models for multiple task types without losing existing capabilities, and to readers interested in the relationship between data-selection criteria and catastrophic forgetting.

Authors’ abstract

Large Language Models demonstrate strong reasoning capabilities, which can be effectively compressed into smaller models. However, existing datasets and fine-tuning approaches still face challenges that lead to catastrophic forgetting, particularly for models smaller than 8B. First, most datasets typically ignore the relationship between training data knowledge and the model's inherent abilities, making it difficult to preserve prior knowledge. Second, conventional training objectives often fail to constrain inherent knowledge preservation, which can result in forgetting of previously learned skills. To address these issues, we propose a comprehensive solution that alleviates catastrophic forgetting from both the data and fine-tuning approach perspectives. On the data side, we construct a dataset of 5K instances that covers multiple reasoning tasks and incorporates metacognitive knowledge, making it more tolerant and effective for distillation into smaller models. We annotate the metacognitive knowledge required to solve each question and filter the data based on task knowledge and the model's inherent skills. On the training side, we introduce GDPO (Group Direction Preference Optimization), which is better suited for resource-limited scenarios and can efficiently approximate the performance of GRPO. Guided by the large model and by implicitly constraining the optimization path through a reference model, GDPO enables more effective knowledge transfer from the large model and constrains excessive parameter drift. Extensive experiments demonstrate that our approach significantly alleviates catastrophic forgetting and improves reasoning performance on smaller models.

Read the original paper