In-Context Meta LoRA Generation
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 6138-6146.
https://doi.org/10.24963/ijcai.2025/683
Keywords
- Machine Learning: ML: Multi-task and transfer learning
- Machine Learning: ML: Cost-sensitive learning
- Machine Learning: ML: Foundation models
- Computer Vision: CV: Transfer, low-shot, semi- and un- supervised learning
Abstract
Low-rank Adaptation (LoRA) has demonstrated remarkable capabilities for task specific fine-tuning. However, in scenarios that involve multiple tasks, training a separate LoRA model for each one results in considerable inefficiency in terms of storage and inference. Moreover, existing parameter generation methods fail to capture the correlations among these tasks, making multi-task LoRA parameter generation challenging. To address these limitations, we propose In-Context Meta LoRA (ICM-LoRA), a novel approach that efficiently achieves task-specific customization of large language models (LLMs). Specifically, we use training data from all tasks to train a tailored generator, Conditional Variational Autoencoder (CVAE). CVAE takes task descriptions as inputs and produces task-aware LoRA weights as outputs. These LoRA weights are then merged with LLMs to create task-specialized models without the need for additional fine-tuning. Furthermore, we utilize in-context meta-learning for knowledge enhancement and task mapping, to capture the relationship between tasks and parameter distributions. As a result, our method achieves more accurate LoRA parameter generation for diverse tasks using CVAE. ICM-LoRA enables more accurate LoRA parameter reconstruction than current parameter reconstruction methods and is useful for implementing task-specific enhancements of LoRA parameters. At the same time, our method occupies 283MB, only 1% storage compared with the original LoRA. The code is available at https://github.com/YihuaJerry/ICM-LoRA.
@inproceedings{ijcai2025p683,
title = {In-Context Meta LoRA Generation},
author = {Shao, Yihua and Yan, Minxi and Liu, Yang and Chen, Siyu and Chen, Wenjie and Long, Xinwei and Yan, Ziyang and Li, Lei and Zhang, Chenyu and Sebe, Nicu and Tang, Hao and Wang, Yan and Zhao, Hao and Wang, Mengzhu and Guo, Jingcai},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {6138--6146},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/683},
url = {https://doi.org/10.24963/ijcai.2025/683},
}
TY - CPAPER TI - In-Context Meta LoRA Generation AU - Shao, Yihua AU - Yan, Minxi AU - Liu, Yang AU - Chen, Siyu AU - Chen, Wenjie AU - Long, Xinwei AU - Yan, Ziyang AU - Li, Lei AU - Zhang, Chenyu AU - Sebe, Nicu AU - Tang, Hao AU - Wang, Yan AU - Zhao, Hao AU - Wang, Mengzhu AU - Guo, Jingcai T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 6138 EP - 6146 DO - 10.24963/ijcai.2025/683 UR - https://doi.org/10.24963/ijcai.2025/683 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: