Papers
Topics
Authors
Recent
Search
2000 character limit reached

GAIN: Multiplicative Modulation for Domain Adaptation

Published 6 Apr 2026 in cs.LG and cs.AI | (2604.04516v1)

Abstract: Adapting LLMs to new domains causes forgetting because standard methods (full fine-tuning, LoRA) inject new directions into the weight space. We propose GAIN, which re-emphasizes existing features through multiplicative modulation W_new = S * W. The learned diagonal matrix S is applied to the attention output projection and optionally the FFN. The principle mirrors gain modulation in neuroscience, where neurons adapt to context by scaling response strength while preserving selectivity. We evaluate GAIN on five models from four families (774M to 70B), adapting sequentially across eight domains. GAIN-FFN matches LoRA's in-domain adaptation, but their effects on previously trained domains are opposite: GAIN-FFN improves them by 7-13% (validation PPL), while LoRA degrades them by 18-36%. Downstream accuracy confirms the pattern: for example, after seven sequential adaptations on Qwen2.5, GAIN-FFN degrades BoolQ by only 0.8% while LoRA damages it by 14.9%. GAIN adds 46K-230K parameters per model and can be absorbed into the pretrained weights for zero inference cost.

Summary

  • The paper introduces a multiplicative adaptation approach (GAIN) that prevents catastrophic forgetting by preserving the pretrained weight subspace.
  • Empirical results show that GAIN-FFN improves cross-domain performance with 7–13% better perplexity compared to additive methods like LoRA.
  • The method eliminates the traditional adaptation–forgetting tradeoff and integrates seamlessly with existing models without inference overhead.

GAIN: Multiplicative Modulation for Domain Adaptation

Motivation and Problem Statement

Domain adaptation in LLMs is severely limited by catastrophic forgetting—adaptation to new domains, especially by means of full fine-tuning or parameter-efficient methods such as LoRA, often degrades the model's performance on previously mastered domains. This degradation primarily stems from the injection of new directions ("intruder dimensions") in the weight space outside the pretrained feature subspace, as shown in prior literature (Shuttleworth et al., 2024). Existing approaches, including regularized LoRA, can mitigate but not eliminate this effect, and always trade-off in-domain adaptation for stability.

GAIN (Gain modulation for Adaptation Intended for No-forgetting) addresses this structural flaw by proposing a strictly multiplicative approach to LLM adaptation. The method exploits the capacity of pretrained models to re-emphasize or suppress features already encoded, avoiding the introduction of new, potentially destructive directions. This is formally underpinned by the insight that scaling model weights via a diagonal matrix SS leaves the model's output subspace invariant, precluding structural forgetting.

Methodology

Multiplicative Modulation Principle

GAIN reformulates adaptation as multiplicative scaling:

Wnew=Sâ‹…W,W_{\text{new}} = S \cdot W,

where WW is a pretrained weight matrix and SS is a learned diagonal matrix (parameters sis_i with S=diag(s1,...,sn)S = \text{diag}(s_1, ..., s_n)). This is instantiated for both the attention output projection (GAIN) and the feed-forward down-projection (GAIN-FFN):

  • GAIN: Scales the rows of the attention output projection WOW_O.
  • GAIN-FFN: Scales the columns of the FFN down-projection WdownW_{\text{down}}.

As all pretrained model parameters are frozen, only the scaling matrices are learned. Post-training, SS is absorbed into the existing weights, incurring zero inference overhead.

Structural Forgetting Prevention

The central proposition is that for any diagonal SS, the output subspace of Wnew=S⋅W,W_{\text{new}} = S \cdot W,0 remains a subset of the pretrained Wnew=S⋅W,W_{\text{new}} = S \cdot W,1—ensuring that all outputs are contained within the original output space. Formally,

  • Left-multiplication by Wnew=Sâ‹…W,W_{\text{new}} = S \cdot W,2 preserves the row space: Wnew=Sâ‹…W,W_{\text{new}} = S \cdot W,3,
  • Right-multiplication preserves the column space: Wnew=Sâ‹…W,W_{\text{new}} = S \cdot W,4.

This guarantees that no intruder dimensions are created, structurally preventing both backward forgetting and forward interference.

Empirical Analysis

Single-Domain Adaptation

Evaluation across 774M to 70B parameter LLMs shows that GAIN-FFN matches or exceeds LoRA's in-domain adaptation strength, with strikingly different effects on cross-domain generalization. While LoRA degrades performance on previous domains by Wnew=S⋅W,W_{\text{new}} = S \cdot W,5--Wnew=S⋅W,W_{\text{new}} = S \cdot W,6 (PPL), GAIN-FFN consistently yields positive transfer, improving prior domain perplexity by Wnew=S⋅W,W_{\text{new}} = S \cdot W,7–Wnew=S⋅W,W_{\text{new}} = S \cdot W,8. These effects are robust at both default and aggressive learning rates; LoRA demonstrates instability, catastrophic forgetting, or overfitting with increased rates, while GAIN maintains in-domain improvement and negligible cross-domain loss increase. Figure 1

