Hyper-shared LoRA (HoRA)
- HoRA is a hypernetwork-based variant of low-rank adaptation that couples updates across attention heads for enhanced parameter sharing.
- It replaces independent per-head LoRA adapters with a shared generator conditioned on head embeddings, achieving improved sample efficiency and reduced redundancy.
- Empirical results on vision and language tasks demonstrate HoRA’s effectiveness, especially in low-data regimes with minimal trainable parameter increases.
Hyper-shared Low-Rank Adaptation (HoRA) is a hypernetwork-based variant of Low-Rank Adaptation (LoRA) for multi-head self-attention (MHA) that replaces independent per-head low-rank updates with a shared generator conditioned on head embeddings. In the formulation introduced in “HoRA: Cross-Head Low-Rank Adaptation with Joint Hypernetworks,” low-rank matrices for query and value projections are generated jointly across attention heads, so that heads are coupled through shared meta-parameters rather than optimized as isolated adapters. The stated objective is to exploit cross-head information sharing, reduce redundancy, and improve sample efficiency while increasing the trainable-parameter budget only marginally (Diep et al., 5 Oct 2025).
1. Problem setting and design objective
HoRA is motivated by a specific limitation of LoRA inside MHA: when LoRA is applied per head, each head effectively receives its own independent adapter parameters. The paper argues that this is suboptimal because attention heads are not truly independent functional units and because independent per-head adaptation prevents statistical sharing, especially in low-data regimes (Diep et al., 5 Oct 2025).
The underlying MHA formulation is written as
with head-wise attention
The projection shapes are
typically with .
In the main experimental setup, HoRA is applied to query and value matrices at each layer. The key and output projections are not adapted in the main formulation. This places HoRA in a narrower but more targeted regime than generic PEFT schemes that attach low-rank modules to every linear map in an attention block (Diep et al., 5 Oct 2025).
2. Joint hypernetworks and generated low-rank factors
The LoRA baseline used in the paper starts from a frozen pretrained weight
and a low-rank update
giving
For MHA, the per-head LoRA form is
with
HoRA replaces direct learning of those per-head factors with a shared hypernetwork parameterization. In the practical method section, the generated/shared factors are written as
and the head-specific factors are generated by
0
Here each head has a learnable embedding 1, with normalization
2
The paper gives
3
and analogously for the value branch. It also states that, for parameter efficiency, some 4 matrices are implemented as diagonal matrices (Diep et al., 5 Oct 2025).
Operationally, HoRA is “hyper-shared” because the low-rank matrices are not independently stored for each head. A shared generator maps head embeddings to head-specific adapters, so gradient information from all heads updates the same generator. The paper presents two expositions—a theory-side shared parameterization and a practical head-embedding construction—and the notation is somewhat inconsistent across them. The central architectural claim, however, is stable: shared hypernetworks couple low-rank adaptation across heads while retaining head-specific specialization (Diep et al., 5 Oct 2025).
3. Hierarchical mixture-of-experts view and sample-efficiency theory
A major part of HoRA’s contribution is theoretical. The paper reinterprets MHA as a hierarchical mixture of experts (HMoE) by vectorizing the input,
5
and expressing each output row as a hierarchy over head index 6 and token/expert index 7. In this view, attention scores become gates and value projections become expert functions. LoRA then perturbs both the routing and expert components of that HMoE (Diep et al., 5 Oct 2025).
For the non-shared case, the paper studies a regression function 8 and proves a lower bound
9
The authors interpret the non-shared parameterization as statistically inefficient because independent low-rank factorizations induce a weak-identifiability pathology. The argument is tied to a PDE-style degeneracy in the independently factorized low-rank parameters, represented in the paper by second derivatives such as
0
for
1
For the shared setting, HoRA uses a shared nonlinear parameterization and proves
2
The paper interprets this as a shift from an effectively exponential sample-complexity regime in the non-shared setting to polynomial rates such as 3 or 4 in the shared setting. The proof relies on assumptions including algebraic independence, uniform Lipschitz control, and strong identifiability of the shared parameterization (Diep et al., 5 Oct 2025).
This suggests that HoRA’s benefit is not merely parameter sharing in a storage sense. The paper’s claim is stronger: cross-head hyper-sharing yields a better-conditioned estimation problem.
4. Empirical performance across vision and language
HoRA is evaluated on ViT-B/16 for VTAB-1K and FGVC, and on LLaMA-7B and LLaMA-13B for commonsense reasoning. Across these settings, the trainable-parameter increase over LoRA is small: VTAB-1K moves from 5 to 6, FGVC from 7 to 8, LLaMA-7B from 9 to 0, and LLaMA-13B from 1 to 2 (Diep et al., 5 Oct 2025).
| Setting | LoRA | HoRA |
|---|---|---|
| VTAB-1K average | 72.2 | 74.4 |
| FGVC average | 84.78 | 89.96 |
| Commonsense, LLaMA-7B | 74.09 | 76.64 |
| Commonsense, LLaMA-13B | 80.18 | 80.82 |
On VTAB-1K, HoRA improves Natural from 3 to 4, Specialized from 5 to 6, Structured from 7 to 8, and the overall average from 9 to 0. On FGVC, the average improvement over LoRA is 1. On LLaMA-7B commonsense reasoning, HoRA improves the average from 2 to 3; on LLaMA-13B, it improves from 4 to 5 (Diep et al., 5 Oct 2025).
The paper’s strongest empirical support for the sample-efficiency claim is a data-fraction experiment on LLaMA-7B. Using fractions 6, HoRA outperforms LoRA at all fractions, and in the 7 data regime the performance gap is reported to exceed 8. An additional ablation on LLaMA-13B applies HoRA to Q/V and ordinary low-rank matrices to proj_up and proj_down; in that setting HoRA reaches 9 against LoRA’s 0 at the same 1 trainable-parameter budget (Diep et al., 5 Oct 2025).
5. Position within shared low-rank adaptation research
HoRA belongs to a broader family of methods that try to overcome the rigidity of fully layer-local LoRA by reusing low-rank structure. A plausible characterization is that HoRA is a cross-head hyper-sharing method, whereas several related methods explore cross-layer direct sharing.
ShareLoRA directly ties LoRA factors across layers, most successfully by sharing the down-projection matrix 2 while keeping the up-projection 3 layer-specific. Its main successful form is static and not hypernetwork-generated (Song et al., 2024). ASLoRA likewise shares one low-rank factor globally across layers, then adaptively merges the other factor during training through similarity-based hard merges (Hu et al., 2024). Lily breaks the strict per-layer pairing of LoRA factors by keeping a local projector and routing over globally shared experts, yielding a dynamic cross-layer shared-factor scheme (Zhong et al., 2024). Queryable LoRA moves further toward conditional reuse by introducing a global memory bank of rank-space atoms and blockwise routing over retrieved low-rank operators (Vaidya et al., 8 May 2026).
Against this background, HoRA is distinguished by the axis along which sharing occurs. It does not primarily share across depth, nor does it retrieve a blockwise operator from a global atom bank. Instead, it couples attention heads within MHA through a shared generator. This suggests that “hyper-shared” low-rank adaptation is not a single architectural pattern but a design space spanning direct factor tying, adaptive merging, routed experts, retrieved atoms, and hypernetwork-generated adapters.
6. Training setup, practical details, and limitations
The vision experiments use 100 epochs, warmup steps 100, batch size 64, rank 4, LoRA alpha 5, AdamW, and a cosine scheduler, with learning-rate and weight-decay grids. The language experiments use 3 epochs, warmup steps 100, batch size 32, learning rate 6, dropout 7, AdamW, a linear scheduler, rank 8, and alpha 9. The reported implementation uses 1 A100 GPU. For the hypernetwork producing the low-rank matrix 0, the vision setting uses input dimension 64 and hidden dimension 16, while the language setting uses input dimension 64 and hidden dimension 40 (Diep et al., 5 Oct 2025).
The initialization scheme is LoRA-like but asymmetric. The paper states that 1 and 2 are initialized with Kaiming uniform, 3 and 4 with zero initialization, and 5 with Kaiming uniform. It also states that 6 are sigmoid in experiments, while the appendix implementation details for the hypernetwork used in low-rank matrix 7 mention leaky ReLU. This is one of several notation and implementation inconsistencies in the paper.
The paper explicitly notes that too much sharing can hurt expressiveness. It also notes that evaluation is limited to Transformer architectures and that more work is needed on adaptive sharing mechanisms that balance specialization and reuse. At the same time, the paper does not provide extensive controlled ablations on number of heads, rank sweeps, degree of sharing, alternate hypernetwork topologies, or head-embedding design. These omissions matter because HoRA’s central claim is structural rather than purely empirical: its performance depends on how much adapter capacity should be shared across heads and how much should remain head-specific (Diep et al., 5 Oct 2025).