Manuscript Offprint
arXiv:2610.34182Entropic Control for Homeostatic Optimization: Pre-empting Catastrophic Forgetting via Dynamic Feedback
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Supervised Fine-Tuning (SFT) of LLMs suffers from catastrophic forgetting, and prevailing mitigation strategies struggle to reconcile the plasticity-stability dilemma. To address this, we propose Entropic Control for Homeostatic Optimization (ECHO), a closed-loop control framework. By decomposing the KL divergence, we identify output entropy as a dominant observable component of KL variation. This enables us to leverage entropy as a computationally efficient online proxy to monitor forgetting risks in real-time, bypassing expensive reference-model inference. Consequently, ECHO employs an elastic controller that dynamically modulates the gradient weight of replay data via a proportional control law, using deviations from the pre-trained entropic equilibrium as an error signal. Empirical evaluations across 0.6B to 9B parameter architectures demonstrate that ECHO lies on, and in several comparisons extends, the observed plasticity-stability frontier and maintains high operational robustness against varying data mixing ratios.
1 Introduction
Large language models (LLM) have acquired extensive linguistic knowledge, world knowledge, and certain reasoning capabilities through autoregressive pre-training on massive corpora (Brown et al., 2020; Kaplan et al., 2020; Wei et al., 2022b). To make models better follow human instructions and adapt to specific downstream tasks, Supervised Fine-Tuning has become one of the most commonly used alignment paradigms (Ouyang et al., 2022; Wei et al., 2022a; Wang et al., 2023). However, SFT also brings a long-standing and acute problem: Catastrophic Forgetting (CF) (French, 1993; Luo et al., 2023). Under continuous downstream gradient updates, the model often significantly loses the general capabilities acquired during the pre-training stage while improving performance on new tasks, thus forming the plasticity-stability dilemma (Kirkpatrick et al., 2016; Li and Hoiem, 2018).
Mainstream mitigation strategies primarily fall into two categories. The first involves regularization via distribution constraints, typically adding KL penalties relative to a reference model to limit output deviation (Schulman et al., 2017; Ouyang et al., 2022; Rafailov et al., 2023). While effective for stabilization, this approach incurs substantial computational and memory overhead by requiring a resident reference model, limiting its viability in full-parameter fine-tuning. The second category is data replay, which mixes pre-training corpora with task data to suppress drift (Rebuffi et al., 2017; Scialom et al., 2022). Although implementation-friendly, existing methods rely on static mixing ratios that overlook training dynamics: early stages demand strong drift suppression, whereas persistent high replay in later stages hinders new task adaptation. Consequently, static mixing suboptimally reduces a time-varying control problem to a rigid hyperparameter selection (Xie et al., 2023; Chen et al., 2023; Jain et al., 2024).
To efficiently resolve this dilemma, we revisit the theoretical foundations of distribution constraints. Although KL divergence is widely regarded as the canonical metric for quantifying distribution shift, its calculation imposes a substantial computational burden by requiring the concurrent maintenance of a reference model (Schulman et al., 2017). Through a theoretical decomposition of the KL divergence, we isolate its two constituent components: the cross-entropy between the reference and current policies, and the negative entropy of the current policy itself. Our empirical analysis yields a critical observation that the cross-entropy term remains comparatively stable throughout the fine-tuning process. In contrast, the fluctuations in output entropy account for the larger share of KL vari-ation. This finding indicates that output entropy functions as a lightweight, reference-free proxy for monitoring the representational integrity of the model (Holtzman et al., 2020). Consequently, we reframe the fine-tuning process from a static optimization problem into a dynamic control system. The primary objective shifts to minimizing task-specific loss while simultaneously constraining the entropic state of the model within a bounded equilibrium region derived from pre-training. This effectively suppresses implicit distribution drift without incurring the computational overhead associated with external reference models (Pereyra et al., 2017).
Guided by this formulation, we propose Entropic Control for Homeostatic Optimization (ECHO), a dynamic framework that turns data replay into feedback control. Unlike static mixing, ECHO monitors the absolute deviation between current prediction entropy and the pre-trained baseline. This introduces an elastic restoring force into optimization: the controller relaxes constraints to prioritize plasticity when the model is stable, but amplifies replay weight to pull parameters back toward the pre-training distribution when abnormal entropy deviations arise. This converts manual ratio tuning into an automated, self-correcting loop. The main contributions are as follows:
• We decompose the KL divergence and empirically show that output entropy accounts for the larger share of its variation, validating entropy as a lightweight, reference-free proxy for monitoring fine-tuning health.
• We introduce ECHO, a plug-and-play endogenous self-correction mechanism that treats the data replay weight as a control variable directly driven by entropy feedback.
• Extensive evaluations across diverse datasets show that ECHO consistently outperforms static mixing baselines, lying on, and in several comparisons extending, the observed plasticity-stability frontier alongside computation-heavy regularization methods, but with virtually negligible computational and memory overhead during optimization.
2.1 Regularization & Alignment
Regularization for continual learning traditionally relies on weight-space penalties, such as EWC (Kirkpatrick et al., 2016), SI (Zenke et al., 2017), and MAS (Aljundi et al., 2018), or function-space distillation methods like LwF (Li and Hoiem, 2018). In LLM fine-tuning, bounding the output distribution via KL divergence against a pre-trained reference model is standard practice (Ouyang et al., 2022), yet it effectively doubles computational and memory overhead. While recent reference-free alignment approaches, including ORPO (Hong et al., 2024) and SimPO (Meng et al., 2024), along with weight deviation penalties like RecAdam (Chen et al., 2020), mitigate these costs, they fundamentally rely on static coefficients or preset schedules. Consequently, they cannot regulate constraint intensity in response to real-time drift.
2.2 Data Replay & Mixing
Data replay is ubiquitous for mitigating forgetting, though standard industrial practices rely on static mixing ratios that rigidly constrain the plasticity-stability trade-off. Recent data-centric frameworks, notably DoReMi (Xie et al., 2023) and Data Mixing Laws (Ye et al., 2025), formally establish the impact of data weighting, with empirical scaling laws demonstrating that injecting even minimal pre-training data significantly curbs representational drift (Béthune et al., 2025). Advancing beyond static ratios, methods such as SuRe (Hazard et al., 2025) attempt to dynamically select replay samples based on surprise signals. Nevertheless, these strategies remain primarily open-loop. They crucially lack an intrinsic, closed-loop feedback mechanism capable of modulating replay intensity based on the model's instantaneous stability.
3 Methodology
In this section, we introduce ECHO, which reframes the plasticity-stability dilemma as a closed-loop control problem. We first identify output entropy as a reference-free indicator of distribution drift ( ), and then design a feedback controller that modulates the replay weight according to entropy deviation ( ).
3.1 Motivation and Empirical Validation
Let the pre-trained reference model be denoted by and the fine-tuned model at step t by . In standard Supervised Fine-Tuning, the objective is to optimize performance on a specific downstream dataset . To mitigate the risk of catastrophic
Early Entropy Deviation vs. Performance Degradation

