Low-Rank Adaptation (LoRA) enables lightweight adaptation of large language models (LLMs), but continual adaptation across tasks still requires maintaining and selecting taskspecific adapters. To address this issue, we propose EC-LoRA, an energy-guided implicit generative framework for producing LoRA modules in a continual learning setting. Instead of directly decoding adapter weights with an explicit generator, EC-LoRA learns a task-conditioned energy function over the normalized parameter space. For each task, we initiate a prototype and generate a task-specific adapter by refining via energy-based gradient descent. The energy model is trained with score matching and updated sequentially across tasks. Our method generates only LoRA and reuses the non-LoRA classification or regression head from a selected source checkpoint, making it applicable to tasks with heterogeneous output spaces. We conducted experiments to verify that the LoRA generated by EC-LoRA outperforms the original LoRA and can adapt to different models and scenarios. Code is available at https://github.com/YihuaJerry/EC-LoRA.
Low-Rank Adaptation (LoRA) enables lightweight adaptation of large language models (LLMs), but continual adaptation across tasks still requires maintaining and selecting taskspecific adapters. To address this issue, we propose EC-LoRA, an energy-guided implicit generative framework for producing LoRA modules in a continual learning setting. Instead of directly decoding adapter weights with an explicit generator, EC-LoRA learns a task-conditioned energy function over the normalized parameter space. For each task, we initiate a prototype and generate a task-specific adapter by refining via energy-based gradient descent. The energy model is trained with score matching and updated sequentially across tasks. Our method generates only LoRA and reuses the non-LoRA classification or regression head from a selected source checkpoint, making it applicable to tasks with heterogeneous output spaces. We conducted experiments to verify that the LoRA generated by EC-LoRA outperforms the original LoRA and can adapt to different models and scenarios. Code is available at https://github.com/YihuaJerry/EC-LoRA.
EC-LoRA: Energy-Driven Continual LoRA Implicit Generation / Shao, Y., Li, J., Chen, S., Liu, Y., Lv, K., Tang, H., Sebe, N., Guo, J.. - In: TRANSACTIONS ON MACHINE LEARNING RESEARCH. - ISSN 2835-8856. - 2026-:(2026).
EC-LoRA: Energy-Driven Continual LoRA Implicit Generation
Shao Y.;Tang H.;Sebe N.;
2026-01-01
Abstract
Low-Rank Adaptation (LoRA) enables lightweight adaptation of large language models (LLMs), but continual adaptation across tasks still requires maintaining and selecting taskspecific adapters. To address this issue, we propose EC-LoRA, an energy-guided implicit generative framework for producing LoRA modules in a continual learning setting. Instead of directly decoding adapter weights with an explicit generator, EC-LoRA learns a task-conditioned energy function over the normalized parameter space. For each task, we initiate a prototype and generate a task-specific adapter by refining via energy-based gradient descent. The energy model is trained with score matching and updated sequentially across tasks. Our method generates only LoRA and reuses the non-LoRA classification or regression head from a selected source checkpoint, making it applicable to tasks with heterogeneous output spaces. We conducted experiments to verify that the LoRA generated by EC-LoRA outperforms the original LoRA and can adapt to different models and scenarios. Code is available at https://github.com/YihuaJerry/EC-LoRA.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione



