Skip to main navigation Skip to search Skip to main content

Contextual Attention Modulation: Towards Efficient Multi-Task Adaptation in Large Language Models

  • Dayan Pan
  • , Zhaoyang Fu
  • , Jingyuan Wang
  • , Xiao Han
  • , Yue Zhu*
  • , Xiangyu Zhao*
  • *Corresponding author for this work
  • Beihang University
  • City University of Hong Kong
  • Huawei Technologies Co., Ltd.
  • Zhejiang University of Technology

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Large Language Models (LLMs) possess remarkable generalization capabilities but struggle with multi-task adaptation, particularly in balancing knowledge retention with task-specific specialization. Conventional fine-tuning methods suffer from catastrophic forgetting and substantial resource consumption, while existing parameter-efficient methods perform suboptimally in complex multi-task scenarios. To address this, we propose Contextual Attention Modulation (CAM), a novel mechanism that dynamically modulates the representations of self-attention modules in LLMs. CAM enhances task-specific features while preserving general knowledge, thereby facilitating more effective and efficient adaptation. For effective multi-task adaptation, CAM is integrated into our Hybrid Contextual Attention Modulation (HyCAM) framework, which combines a shared, full-parameter CAM module with multiple specialized, lightweight CAM modules, enhanced by a dynamic routing strategy for adaptive knowledge fusion. Extensive experiments on heterogeneous tasks, including question answering, code generation, and logical reasoning, demonstrate that our approach significantly outperforms existing approaches, achieving an average performance improvement of 3.65%. The implemented code and data are available to ease reproducibility.

Original languageEnglish
Title of host publicationCIKM 2025 - Proceedings of the 34th ACM International Conference on Information and Knowledge Management
PublisherAssociation for Computing Machinery, Inc
Pages2273-2283
Number of pages11
ISBN (Electronic)9798400720406
DOIs
StatePublished - 10 Nov 2025
Externally publishedYes
Event34th ACM International Conference on Information and Knowledge Management, CIKM 2025 - Seoul, Korea, Republic of
Duration: 10 Nov 202514 Nov 2025

Publication series

NameCIKM 2025 - Proceedings of the 34th ACM International Conference on Information and Knowledge Management

Conference

Conference34th ACM International Conference on Information and Knowledge Management, CIKM 2025
Country/TerritoryKorea, Republic of
CitySeoul
Period10/11/2514/11/25

Keywords

  • large language model
  • multi-task adaptation
  • parameter-efficient fine-tuning

Fingerprint

Dive into the research topics of 'Contextual Attention Modulation: Towards Efficient Multi-Task Adaptation in Large Language Models'. Together they form a unique fingerprint.

Cite this