| Statistical Metric | Value |
|---|---|
| Pearson Correlation (r) | -0.617 |
| Statistical Significance (p) | 0.014 |
Figure 1: Correlation analysis: early entropy deviation vs. final performance degradation. Results demonstrate that deviation from the entropy baseline is strongly correlated with the loss of general capabilities.
forgetting, a common practice involves constraining the model output on an anchor dataset to remain close to . The most rigorous measure for this distribution shift is the KL divergence averaged over the anchor distribution:
While theoretically sound, directly minimizing as a regularizer incurs substantial computational overhead. It necessitates a synchronous forward pass through the frozen reference model for every training batch, which effectively doubles the memory footprint and significantly increases the wall-clock time per iteration. To address this efficiency bottleneck, we decompose the KL divergence into its constituent mathematical components:
where denotes the cross-entropy and denotes the Shannon entropy. Equation 2 indicates that the total distribution drift is jointly governed by two distinct factors: the alignment of the predictive mean with the reference distribution and the intrinsic uncertainty of the current policy.
Theoretical Intuition. The cross-entropy measures alignment between the fine-tuned policy and reference likelihoods. Since SFT on high-quality instructions mainly adapts response style while preserving the syntax and world knowledge of the pre-trained backbone, this component is usually stable in the early stages.
Table 1: Distribution Shift Metrics. We report entropy and cross-entropy deviations during training, showing that entropy varies more than cross-entropy.
| Metric | Mean (± Std) | Ratio vs. |
|---|---|---|
| Cross-Entropy () | 0.0363 ± 0.027 | 1.00× |
| Output Entropy (H) | 0.0559 ± 0.024 | 1.54× |
| Statistical Significance (Paired t-test): , *** | ||
In contrast, the self-entropy term characterizes the spread of the distributional landscape. Catastrophic forgetting often induces two failure modes: diversity collapse, where the model overfits to narrow patterns and yields abnormally low entropy, and semantic dissolution, where internal representations drift toward high-entropy uniformity. Thus, serves as a sensitive indicator of representational degradation. Since cross-entropy is more stable, regulating entropic volatility addresses the larger share of 's variation, motivating our concept of Entropic Homeostasis.
Experimental Setup. To verify this hypothesis and quantify the relative contribution of the two terms, we conducted a controlled study using Qwen3-0.6B. The protocol involved a grid search across 32 configurations, varying learning rates and mixing ratios between instruction-specific and anchor data, ensuring the observations are not tied to a specific hyperparameter setting. We monitored two variables: early entropy deviation, defined as , and general capability retention, measured by MMLU accuracy at step 150.
Result Analysis. As illustrated in Figure 1, the empirical data reveals a moderate-to-strong and statistically significant negative correlation between the magnitude of early entropy deviation and the final performance retention. This robust inverse relationship suggests that detecting entropy drift serves as a reliable predictive proxy for anticipating catastrophic forgetting before the representational shift becomes irreversible.
Furthermore, we quantified the specific contribution of each term in Equation 2 to the total distribution drift. By measuring the mean absolute deviation of both output entropy and cross-entropy relative to their initial values across all 32 experimental runs, we can compare the contributions of the two terms to KL variation.
The statistical analysis in Table 1 reveals a clear stability disparity. The mean absolute deviation of

Figure 2: Overview of the Entropic Control for Homeostatic Optimization.
the output entropy term is approximately that of the cross-entropy term, indicating that during fine-tuning, the shape of model uncertainty changes far more than its fundamental semantic alignment. A paired t-test yields a p-value below , confirming that entropy fluctuations are a dominant observable component of KL variation in the SFT settings studied.
This discovery offers a key computational advantage. While cross-entropy remains expensive because it requires a frozen reference model, output entropy is directly produced during training from the current model logits already computed in the anchor-loss forward pass. Thus, constraining near its pre-trained equilibrium provides a practical way to curb distribution drift without additional memory or computational overhead. Entropy matching is necessary but not sufficient for distributional closeness, so ECHO uses it as a feedback signal rather than a guarantee.
3.2 The ECHO Framework
Building on the observation that entropy deviation tracks distribution drift, we propose the ECHO framework. This system reformulates the fine-tuning process as a closed-loop feedback control problem where the replay intensity is modulated based on real-time state estimation. The overall procedure is detailed in Figure 2.
The observable variable in our control loop is the prediction entropy on the anchor distribution. For a batch of data , we estimate the current entropic state as the expectation of the entropy over the valid tokens in the sequence:
This calculation is computationally efficient because it only requires the logits produced during the forward pass of the anchor loss.
Offline Reference Calibration. Before fine-tuning, we establish a homeostatic setpoint denoted as . We perform a one-time forward pass using the pre-trained model on a subset of anchor data to obtain the target equilibrium:
This scalar value represents the intrinsic uncertainty level of the original model. It is frozen and serves as the definitive reference point for the subsequent controller throughout the training.
3.2.1 The Elastic Feedback Loop
During training, the system continuously monitors the deviation between the current state and the reference. We define the error signal as the absolute deviation to ensure that we penalize both distribution collapse and high-entropy uniformity.
Elastic Actuation with Signal Smoothing. To mitigate the inherent stochastic noise associated with mini-batch optimization, we refrain from feeding the instantaneous error signal directly into the controller. Rapid fluctuations in batch composition can lead to erratic adjustments of the replay weight. To prevent this, we implement an EMA to estimate the smoothed entropy state . This acts as a low-pass filter that isolates the persistent drift trend from high-frequency batch variance:
(5) where is the momentum coefficient that controls the smoothing horizon. The error signal is then computed as .
Based on this filtered signal, the replay weight follows an elastic stiffness law:
Here, serves as a minimal basal rate ensuring basic data exposure to the anchor set, and represents the elastic stiffness of the system. To ensure numerical stability and prevent the replay loss from overwhelming the gradients, the saturation operator bounds within (line 14 of Algorithm 1). Note that , , , , and are fixed hyperparameters, whereas , , and are state variables driven deterministically by the observed entropy; the controller has no learnable parameters. Crucially, this formulation reduces the complexity of hyperparameter tuning. While the optimal static mixing ratio often varies drastically across different datasets and learning rates, characterizes the sensitivity to distribution drift, and the effective weight auto-adjusts with the magnitude of the smoothed error . In practice, was set by a one-time sensitivity sweep on Qwen3-1.7B (Section 5) and kept fixed in all experiments, without task- or backbone-specific retuning.
3.2.2 Optimization Objective
The objective function couples the anchor constraint to the current stability of the model by incorporating an elastic feedback-driven weight that responds to smoothed entropic deviations:
This mechanism creates a self-regulating optimization landscape. When the model remains stable and the error is near zero, relaxes to its basal level. This maximizes plasticity for learning new tasks. Conversely, when significant drift occurs and increases, the restoring force dominates. This increases the weight of the anchor loss and pulls the model back toward the safe manifold of the pre-trained distribution. This achieves a balance between plasticity and stability that static data mixing cannot replicate.
The complete training procedure of ECHO, including entropy calibration, EMA-based state estimation, and feedback-driven replay weighting, is summarized in Algorithm 1.
Algorithm 1 Entropic Control for Homeostatic Optimization
1: Input: Pre-trained model , SFT dataset , Anchor dataset
2: Parameters: Basal weight , Gain , Bounds , Momentum
3: Calibration: Compute
4: Initialize , smoothed entropy
5: for step to do
6: Sample batches ,
7: // Forward pass on anchor data
8: Compute logits and loss on
9: // State Estimation with EMA Smoothing
10: Estimate current batch entropy
11: Update smoothed state:
12: Compute error signal
13: // Feedback Control & Optimization
14: Compute weight
15:
16: Update
17: end for
4 Experiments
This section presents an empirical assessment of the proposed ECHO framework across high-interference fine-tuning scenarios. We evaluate three representative domains: code generation, mathematical, and logical inference, each requiring substantial parametric adaptation and thus prone to catastrophic forgetting. By reframing alignment as closed-loop homeostatic optimization, we address the following research questions:
• RQ1: Disturbance Rejection & Stability. How does the entropic loop suppress drift and preserve general capabilities?
• RQ2: Dynamic Tracking & Plasticity. Can the ECHO controller retain sufficient gradient plasticity to reach or exceed unconstrained fine-tuning on downstream objectives?
• RQ3: Operational Robustness. Does the entropy-driven mechanism remain effective across hyperparameters such as data mixing ratios, compared to static baselines or reference models?
4.1 Experimental Setup
Models and Baselines. To evaluate the universality and scalability of our approach, we employed Qwen3-0.6B (Yang et al., 2025) and Llama-3.2-3B (Team, 2024) as the primary foundation models. Additionally, we extended our analysis to Qwen3-1.7B, as well as larger-scale architectures including Qwen3-8B and Gemma2-9B (Gemma Team et al., 2024), to verify the method's robustness and scaling potential across different parameter scales and tokenizer designs. We compared ECHO against five representative baselines:
• Vanilla SFT: Performs full-parameter fine-tuning on task-specific data. This serves as a control group to measure the upper bound of forgetting when stability constraints are absent.
• Static Mixing (Scialom et al., 2022): Incorporates anchor data at a fixed replay ratio, representing industrial practice to mitigate forgetting via an open-loop and fixed replay schedule.
• Data Mixing Laws: Searches for the data composition ratio based on pilot experiments with a 0.6B model, fitting performance curves to balance task performance and capability retention.
• LoRA (Hu et al., 2022): Freezes the backbone and optimizes low-rank adapters. By confining updates to a low-dimensional manifold, it serves as a resource-efficient baseline that implicitly mitigates drift through structural constraints.
• KL-SFT: Adds a KL divergence term toward the frozen base model. This bounds deviation from the pre-trained distribution to preserve capabilities.
Datasets. Our experiments spanned three independent domains, consistently using Alpaca-GPT4 (Peng et al., 2023) as the anchor data source to preserve general instruction-following capabilities. The tasks were constructed as follows:
• Code: Uses a subset of Magicoder Evol Instruct (Wei et al., 2023), focusing on code logic and generation capabilities.
• Math: Utilizes the Meta Math QA dataset (Yu et al., 2023), containing complex mathematical reasoning chains with step-by-step solutions.
• Reasoning: Employs the Open Platypus dataset (Lee et al., 2023), focusing on logical inference and scientific reasoning.
Implementation Details. All models were trained by AdamW (Loshchilov and Hutter, 2019) optimizer with a global batch size of 32. The learning rates were set to for the 0.6B model and for the 1.7B and 3B models. For ECHO, we set the control gain , the base weight , the saturation limit , and (see Section 5 for the sensitivity analysis). We employed the lm-evaluation-harness framework for assessment, using MMLU (Hendrycks et al., 2021) to gauge general capabilities, while HumanEval (Chen et al., 2021), GSM8K (Cobbe et al., 2021), and HellaSwag (Zellers et al., 2019) were used to evaluate domain-specific performance. For all mixed training setups, we constructed datasets totaling 40,000 samples to ensure consistent training steps across all methods.
4.2 Main Results
Table 2 presents the evaluation results across the Code, Math, and Reasoning domains. We analyze the performance from two complementary perspectives: plasticity and stability.
Plasticity: Adaptation to Downstream Tasks. A primary concern with regularization-based methods is whether constraints impede the learning of new knowledge. As shown in Table 2, ECHO consistently achieves performance comparable to, and in several cases surpassing, unconstrained Vanilla SFT. For instance, on the Llama-3.2-3B architecture, our method achieves the highest accuracy on the GSM8K Math task (59.34%), outperforming Vanilla SFT (58.83%). In contrast, Data Mixing Laws exhibits signs of under-fitting on this complex reasoning task (55.57%), suggesting that a fixed replay ratio may introduce excessive gradient interference during critical learning phases. Similarly, on the Qwen3-0.6B Code task, our method achieves a HumanEval pass@1 of 38.41%, outperforming Vanilla SFT (31.10%). This indicates that the dynamic weight permits the necessary parameter updates for domain adaptation without the rigid constraints of methods like LoRA, which lags in downstream performance.
Stability: Mitigation of Forgetting. Vanilla SFT suffers from catastrophic forgetting, evidenced by MMLU declines. While Data Mixing Laws and KL-SFT alleviate this, they often compromise downstream adaptation. On Llama-3.2-3B,
Table 2: Main Results on Qwen3-0.6B and Llama-3.2-3B. We report raw scores and the improvement () over the Base Model. Code, Math, and Reasoning are independent single-run experiments from the same checkpoint, each mixed with Alpaca-GPT4 anchor data; MMLU is averaged over the three. Bold: best; underline: second best.
| Method | Code | Math | Reasoning | General Stability | ||||
|---|---|---|---|---|---|---|---|---|
| HumanEval ↑ | Δ | GSM8K ↑ | Δ | HellaSwag ↑ | Δ | MMLU ↑ | Δ | |
| Backbone: Qwen3-0.6B | ||||||||
| Base Model | 18.90 | — | 10.39 | — | 47.35 | — | 49.17 | — |
| Vanilla SFT | 31.10 | +12.20 | 55.49 | +45.10 | 48.55 | +1.20 | 42.91 | -6.26 |
| Data Mixing Laws | 37.80 | +18.90 | 55.27 | +44.88 | 50.81 | +3.46 | 43.38 | -5.79 |
| LoRA | 23.17 | +4.27 | 17.51 | +7.12 | 48.79 | +1.44 | 44.81 | -4.36 |
| KL-SFT | 35.61 | +16.71 | 53.35 | +42.96 | 48.09 | +0.74 | 44.04 | -5.13 |
| ECHO (Ours) | 38.41 | +19.51 | 56.48 | +46.09 | 51.00 | +3.65 | 43.88 | -5.29 |
| Backbone: Llama-3.2-3B | ||||||||
| Base Model | 26.83 | — | 9.78 | — | 55.88 | — | 55.22 | — |
| Vanilla SFT | 45.12 | +18.29 | 58.83 | +49.05 | 76.09 | +20.21 | 48.89 | -6.33 |
| Data Mixing Laws | 44.51 | +17.68 | 55.57 | +45.79 | 75.99 | +20.11 | 51.04 | -4.18 |
| LoRA | 31.70 | +4.87 | 45.64 | +35.86 | 73.97 | +18.09 | 55.04 | -0.18 |
| KL-SFT | 44.63 | +17.80 | 55.29 | +45.51 | 71.05 | +15.17 | 54.47 | -0.75 |
| ECHO (Ours) | 45.73 | +18.90 | 59.34 | +49.56 | 76.44 | +20.56 | 51.53 | -3.69 |
although KL-SFT achieves the strongest general retention, it fails to match ECHO's specialized gains. ECHO provides a more balanced trade-off by intensifying constraints only upon detecting entropy deviation. While LoRA maintains peak stability via its frozen backbone, its inability to master complex new tasks underscores the limits of structural constraints. ECHO lies on, and in several comparisons extends, the observed plasticity-stability frontier—maximizing task acquisition while keeping general capabilities within a robust homeostatic range.
Computational Cost. Unlike KL-SFT, ECHO needs neither a resident reference model nor an extra forward pass: the entropy comes from logits already computed for the anchor loss (Eq. 3), adding only an entropy reduction, an EMA update, and a scalar control law. In our runs, its memory footprint and wall-clock time were nearly identical to those of Static Mixing.
4.3 Robustness to Data Mixing Ratios
In replay-based fine-tuning, the mixing ratio of new and old data (Mixing Ratio, ) often determines the model's trade-off between “catastrophic forgetting” and “under-fitting”. To verify whether ECHO reduces dependence on this sensitive hyperparameter, we compared the performance boundaries of dynamic strategy and static mixing on Code, Math, and Reason domains by traversing from 0.25 to 4.0.
Figure 3 shows that ECHO achieved downstream task performance superior to or equal to Static Mixing at every mixing ratio, consistently improving over the static baseline. In the Math reasoning task, ours improved GSM8K accuracy to at , higher than the baseline's at the same ratio, and maintained this advantage under high data sparsity at . This indicates that the dynamic weight introduced by ECHO is not a simple constraint, but optimizes the training trajectory through precise temporal adjustment, achieving better convergence without sacrificing new knowledge learning.
Both methods share a similar dependence on (e.g., Math peaks at and drops at ), but ECHO is never worse than Static Mixing across all 21 configurations: rather than relying on a single “sweet spot”, entropy feedback yields a consistent upward shift. This robustness stems from entropy feedback: when anchor data is scarce (large ) and causes entropy drift, the controller raises to strengthen protection. Even at , where replay data is severely lacking, ECHO retains its advantage on all three downstream tasks. Thus, whichever ratio is chosen, adding entropy feedback is a safe improvement over static mixing.
4.4 Generalization and Scaling Analysis
To evaluate ECHO in complex multi-task environments, we conducted experiments using a balanced

