SRA: Span Representation Alignment for Large Language Model Distillation

Quoc Phong Dao, Hoang Son Nguyen, Pham Khanh Chi, Tung Nguyen, Linh Ngo Van, Nguyen Thi Ngoc Diep, Trung Le

TL;DR

Distilling knowledge from a large language model (LLM) to a smaller one usually breaks down if they use different tokenizers. This paper introduces SRA (Span Representation Alignment), a framework that reframes cross-tokenizer distillation through the lens of physical particle systems by aligning the "Center of Mass" of text spans. SRA consistently outperforms state-of-the-art baselines while significantly reducing per-step training time.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is a go-to technique for compressing massive LLMs into smaller, deployable student models. However, standard KD relies on a massive assumption: that the teacher and the student share the exact same tokenizer.

In practice, modern open-source models use wildly different vocabularies and tokenization rules. When tokenizers don't match, direct token-to-token alignment becomes brittle and error-prone. Existing Cross-Tokenizer Knowledge Distillation (CTKD) methods try to patch this by projecting vocabularies or using optimal transport, but they remain sensitive to token-level discrepancies.

An illustration of the tokenizer mismatch between a teacher and a student model.

Methods

SRA shifts the fundamental unit of alignment away from individual tokens to robust, tokenizer-agnostic textual spans. Grounded in the physics of Multi-Particle Dynamical Systems (MPDS), SRA treats tokens as "particles" and text spans as "particle clusters."

The framework consists of four core components:

  1. Span Mapping via Longest Common Subsequence (LCS): Using character offsets from the raw text, SRA identifies exactly which token sequences in the teacher and student correspond to the same textual unit.
  2. Center of Mass (CoM) Pooling: Instead of simple mean pooling, SRA computes an attention-weighted average to represent each span. Tokens that receive more attention act as "heavier" particles, dominating the span's semantic representation.
  3. Geometric Structure Regularizer ($\mathcal{L}_{\text{Geo}}$): Linear projections can warp the student's latent space. SRA introduces a geometric loss that forces the student to preserve the relative distances and angles between different spans, maintaining structural integrity.
  4. Subspace Logit Distillation: To transfer lexical knowledge, SRA projects token logits into a shared vocabulary subspace (the intersection of the teacher and student vocabularies), avoiding complex token-level logit alignment.
An illustration of the proposed SRA framework.

Datasets

  • Training: All knowledge distillation experiments were trained on the Databricks-Dolly-15k dataset.
  • Evaluation: To evaluate cross-domain generalization, the authors tested the models on five distinct benchmarks using ROUGE-L: the Dolly test split, S-NI (Super-NaturalInstructions), VicunaEval, DialogSum, and SelfInst.

Key Insights and Ideas

  • Transformers as Dynamical Systems: By viewing layers as discrete time steps in an Ordinary Differential Equation (ODE), the authors realize that distillation shouldn't just match final outputs—it must capture the geometric evolution of features across layers.
  • Tokens Aren't Created Equal: Simple mean pooling over text spans dilutes critical information. Using attention weights as a proxy for physical "mass" ensures that semantically salient tokens naturally guide the alignment.
  • Relative Geometry Over Absolute Position: Forcing the student to mimic the exact absolute coordinates of a teacher's hidden states is less effective than forcing it to preserve the relative structure (geometry) of the teacher's representation space.

Key Results

  • Superior Performance: SRA consistently achieved the highest average ROUGE-L scores across diverse teacher-student pairs (including Qwen1.5, Qwen2.5, and Mistral distilling into GPT-2, OPT, and TinyLLaMA). For example, distilling Qwen1.5-1.8B to GPT-2 120M yielded an average score of 17.97 compared to the next best baseline (DSKD) at 15.35.
  • Unmatched Efficiency: Despite the overhead of span matching, SRA achieved the lowest average per-step training time (0.2754 seconds) compared to baselines like DSKD (0.3520s) and MinED (0.4244s) on an NVIDIA A100 GPU.
  • High Semantic Win Rate: When evaluated by GPT-4o-mini as an automated judge, SRA won or tied against strong baselines over 70% of the time, proving it generates more contextually aligned and semantically faithful responses.
Win rates (%) for distilling Qwen 2.5-7B to GPT2 1.5B, evaluated by GPT-4o-mini.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Static Logit Mapping: The projection into the shared vocabulary subspace is currently static, which might overlook richer, dynamic dimensions of the logit space.
  • On-the-Fly Inference Constraints: Aligning representation spaces requires running teacher inference dynamically during training, as precomputing all possible teacher span embeddings would demand an impractical amount of storage.
  • Future Directions: The authors plan to extend SRA to embedding model scenarios and explore adaptive span-level alignment mechanisms to make the framework even more scalable.

Summary updated

BibTeX
@inproceedings{dao2026sra,
  author = {Quoc Phong Dao and Hoang Son Nguyen and Pham Khanh Chi and Tung Nguyen and Linh Ngo Van and Nguyen Thi Ngoc Diep and Trung Le},
  title = {{SRA: Span Representation Alignment for Large Language Model Distillation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.1522},
}
Figure