HoRA: Cross-Head Low-Rank Adaptation with Joint Hypernetworks

Nghiem Tuong Diep, Le Quang Dung, Tuan Truong, Tan Dinh, Huy Nguyen, Nhat HoSubmission to ICLR 2026 · Desk rejected

TL;DR

Standard Low-Rank Adaptation (LoRA) updates attention heads independently, ignoring functional synergies across heads and degrading sample efficiency in low-data regimes. This paper introduces HoRA (Hyper-shared Low-Rank Adaptation), which uses a shared hypernetwork to coordinate low-rank adapter generation across heads. Both theoretical analysis and extensive vision/NLP experiments show that cross-head parameter sharing drastically improves sample efficiency while adding almost no parameter overhead.

What Problem Does This Paper Address?

In Multi-Head Attention (MHA), different attention heads frequently learn overlapping or complementary representations. However, standard LoRA adapts each attention head independently without coordination.

This design leads to two major drawbacks:

  1. Redundancy: Separate adapters for each head often learn redundant transformations.
  2. Poor sample efficiency: Because heads rely exclusively on their isolated gradient signals, the model struggles to generalize when downstream adaptation data is scarce.

Methods

The authors formulate Multi-Head Attention through the theoretical lens of a Hierarchical Mixture of Experts (HMoE), where each token position routes information across heads (outer level) and keys/values (inner level). Under this view, independent low-rank updates cause unfavorable interactions (described by a degenerate system of partial differential equations) that slow parameter estimation rates.

To solve this, HoRA introduces structured parameter sharing using hypernetworks:

  • Shared Base Generators: Instead of learning independent adapter matrices $A$ and $B$ directly for each head $i$, a shared hypernetwork generates them.
  • Architecture:
  • Projection matrices $A_Q$ and $A_V$ are parameterized via shared weight transformations: $A_Q = \sigma_1(W_{Q,A} A)$ and $A_V = \sigma_1(W_{V,A} A)$, where $A$ is a diagonal matrix.
  • The $B$ adapters share a common first-layer projection over normalized head embeddings $B_i$: $$B_{Q,i} = W_{Q,B,2}\,\sigma_2(W_{B,1}\text{LN}(B_i)), \quad B_{V,i} = W_{V,B,2}\,\sigma_2(W_{B,1}\text{LN}(B_i))$$
  • Here, $B_i$ provides head-specific specialization, while $W_{B,1}$ amortizes representation learning across all heads and projections.
  • Zero Inference Overhead: Once fine-tuning is complete, the generated low-rank matrices can be merged back into the frozen base weights, incurring zero latency or compute penalty at inference time.

Datasets

The authors evaluated HoRA across vision and natural language processing tasks:

  • VTAB-1K: 19 vision tasks partitioned into Natural, Specialized, and Structured domains (1,000 training examples per task), evaluated on ViT-B/16.
  • FGVC (Fine-Grained Visual Categorization): 5 benchmark datasets—CUB-200-2011, NABirds, Oxford Flowers, Stanford Dogs, and Stanford Cars.
  • Commonsense Reasoning (NLP): 8 multi-choice reasoning datasets (BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC-e, ARC-c, and OBQA) consolidated into ~150k training examples, tested on LLaMA-7B and LLaMA-13B.

Key Insights and Ideas

  • From Exponential to Polynomial Convergence: The authors prove that estimating uncoupled LoRA adapters exhibits an exponential sample complexity lower bound of order $\mathcal{O}(\exp(\epsilon^{-1/\tau}))$. By contrast, the shared hypernetwork parameterization removes parameter degeneracy, yielding polynomial sample complexity of $\mathcal{O}(\epsilon^{-2})$ or $\mathcal{O}(\epsilon^{-4})$.
  • Regularization via Coupling: Cross-head sharing acts as an implicit regularizer. Gradients from all attention heads shape a shared representation space, dramatically curtailing overfitting in low-data regimes.
  • Practical Training Efficiency: Although hypernetwork generation increases theoretical training FLOPs (e.g., 41.32 vs. 6.63 GFLOPs on LLaMA-7B), actual wall-clock training runtime remains virtually indistinguishable from vanilla LoRA (~4.21s vs. 4.17s).

Key Results

  • Data Scarcity Generalization: On LLaMA-7B subsampled to just 1% of the commonsense reasoning data, HoRA outperformed vanilla LoRA by over 20% in accuracy.
  • Vision Benchmarks (ViT-B/16):
  • VTAB-1K: Achieved 74.4% average accuracy, outperforming LoRA (72.2%) and DoRA (72.8%) with consistent gains across Natural (+2.2%), Specialized (+2.1%), and Structured (+2.2%) sub-tasks.
  • FGVC: Reached 89.96% average accuracy, exceeding Full Fine-Tuning (88.54%) and LoRA (84.78%), while setting new best marks on 4 of the 5 datasets.
  • Language Reasoning (LLaMA):
  • LLaMA-7B: Attained 76.64% average accuracy, outperforming LoRA (74.09%) and DoRA (74.94%) with only 0.28% trainable parameters.
  • LLaMA-13B: Attained 80.82% average accuracy (vs. 80.18% for LoRA and 80.05% for DoRA).

Limitations and Future Work

  • Risk of Over-Sharing: Aggressive parameter sharing can restrict model capacity and expressiveness if applied too broadly across diverse projections.
  • Scope of Architectures: Validations were restricted strictly to Transformer-based vision and language architectures; non-Transformer architectures remain unverified.
  • Static Sharing Topology: The hypernetwork structure is fixed beforehand; future research could explore dynamic or input-dependent routing to balance expressiveness and parameter sharing automatically.

Summary updated

Abstract

Low-Rank Adaptation (LoRA) is a parameter-efficient fine-tuning (PEFT) technique that adapts large pre-trained models by adding low-rank matrices to their weight updates. However, in the context of fine-tuning multi-head self-attention (MHA), LoRA has been employed to adapt each attention head separately, thereby overlooking potential synergies across different heads. To mitigate this issue, we propose a novel Hyper-shared Low-Rank Adaptation (HoRA) method, which utilizes joint hypernetworks to generate low-rank matrices across attention heads. By coupling their adaptation through a shared generator, HoRA encourages cross-head information sharing, and thus directly addresses the aforementioned limitation of LoRA. By comparing LoRA and HoRA through the lens of hierarchical mixture of experts, our theoretical findings reveal that the latter achieves superior sample efficiency to the former. Furthermore, through extensive experiments across diverse language and vision benchmarks, we demonstrate that HoRA outperforms LoRA and other PEFT methods while requiring only a marginal increase in the number of trainable parameters.
BibTeX
@misc{diep2025hora,
  author = {Nghiem Tuong Diep and Le Quang Dung and Tuan Truong and Tan Dinh and Huy Nguyen and Nhat Ho},
  title = {{HoRA: Cross-Head Low-Rank Adaptation with Joint Hypernetworks}},
  year = {2025},
  eprint = {2510.04295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04295},
}
Figure