SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.15477 · EMNLP · 2023

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

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
TsinghuaC3I/CRaSh — 3 of 4
FunctionStatusWhere it lives
SVDLinearModule Ran TsinghuaC3I/CRaSh/src/linear_decompose.py
pointer only (licence: NONE) · get_code("82116195b9969a71")
get_target_module Ran TsinghuaC3I/CRaSh/src/linear_decompose.py
pointer only (licence: NONE) · get_code("d610598796bd4532")
get_target_modules_from_model_type Ran TsinghuaC3I/CRaSh/src/linear_decompose.py
pointer only (licence: NONE) · get_code("a74d50aadd79e8ac")
find_linear_and_replace_with_svd_module Not yet run TsinghuaC3I/CRaSh/src/linear_decompose.py
pointer only (licence: NONE) · get_code("75b98da7d6e78d7d")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Instruction tuning has recently been recognized as an effective way of aligning Large Language Models (LLMs) to enhance their generalization ability across various tasks. However, when tuning publicly accessible, centralized LLMs with private instruction data, privacy concerns are inevitable. While direct transfer of parameterized modules between models is a plausible approach to address this, its implications and effectiveness need further exploration. This paper focuses on Offsite-Tuning (OFT), a representative technique that transfers transformer blocks between centralized LLMs and downstream emulators. Given the limited understanding of the underlying mechanism of OFT, we perform an empirical analysis on LLMs from the perspectives of representation and functional similarity. Interestingly, our findings reveal a unique modular structure within the layers of LLMs that appears to emerge as the model size expands. Simultaneously, we note subtle but potentially significant changes in representation and intermediate predictions across the layers. Inspired by these observations, we propose CRaSh, involving Clustering, Removing, and Sharing, a training-free strategy to derive improved emulators from LLMs. CRaSh significantly boosts performance of OFT with billions of parameters. Furthermore, we investigate the optimal solutions yielded by fine-tuning with and without full model through the lens of loss landscape. Our findings demonstrate a linear connectivity among these optima falling over the same basin, thereby highlighting the effectiveness of CRaSh and OFT. The source code is publicly available at https://github.com/TsinghuaC3I/CRaSh.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.15477")
get_code_for_paper("2310.15477")
have("2310.15477")

Connect an agent — have() is free.