When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attention

Joyanta Jyoti Mondal, Ibne Farabi Shihab
9/29/2026
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Can a fixed continuous prefix replace a given low-rank adapter while the attention head stays frozen? In this research, we show that the answer depends on the adapter's target through three conditions. First, observability: at one causal readout, every independent key--value prefix sees the content only through the query, attention partition, and value numerator, so a target that differs on two inputs with equal summaries incurs an error floor at every prefix length; norm caps extend this floor to nearly equal summaries. Second, realizability: at a common query, any prefix reduces exactly to two aggregate variables, and the norm-capped optimum is an attained second-order-cone program, also after a fixed output projection; it places two equal-norm rank-one value updates on opposite sides of compilability. Third, implementation: under affine query exposure, $2r$ signed slots approximate a rank-$r$ value update, but their values grow as $O(ε^{-3/2})$, and the construction passes all 400 tolerance checks in float64 yet only 38 in bfloat16. A first-layer GPT-2 readout with fixed token and position meets the common-query condition without clamping activations; at three such heads, the capped optimum leaves 18.4\% to 74.2\% of the projected adapter effect uncompiled, with a head-dependent value--query ordering. All claims concern local approximation at one head, not whole-network equivalence.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mondal2026when,
  title  = {When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attention},
  author = {Joyanta Jyoti Mondal and Ibne Farabi Shihab},
  year   = {2026},
  eprint = {2609.36766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.36766v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.36766.svg)](https://codeofpaper.com/paper/2609.36766)

Discussion