Figure 3: Sensitivity Analysis of Data Proportioning. Performance across Code, Math, and Reasoning domains as mixing ratio varies. ECHO matches or outperforms Static Mixing at every ratio in all three domains.
Table 3: Performance across Large-Scale Models. We report task-specific accuracy and MMLU scores. Results show that ECHO effectively scales to 8B and 9B parameters across different architectures. All results are from a single run.
| Backbone | Method | Code | Math | Reason | MMLU |
|---|---|---|---|---|---|
| Qwen3-8B | Static Mix | 64.02 | 80.89 | 78.74 | 61.61 |
| ECHO (Ours) | 68.90 | 81.80 | 78.88 | 74.55 | |
| Gemma2-9B | Static Mix | 51.83 | 77.79 | 79.83 | 69.47 |
| ECHO (Ours) | 53.66 | 78.54 | 80.63 | 70.00 |
1:1:1:1 mixture of coding, mathematics, reasoning, and a general anchor set. This setting simulates high-interference training, where models must acquire specialized skills without eroding foundational knowledge. The controller modulates the weight of the anchor stream relative to the three task-specific streams, and we compare against Static Mixing on the same mixture.
Results in Table 3 show that ECHO outperforms static mixing on both the 8B and 9B backbones. In the 1:1:1:1 regime, static mixing struggles to balance competing domain requirements, often causing collapse in general knowledge, especially when rigid replay ratios fail against intensive downstream gradients. In contrast, ECHO identifies representational drift at each step and adjusts replay weights, shielding the pre-trained distribution while facilitating specialized skill acquisition. Results on Qwen3-8B and Gemma2-9B confirm cross-architecture robustness: despite differences in tokenizer designs and pre-training objectives, entropic signals remain informative, enabling feedback control without architecture-specific tuning. This highlights ECHO's scaling potential: by replacing manual data proportioning with closed-loop control, a single configuration can adapt to backbones while remaining on the observed plasticity-stability frontier.
(a) Entropy Trajectories

