Queryable LoRA: Instruction-Regularized Routing Over Shared Low-Rank Update Atoms

Links: [PDF] [.bib]
Authors: Omatharv Bharat Vaidya | Connor T. Jerzak | Nhat Ho | Chandrajit Bajaj

Dynamic Low-Rank Fine-Tuning Without Text-to-Weight Generation

TL;DR: The paper’s central move is: instead of giving each layer one fixed LoRA correction, it lets each block query a shared memory of low-rank update atoms. The resulting adapter stays compact, but the effective update can vary by input, depth, and—optionally—instruction.

What problem does Queryable LoRA solve?

Standard LoRA is efficient because it freezes the base model and learns a small low-rank update for each adapted layer. Its weakness is that the update is static: the same adapter fires for every input, and recurring adaptation patterns must be relearned separately across layers.

Queryable LoRA keeps the low-rank bottleneck, but makes the correction retrievable. A block forms a query from the current rank-space state, a summary of previous blocks, and optionally an instruction embedding; it then retrieves a sparse convex mixture of shared rank-space atoms. The crux is not “generate weights from text.” The crux is route over a bounded memory of reusable low-rank transformations.

How does the method change LoRA?

The paper changes the adapter inside the low-rank space. Standard LoRA applies a fixed update of the form:

ΔWℓ = (α/r) BℓAℓ

Queryable LoRA inserts a routed rank-space operator:

ΔWℓ(hℓ; c) = (α/r) Bℓ(Ir + gℓSb(c))Aℓ

Here, Sb(c) is an r × r operator assembled from shared atoms. Because it acts only in rank space, it can rotate or rescale LoRA’s adaptation direction without producing a full dense weight matrix.

ComponentRoleWhy it matters
Shared atom bankA global set of learned r × r rank-space update atoms.Lets different layers and tasks reuse the same structural corrections.
Blockwise routerComputes one routed operator per block rather than a separate route for every layer.Amortizes routing cost and encourages coherent depth-wise adaptation.
Depth summaryAttention over earlier block summaries.Lets later blocks condition on the computational trajectory, not only the current layer state.
Instruction priorAdds τlang log pm(c) to routing logits.Biases atom selection toward semantically relevant updates without unconstrained text-to-weight generation.
Sparse top-k routeSelects a small active set of atoms and forms a convex mixture.Keeps the routed operator interpretable, bounded, and cheap relative to generated full-rank updates.
Queryable LoRA is best read as a bounded retrieval mechanism inside LoRA’s bottleneck, not as a hypernetwork that writes new weights.

Why is this not text-to-weight generation?

The instruction does not directly synthesize adapter matrices. It changes which already-learned rank-space atoms are retrieved. In the paper’s routing equation, the instruction appears as a log-prior added to the state-dependent routing score:

joint route score = state score + τlang · log(instruction prior)

This distinction is the paper’s strongest design choice. It gives language a controlled influence over the adapter while preserving the norm control of a convex mixture over bounded atoms.

What does the empirical evidence show?

The evidence supports a qualified claim: queryable rank-space memory helps most when the target requires heterogeneous, depth-dependent corrections. The gains are clearest on Dropwave-style non-convex regression and on several small-model reasoning benchmarks. The gains are not uniform, and that non-uniformity is informative.

Selected synthetic non-convex test results

Lower MSE is better. The paper reports five independent runs for the main synthetic study. Queryable LoRA is strongest where a single static correction appears too rigid; it is less impressive on smoother or highly regular landscapes.2

FunctionLoRA test MSEQueryable LoRA test MSEReading
Dropwave64.50792.2263Large gain; the method seems to help with local heterogeneity.
Levy1.32731.3028Small but favorable gain.
Matyas0.02550.0229Small gain on a smoother target.
Styblinski-Tang67.236162.2928Meaningful but not transformative improvement.
Ackley0.37340.3726Near tie; RepLoRA is slightly better in the paper’s table.
Rastrigin98.764799.6905Queryable routing does not dominate static LoRA here.
Selected rows from the main synthetic test table. The paper’s own interpretation is that non-convexity alone does not explain the gains; local heterogeneity matters more.

Qwen0.5B general-task results

Higher accuracy is better. On these seven general benchmarks, the instruction-queryable variant improves over LoRA on every listed task and is best on six of seven; HellaSwag is the exception, where RepLoRA is slightly higher.3

