有限精度 Transformer 逼近理论研究:低比特量化下保持 Hölder 正则性
Preserving Regularity in Finite-Precision Transformer Approximation
搞量化和理论的人都该看看这篇:它证明了低比特 Transformer 不光能逼近函数,还能保住 Hölder 正则性,权重只要 ±1、±1/2 三种值就够。存储界还做到了差一个 log 因子的最优,做压缩或研究量化理论的话很有参考价值。
arXiv 论文 2612.04218 研究有限精度 Transformer 的逼近理论,填补了传统量化理论假设权重为无约束实数的空白。
论文针对 [0,1]^{d×n} 上的矩阵值目标函数构造了一个有限精度 Transformer,在分量满足 C^{0,λ} 范数不超过 L 的条件下,保持预设的逐分量 ℓ¹-Hölder 界 L。技术上,其特征网络的隐藏权重取值于 {0,±1,±1/2} 且与目标无关,目标相关性仅体现在输出系数上。
对 D=dn 的维度,该 Transformer 以 O(ε^{-D/λ}) 个非零参数达到一致误差 ε,所有参数共用 O(log(1/ε)) 比特的定点格式;在固定 d、n、L、λ 时,该最坏情况总存储界在此类目标上已达到 ε 最优(差一个 log 因子)。
应用方面,在此类结构化有限精度 Transformer 类上做 m 样本经验风险最小化,在 sub-Gaussian 噪声下预期平方预测风险为 O((log(em)/m)^{2λ/(2λ+D)}),与经典 Hölder 极小极大指数匹配(差对数因子)。
Preserving Regularity in Finite-Precision Transformer Approximation
Quantitative Transformer approximation theory predominantly treats weights as unconstrained real numbers, leaving a gap between theoretical guarantees and the finite-precision representations used in low-bit deployment. Quantization can also increase a model's sensitivity to small input perturbations even when the approximation error remains small. We study whether finite-precision Transformers can simultaneously achieve accurate approximation, controlled storage complexity, and preservation of a prescribed regularity bound. For $0<λ\le 1$, we construct a finite-precision Transformer for matrix-valued targets on $[0,1]^{d\times n}$ whose components satisfy $\|f_{pq}\|_{C^{0,λ}}\le L$, while preserving the prescribed componentwise $\ell^1$-Hölder bound $L$. The hidden weights of its underlying feature network take values in $\{0,\pm1,\pm1/2\}$ and are target-independent, while target dependence is confined to the output coefficients. For $D=dn$, the resulting Transformer achieves uniform error $\varepsilon$ with $O(\varepsilon^{-D/λ})$ nonzero parameters and a common $O(\log(1/\varepsilon))$-bit fixed-point format for all parameters. For fixed $d$, $n$, $L$, and $λ$, the worst-case total storage bound is optimal in $\varepsilon$ up to a $\log(1/\varepsilon)$ factor among fixed-architecture finite-bit parameterizations of this target class. These guarantees concern parameter storage under exact forward evaluation. As an application, empirical risk minimization with $m$ samples over a structured finite-precision Transformer class achieves expected squared prediction risk $O((\log(em)/m)^{2λ/(2λ+D)})$ under sub-Gaussian noise, matching the classical Hölder minimax exponent up to a logarithmic factor, and the same rate bound holds when the estimator is constrained to satisfy the prescribed $\ell^1$-Hölder bound.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Transformer, quantization, approximation theory.
Source attribution: curated from arXiv cs.LG (@Yuling Jiao, Huazhen Lin, Yuchen Luo, Wei Shao, Jerry Zhijian Yang).