论文精选

表格基础模型注意力量化方法提升推理效率

Attention Quantization for Tabular Foundation Models

精选理由

研究团队开发了一种针对表格模型的量化方法,能显著提升推理速度,且在多个基准测试中保持精度,值得了解。

研究针对表格数据的基础模型,提出了一种量化查询、键、值的FP8策略,通过专用指令加速注意力计算。该方法在TabPFN-v3和TabICLv2上测试,在TabArena和BeyondArena基准上未出现显著精度下降,Triton内核实现速度提升达1.7倍。

原文 · arXiv cs.AI

Attention Quantization for Tabular Foundation Models

With the recent rise and adoption of tabular foundation models, optimizing their inference performance becomes an emerging field for efficiency research. While the models are architecturally similar to transformer-based large language models (LLMs), the size and serving patterns differ significantly. We show that the focus should be on the attention calculation and less on weight or KV cache quantization, which are more popular in LLMs. We develop a quantization strategy for queries, keys, and values to FP8 and use explicit FP8 matrix multiplication instructions to speed up the attention calculation. We find that it is crucial to align the quantization error in the test rows with the quantization error in the training rows, as otherwise the accuracy drops drastically. Our Triton kernel achieves a speedup up to 1.7x over regular 16-bit kernels, and we show that on TabPFN-v3 and TabICLv2 there is no relevant accuracy loss across TabArena and BeyondArena.