paper-with-me

홈 › Papers

Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMs

2024-05-06 · Jordan Dotzel, Yuzong Chen, Bahaa Kotb, Sushma Prasad, Gang Wu, Sheng Li, Mohamed S. Abdelfattah, Zhiru Zhang

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 accuracy and hardware complexity. We discover a Pareto curve composed of INT4, E2M1, and E2M1 with supernormal support, which offers a continuous tradeoff between model accuracy and chip area. For example, E2M1 with supernormal support increases the accuracy of Phi-2 by up to 2.19% with 1.22% area overhead, enabling more LLM-based applications to be run at four bits. The supporting code is hosted at https://github.com/cornell-zhang/llm-datatypes.

📄 PDF Abstract BibTeX arXiv:2405.03103

Code (1)

cornell-zhang/llm-datatypes 공식 구현 tf

Tasks

Quantization

Similar Papers 제목 키워드 기반

DiverseClaire: Simulating Students to Improve Introductory Programming Course Materials for All CS1 Learners

2025-11-18 · Wendy Wong, Yuchao Jiang, Yuekang Li arxiv

Although CS programs are booming, introductory courses like CS1 still adopt a one-size-fits-all formats that can exacerbate cognitive load and discourage learners with autism, ADHD, dyslexia and other neurological condit…

Assessment Formats and Student Learning Performance: What is the Relation?

2017-11-15 · Khondkar Islam, Pouyan Ahmadi, Salman Yousaf

Although compelling assessments have been examined in recent years, more studies are required to yield a better understanding of the several methods where assessment techniques significantly affect student learning proce…

ManagementRelation

Ordinal Behavior Classification of Student Online Course Interactions

2024-04-20 · Thomas Trask

The study in interaction patterns between students in on-campus and MOOC-style online courses has been broadly studied for the last 11 years. Yet there remains a gap in the literature comparing the habits of students com…

Classification

From Text to Visuals: Using LLMs to Generate Math Diagrams with Vector Graphics

2025-03-10 · Jaewook Lee, Jeongah Lee, Wanyong Feng, Andrew Lan

Advances in large language models (LLMs) offer new possibilities for enhancing math education by automating support for both teachers and students. While prior work has focused on generating math problems and high-qualit…

MathQuestion AnsweringVector GraphicsVisual Question Answering

Students' Perceived Roles, Opportunities, and Challenges of a Generative AI-powered Teachable Agent: A Case of Middle School Math Class

2024-08-26 · Yukyeong Song, Jinhee Kim, Zifeng Liu, Chenglu Li 외

Ongoing advancements in Generative AI (GenAI) have boosted the potential of applying long-standing learning-by-teaching practices in the form of a teachable agent (TA). Despite the recognized roles and opportunities of T…

Math