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.
The CRaSh strategy consists of three main steps:
- Clustering: Adjacent layers with high CKA similarity are grouped into functional blocks.
- Removing: Redundant layers within a cluster are removed, retaining only the central "representative" layer.
- 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.
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