Instant Transformer Adaption via HyperLoRA

Abstract

While Foundation Models provide a general tool for rapid content creation, they regularly require task-specific adaptation. Traditionally, this exercise involves careful curation of datasets and repeated fine-tuning of the underlying model. Fine-tuning techniques enable practitioners to adapt foundation models for many new applications but require expensive and lengthy training while being notably sensitive to hyper-parameter choices. To overcome these limitations, we introduce HyperLoRA, a model capable of adapting Large Language Models on the fly---solely based on a natural language description of the target task. HyperLoRA is a hypernetwork trained to construct LoRAs in a single inexpensive forward pass. After training HyperLoRA, we show that the ad-hoc reconstructed LoRA instances match the performance of task-specific adapters across the corresponding test sets. Furthermore, HyperLoRA can compress hundreds of LoRAs instances and zero-shot generalize to entirely unseen tasks. This approach provides a significant step towards democratizing the specialization of foundation models and enables language-based adaptation with minimal compute requirements.

Cite

Text

Charakorn et al. "Instant Transformer Adaption via HyperLoRA." NeurIPS 2024 Workshops: AFM, 2024.

Markdown

[Charakorn et al. "Instant Transformer Adaption via HyperLoRA." NeurIPS 2024 Workshops: AFM, 2024.](https://mlanthology.org/neuripsw/2024/charakorn2024neuripsw-instant/)

BibTeX

@inproceedings{charakorn2024neuripsw-instant,
  title     = {{Instant Transformer Adaption via HyperLoRA}},
  author    = {Charakorn, Rujikorn and Cetin, Edoardo and Tang, Yujin and Lange, Robert Tjarko},
  booktitle = {NeurIPS 2024 Workshops: AFM},
  year      = {2024},
  url       = {https://mlanthology.org/neuripsw/2024/charakorn2024neuripsw-instant/}
}