BenchmarkLoRAQueryable LoRAInstruction-Queryable LoRAInstruction gain vs. LoRA
GPQA-Diamond0.2530.2930.323+0.070
MBPP0.2900.2900.300+0.010
ARC0.5950.6560.651+0.056
SuperGLUE0.7930.7950.797+0.004
OpenBookQA0.7000.6960.708+0.008
RACE0.5950.5850.599+0.004
HellaSwag0.6170.6020.623+0.006
The general-task table supports the instruction-prior story, but the absolute gains are small on several benchmarks.

Mathematics and reasoning results

The mathematics table is a bit more heterogeneous. The strongest queryable variant improves over LoRA on most task/model pairs, but there are a few ties or reversals. This is consistent with a method that helps when reusable depth-wise corrections matter.

Task / modelLoRABest queryable variantBest variantChange vs. LoRA
GSM8K / Qwen0.5B0.3120.324Instruction-queryable+0.012
GSM8K / Mistral7B0.3750.375Tie0.000
MATH / Qwen0.5B0.1330.156Queryable+0.023
MATH / Mistral7B0.1530.158Instruction-queryable+0.005
Orca-Math / Qwen0.5B0.3040.344Tie between queryable variants+0.040
Orca-Math / Mistral7B0.3200.352Queryable+0.032
Numina-Math / Qwen0.5B0.2030.234Instruction-queryable+0.031
On math tasks, the instruction prior is not always the best queryable variant; sometimes the state-only route wins.

Does the instruction actually matter?

The GPQA-Diamond ablation suggests that the instruction is not merely adding capacity. With the same trainable parameter count, the correct instruction reaches 0.3125 evaluation accuracy, while shuffled or random embeddings fall to 0.1875. That pattern supports the semantic-prior interpretation: useful language helps routing, mismatched language can hurt it.4

Routing conditionBest eval accuracyInterpretation
No instruction0.2420Dynamic routing alone helps less than the full semantic route.
Generic instruction0.2500Language without task specificity gives only a modest signal.
Correct instruction0.3125Task-aligned language provides the strongest route prior.
Shuffled instruction0.1875Semantic mismatch damages routing.
Random embedding, same norm0.1875The benefit is not explained by adding any vector of the right size.
State query only, no prior0.2500The state query remains useful, but instruction guidance changes the route.
Same parameter budget, different routing signal. The ablation makes the instruction prior falsifiable.

What does dynamic routing cost?

Queryable LoRA is slower than static LoRA, but faster than several more expressive dynamic baselines in the paper’s inference diagnostic. The reported FLOP overhead is only 0.6% relative to LoRA, so the practical cost likely comes from routing, dispatch, and implementation overhead rather than the low-rank arithmetic itself.5

MethodForward / prefill latencyLatency overhead vs. LoRAGeneration throughputFLOP overhead vs. LoRA
LoRA33.1 ms0.0%31.8 tokens/s0.0%
RepLoRA53.0 ms60.2%18.0 tokens/s0.0%
HyRA83.3 ms151.7%11.3 tokens/s0.0%
Queryable LoRA42.3 ms27.9%22.0 tokens/s0.6%
Instruction-Queryable LoRA46.5 ms40.5%20.1 tokens/s0.6%
The practical tradeoff: pay moderate latency over LoRA for more adaptive routing, while staying well below the latency of heavier dynamic baselines in this diagnostic.

What guarantees does the theory provide?

The theory does not prove that Queryable LoRA will outperform LoRA on every task. It proves something narrower and useful: the dynamic route is a controlled optimization over bounded atoms, and the shared memory receives structured gradient signals from the blocks that use it.

ResultPlain-language meaningWhy it matters
Variational routingThe route uniquely maximizes state utility while staying close to the instruction prior.Language guidance is formalized as a KL-regularized retrieval objective.
State-prior tradeoffThe language prior cannot arbitrarily override the state signal when the state-preferred atom has reasonable prior support.Instruction conditioning is constrained, not absolute.
Norm-controlled updatesThe routed operator stays inside the convex hull of bounded atoms, so the adapter update remains bounded.Dynamic adaptation does not require unconstrained parameter generation.
Blockwise gradient factorizationEach retrieved atom receives gradients through the block in which it is used.Shared atoms can learn reusable update directions from many layers and contexts.
The theoretical contribution is mainly a stability and interpretability story, not a universal performance theorem.

