MEGA Hub

Diffract: Spectral View of LLM Domain Adaptation

Authors

Do you know Nikita Borodin?You can claim authorship or link another user.Do you know Maria Krylova?You can claim authorship or link another user.Do you know Artem Zabolotnyi?You can claim authorship or link another user.Do you know Dmitry Aspisov?You can claim authorship or link another user.Do you know Egor Shikov?You can claim authorship or link another user.Do you know Nikita Tyuplyaev?You can claim authorship or link another user.Do you know Oleg Travkin?You can claim authorship or link another user.Do you know Roman Alferov?You can claim authorship or link another user.Do you know Dmitry Vinichenko?You can claim authorship or link another user.

Abstract

We study continual pre-training (CPT) as a mechanism for adapting general-purpose large language models to specialized domains: mathematics, instruction, code, and natural text. Using singular value decomposition of weight matrices, we find that CPT leaves singular value spectra largely invariant, with adaptation driven mainly by changes in singular vectors. An analysis of attention-head projection matrices reveals strong, domain-dependent head heterogeneity, which we exploit to define a head importance criterion: up to 60% of head updates can be removed without measurable quality loss. Selectively rewinding low-importance heads to their pre-trained state improves benchmark accuracy by up to 4% versus the fully trained baseline. Finally, we identify domain connectivity - linear interpolation between CPT checkpoints yields smooth domain-quality interpolation without notable degradation on either domain - and release Diffract, an open-source toolkit for scalable spectral analysis of billion-parameter models.

Community

00

Publication notes

Author note
Accepted at ICML 2026. Code: https://github.com/Risk-AI-Research/diffract