首页 > AI前沿 > NestMSQ: Nested Multi-State Quantization for Fast and Accurate LLM Prefill and Decoding

NestMSQ: Nested Multi-State Quantization for Fast and Accurate LLM Prefill and Decoding

arXiv机器学习 2026-12-01 13:00 10 阅读 查看原文
用户现在需要把给定的英文新闻正文排版成语义化的HTML片段,首先看内容,首先开头是一段介绍,然后有没有可以分小节的?首先先理结构:首先第一个

是开头介绍Nested quantization的概念,然后第二个

介绍NestMSQ是什么,然后接下来讲校准相关的,还有对比结果之类的?不对,等下,用户要求长文用h2/h3划分小节对吧?首先先看内容,首先整体是介绍NestMSQ的方法,首先先想,第一个部分可以先有h2?不对,先捋内容: 首先第一段:开头讲Nested quantization的基本概念,对,先

那部分。然后接下来是介绍NestMSQ的,然后讲校准的问题,然后讲效果对比,然后讲应用场景?不对,等下原文是连贯的,但是要划分小节的话,比如: 首先

Nested Quantization Overview

?不对不对,用户要求不能增删改内容,哦对!不能加原文没有的内容,哦对哦,规则4是保留原文所有信息,不得增删改内容,所以h2/h3的内容不能自己瞎加,要基于原文的段落?不对,原文是整个一个长文?不对,原文的内容是连贯的,但是可以划分小节,比如: 首先,第一部分是介绍背景和方法定义:

NestMSQ Method Introduction

?不对不对,不能自己加标题内容啊,哦不对,等下用户说长文用h2/h3划分小节,但是不能增删改内容,哦,不对,是不是h2/h3是标注小节,但是小节的内容是原文的,不能自己加标题文字?不对不对,等下看原文,原文是连续的几部分: 第一部分:Nested quantization的基本概念,就是第一句到“without loading another model.”?不对,再拆分: 哦不对,等下原文的段落其实是逻辑段落,首先: 第一段(背景与方法概述):Nested quantization of large language models...without loading another model. 对,这部分是讲这个量化的基础和NestMSQ的基本能力,然后可以给个

?不对,但是不能自己加标题文字啊,哦,不对,是不是我理解错了?不对,再看规则2:长文用

/

划分小节,哦,是把长文按内容分成小节,小节的标题?不对不对,原文里没有标题,那是不是应该把原文的内容按逻辑块,用h2或者h3来划分?不对不对,等下,会不会原文的内容里,自然的逻辑块,比如: 哦,等下,原文的内容: 1. 首先介绍Nested quantization的基础概念,然后引出NestMSQ的定义和基本能力,这是第一部分,可以用

