Balancing Synthetic Data and Replay for Enhancing Task-Specific Capabilities
Urs Spiegelhalter, Jörg K. H. Franke, Frank Hutter
TL;DR
The paper tackles the problem of adapting language models to new tasks without catastrophic forgetting under finite compute by balancing synthetic data augmentation and replay. It introduces a systematic, token-budget–driven study using the bAbI reasoning tasks and a 1.7B base model to quantify how total token budget and replay ratio affect task mastery and general knowledge retention. Key findings show that 5%–10% replay suffices to preserve general knowledge, performance plateaus around a total budget of $10^{8.5}$ tokens, and synthetic data diversity (bAbI-Synthetic) markedly improves task mastery compared with original data; these insights lead to practical guidelines for replay selection and budgeting. The results enable efficient task-specific adaptation in resource-constrained settings and offer a roadmap for extending continual-learning analyses to other tasks and synthetic-generation methods.
Abstract
Adapting language models to new tasks through continued pretraining faces a fundamental trade-off: models must learn new capabilities while avoiding catastrophic forgetting of existing knowledge. While prior work has studied synthetic data generation techniques, the optimal replay ratios for balancing task performance and knowledge retention under computational constraints remain poorly understood. We present a comprehensive empirical study investigating the interplay between replay ratio configuration and computational budget when adapting language models to new tasks. Using the bAbI reasoning tasks as our target objective, we apply synthetic data generation and systematically evaluate different total token budgets and replay ratio configurations. We analyze their effects on both task mastery and general knowledge retention. Our experiments reveal an optimal configuration that balances task-specific performance with general knowledge retention. Based on our findings, we provide empirically-grounded guidelines for selecting replay ratios based on computational budget, enabling practitioners to achieve strong task adaptation with significantly reduced training costs.
