Algebraic Integer Quantization for Machine Learning Applications
Abstract
In this article, we propose algebraic integer number formats (AINF) as a framework for highly configurable and accurate compressed computation. A key property of AINF is its straightforward reduction to purely integer arithmetic, enabling error-free multiply-accumulate operations. We develop a matrix multiplication engine that exploits this property, obtaining performance within a predictable factor of the most efficient numerical counterparts on modern hardware accelerators. Another key advantage of AIQ is the freedom to select algebraic integers tailored to the numerical characteristics of a given use case, offering optimization opportunities that are fundamentally unavailable in floating-point or fixed-point formats. Motivated by these properties, we introduce algebraic integer quantization (AIQ), a lossy compression format for large language model (LLM) inference, and provide results demonstrating that AIQ achieves competitive accuracy compared to the industry-standard MX format across a diverse set of models and benchmarks at equivalent bit-per-parameter budgets. The experiments presented in this article employ algebraic integers of degree two (quadratic integers); generalizations to higher-order and, in particular, multidimensional algebraic integers promise even greater computational advantages and remain a promising direction for future work.
Create a lesson
Related papers
Local Affine Quantization for KV Caches: From Shared Ranges to Prediction Error
Shared title terminologycs.LGShrey Shah, Rohith Kukkala
Machine Learning Moment Closure for the Radiative Transfer Equation: Enforcing Hyperbolicity and Wave-Speed Bounds
Shared title terminologycs.LGBongseok Kim, Guang Lin
Automated Machine Learning for Time-Series Early Warning Systems: Separating Signal from Mirage Alarms
Shared title terminologycs.LGFrederick von Rönge
Geodesic Tensor Diffusion for Estimation of the Local Riemannian Metric in Machine Learning
Shared title terminologycs.LGAlexandre L. M. Levada
Invertibility aware Integration of Static and Time-series data: An application to Lake Temperature Modeling
Shared title terminologycs.LGKshitij Tayal, Xiaowei Jia, Rahul Ghosh et al.
Pruning Redundant Literals in Tsetlin Machines via Minimal Co-Firing Clauses
Shared title terminologycs.LGKunal Dumbre, Mayur Shende, Ole-Christoffer Granmo et al.