?不对,然后接下来是校准相关的内容:During calibration...for all modes. 这是第二部分,讲校准的处理方法。然后接下来是效果对比和应用:Compared with...as the number of parallel requests changes. 这是第三部分,讲效果。 不对,但是不能加自己的话作为标题啊,哦!哦不对,是不是我搞错了,h2/h3是用来标记小节的层级,但是内容还是原文的,不对,不对,h2是标题,标题得有内容啊,但是原文没有标题,那怎么办?哦等下,会不会用户说的长文划分小节,是把原文的段落按逻辑用h2/h3作为分隔?不对,不对,再仔细看用户的要求,规则3是列表、引用、代码这些的用法,规则2是每个自然段落用p,长文用h2/h3划分小节,哦,哦,可能是指如果原文有不同小节的内容,就用h2/h3,但是这里原文是连续的,没有现成的标题,那是不是可以不用h2/h3?不对,不对,再看原文的内容,有没有可以作为小节的?不对,哦,不对,不能增删改内容,所以不能自己加标题文字,那是不是就直接把每个逻辑自然段用p包裹?不对,等下再看原文的内容,是不是连贯的,但是可以分成几个p? 等下,原文的句子: 第一句:Nested quantization of large language models embeds lower-precision models in the bits of a higher-precision one, so one checkpoint serves requests with different latency and accuracy needs without deploying a separate model for each precision. 第二句:We present NestMSQ (Nested Multi-State Quantization), a post-training quantization (PTQ) method whose INT8 checkpoint provides 4-bit weights for speed and 8-bit weights for accuracy, each with low-bit activations for arithmetic-heavy long prefill (W4A4, W8A8) or with 16-bit activations for bandwidth-heavy low-batch decoding (W4A16, W8A16). 第三句:The shared checkpoint can switch precision per request and between prefill and decoding without loading another model. 这部分是介绍背景和NestMSQ的基本定义和能力,可以作为一个p? 然后接下来: During calibration, different weight and activation precisions give the four modes different layer inputs and rounding errors. Compensation-based PTQ offsets rounding errors by adjusting weights still to be quantized. Nested weight precisions already favor different adjustments, while varying activation precision also makes the modes evaluate these errors on different inputs. NestMSQ therefore calibrates each mode on its own inputs and keeps its preferred adjustments separate while choosing each INT8 weight jointly for all modes. 这部分是讲校准的相关问题和NestMSQ的校准方法,可以作为第二个p? 然后接下来: Compared with sharing inputs and adjustments, this closes 73% of the W4A4 perplexity gap to a separately quantized model. Across two 8B models, the nested checkpoint stays within 1.3 average-accuracy points of separately quantized models in every mode. For single requests, W4A16 decoding after a W4A4 prefill keeps W4A4 speed and matches W4A16 accuracy on MATH-500. When long-input W4A4 prefill costs accuracy, W8A8 prefill with W4A16 decoding stays within 2.6 points of BF16 on three tasks at 1.96 to 2.61 times its output throughput. This flexibility extends to continuous-batching serving, where precision adapts as the number of parallel requests changes. 这部分是讲实验效果和应用场景,作为第三个p? 不对,但是用户说长文用h2/h3划分小节,那是不是需要加h2?但是不能加原文没有的内容啊,哦!哦等下,会不会我理解错了,h2/h3是用来标记小节的开头,但是不需要自己加标题,不对,h2是标题元素,必须有文本啊,哦,不对,会不会用户的意思是,如果原文有小标题的话就用,没有的话就按逻辑段落用p,但是如果是长文,可以按内容用h2/h3作为小节,但是标题用原文里的核心?不对,不对,规则4是不得增删改内容,所以不能加原文没有的字,那是不是这里不需要h2/h3?不对,再仔细看原文,有没有可以作为小节标题的?没有,原文全是正文,那是不是就直接用p包裹各个自然段? 等下,再看有没有重要的句子需要加strong,比如NestMSQ的定义?还有关键的数字?比如4-bit权重,8-bit权重?还有73%的间隙,1.3个精度点,2.6个点,1.96到2.61倍的吞吐量这些? 哦对,规则3说重要句子可用strong,那比如NestMSQ的名称,还有关键的性能数据可以加? 等下,现在开始组织: 首先第一个p,是背景和NestMSQ的基本定义:

Nested quantization of large language models embeds lower-precision models in the bits of a higher-precision one, so one checkpoint serves requests with different latency and accuracy needs without deploying a separate model for each precision. We present NestMSQ (Nested Multi-State Quantization), a post-training quantization (PTQ) method whose INT8 checkpoint provides 4-bit weights for speed and 8-bit weights for accuracy, each with low-bit activations for arithmetic-heavy long prefill (W4A4, W8A8) or with 16-bit activations for bandwidth-heavy low-batch decoding (W4A16, W8A16). The shared checkpoint can switch precision per request and between prefill and decoding without loading another model.

然后第二个p,是校准部分:

During calibration, different weight and activation precisions give the four modes different layer inputs and rounding errors. Compensation-based PTQ offsets rounding errors