Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMs
Jordan Dotzel, Yuzong Chen, Bahaa Kotb, Sushma Prasad, Gang Wu, Sheng, Li, Mohamed S. Abdelfattah, Zhiru Zhang

TL;DR
This paper introduces Student Float (SF4), a new data format based on t-distributions, which improves LLM accuracy and efficiency tradeoffs over existing formats like NF4, enabling better hardware utilization.
Contribution
The paper derives a theoretically optimal data format for LLMs based on t-distributions and demonstrates its advantages over prior formats through extensive analysis and experiments.
Findings
SF4 improves LLM accuracy over NF4 by 0.76% on LLaMA2-7B.
E2M1 with supernormal support increases Phi-2 accuracy by 2.19%.
Identifies a Pareto frontier of data formats balancing accuracy and chip area.
Abstract
The increasing size of large language models (LLMs) traditionally requires low-precision integer formats to meet strict latency and power demands. Yet recently, alternative formats such as Normal Float (NF4) have increased model accuracy at the cost of increased chip area. In this work, we first conduct a large-scale analysis of LLM weights and activations across 30 networks and conclude that most distributions follow a Student's t-distribution. We then derive a new theoretically optimal format, Student Float (SF4), that improves over NF4 across modern LLMs, for example increasing the average accuracy on LLaMA2-7B by 0.76% across tasks. Using this format as a high-accuracy reference, we then propose augmenting E2M1 with two variants of supernormal support for higher model accuracy. Finally, we explore the quality and efficiency frontier across 11 datatypes by evaluating their model…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMathematics, Computing, and Information Processing · Natural Language Processing Techniques · Educational Technology and Assessment
