TL;DR
The paper introduces KEPT (Efficient Knowledge Preservation for Transformation), a novel recipe to port pretrained large language models into the standardized Llama architecture template without expensive retraining. Using this method, the authors release Llamion, a 14B-parameter model family that fully recovers the capabilities of Orion-14B (including zero-shot capabilities like coding and 200K long-context handling) in just four days on a single A100 GPU.
What Problem Does This Paper Address?
As the open-source AI community has converged on a dominant architecture template (decoder-only, RoPE, RMSNorm, SwiGLU), older or third-party models built on alternative choices (like LayerNorm or custom attention layouts) become increasingly difficult to maintain. They often require setting trust_remote_code=True, making them incompatible with mainstream deployment stacks and leaderboards.
Converting these models to a standard template typically relies on uptraining—continued pretraining on a new corpus. However, uptraining is computationally expensive (often consuming ~5% of the original pretraining budget) and risks catastrophic forgetting if the new corpus doesn't perfectly mirror the original, often private, training data.
Methods
The authors propose KEPT, a three-step framework designed to align a student model (target architecture) with an equal-sized frozen teacher model (source architecture):
- Normal Parameter Mapping (NPM): For modules whose mathematical operations remain unchanged (e.g., embeddings, attention projections, MLP layers), weights are copied verbatim.
- Optimized Parameter Mapping (OPM): For modules that change structurally, the authors derive analytical initializations. Crucially, they prove mathematically that under an $L_2$ output alignment objective, LayerNorm weights map directly to optimal RMSNorm weights because standard weight decay forces pre-norm activations into a near-zero-mean regime. This eliminates the need to estimate statistics using data.
- Cross-architecture Knowledge Distillation (XKD): To close any remaining residual gaps, the student mimics the frozen teacher's outputs. The authors experiment with both hidden-state and logit-level distillation objectives, finding that logit-level distillation provides better flexibility and faster convergence.
Datasets
- Training: The framework was trained using a subset of the MIRACL corpus, restricted to Korean, English, Chinese, and Japanese, totaling just ~123M tokens. Sequences were capped at 4,096 tokens. Crucially, this corpus contained virtually no programming code.
- Evaluation: The models were evaluated on standard benchmarks including H6 (ARC, HellaSwag, MMLU, TruthfulQA, Winogrande, GSM8K), MT-Bench (for multi-turn dialogue), and KoMMLU (Korean translated MMLU). Fine-tuning evaluations were also conducted on an internal, privacy-redacted dataset of real Korean user search queries across four tasks (Closed-book QA, Title Generation, Document Summarization, Open-book QA).
Key Insights and Ideas
- Zero-Shot Capability Preservation: The most striking finding is that capabilities completely absent from the distillation corpus—such as Python programming and 200K-token context handling—survived the architectural transition completely intact. Because the student aligns to the teacher's behavior rather than the data distribution of the transfer corpus, it inherits the teacher's defaults even on unseen domains.
- The Power of Analytical Initialization: OPM provides a "parameter-mapping floor." Even before any distillation training, the OPM-initialized model performs significantly better than random initialization, allowing a tiny distillation budget (~123M tokens) to finish the job.
- Logit vs. Hidden-State Loss: Relaxing constraints by matching logits ($\mathcal{L}_z$) rather than forcing the student to match every intermediate hidden state ($\mathcal{L}_h$) yielded a marginally better model. This suggests that allowing the student's internal computational trajectory to drift slightly is beneficial, provided the final output remains aligned.
Key Results
- Efficiency: KEPT successfully transformed Orion-14B into Llamion using only ~123M tokens on a single NVIDIA A100 GPU over 4 days.
- Benchmark Performance: On the H6 benchmark, Llamion-Base scored 60.53, nearly matching the original Orion's score of 60.83. On MT-Bench, Llamion-Chat achieved 7.034 (vs. Orion's 7.116), vastly outperforming a standard uptrained baseline which only reached 5.709.
- Leaderboard Success: Llamion-Base reached 66.87% on KoMMLU, outperforming the next-best model in the sub-15B parameter category on the Open Ko LLM Leaderboard by over 7 absolute percentage points at the time of submission.
Limitations and Future Work
- Architectural Scope: The empirical validation was limited to a single source/target pair (Orion-14B to the Llama template). Generalization across other pairs (e.g., Gemma $\rightarrow$ Qwen) remains unproven.
- Module Specificity: OPM currently only provides a closed-form solution for the LayerNorm $\rightarrow$ RMSNorm transition. Other complex transitions, such as Multi-Head Attention (MHA) to Grouped-Query Attention (GQA), still rely heavily on the XKD distillation step to resolve discrepancies.
- Dimension Constraints: The method requires the source and target models to share the same hidden dimensions; cross-width architecture conversion is left for future work.
Summary updated