arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.16583cs.LGcs.AI
收藏

POLAR:边缘大语言模型服务中的LoRA适配器缓存与路由在线学习

POLAR: Online Learning for LoRA Adapter Caching and Routing in Edge LLM Serving

Stony Brook University(石英溪大学)

Shaoang Li, Jian Li

AI总结:

本文提出POLAR算法,通过在线学习解决边缘LLM服务中LoRA适配器的缓存与路由问题,结合缓存控制与路由策略,实现子线性 regrets 的理论保证和实验验证。

摘要:

边缘大语言模型(LLMs)的部署越来越多地依赖于轻量级LoRA适配器库,但GPU/DRAM只能在一段时间内保持少量驻留子集。通过非驻留适配器服务请求需要从存储中 paging 权重,这会带来可测量的延迟。这创建了一个双时间尺度在线控制问题:在慢时间尺度上,系统选择哪些适配器驻留在高速内存中,而在快时间尺度上,它将每个请求路由到一个上下文依赖的效用未知的适配器。这两个决定紧密耦合:缓存决定探索的成本,而路由决定哪些适配器接收有信息的反馈。我们把这个联合缓存与路由问题建模为双时间尺度上下文带宽问题,并提出POLAR(Paging and Online Learning for Adapter Routing)。POLAR结合了一个缓存感知的LinUCB路由器和基于周期的缓存控制器。我们研究了两种变种。固定周期版本提供了一个鲁棒的基础线,具有任意上下文下的最坏情况 regret 保证。一个周期翻倍版本,POLAR+,增加了强制探索和改进的缓存优化,以在随机性和缓存性条件下达到 $\widetilde{\mathcal{O}}(d\sqrt{NT}+\sqrt{KT})$ 的子线性 regret,其中 $N$ 是适配器数量,$K$ 是缓存大小,$d$ 是上下文维度,$T$ 是时间范围。路由项与标准上下文带宽速率匹配,证明内存层次结构并不从根本上减慢路由学习。使用15个真实LoRA适配器和测量的GPU paging延迟进行的实验表明,自适应缓存控制显著优于非自适应基线,并且表现出与理论一致的扩展趋势。

英文摘要:

Edge deployment of large language models (LLMs) increasingly relies on libraries of lightweight LoRA adapters, yet GPU/DRAM can keep only a small resident subset at a time. Serving a request through a non-resident adapter requires paging its weights from storage, incurring measurable latency. This creates a two-timescale online control problem: on a slow timescale, the system selects which adapters remain resident in fast memory, while on a fast timescale it routes each request to an adapter whose context-dependent utility is unknown a priori. The two decisions are tightly coupled: the cache determines the cost of exploration, and the router determines which adapters receive informative feedback. We formulate this joint caching-and-routing problem as a two-timescale contextual bandit and propose POLAR (Paging and Online Learning for Adapter Routing). POLAR pairs a cache-aware LinUCB router with an epoch-based cache controller. We study two variants. A fixed-epoch version provides a robust baseline with worst-case regret guarantees under arbitrary contexts. An epoch-doubling version, POLAR+, adds forced exploration and improved cache optimization to achieve $\widetilde{\mathcal{O}}(d\sqrt{NT}+\sqrt{KT})$ sublinear regret under stochastic regularity and cacheability conditions, where $N$ is the adapter count, $K$ the cache size, $d$ the context dimension, and $T$ the horizon. The routing term matches the standard contextual-bandit rate up to logarithmic factors, showing that the memory hierarchy does not fundamentally slow routing learning. Experiments using 15 real LoRA adapters for Qwen2.5-7B together with measured GPU paging latencies show that adaptive cache control substantially outperforms non-adaptive baselines and exhibits scaling trends consistent with the theory.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