[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"news-slug-any-rate-half-bit-multi-precision-quantization":3,"topics-all":38,"news-related-71409616-c416-4983-ae5d-a001c35fbdb3":67},{"id":4,"title":5,"summary":6,"content":7,"original_url":8,"source_id":9,"tags":10,"translations":24,"news_slug":31,"published_at":32,"created_at":33,"modified_at":34,"is_published":35,"publish_type":36,"image_url":14,"view_count":37},"71409616-c416-4983-ae5d-a001c35fbdb3","一个存档,2到8比特随手切,还能走半档","论文 Any-Rate 把多精度量化的档位从整数比特推到半比特:用扩展汉明码约束部分比特面,让 2 到 4 比特之间出现 2.5、3.5 这样的中间档,再靠逐档独立编码目标压低嵌套代价。四个模型上 2 比特保住 FP16 精度的 69%,3.5 比特保住 95%。","端侧部署的老问题:同一个模型要在内存和电量预算不同的设备上都能跑,让一份权重同时提供多档精度是常见做法。难点是档位只能是整数,2 比特、3 比特、4 比特,中间没有 2.5 这种选择,而这恰恰最难选,2 比特最容易崩,3 比特往往已经够用。\n\n## 一个存档,一份嵌套代价\n\n嵌套多精度量化只存一个检查点,每个精度档位(论文里叫 mode)只读权重的前几层比特面。已有方法都做到了,但档位是整数比特的,2 比特和 3 比特之间没有中间选项。\n\n更麻烦的是档位互相牵制。带误差反馈时每个档位朝各自目标修正,但所有档位必须共用前面几层比特面,高档位要为低档位让路。论文称之为「嵌套代价」。\n\nAny-Rate 走的还是这个框架,补两件事:让 2 到 4 比特之间出现半比特档,并把嵌套代价压下去。\n\n## 半档位从哪来\n\n论文 (https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.34402) 把部分比特面限制成扩展汉明码 (Hamming [8,4,4]) 的合法码字,作用在 8 个权重一组上,代价是 0.5 比特每权重。一层权重矩阵按位置拆成多个比特面,其中一些面必须是码字,于是有了 2.5 和 3.5 这样的「中间档」。\n\n另一处改动是所有档位共用一张查找表。分开存要 0.78 比特每权重,共用一张再压到 0.21 比特每权重。\n\n## 数字:2 比特没有塌\n\n论文在 Qwen2.5-3B、Gemma-3-4b-it、Llama-3.1-8B-Instruct 和 Phi-4 (14B) 上对比 Any-Precision LLM(AP)、AnyBCQ(AB,只有 2 到 4 比特)和 MatGPTQ(MG),评测用 WikiText-2 困惑度和八个基准:ARC-Challenge、ARC-Easy、HellaSwag、PIQA、WinoGrande、GSM8K、TriviaQA、NQ-open。\n\n论文报告,2 比特档下 Any-Rate 保住 FP16 精度的 69%,困惑度是 FP16 的 1.8 倍,四个模型上都高于三个基线。3.5 比特档保住 95%,比 AB 和 MG (2\u002F3\u002F4) 的 4 比特档还高。3 比特档平均精度领先,4 比特档比 MG (3\u002F4\u002F8) 低 0.7 个百分点。MG (2\u002F3\u002F4) 要照顾 2 比特档,4 比特时掉到 93%。6 比特和 8 比特时,所有方法都在 FP16 的 99.5% 以上。\n\n存储上,2 到 8 比特九档全开是每权重 8.30 比特,和 MG (3\u002F4\u002F8) 的 8.26 接近,只开 2 到 4 比特是 4.21 比特。对照组单精度 GPTQ 服务 2 到 4 比特得占 9.8 比特每权重,全部整数档从 2 到 8 要 36.8 比特。\n\n能耗按 LPDDR 访问的 3.7 pJ 每比特和 88.36 TOPS 每瓦估算,查表的计算量不到每 token 能耗的 1%。换算成等精度条件,Any-Rate 达到 FP16 精度 55% 到 90% 这段,比基线省 3% 到 27% 的能量。\n\n速度没有掉。RTX 5070 Ti 上跑 Llama-3.1-8B-Instruct 单批次解码,Any-Rate 在 2 比特是 142.4 tokens 每秒,2.5 比特 127.0,3 比特 121.3,3.5 比特 112.7,4 比特 104.9。同表里 AP 是 141.6、124.1、107.6。\n\n三个对比方法出自独立团队。Any-Precision LLM 走 ICML,把不同比特宽度的模型叠放进接近单个 n 比特模型的内存占用里,论文见 https:\u002F\u002Farxiv.org\u002Fabs\u002F2402.10517 。AnyBCQ 走 ICLR,拿二进制码本配缩放因子做比特面级别的运算,论文报告相对半精度吞吐最高 3.0 倍,见 https:\u002F\u002Farxiv.org\u002Fabs\u002F2510.10467 。MatGPTQ 把 Matryoshka 量化当作多精度误差补偿做一次性后训练量化,内核集成进了 vLLM,论文报告低比特区相对 BF16 端到端最高 3.5 倍,见 https:\u002F\u002Farxiv.org\u002Fabs\u002F2602.03537 。\n\n## 消融拆开看,贵在哪\n\n在 Qwen2.5-3B 的 246 个权重矩阵上,编码结构比标量结构平均高 1.84 dB(2 比特)、1.69 dB(3 比特)、1.31 dB(4 比特),分别在 246、242、210 个矩阵上占优。拆开看,单档增益之外,嵌套代价还省下 0.43 dB(2 比特)和 0.81 dB(4 比特)。\n\n整模型消融更有冲击力:换成标量阶梯 UUUU 之后,2 比特困惑度直接塌到 78,而 FP16 是 8.03,3 比特和 4 比特也比 Any-Rate 高 2.0 和 0.8。用 MatGPTQ 那种均值传播代替逐档目标,每个档位困惑度都上升,2 比特处最多,高了 1.8。\n\n半档位本身几乎不额外花钱。把半档权重压到接近零,2 比特困惑度只改善 0.14,3 比特和 4 比特分别只差 0.18 和 0.05,两个半档分别差 1.1 和 0.4。编码代价是 0.33 比特每权重,来自每行更大的查找表。\n\n## 换到别的模态\n\n同一套流程也用在别的模型上。Qwen3-30B-A3B-Instruct-2507 这个混合专家模型,BF16 检查点 61.1 GB 里路由专家占 58.0 GB,占 95%,注意力约 1.8 GB,整个模型塞不进 16 GB 消费级显卡。只编码专家时,4 比特接近 BF16,2 比特保住 BF16 平均精度的 95% 左右,八个任务里只有考知识回忆的 TriviaQA 掉得明显,其余七个即使 2 比特也少不到五个点。\n\n视觉侧论文还编了 Gemma-3 的 SigLIP 视觉塔、Whisper-large-v3 的语音识别、文本生图的 PixArt 和文生视频的 CogVideoX-2B,后者编了扩散 Transformer 的 180 个线性层和 T5 编码器的 168 个。这部分只做定性比较,没有报质量指标和速度。2 比特时 MG (2\u002F3\u002F4) 的机器人头部运动直接消失,Any-Rate 还保留第 36 帧落向芯片的动作。\n\n## 论文自己说的边界\n\n有几处论文讲得很清楚。一是 4 比特档上它不如 MatGPTQ 官方配方的 3\u002F4\u002F8 版本,差 0.7 个百分点。二是 27% 的能耗优势是按访存量估的模型,论文说要在专用加速器上实测留给以后。三是除单精度 GPTQ 外,对比范围只限多精度方法,机制分析也只依赖单个模型的层损失。\n\n四是在高斯输入上,编码结构在 2 比特比 Lloyd–Max 低 0.61 dB、3 比特低 0.44 dB,但 4 比特时样本内失真比 Lloyd–Max 高 0.35 dB,论文明确说不能声称 4 比特也赢。五是附录里写明,那部分目标是展示方法能跨模型类型、质量随比特宽度平缓变化,而不是每个比特宽度都声称领先。\n\n## 所以呢\n\n多精度量化过去卖点是省内存,一份权重顶几个尺寸用。Any-Rate 往前走了一步,让精度从几档齿轮变成可以连续调节的旋钮。对端侧来说,内存和带宽决定跑不跑得动,多一个档位就多一次省钱机会。\n\n但省下的能量是模型算出来的,不是测出来的;4 比特档它也不是领先那个。\n\n你觉得端侧模型最后会停在哪个档位:2 比特省电,还是 3.5 比特够用?","https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.34402","7437aeb9-930c-4866-a2e9-48003c1a792b",[11,15,18,21],{"id":12,"name":13,"slug":13,"description":14,"color":14},"fca9258a-9430-455a-b95d-b9fae5e373a8","ai-inference",null,{"id":16,"name":17,"slug":17,"description":14,"color":14},"0ef8513a-0a26-42f0-b6f9-5b6dadded45c","efficiency",{"id":19,"name":20,"slug":20,"description":14,"color":14},"01598627-1ea6-4b27-a5d8-874971571a71","llm",{"id":22,"name":23,"slug":23,"description":14,"color":14},"b49648f9-963e-4082-8684-3d085b7358fe","quantization",[25],{"id":26,"lang":27,"title":28,"summary":29,"content":30},"dff47bee-47c0-407f-8976-af28ef0f476e","en","One checkpoint, 2 to 8 bits, half-bit steps","Any-Rate adds half-bit steps to multi-precision quantization via Hamming-coded bit-planes. It keeps 69% of FP16 accuracy at 2 bits, 95% at 3.5 bits.","Deploying a model across devices with different memory and power budgets usually means one checkpoint that can serve several precision levels at once. The catch is that the levels are integers: 2 bits, 3 bits, 4 bits, with nothing in between. That is exactly where the choice is hardest, since 2 bits tends to fall apart and 3 bits is often already good enough.\n\n## One checkpoint, one nesting cost\n\nNested multi-precision quantization keeps a single checkpoint, and each precision mode reads only the first few bit-planes of the weights. Existing methods already do this, but the levels they expose are integer bit widths, so there is no option between 2 and 3 bits.\n\nThe levels also interfere with each other. With error feedback, every mode corrects toward its own target, yet all modes must share the leading bit-planes, so the higher modes give up accuracy they would not have lost on their own. The paper calls this the nesting cost.\n\nAny-Rate stays inside that framework and adds two things: half-bit levels between 2 and 4 bits, and a smaller nesting cost.\n\n## Where the half steps come from: coding the bit-planes\n\nThe paper (https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.34402) restricts some bit-planes to codewords of the extended Hamming [8,4,4] code, applied over blocks of eight weights, at a cost the paper states as 0.5 bits per weight.\n\nA layer's weight matrix is split into bit-planes by position. Any-Rate requires some of those planes to be valid Hamming codewords, and that is what buys the intermediate 2.5 and 3.5 bit modes.\n\nThe other change is a shared lookup table. Each mode would normally store its own table of reconstruction values, and the paper computes that storing them separately costs 0.78 bits per weight, while sharing one table brings it down to 0.21 bits per weight.\n\n## The numbers: 2 bits does not fall apart\n\nThe paper compares four models, Qwen2.5-3B, Gemma-3-4b-it, Llama-3.1-8B-Instruct and Phi-4 (14B), on WikiText-2 perplexity plus eight benchmarks: ARC-Challenge, ARC-Easy, HellaSwag, PIQA, WinoGrande, GSM8K, TriviaQA and NQ-open. The baselines are Any-Precision LLM (AP), AnyBCQ (AB, 2 to 4 bits only) and MatGPTQ (MG).\n\nThe paper reports that at 2 bits Any-Rate keeps 69% of FP16 accuracy with 1.8 times the FP16 perplexity, ahead of every baseline on all four models. At 3.5 bits it keeps 95% of FP16 accuracy, higher than AB and MG (2\u002F3\u002F4) at 4 bits. At 3 bits it leads on average accuracy, and at 4 bits it sits 0.7 points below MG (3\u002F4\u002F8). MG (2\u002F3\u002F4), which has to accommodate the 2-bit mode, drops to 93% at 4 bits. At 6 and 8 bits every method, Any-Rate included, stays above 99.5% of FP16.\n\nStorage: serving all nine modes from 2 to 8 bits costs 8.30 bits per weight, close to the 8.26 of MG (3\u002F4\u002F8), and serving only 2 to 4 bits reads just the ladder at 4.21 bits per weight. For comparison, single-precision GPTQ needs 9.8 bits per weight to serve 2 to 4 bits, and 36.8 bits to serve every integer mode from 2 to 8.\n\nEnergy is estimated with an LPDDR access cost of 3.7 pJ per bit and 88.36 TOPS per watt, and the compute including table lookups stays below 1% of the energy per token. Converted to equal accuracy, Any-Rate needs 3 to 27% less energy than the baselines to reach 55 to 90% of FP16 accuracy.\n\nSpeed does not regress. On an RTX 5070 Ti running Llama-3.1-8B-Instruct at batch 1, Any-Rate reaches 142.4 tokens per second at 2 bits, 127.0 at 2.5 bits, 121.3 at 3 bits, 112.7 at 3.5 bits and 104.9 at 4 bits. In the same table AP posts 141.6, 124.1 and 107.6, while AB posts 135.5, 116.0 and 100.9.\n\nThe three baselines come from separate teams. Any-Precision LLM appeared at ICML and overlays models quantized to different bit widths into a memory footprint comparable to a single n-bit model (https:\u002F\u002Farxiv.org\u002Fabs\u002F2402.10517). AnyBCQ appeared at ICLR, represents weights as binary bit-planes with scale factors for bit-plane level computation, and the paper reports throughput gains of up to 3.0x over half precision and 1.2x over the multi-precision methods available at the time (https:\u002F\u002Farxiv.org\u002Fabs\u002F2510.10467). MatGPTQ casts Matryoshka quantization as multi-precision error compensation in a one-pass post-training pipeline, integrates dedicated kernels into vLLM, and reports end-to-end speedups of up to 3.5x over BF16 in the low-bit regime (https:\u002F\u002Farxiv.org\u002Fabs\u002F2602.03537).\n\n## What the ablations show\n\nOn 246 weight matrices of Qwen2.5-3B, the coded structures gain 1.84 dB on average over scalar structures at 2 bits, 1.69 dB at 3 bits and 1.31 dB at 4 bits, outperforming them on 246, 242 and 210 matrices respectively. Splitting that apart, beyond the single-mode gain the coded ladder saves nesting cost worth 0.43 dB at 2 bits and 0.81 dB at 4 bits.\n\nThe whole-model ablation is starker: switching to the scalar ladder UUUU collapses the 2-bit perplexity to 78 against an FP16 of 8.03, and the 3-bit and 4-bit perplexities sit 2.0 and 0.8 above Any-Rate. Replacing the per-mode targets with MatGPTQ-style mean propagation raises perplexity in every mode, by 1.8 at 2 bits.\n\nThe half-bit modes are nearly free. Driving their weights close to zero improves the 2-bit perplexity by only 0.14, while the 3-bit and 4-bit modes change by 0.18 and 0.05 and the two half-bit modes by 1.1 and 0.4. The real cost of the coding is 0.33 bits per weight, coming from the larger per-row lookup table.\n\n## Other modalities\n\nThe same procedure is applied elsewhere. In the Qwen3-30B-A3B-Instruct-2507 mixture-of-experts model, the routed experts take 58.0 GB of the 61.1 GB BF16 checkpoint, 95% of it, with attention taking about 1.8 GB, and the model does not fit in the 16 GB of a consumer GPU. Encoding only the experts keeps 4 bits close to BF16 and holds about 95% of BF16 mean accuracy at 2 bits, where only TriviaQA, the knowledge recall task, drops sharply while the other seven lose less than five points.\n\nOn the vision side the paper also encodes the SigLIP vision tower of Gemma-3, speech recognition with Whisper-large-v3, text-to-image with PixArt, and text-to-video with CogVideoX-2B, where it encodes the 180 linear layers of the diffusion transformer and the 168 linear layers of the T5 text encoder. That part is a qualitative comparison with no quality metrics or speed reported. At 2 bits the robot head motion of MG (2\u002F3\u002F4) disappears, while Any-Rate keeps the head descending onto the chip at frame 36.\n\n## The boundaries the paper states\n\nSeveral of them are worth recording as they are.\n\nAt 4 bits it trails the official 3\u002F4\u002F8 recipe of MatGPTQ by 0.7 points. The 27% energy saving is a model built on memory traffic estimates, and the paper says measuring it on a dedicated accelerator is left for future work. Apart from single-precision GPTQ the comparison covers multi-precision methods only, and the mechanism analysis relies on layer losses of a single model. On Gaussian inputs the coded structure sits 0.61 dB below Lloyd–Max at 2 bits and 0.44 dB below at 3 bits, but at 4 bits the in-sample distortion ends 0.35 dB above Lloyd–Max, so the paper explicitly declines to claim the coded structure wins at 4 bits under uniform importance. The appendix also states that its goal is to show the method works across model types with quality changing gradually, not to deliver the leading result at every bit width.\n\n## So what\n\nMulti-precision quantization has sold itself on memory: one set of weights covering several sizes. Any-Rate takes a step past that, turning precision from a few discrete gears into something you can dial. For on-device work, memory and bandwidth decide whether a model runs at all, and every extra level in between is another chance to save.\n\nBut the saved energy is modelled rather than measured, and at 4 bits this method does not lead the field. Both points belong in front of the conclusion.\n\nWhich level do you think edge models end up on: 2 bits to save power, or 3.5 bits to stay usable?","any-rate-half-bit-multi-precision-quantization","2026-11-28T01:00:00Z","2026-11-28T01:12:12.645468Z","2026-11-28T01:12:12.645478Z",true,"agent",193,[39,49,58],{"slug":40,"tag_slug":41,"title_zh":42,"title_en":43,"intro_zh":44,"intro_en":45,"id":46,"is_active":35,"created_at":47,"modified_at":48},"image-generation","text-to-image","图像生成：从文生图到逐框编辑的模型竞赛","Image Generation: from text-to-image to frame-level editing","文生图已是红海，战场正转向编辑与可控性：FLUX.2\u002F3 用开源和量化把生图搬进消费级显卡，Qwen-Image、Seedream 等国产模型紧咬不放，GPT Image 2 则把推理能力带进像素。本专题追踪图像生成与编辑模型的发布、架构演进、加速量化与商业化数据，看「好图」如何变成「可用的图」。","Text-to-image is a crowded race, and the frontier has moved to editing and control: FLUX.2\u002F3 push open weights and quantization onto consumer GPUs, Qwen-Image and Seedream close in from China, and GPT Image 2 brings reasoning into pixels. This topic tracks model releases, architecture shifts, acceleration work, and the business numbers behind \"pretty\" becoming \"usable\".","52de7c59-7864-4569-8ae7-3d656d26a1a1","2026-11-20T07:20:23.534506Z","2026-11-20T07:20:23.534527Z",{"slug":50,"tag_slug":50,"title_zh":51,"title_en":52,"intro_zh":53,"intro_en":54,"id":55,"is_active":35,"created_at":56,"modified_at":57},"ai-for-science","AI for Science 2026：从 UniPert 到 GPT-Rosalind 的硬核进化","AI for Science 2026: from UniPert to GPT-Rosalind","生命科学、化学材料、物理世界模型——AI 正在从\"语言工具\"变成\"实验伙伴\"。本专题收录 AI 在三大科学方向的关键节点：UniPert 统一基因与化学扰动空间、GPT-Rosalind 端到端生命科学推理、达摩院 AI 智能体 28 小时找到 4 种超导新材料、Anthropic Claude Science 把工作台做成标准品。","From language tool to lab partner — AI is reshaping life sciences, chemistry\u002Fmaterials, and physical world models. This topic covers the key milestones: UniPert unifying genetic-chemical perturbation spaces, GPT-Rosalind's end-to-end life-sciences reasoning, DAMO's AI agent discovering 4 superconducting materials in 28 hours, and Anthropic's Claude Science workbench going mainstream.","988a4300-5fab-41c4-b5d8-63711a2dc757","2026-09-10T01:34:15.296649Z","2026-09-10T01:34:15.296663Z",{"slug":59,"tag_slug":59,"title_zh":60,"title_en":61,"intro_zh":62,"intro_en":63,"id":64,"is_active":35,"created_at":65,"modified_at":66},"h3-series","MiniMax H3 系列：从开源权重到 35 倍吞吐","MiniMax H3 Series: from open weights to 35x throughput","MiniMax H3 自 2026 年 8 月开源以来节奏密集：官方把生成、参考与编辑收回一个模型；ComfyUI 当天压进 RTX 3060；摩尔线程 3 小时完成国产 GPU 适配；fal 后训练版把吞吐拉到 35 倍；FastH3 蒸馏再砍推理成本。本专题持续追踪 H3 的发布—开源—蒸馏—部署全链路。","Since MiniMax open-sourced H3 in August 2026 the pace has been relentless: one unified omni-modal model, same-day ComfyUI support down to an RTX 3060, a 3-hour Day-0 port to Moore Threads GPUs, fal's post-trained H3 Max at 35x throughput, and FastH3 distillation cutting inference cost further. This topic tracks the full H3 chain — release, open weights, distillation, deployment.","83ef0daa-3c31-4cb3-86ed-e5ee58654d5f","2026-09-08T07:33:19.942193Z","2026-09-08T07:33:19.942209Z",{"items":68},[69,74,79,84,89,94],{"id":70,"title":71,"news_slug":72,"published_at":73},"645dd52f-ae6e-4931-9d74-4582feb4ecb1","Google TurboQuant：LLM推理内存压缩6倍的技术突破","google-turboquant-kv-cache-compression","2026-04-23T01:11:00+00:00",{"id":75,"title":76,"news_slug":77,"published_at":78},"5d643b5f-0981-4903-a1ee-aefe4cc7c16f","12GB 手机跑 177B,靠提前猜该读哪块再拉进内存","millie-2-177b-model-phone-million-token-context","2026-12-01T09:00:00+00:00",{"id":80,"title":81,"news_slug":82,"published_at":83},"42df02c9-abab-4f41-97e6-a515358cb3d7","长回复的解码耗时超出线性估算 1.67 到 1.80 倍","snowballcost-ultra-long-response-inference-cost","2026-12-01T01:00:00+00:00",{"id":85,"title":86,"news_slug":87,"published_at":88},"c6a45e34-7269-43c8-8382-eab30cbb0373","LoRA热更新不必重放历史,论文称提速68.98倍","livelora-kv-cache-migration","2026-11-24T13:30:00+00:00",{"id":90,"title":91,"news_slug":92,"published_at":93},"b80697dc-e9ee-40f5-a2c7-3944cd36abba","权重不等长:哈夫曼重编码,边缘LLM再省31.4%","lazyweights-huffman-edge-llm","2026-11-13T23:30:00+00:00",{"id":95,"title":96,"news_slug":97,"published_at":98},"76bc2964-2411-42b7-a8b9-389bbc6d417e","SteerDistill:量化Agent失手,老师闭环来救","steerdistill-quantized-agent-teacher-steering","2026-11-12T19:06:48+00:00"]