Bottom line

Queryable LoRA is a helpful next step for parameter-efficient fine-tuning because it attacks a real rigidity in static LoRA without jumping to unconstrained weight generation. Its best formulation is simple: keep the low-rank bottleneck, share a small bank of rank-space atoms, and route over that bank using the model’s current state, depth history, and optional instruction semantics.

The method is most compelling when the adapter must reuse corrections across depth or switch corrections across examples. It is least compelling when a static low-rank update already captures the task, or when latency matters more than adaptivity.

FAQ

Is Queryable LoRA just MoE-LoRA?

No. Both use routing, but Queryable LoRA routes over shared r × r rank-space atoms inside the LoRA bottleneck and conditions the route on block state, depth summary, and optional instructions. The routed object is a compact operator in rank space, not a full expert adapter per route.

Does the method require a natural-language instruction?

No. The router can use the model state, layer prior, and depth summary without language. Instructions add a semantic prior over atoms; setting the language terms to zero recovers a state-dependent dynamic adapter.

When should Queryable LoRA help?

It should help when the task requires different corrections for different examples or depths, especially when useful update directions recur across layers. The synthetic Dropwave result and several reasoning benchmarks support this pattern, but the claim remains task-dependent.


Notes

  1. Synthetic results: main manuscript Tables 1 and 2. The study uses nine stochastic non-convex two-dimensional functions and reports mean squared error over five independent runs; lower is better. ↑
  2. LLM results: main manuscript Tables 3 and 4. The paper reports 25 post-training epochs, learning rate 0.0002, and final checkpoint selection by highest training accuracy. ↑
  3. Ablation results: appendix instruction-router ablation on GPQA-Diamond with fixed 4.46M trainable parameters across variants. ↑
  4. Efficiency results: main manuscript Table 5. Timings exclude tokenization and dataloader construction; lower latency is better and higher generation throughput is better. ↑

References

Omatharv Bharat Vaidya, Connor T. Jerzak, Nhat Ho, Chandrajit Bajaj. Queryable LoRA: Instruction-Regularized Routing Over Shared Low-Rank Update Atoms. ArXiv Preprint, 2026.
[PDF] [BibTeX]
[Overview]

Related Work

Samuel Balter, Ethan Jerzak, Connor T. Jerzak. Multiplication in Multimodal LLMs: Computation with Text, Image, and Audio Inputs. Findings of the Association for Computational Linguistics (ACL), 2026
[PDF] [BibTeX]
[Overview] [Data] [>]

Nicolas Audinet de Pieuchon, Adel Daoud, Connor T. Jerzak, Moa Johansson, Richard Johansson. Benchmarking Debiasing Methods for LLM-based Parameter Estimates. Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2025.
[PDF] [BibTeX]
[Overview] [Video] [Data] [>]

Satiyabooshan Murugaboopathy, Connor T. Jerzak, Adel Daoud. Platonic Representations for Poverty Mapping: Unified Vision-Language Codes or Agent-Induced Novelty? ArXiv Preprint, 2025.
[PDF] [BibTeX]
[Overview] [Video] [Data]

Brian Libgober, Connor T. Jerzak. Linking Datasets on Organizations Using Half-a-Billion Open-Collaborated Records. Political Science Research and Methods: 1-20, 2024.
[PDF] [BibTeX]
[Overview] [Data] [Code] [>]

Connor T. Jerzak, Gary King, Anton Strezhnev. An Improved Method of Automated Nonparametric Content Analysis for Social Science. Political Analysis, 31(1): 42-58, 2023.
[PDF] [BibTeX]
[Overview] [Data] [Code] [>]

Adel Daoud, Connor T. Jerzak, Richard Johansson. Conceptualizing Treatment Leakage in Text-based Causal Inference. Proceedings of the Annual Conference of the North American Chapter of the Association for Computational Linguistics (NAACL): 5638-5645, 2022.
[PDF] [BibTeX]
[Overview] [Video] [>]

Nicolas Audinet de Pieuchon, Adel Daoud, Connor T. Jerzak, Moa Johansson, Richard Johansson. Can Large Language Models (or Humans) Disentangle Text? Proceedings of the Sixth Workshop on Natural Language Processing and Computational Social Science (NLP+ CSS 2024): 57-67, 2024.
[PDF] [BibTeX]
[Overview] [Data] [Code] [>]