Mitigating Catastrophic Forgetting in Mathematical Reasoning Finetuning through Mixed Training
John Graham Reynolds

TL;DR
This paper introduces mixed training strategies that interleave mathematical reasoning and natural language inference examples to prevent catastrophic forgetting in large language models during finetuning, maintaining performance across tasks.
Contribution
The study proposes and empirically validates mixed training methods that eliminate catastrophic forgetting while preserving task-specific performance in large language models.
Findings
Mixed training prevents catastrophic forgetting effectively.
Even minimal NLI exposure (6.2%) suffices for regularization.
Balanced 1:1 training ratio maintains performance across tasks.
Abstract
When finetuning large language models for specialized tasks such as mathematical reasoning, models exhibit catastrophic forgetting, losing previously learned capabilities. We investigate this by finetuning Flan-T5-Base (250M parameters) on the DeepMind Mathematics dataset and measuring forgetting on MultiNLI. Math-only training improves mathematical accuracy from 3.1\% to 12.0\% but causes NLI accuracy to collapse from 81.0\% to 16.5\%--a 64.5 percentage point drop occurring within the first 1,000 training steps. We propose mixed training strategies that interleave mathematical and NLI examples during training. Our results demonstrate that mixed training completely eliminates catastrophic forgetting while maintaining equivalent mathematical performance: the balanced 1:1 ratio achieves 12.0\% math accuracy (matching math-only) while preserving 86.2\% NLI accuracy. We systematically…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗MarioBarbeque/flan-t5-base-mixed-15-1-catastrophicmodel· 2 dl· ♡ 12 dl♡ 1
- 🤗MarioBarbeque/flan-t5-base-mixed-7-1-catastrophicmodel· 7 dl· ♡ 17 dl♡ 1
- 🤗MarioBarbeque/flan-t5-base-mixed-3-1-catastrophicmodel· 1 dl· ♡ 11 dl♡ 1
- 🤗MarioBarbeque/flan-t5-base-mixed-1-1-catastrophicmodel· 7 dl· ♡ 17 dl♡ 1
- 🤗MarioBarbeque/flan-t5-base-nli-only-catastrophicmodel· 5 dl· ♡ 15 dl♡ 1
- 🤗MarioBarbeque/flan-t5-base-math-only-catastrophicmodel· 1 dl· ♡ 11 dl♡ 1
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCognitive and developmental aspects of mathematical skills · Topic Modeling · Mathematics, Computing, and Information Processing
