NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Batched Low-Rank Adaptation of Foundation Models

Yeming Wen, Swarat Chaudhuri · DOI

Introduction

The "Foundation Model" era relies heavily on efficient fine-tuning. While Low-Rank Adaptation (LoRA) is the standard for parameter-efficient fine-tuning, it introduces a significant bottleneck in real-time serving environments where multiple users require different task-specific adapters. In a production setting, a single GPU might receive simultaneous requests for diverse tasks—such as Python coding, translation, and legal analysis. Standard LoRA implementations typically assume all requests in a batch share the same adapter. Handling diverse requests requires either sequential processing, which is slow, or Batch Matrix Multiplication (BMM), which is computationally expensive and introduces high latency.

FLORA: Fast Low-Rank Adaptation

To address these challenges, we introduce FLORA (Fast LoRA), a framework designed to allow every example in a minibatch to use its own unique adapter weights with minimal overhead. The core innovation is a mathematical reformulation of the LoRA forward pass to make it "batch-friendly."

The FLORA framework processes heterogeneous batches by vectorizing task-specific weights.

In standard LoRA, the adapter update is defined as $\Delta W = BA$. FLORA introduces example-specific adapters $\Delta W_i$ for each input $x_i$. By utilizing element-wise multiplication ($\circ$) and efficient vectorization, the operation is transformed into a series of standard matrix multiplications. This allows modern GPUs to process heterogeneous batches—where every request has a different adapter—almost as quickly as homogeneous ones.

Experimental Evaluation

FLORA was evaluated across three distinct domains to ensure performance gains did not come at the cost of accuracy:

  • Serving Throughput: Benchmarked using the vLLM framework on StarCoder (1B, 3B, 15B) and Llama-2 (7B, 13B) models.
  • Code Generation: Tested on the MultiPL-E benchmark across 8+ programming languages.
  • Speech Recognition: Evaluated on the Common Voice benchmark across 6 languages using the Whisper-1.5B model.

Key Results

FLORA demonstrates significant improvements in both throughput and latency, particularly for large-scale models.

Throughput and latency comparison between FLORA and BMM-based LoRA on StarCoder models.
  • Throughput and Latency: On the StarCoder 15B model, FLORA achieved up to a 2x improvement in throughput compared to the BMM-based LoRA baseline. In low-rank settings ($r=1$ to $r=4$), FLORA cut the time-per-token (latency) in half, reducing it from 1.8 seconds to sub-1-second responses.
  • Accuracy Preservation: Across coding and speech tasks, FLORA matched or slightly exceeded the accuracy of standard LoRA and IA3. For instance, in Ruby code generation, it enabled StarCoder 15B to improve its pass rate from 1.39% to 24.94%.

Discussion and Limitations

The performance advantage of FLORA is most pronounced at lower ranks. As the rank ($r$) of the adapter increases (e.g., $r > 8$ for StarCoder 15B), the computational cost of FLORA rises, and standard BMM approaches may become more efficient. Additionally, while FLORA currently requires its own fine-tuning process, future work could explore methods to convert existing LoRA weights directly into FLORA format. Integrating FLORA with quantization techniques like QLoRA also represents a promising avenue for further efficiency gains.

Summary updated

BibTeX
@inproceedings{wen2024batched,
  author = {Yeming Wen and Swarat Chaudhuri},
  title = {{Batched Low-Rank Adaptation of Foundation Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=w4abltTZ2f},
}
Figure