NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CRaSh: Clustering, Removing, and Sharing Enhance Fine-tuning without Full Large Language Model

Kaiyan Zhang, Ning Ding, Biqing Qi, Xuekai Zhu, Xinwei Long, Bowen Zhou

Abstract

Fine-tuning large language models (LLMs) typically necessitates a trade-off between performance, data privacy, and computational cost. We present CRaSh (Clustering, Removing, and Sharing), a training-free strategy designed to enhance "Offsite-Tuning." By identifying and exploiting the emergent modular structures in LLMs exceeding 10B parameters, CRaSh constructs functionally aligned sub-model emulators. These emulators allow users to fine-tune models locally on private data with minimal performance loss when integrated back into the full-scale model. Our evaluation across various NLP benchmarks shows that CRaSh consistently outperforms uniform layer-dropping methods.

Introduction

The centralization of state-of-the-art LLMs poses significant privacy risks, as users often must upload sensitive data to third-party servers for fine-tuning. Offsite-Tuning (OFT) was proposed to mitigate this by providing users with a compressed "emulator" for local fine-tuning. However, traditional OFT relies on uniform layer dropping, a heuristic that ignores the internal representational logic of the model. CRaSh addresses this by utilizing Centered Kernel Analysis (CKA) to create emulators that are functionally representative of the original architecture.

Methodology: The CRaSh Framework

The researchers discovered that as LLMs scale, their internal layers begin to form "modules" that perform similar representational tasks. This phenomenon, termed the Emergence of Modular Structure, is the foundation of the CRaSh approach.

CKA similarity heatmaps across different model scales, illustrating the emergence of modular structures in larger LLMs.

The CRaSh strategy consists of three main steps:

  1. Clustering: Adjacent layers with high CKA similarity are grouped into functional blocks.
  2. Removing: Redundant layers within a cluster are removed, retaining only the central "representative" layer.
  3. Sharing: To preserve the model's original depth and structural flow without increasing parameter count, the remaining layers are shared across the sequence.

Key Insights

  • The Modular Point: Modular organization is a property of scale. While simple language modeling tasks show modularity at 1.3B parameters, complex reasoning tasks require models of 10B+ parameters to exhibit similar functional clustering.
  • Linear Connectivity: The study finds that the optimal weights for the small emulator and the full model reside in the same loss landscape basin, enabling seamless "plug-in" integration after local fine-tuning.

Results and Evaluation

CRaSh was evaluated on a diverse set of benchmarks, including OpenBookQA, PIQA, and HellaSwag. It demonstrated significant performance gains over uniform dropping, with improvements of up to 5.0% on models like LLaMA-7B.

Comparison of token probability distributions between the full model and various layer removal strategies, showing that cluster-aware removal better preserves the original model's behavior.

Unlike Knowledge Distillation (KD), CRaSh is training-free during the compression phase, making it highly efficient. It achieves competitive results without the need for a constantly running "teacher" model.

Conclusion

CRaSh provides a robust framework for private and efficient LLM adaptation. By aligning emulator construction with the model's inherent modularity, it bridges the gap between local resource constraints and the power of giant models. Future work will explore applying these heuristics to even larger architectures and refining layer selection through functional similarity analysis.

Summary updated

BibTeX
@inproceedings{zhang2023crash,
  author = {Kaiyan Zhang and Ning Ding and Biqing Qi and Xuekai Zhu and Xinwei Long and Bowen Zhou},
  title = {{CRaSh: Clustering, Removing, and Sharing Enhance Fine-tuning without Full Large Language Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=1DtPn3BbOh},
}
Figure