(b) Entropy Difference
(c) Controller Response
Figure 4: Visualization of training dynamics. (a) Entropy trajectories: Ours maintains lower anchor-data uncertainty than Vanilla SFT. (b) Negative entropy difference indicates suppression of forgetting. (c) Adaptive weight starts high to protect early stability, then adjusts to balance task learning and retention.
4.5 Qualitative Analysis
To understand the working mechanism of ECHO, we analyze the temporal dynamics of key indicators in training, as visualized in Figure 4.
Suppression of Entropy Drift. Figures 4(a) and (b) compare the entropy trajectories of our method against Vanilla SFT. In the uncontrolled baseline, the prediction entropy on anchor data rises, indicating that the model becomes increasingly uncertain about the pre-training distribution as it overfits to the new task. In contrast, our method maintains the entropy at a consistently lower level. The persistent negative difference in Figure 4(b) demonstrates that the feedback loop actively suppresses this uncertainty. By forcing the model to retain

Figure 5: Parameter sensitivity analysis on Qwen3-1.7B. Left: Base Weight modulates the static stability-plasticity trade-off. Right: Entropy Scale acts as a dynamic regularizer; increasing restores general capabilities but may constrain new learning if the penalty becomes excessive.
high confidence on anchor data, the system effectively locks the representational manifold in a safe homeostatic interval throughout the fine-tuning.
Adaptive Regulation Mechanism. The real-time response of the penalty weight , shown in Figure 4(c), reveals an intuitive progressive adaptation strategy. At the onset of training, we observe a sharp spike in . This high initial weight acts as a strong protective barrier, preventing the sudden distributional shock of new data from disrupting existing knowledge. As the model gradually reconciles the new instructions with its prior knowledge, automatically stabilizes at a lower maintenance level. This transition allows the focus to shift progressively toward learning new downstream tasks while keeping anchor loss within a controlled bound. Crucially, this mechanism differs from simple learning rate decay; if the model encounters difficult batches that threaten stability later in training, the controller instantly increases to re-impose constraints, ensuring long-term robustness without manual scheduling.
5 Hyperparameter Sensitivity Analysis
To further examine the robustness of ECHO, we conduct a hyperparameter sensitivity study on Qwen3-1.7B. We vary the basal anchoring weight and the proportional gain to analyze how static anchoring and dynamic entropy feedback jointly regulate the stability-plasticity trade-off. Results are shown in Figure 5.
As illustrated in Figure 5 (Left), the Base Weight governs the stability-plasticity dilemma: increasing from 0.3 to 1.0 raises general capability retention (MMLU, 42.4→44.2), while new task acquisition (HumanEval) decreases monotonically from 46.0 to 42.4 over ; beyond , MMLU no longer improves (43.3 at ). This confirms that explicitly controls the intransigence of the model against the pre-training distribution; a lower value facilitates rapid adaptation at the risk of forgetting, whereas a higher value enforces rigidity.
In contrast, the Entropy Scale exhibits a threshold-based regulatory behavior, acting as a dynamic safety valve (Figure 5, Right). At lower scales, the feedback signal proves insufficient to counteract distribution drift, resulting in suboptimal retention. Elevating to 10.0 imposes stricter entropic constraints and raises MMLU from 42.9 (at ) to 44.6 by penalizing deviations from the baseline manifold. However, excessive regularization narrows the optimization landscape, marginally hindering the learning of complex reasoning patterns required for code generation. Consequently, we identified the configuration of and as default. This setting effectively mitigates catastrophic forgetting through sufficient entropic feedback without imposing excessive rigidity that would impede the acquisition of downstream competencies, thereby achieving a balanced trade-off between maintaining general knowledge and learning specific tasks.
6 Conclusion
In this paper, we address catastrophic forgetting in supervised fine-tuning with ECHO, a closed-loop framework that regulates replay weights via stability signals. By linking prediction entropy to distribution drift, ECHO uses output entropy as an efficient, reference-free KL surrogate, strengthening replay only under deviations from the pre-trained equilibrium. Experiments from Qwen3-0.6B to Gemma2-9B across math, code, and reasoning show that ECHO alleviates the “plasticity-stability” dilemma of static mixing, preserving general capabilities while improving downstream adaptation without frozen reference models.
Limitations
This paper focuses on mitigating catastrophic forgetting during supervised fine-tuning and validates the effectiveness of ECHO across different model scales and multiple high-interference tasks. Nevertheless, several directions remain worth further exploration. First, we use output entropy as a lightweight stability signal to avoid the overhead of frozen reference models. While this signal is supported by our theoretical analysis and empirical results, future work can further examine its applicability under longer training horizons, larger model scales, and more complex data distributions. Second, our experiments mainly cover representative high-interference scenarios, including code generation, mathematical reasoning, and logical inference. Future work can extend ECHO to broader continual alignment settings, such as multilingual instruction tuning, safety preference optimization, and multimodal model updating. In addition, the current implementation adopts a simple proportional control law to regulate replay weights, which helps preserve efficiency and interpretability. Exploring adaptive control gains or richer control strategies may bring further gains in specific scenarios.
Impact Statement
ECHO aims to make continual fine-tuning of large language models more stable and resource-efficient. By using an entropy-based feedback signal instead of a frozen reference model, ECHO reduces the memory and computational overhead required to preserve general capabilities during task adaptation. This can help researchers and practitioners with limited hardware resources update models more conveniently and provides a more sustainable solution for continual model optimization in specialized domains. The framework also supports more reliable deployment by mitigating catastrophic forgetting when models adapt to new tasks, thereby reducing the risk of unintended degradation in general capabilities after fine-tuning. Preserving general capabilities while improving downstream performance is practically valuable for long-term model maintenance and continual alignment. More broadly, ECHO offers a lightweight closed-loop perspective that encourages future research on adaptive training mechanisms balancing plasticity, stability, and efficiency.
References
Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelears. 2018. Memory aware synapses: Learning what (not) to forget. In ECCV, volume 11207, pages 144–161.
Louis Béthune, David Grangier, Dan Busbridge, Eleonora Gualdoni, Marco Cuturi, and Pierre
Ablin. 2025. Scaling laws for forgetting during finetuning with pretraining data injection. In ICML.
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In NeurIPS.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Pondé de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Joshua Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. 2021. Evaluating large language models trained on code. CoRR.
Mayee F. Chen, Nicholas Roberts, Kush Bhatia, Jue Wang, Ce Zhang, Frederic Sala, and Christopher Ré. 2023. Skill-it! A data-driven skills framework for understanding and training language models. In NeurIPS.
Sanyuan Chen, Yutai Hou, Yiming Cui, Wanxiang Che, Ting Liu, and Xiangzhan Yu. 2020. Recall and learn: Fine-tuning deep pretrained language models with less forgetting. In EMNLP, pages 7870–7881.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. CoRR.
Robert M. French. 1993. Catastrophic interference in connectionist networks: Can it be predicted, can it be prevented? In NeurIPS, pages 1176–1177.
Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, et al. 2024. Gemma 2: Improving open language models at a practical size. CoRR, abs/2408.00118.
Hugo Hazard, Zafeirios Fountas, Martin A Benfeghoul, Adnan Oomerjee, Jun Wang, and Haitham Bou-Ammar. 2025. SuRe: Surprise-driven prioritised replay for continual LLM learning. CoRR.
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding. In ICLR.
Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. 2020. The curious case of neural text degeneration. In ICLR.
Jiwoo Hong, Noah Lee, and James Thorne. 2024. ORPO: monolithic preference optimization without reference model. In EMNLP, pages 11170–11189.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In ICLR.
Neel Jain, Ping-yeh Chiang, Yuxin Wen, John Kirchenbauer, Hong-Min Chu, Gowthami Somepalli, Brian R. Bartoldson, Bhavya Kailkhura, Avi Schwarzschild, Aniruddha Saha, Micah Goldblum, Jonas Geiping, and Tom Goldstein. 2024. NEFTune: Noisy embeddings improve instruction finetuning. In ICLR.
Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. 2020. Scaling laws for neural language models. CoRR.
James Kirkpatrick, Razvan Pascanu, Neil C. Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. 2016. Overcoming catastrophic forgetting in neural networks. CoRR.
Ariel N Lee, Cole J Hunter, and Nataniel Ruiz. 2023. Platypus: Quick, cheap, and powerful refinement of LLMs. CoRR.
Zhizhong Li and Derek Hoiem. 2018. Learning without forgetting. IEEE Trans. Pattern Anal. Mach. Intell., 40(12):2935–2947.
Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In ICLR.
Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. 2023. An empirical study of catastrophic forgetting in large language models during continual fine-tuning. CoRR.
Yu Meng, Mengzhou Xia, and Danqi Chen. 2024. SimPO: Simple preference optimization with a reference-free reward. In NeurIPS.
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F. Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback. In NeurIPS.
Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. 2023. Instruction tuning with GPT-4. CoRR.
Gabriel Pereyra, George Tucker, Jan Chorowski, Lukasz Kaiser, and Geoffrey E. Hinton. 2017. Regularizing neural networks by penalizing confident output distributions. In ICLR.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning, Stefano Ermon, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. In NeurIPS.
Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H. Lampert. 2017. iCaRL: Incremental classifier and representation learning. In CVPR, pages 5533–5542.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. CoRR.
Thomas Scialom, Tuhin Chakrabarty, and Smaranda Muresan. 2022. Fine-tuned language models are continual learners. In EMNLP, pages 6107–6122.
Llama Team. 2024. The Llama 3 herd of models. CoRR.
Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. Self-Instruct: Aligning language models with self-generated instructions. In ACL, pages 13484–13508.
Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. 2022a. Finetuned language models are zero-shot learners. In ICLR.
Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, Ed H. Chi, Tatsunori Hashimoto, Oriol Vinyals, Percy Liang, Jeff Dean, and William Fedus. 2022b. Emergent abilities of large language models. Trans. Mach. Learn. Res., 2022.
Yuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding, and Lingming Zhang. 2023. Magicoder: Empowering code generation with OSS-Instruct. CoRR.
Sang Michael Xie, Hieu Pham, Xuanyi Dong, Nan Du, Hanxiao Liu, Yifeng Lu, Percy Liang, Quoc V. Le, Tengyu Ma, and Adams Wei Yu. 2023. DoReMi: Optimizing data mixtures speeds up language model pretraining. In NeurIPS.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei
Zhang, Jian Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. 2025. Qwen3 technical report. CoRR.
Jiasheng Ye, Peiju Liu, Tianxiang Sun, Jun Zhan, Yunhua Zhou, and Xipeng Qiu. 2025. Data mixing laws: Optimizing data mixtures by predicting language modeling performance. In ICLR.
Longhui Yu, Weisen Jiang, Han Shi, Jincheng Yu, Zhengying Liu, Yu Zhang, James T Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. 2023. MetaMath: Bootstrap your own mathematical questions for large language models. CoRR.
Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. HellaSwag: Can a machine really finish your sentence? In ACL, pages 4791–4800.
Friedemann Zenke, Ben Poole, and Surya Ganguli. 2017. Continual learning through synaptic intelligence. In ICML, volume 70, pages 3987–3995.