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

AERO:面向私有LLM推理的熵引导框架

AERO: Entropy-Guided Framework for Private LLM Inference

Nandan Kumar Jha, Brandon Reagen

AI总结:

提出熵引导框架AERO,通过逐头熵正则化器自适应重校准,策略性消除transformer中的非线性操作,解决加密推理中的延迟与通信开销及非线性移除引发的失败模式,实现3.4倍通信和1.4倍延迟节省且无性能损失。

摘要:

隐私保护计算支持直接在加密数据上进行语言模型推理,但由于非线性函数,其面临极高的延迟和通信开销。然而,移除非线性会引发两种限制移除潜力的失败模式之一:深层中的熵崩溃(导致训练不稳定),以及浅层中的熵过载(导致注意力头利用不足)。为应对这些挑战,我们引入了AERO,一种熵引导框架,旨在从transformer架构中策略性地消除代价高昂的非线性操作。该框架通过带有可学习的逐头强度的逐头熵正则化器进行自适应重校准,使每个头能调整其熵水平,同时惩罚极端熵,并通过容忍裕度促进功能多样性。实验表明,AERO可节省3.4倍通信和1.4倍延迟,且无任何性能损失。

英文摘要:

Privacy-preserving computation enables language model inference directly on encrypted data yet suffers from prohibitive latency and communication overheads, primarily due to nonlinear functions. Removing nonlinearities, however, can trigger one of two failure modes restricting the potential for nonlinearity removal: entropy collapse in deeper layers, which destabilizes training, and entropic overload in early layers, causing under-utilization of attention heads. To address these challenges, we introduce AERO, an entropy-guided framework to strategically eliminates costly nonlinear operations from transformer architectures, which employs an adaptive recalibration through a head-wise entropy regularizer with learnable per-head strengths, enabling each head to adjust its entropy level while penalizing extreme entropies and fostering functional diversity through a tolerance margin. Experiments show AERO can save 3.4$\times$ communication and 1.4$\times$ latency, without any performance penalty.

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

↑