Block-Diagonal LoRA for Eliminating Communication Overhead in Tensor Parallel LoRA Serving

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Xinyu, Kübler, Jonas M., Budhathoki, Kailash, Wang, Yida, Kleindessner, Matthäus
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911356853157888
author Wang, Xinyu
Kübler, Jonas M.
Budhathoki, Kailash
Wang, Yida
Kleindessner, Matthäus
author_facet Wang, Xinyu
Kübler, Jonas M.
Budhathoki, Kailash
Wang, Yida
Kleindessner, Matthäus
contents When serving a single base LLM with several different LoRA adapters simultaneously, the adapters cannot simply be merged with the base model's weights as the adapter swapping would create overhead and requests using different adapters could not be batched. Rather, the LoRA computations have to be separated from the base LLM computations, and in a multi-device setup the LoRA adapters can be sharded in a way that is well aligned with the base model's tensor parallel execution, as proposed in S-LoRA. However, the S-LoRA sharding strategy encounters some communication overhead, which may be small in theory, but can be large in practice. In this paper, we propose to constrain certain LoRA factors to be block-diagonal, which allows for an alternative way of sharding LoRA adapters that does not require any additional communication for the LoRA computations. We demonstrate in extensive experiments that our block-diagonal LoRA approach is similarly parameter efficient as standard LoRA (i.e., for a similar number of parameters it achieves similar downstream performance) and that it leads to significant end-to-end speed-up over S-LoRA. For example, when serving on eight A100 GPUs, we observe up to 1.79x (1.23x) end-to-end speed-up with 0.87x (1.74x) the number of adapter parameters for Llama-3.1-70B, and up to 1.63x (1.3x) end-to-end speed-up with 0.86x (1.73x) the number of adapter parameters for Llama-3.1-8B.
format Preprint
id arxiv_https___arxiv_org_abs_2510_23346
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Block-Diagonal LoRA for Eliminating Communication Overhead in Tensor Parallel LoRA Serving
Wang, Xinyu
Kübler, Jonas M.
Budhathoki, Kailash
Wang, Yida
Kleindessner, Matthäus
Machine Learning
When serving a single base LLM with several different LoRA adapters simultaneously, the adapters cannot simply be merged with the base model's weights as the adapter swapping would create overhead and requests using different adapters could not be batched. Rather, the LoRA computations have to be separated from the base LLM computations, and in a multi-device setup the LoRA adapters can be sharded in a way that is well aligned with the base model's tensor parallel execution, as proposed in S-LoRA. However, the S-LoRA sharding strategy encounters some communication overhead, which may be small in theory, but can be large in practice. In this paper, we propose to constrain certain LoRA factors to be block-diagonal, which allows for an alternative way of sharding LoRA adapters that does not require any additional communication for the LoRA computations. We demonstrate in extensive experiments that our block-diagonal LoRA approach is similarly parameter efficient as standard LoRA (i.e., for a similar number of parameters it achieves similar downstream performance) and that it leads to significant end-to-end speed-up over S-LoRA. For example, when serving on eight A100 GPUs, we observe up to 1.79x (1.23x) end-to-end speed-up with 0.87x (1.74x) the number of adapter parameters for Llama-3.1-70B, and up to 1.63x (1.3x) end-to-end speed-up with 0.86x (1.73x) the number of adapter parameters for Llama-3.1-8B.
title Block-Diagonal LoRA for Eliminating Communication Overhead in Tensor Parallel LoRA Serving
topic Machine Learning
url https://arxiv.org/abs/2510.23346