Reproduce “LoRA-Gen: Specializing Large Language Model via Online LoRA Generation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yicheng Xiao, Lin Song, Rui Yang, Cheng Cheng, Yixiao Ge, Xiu Li, Ying Shan
LoRA-Gen turns task and system-prompt instructions into task-specific LoRA weights using a cloud model, then merges them into a smaller edge model. Meta tokens route LoRA experts, avoiding the full prompt at edge inference. In five-shot tests, TinyLLaMA-1.1B reaches 49.8% harmonic mean accuracy and 21.2 ms ARC-c latency, versus 48.5% and 44.5 ms for vanilla LoRA.
Key insights
- Knowledge from a powerful cloud-side LLM can be effectively distilled into task-specific LoRA parameters for smaller edge models.
- Embedding task descriptions and few-shot examples into LoRA weights allows for substantial context compression, reducing inference latency and addressing context length limits.
- A layer-wise expert routing strategy with a KeepTOP-K selection and an auxiliary loss for load balancing improves generalization and expert utilization.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.