Search the guide

Start with a guide

arXiv

Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolution

Liliana Hotsko, Yinxi Li, Yuntian Deng, Pengyu Nie

Trains a hypernetwork to generate repository-specific LoRA adapters from source code and update them as commits arrive.

How it works

Construction
Static maps an encoded repository snapshot to LoRA weights. Evo updates a GRU state with each commit diff and generates the weights from that state.
Preparation and training
The hypernetwork learns across repositories through the frozen code model’s assertion-completion loss. New repositories receive generated adapters without per-repository fine-tuning.
Execution
The code model uses the generated adapter without adding repository context tokens to each request.

Cite this work

BibTeX
@misc{code-to-lora,
  title = {{Code2LoRA: Hypernetwork-Generated Adapters for Code Language Models under Software Evolution}},
  author = {Hotsko, Liliana and Li, Yinxi and Deng, Yuntian and Nie, Pengyu},
  year = {2026},
  date = {2026-06-04},
  eprint = {2606.06492},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.06492}
}

Related reading