Research map / Large language models / Instruction and fine-tuning
Drag-and-Drop LLMs: Zero-Shot Prompt-to-Weights
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes Drag-and-Drop LLMs (DnD), a prompt-conditioned hyper-convolutional parameter generator that maps unlabeled task prompts directly to LoRA weights for Qwen2.5 models without per-task training.
Problem
PEFT methods like LoRA still require a separate optimization run per downstream dataset, which is costly at scale; the goal is to generate task-specific LoRA weights directly from task prompts without gradient-based tuning on the target task.
Approach
A frozen Sentence-BERT encoder embeds batches of unlabeled prompts, and a cascaded hyper-convolutional decoder is trained with MSE on tokenized LoRA checkpoints paired with prompt batches, so it can produce LoRA matrices for unseen datasets in one forward pass.
Key results
- On unseen common-sense test sets, DnD averages 21.0 points above training LoRAs (e.g., ARC-c 51.6 vs 39.5 average), and reaches 66.3 on gsm8K vs 42.9 for training LoRAs.
- On HumanEval with Qwen2.5-1.5B, DnD improves pass@1 by 15.1, pass@5 by 26.7, and pass@10 by 30.9 over the average training LoRA.
- DnD generates parameters in about 0.11 to 0.73 seconds per model on one A100, with the paper reporting up to 12,000x lower overhead than full fine-tuning.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Generate LoRA weights from task prompts instead of using training LoRAs | Qwen2.5-0.5B · ARC-e, OBQA, ARC-c, PIQA, HellaSwag, BoolQ, WinoGrande | accuracy: 37.5 -> 68.6; 30.2 -> 40.8; 39.5 -> 51.6; 40.5 -> 87.9; 22.4 -> 25.9; 13.5 -> 44.9; 38.8 -> 50.0 | Helped |
| Generate LoRA weights from task prompts instead of using training LoRAs | Qwen2.5-1.5B · HumanEval | pass@1: 17.6 -> 32.7 | Helped |
| Generate LoRA weights from task prompts instead of using training LoRAs | Qwen2.5-1.5B · HumanEval | pass@5: 28.6 -> 55.3 | Helped |
| Generate LoRA weights from task prompts instead of using training LoRAs | Qwen2.5-1.5B · HumanEval | pass@10: 33.2 -> 64.1 | Helped |
| Generate LoRA weights from task prompts instead of using training LoRAs | Qwen2.5-1.5B · gsm8K | accuracy: 42.9 -> 66.3 | Helped |
| Generate LoRA weights from task prompts instead of using training LoRAs | Qwen2.5-1.5B · MATH | accuracy: 14.8 -> 23.9 | Helped |
| Generate LoRA weights from task prompts instead of using training LoRAs | Qwen2.5-VL-3B · Math-Vision and Math-Vista | accuracy: 23.0 -> 24.3; 61.5 -> 62.3 | Helped |
| Generate weights from science prompts using common-sense training | Qwen2.5-0.5B · Science | accuracy: 35.6 -> 45.3 | Helped |
| Use prompts plus answers instead of prompts as conditions (ablation) | DnD · ARC-c | accuracy: 51.6 -> 27.0 | Hurt |
| Mix prompts and answers instead of using prompts alone (ablation) | DnD · ARC-c | accuracy: 51.6 -> 49.7 | Hurt |
| Replace Sentence-BERT with GloVe (ablation) | DnD · ARC-c | accuracy: 51.6 -> 50.8 | Hurt |
| Replace Sentence-BERT with T5-base (ablation) | DnD · ARC-c | accuracy: 51.6 -> 50.2 | Hurt |
Surprising findings
- Using answers as the condition instead of prompts yields poor results (27.0 vs 51.6 accuracy on ARC-c), attributed to low answer diversity.
- Qwen2.5-7B as the condition extractor failed to train effectively, with the paper attributing this to its heaviness and decoder-only design.
Limitations
- Training relies on many pre-collected LoRA checkpoints per task, and performance drops sharply when fewer training datasets are used (2-5 arrangement gives near-zero improvement).
- Scaling to larger models (7B-70B) is stated as an open challenge; experiments are limited to Qwen2.5 0.5B-7B and one VL model.
- Some gains come from comparisons against weak training LoRAs and the base model, and the paper is inconsistent on batch/prompt-length settings across tables.
Experimental setup
Datasets: ARC-e ARC-c BoolQ OBQA HellaSwag PIQA WinoGrande Evol-Instruct-68K-V1 Glaive-Assistant-V2 Python-Codes-25K Code-74k-ShareGPT Rosetta-Code
Benchmarks: ARC-e OBQA ARC-c PIQA HellaSwag BoolQ WinoGrande HumanEval gsm8k MATH Math-Vision Math-Vista
Metrics: accuracy pass@k improvement over training LoRAs wall-clock time memory cost
Baselines: training LoRAs RPG Qwen2.5 foundation model few-shot tuning in-context learning full-shot LoRA tuning
Builds on: LoRA RPG p-diff Sentence-BERT
Closest papers by meaning
- Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRA (ICLR 2025 · similarity 0.90)
- Enhancing Large Language Model Performance with Gradient-Based Parameter Selection (AAAI 2025 · similarity 0.90)
- Optimization Inspired Few-Shot Adaptation for Large Language Models (NeurIPS 2025 · similarity 0.89)
- LoLCATs: On Low-Rank Linearizing of Large Language Models (ICLR 2025 · similarity 0.89)
- AdaRankGrad: Adaptive Gradient Rank and Moments for Memory-Efficient LLMs Training and Fine-Tuning (ICLR 2025 · similarity 0.89)
- Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMs (ICLR 2024 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
