Reproduce “Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMs” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Rui Dai, Sile Hu, Xu Shen, Yonggang Zhang, Xinmei Tian, Jieping Ye
A new training-free method for merging Large Language Models (LLMs) into multi-task models independently leverages observed linearity within submodules (e.g., layers, attention blocks) rather than relying on the full model's non-linear behavior. This approach consistently outperforms traditional task arithmetic and other baselines on Llama-2-7B and Llama-2-13B across various tasks, utilizing only a minimal amount of task-specific data.
Key insights
- Linearity, essential for effective task arithmetic, is a localized property more robustly present within LLM submodules than across the entire model.
- The hierarchical composition of LLMs allows for independent, linear merging of submodules, which leads to superior multi-task performance without global model linearization.
- Merging at excessively fine-grained levels, such as individual attention heads, can introduce instability, suggesting that functional coherence, not just mathematical linearity, is important for submodule interactions.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.