Representation-Aware Modularity: Efficient Cross-Task Generalization for LLMs
Zheng Gong, Ying Sun, Chao Wang, Xiaohui Huo, Ping Li, Yi Zheng, Zhefeng Wang
Abstract
Cross-task generalization (CTG) enables large language models (LLMs) to handle unseen tasks proficiently, enhancing their adaptability in real-world scenarios. However, existing methods relying on per-token dynamic routing to multiple trained LoRA adapters face high computational and GPU memory costs. Recent Representation Fine-Tuning (ReFT) enhances efficiency for single-task adaptation by editing only prefix and suffix token representations. However, the semantic ambiguity of tokens and absence of a self-guided mechanism for parameter selection in unseen tasks limits their application to CTG. To this end, we propose RaMod, a Representation-Aware Modularity framework to extend the ReFT paradigm to CTG through two novel components: (i) Dual-Modular Representation & Parameter Fine-tuning, which manipulates only a strategically chosen subset of hidden representations with modular interventions to guide the model toward solving unseen tasks; and (ii) Asynchronous Orchestrator, which proactively allocates and releases GPU memory for selected interventions, thereby minimizing storage overhead. Extensive experiments demonstrate that RaMod not only achieves superior CTG performance but also substantially reduces the overhead of the latest CTG baseline, achieving 83%, 100%, and 79% reduction in its additional prefill time, generation delays, and memory consumption relative to original LLMs.
BibTeX
@inproceedings{ijcai2026_representationaw,
title = {Representation-Aware Modularity: Efficient Cross-Task Generalization for LLMs},
author = {Zheng Gong and Ying Sun and Chao Wang and Xiaohui Huo and Ping Li and Yi Zheng and Zhefeng Wang},
booktitle = {IJCAI 2026},
year = {2026}
}