Figure 1: Per-token loss change on four unrelated domains after medical adaptation (GPT-2 Large). GAIN (Wnew=Sâ‹…W,W_{\text{new}} = S \cdot W,9) is WW0 narrower than LoRA (WW1).

Sequential Multi-Domain Adaptation

The stability-plasticity dilemma is empirically resolved in the multiplicative regime. Across sequential adaptation tasks (eight diverse domains, five model architectures), GAIN produces cumulative positive transfer to earlier domains, whereas LoRA rapidly accumulates catastrophic interference. GAIN’s post-adaptation PPL consistently improves for every domain previously encountered, whereas each subsequent LoRA adaptation overwrites prior knowledge.

Forgetting–Adaptation Tradeoff

LoRA and similar additive methods universally manifest a forgetting–adaptation Pareto frontier: reducing one exacerbates the other, requiring hyperparameter tuning and explicit regularization (e.g., L2, domain boundary signals). GAIN eliminates this tradeoff—strong adaptation and domain retention are simultaneously achievable, without regularization or tuning. The GAIN adaptation/retention curve exists entirely in the beneficial regime; increasing learning rates amplifies both current and previous domain performance improvements (within safe bounds). Figure 2

Figure 2: LoRA's forgetting-adaptation tradeoff. Red points are LoRA with different learning rates and L2 regularization strengths (WW2). GAIN-FFN (blue stars) operates in a different regime—the entire curve lies above zero.

Loss Landscape Analysis

Loss landscape interpolations reveal that GAIN maintains flat cross-domain loss when traversing the adaptation direction, while LoRA produces sharp increases in cross-domain error as one moves away from the pretrained weights. In the multiple-domain case, GAIN sketches an orthogonal structure—simultaneous adaptation in two (or more) domains imposes minimal cross-domain cost, as the scaling directions are mostly uncorrelated. Figure 3

Figure 3: Loss landscape interpolation on Mistral-7B. Left: in-domain PPL decreases for both. Right: GAIN's cross-domain loss is flat; LoRA's rises steeply.

Figure 4

Figure 4: Cross-domain loss when WikiText and Medical adaptations are combined. Left: GAIN—uniform blue; any combination preserves LAMBADA. Right: LoRA—red regions appear when adaptations are combined.

Extension: Downstream Benchmarks and Scaling

GAIN-FFN consistently preserves or boosts accuracy on out-of-domain benchmarks (ARC, BoolQ, HellaSwag, PIQA, WinoGrande, etc.), even as LoRA damages them (up to WW3 degradation on BoolQ; Table 4 of the main text). This behavior holds across small and large models (e.g., GPT-2 Large, Llama-2-70B), with GAIN's parameter count modest and constant per layer. Even with WW4 more adaptation data, positive transfer persists.

Theoretical Scope and Broad Implications

The elimination of structural forgetting is attributed to the multiplicative parameterization—not to the precise matrices chosen. Comparative experiments with other multiplicative methods, such as (IA)WW5 (Chakrabarty et al., 2022), confirm that scaling keys or activations, rather than outputs, yields comparable no-forgetting properties. This isolates the principle—multiplicative modulation as structural safeguard—rather than any specific parameterization, as the decisive factor.

Limitations and Future Directions

GAIN's preservation guarantee presumes that pretrained features suffice for the new domain; it cannot synthesize genuinely new semantic features absent from WW6. Empirical results suggest that scaling is sufficient for very diverse domains (medical, financial, QA), but scenarios where new concepts must be composed or invented might expose a ceiling. Further, adaptation sequences longer than eight domains could necessitate regularization or normalization to ensure scaling factors remain positive and within a reasonable range, particularly at aggressive learning rates.

Conclusion

GAIN introduces a principled multiplicative adaptation protocol for LLMs, eliminating structural forgetting by construction. Strong numerical results demonstrate simultaneous gains in domain adaptation and cross-domain retention, with all retention/adaptation tradeoff curves compressed into the strictly beneficial regime. This multiplicative design paradigm is independently validated across model families, domains, parameter counts, and data scales. The main implication is that, for continual and parameter-efficient adaptation of LLMs, structurally preserving the pretrained space is both necessary and sufficient to break the adaptation–forgetting bottleneck that plagues additive approaches.

These findings open theoretical and practical avenues: hybridizing multiplicative and sparse additive adaptation for truly new features, further understanding feature sharing/orthogonality in learned LLM representations, and extending positive transfer regimes to even broader continual learning scenarios.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.