arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.22002cs.LGcs.ITmath.IT
收藏

Transformer推理的率-失真优化

Understanding Rate-Distortion Performance in Distributed Transformer Inference

Simon Fraser University(西蒙弗雷泽大学)

Anderson de Andrade, Alon Harell, Ivan V. Bajić

AI总结:

本文提出基于率-失真原理的压缩框架,通过学习紧凑编码在准确率与比特率间进行权衡,实验证明其在语言基准测试中能显著提升压缩效率。

摘要:

Transformers在许多任务上表现优异,但在推理过程中计算和内存需求很高。通过在多个设备上划分过程可以提高效率,这需要压缩中间表示。我们介绍了一个基于率-失真原理的有原则压缩框架,学习紧凑编码以在比特率和准确率之间进行权衡。在语言基准测试中的实验表明,所提出的最简单的编码器实现了显著的率节省,优于更复杂的 方法。我们刻画并分析了transformers的率-失真行为,提供了一个统一的视角来理解表示编码的性能。这种形式将信息论概念扩展到推导可学习编码器可实现的速率界限。对于不同的架构和任务,我们实证表明它们的速率由这些界限驱动,增强了形式的可解释性。

英文摘要:

Transformers achieve superior performance on many tasks, but impose heavy compute and memory requirements during inference. This inference can be made more efficient by partitioning the process across multiple devices, which, in turn, requires compressing its intermediate representations. We study compressibility of transformer's intermediate representations via learned compression through the lens of rate-distortion and the theory of usable information. Our study reveals that, unlike convolutional models, deeper representations in transformers become more difficult to compress. The reason for this behavior is twofold: first, the complexity of representation increases as we move deeper into the transformer, necessitating a higher rate; and second, the higher complexity of representations worsens the generaliztion bound for learned entropy estimates, which further compromises compression performance. Through a combination of experiments and theory, we characterize and analyze the compressibility of transformer representations, derive bounds on the achievable rate of learned codecs applied to these representations, and offer a unified lens for understanding rate-distortion performance in representation coding.

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

↑