arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.01863cs.NEcs.LG
收藏

面向大语言模型的微缩放浮点格式

Microscaling Floating Point Formats for Large Language Models

University of Pisa, Department of Information Engineering(比萨大学信息工程学院)

Marco Cococcioni, Dario Pagani, Federico Rossi

AI总结:

针对大语言模型的资源消耗问题,提出采用块共享缩放因子的微缩放浮点格式,实现单字节紧凑表示,在GPT-2上验证其训练推理精度可观,为大模型高效部署提供新方案。

摘要:

大语言模型(LLM)日益增长的计算与内存需求,亟需在不损失性能的前提下优化资源使用的创新方案。本文采用微缩放浮点格式——这是一项专为应对上述挑战设计的新技术,可降低大语言模型中数值表示带来的存储与计算开销。与为每个数值分配独立缩放因子的传统浮点表示不同,微缩放在一组数值块上采用共享缩放因子,可实现紧凑的单字节浮点表示,同时保持更宽的动态范围。我们探索了微缩放在8位浮点格式场景下的应用,以显著降低内存占用与计算成本。我们在GPT-2大语言模型架构内测试了多种微缩放浮点配置,证明微缩放数据格式在训练和推理阶段均可达到具备竞争力的精度,验证了其作为资源高效型方案用于大规模部署大语言模型的有效性。源代码公开于:https://github.com/unipi-dii-compressedarith/llm.c-sve

英文摘要:

The increasing computational and memory demands of large language models (LLMs) necessitate innovative approaches to optimize resource usage without compromising performance. This paper leverages microscaling floating-point formats, a novel technique designed to address these challenges by reducing the storage and computational overhead associated with numerical representations in LLMs. Unlike traditional floating-point representations that allocate a dedicated scale for each value, microscaling employs a shared scale across a block of values, enabling compact one-byte floating-point representations while maintaining an extended dynamic range. We explore the application of microscaling in the context of 8-bit floating-point formats to significantly reduce memory footprint and computational costs. We tested several configurations of microscaling floats within the GPT-2 LLM architecture, demonstrating that microscaling data formats can achieve competitive accuracy during training and inference, proving its efficacy as a resource-efficient alternative for deploying LLMs at scale. The source code is publicly available at: https://github.com/unipi-dii-compressedarith/llm.c-sve

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