Preserving Regularity in Finite-Precision Transformer Approximation
Yuling Jiao, Huazhen Lin, Yuchen Luo, Wei Shao, Jerry Zhijian Yang
原文摘要
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.
cs.LG · stat.ML