Abstract
Large Language Models (LLMs) store vast amounts of knowledge within their internal parameters, yet transferring this knowledge across models of different scales remains a significant challenge. This paper identifies a phenomenon termed "neural incompatibility," where the internal parameter structures of models—such as Llama-2-7B and 13B—are fundamentally divergent. We introduce LaTen (Locate-Then-Align), a framework that utilizes lightweight hypernetworks to align these disparate parametric spaces. By locating task-specific "knowledge neurons" and performing pre-injection alignment, LaTen enables efficient knowledge transfer with minimal data, significantly outperforming traditional distillation methods in low-resource settings.
Introduction
While traditional "Knowledge Distillation" relies on symbolic language—where a smaller model mimics a larger model's text outputs—this process is computationally expensive and slow. A more direct approach is Parametric Knowledge Transfer (PKT): moving the actual "knowledgeable" weights from a large model to a smaller one. However, models of different sizes possess different dimensions and layer counts, leading to a structural mismatch. This research investigates why direct weight transfer often fails and proposes a method to bridge this "neural incompatibility."
The LaTen Framework: Locate-Then-Align
To address the failures of direct injection, the authors propose a shift from Post-Align PKT (injecting then fine-tuning) to Pre-Align PKT (aligning before injection). Their solution, LaTen, follows a three-step process:
- Locate: Using neuron-level attribution, the system identifies specific "knowledge neurons" within the larger model ($M_l$) relevant to a specific task, such as mathematics or coding.
- Align: Because the larger model's parameters do not share the same space as the smaller model's ($M_s$), LaTen employs a lightweight hypernetwork (a two-layer MLP). This network projects high-dimensional parameters into the target space using fewer than 100 samples.
- Inject: The aligned parameters are merged into the smaller model, enhancing its capabilities without standard, heavy fine-tuning.
The "Neural Incompatibility" Gap
The study's most striking finding is that models of different scales are fundamentally different in how they represent information. Even after alignment, weights from a 13B model are often less effective for a 7B model than weights derived from the 7B model itself. This suggests that as models scale, they develop unique internal "ethologies" rather than just growing larger.
Key Insights:
- Alignment is Mandatory: Injecting unaligned weights from a large model into a small one acts as a "poison," often dropping accuracy to near zero. Alignment is a functional requirement, not just an optimization.
- Attention Bottlenecks: Using Centered Kernel Alignment (CKA), the researchers found that while Feed-Forward Networks (FFNs) show some similarity across scales, Multi-Head Self-Attention (MHSA) modules are highly idiosyncratic and difficult to transfer.
Experimental Results
The researchers evaluated LaTen across benchmarks including MMLU (general knowledge), GSM8K (math), and HumanEval (coding).
- Performance Boost: On GSM8K, LaTen improved the Llama-2-7B-Chat model score from 16.07 to 20.47 with minimal alignment steps.
- Data Efficiency: In low-data scenarios (80 samples), LaTen outperformed established distillation methods like SeqKD and GKD, which failed to move the needle on the base model's performance.
- Stability: Unlike previous PKT methods such as "SEEKING," which caused performance drops in MMLU due to instability, LaTen maintained or improved performance across the board.
Conclusion and Future Work
While LaTen provides a path forward, "Neural Incompatibility" remains a significant hurdle. A smaller model cannot perfectly "digest" the parameters of a much larger one due to structural divergence. Future research will explore whether these rules hold for 70B+ models and attempt to develop "language-free" alignment that relies purely on mathematical projections without text-based supervision.
Summary updated