Elastic Precision: Software-Hardware Co-Design of a Mixed-Precision Architecture for Long-Context LLM Inference
Boyang Chen, Xiao Wu, Haoran Wu, Yiren Zhao
Abstract
Low-bit quantization reduces the data movement and computation costs of large language model (LLM) inference, but uniform widths can waste precision and degrade model quality. Existing mixed-precision methods do not fully account for how the other input of the current GEMM tile affects output error when selecting one input's width. Using both inputs to guide precision introduces additional estimation and selection overheads on conventional hardware. We propose Coffee, a runtime precision allocation architecture for long-context LLM inference. Under a fixed average bit-width budget, Coffee combines statistics from both current input matrices to estimate output errors at candidate widths and select each subarray's two input widths, allocating more bits where they yield greater estimated error reductions. Its mixed-precision hardware supports the selected widths in data access and computation, while overlapping error estimation and width selection with transfers and computation to limit stalls. The same read path supports attention-guided KV reads during decoding, reducing memory traffic. Coffee achieves lower perplexity and higher average zero-shot accuracy than the evaluated quantization baselines, and higher long-context retrieval recall than PLENA. For long-context decoding, system modeling projects up to 2.55× the throughput and 2.61× the energy efficiency of the reconfigured PLENA baseline, and up to 4.96× and 12.56×, respectively, compared with the B200 GPU baseline.
Create a lesson
Related papers
MCF: A Memory- and Communication-Aware Co-Designed Framework for Long-Context LLM Inference
Shared title terminology · Huaizhi Zhang, Jiacheng Zhu, Xuqi Zhu et al.
Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Shared title terminology · Wajahat Riaz, Muhammad Adeel Pasha, Shahid Masud et al.
MX-Like Tensor Core for LLM Inference with NPU Integration via Hardware-Software Co-Design Exploration
Shared title terminology · Zijun Zhao, Ruichu Ao, Stef Cuyckens et al.
Sub-100KB On-Device CNN Training via Dynamic Sparse Updates and Hardware--Software Co-Design
Shared title terminology · I-Hsuan Li, Tian-Sheuan Chang
Learning to Formulate: Agentic Hardware-Software Co-Design of AI Infrastructure through Progressive Optimization and Verification
Shared title terminology · Yi Ding, Li Shang
SPARTA: A Sparse Ternary LLM Accelerator with Adaptive Attention and Unified Datapath for Long-Context Edge Inference
Shared title terminology · Yanzhen Zhou, Zhengyu Han, Qunyou Liu et al.