2026-11-27 16:13 UTC

QDA automates model-specific quantization recipe search

state: seedheat: highuncertainty: mediumrelevance: highllm-quantization agentic-optimization local-inferenceXingyang LiTianlang ZhaoSong HanLigeng ZhuMIT Han LabNVIDIA

What is this?

QDA is a system for automated, model-specific post-training quantization, presented by Xingyang Li, Tianlang Zhao, Song Han and Ligeng Zhu, with MIT and NVIDIA named alongside the authors. The team’s project page, code repository and downloadable checkpoints are linked; the web results identify an arXiv paper submitted Nov. 17, 2026. QDA lets a coding agent propose, build and assess quantization recipes using a library of 21 composable methods and a fast KL-divergence proxy. The project page reports tests on four reasoning models: QDA beat the strongest public recipe on 11 of 12 model-and-precision comparisons, with average gains of 0.9, 1.4 and 2.2 percentage points at W4A16, W4A8 and W3A16. It also reports a separate GLM-5.3-Flash result and says its checkpoints use existing kernels without added inference overhead. These performance figures are the authors’ reported experimental results; the supplied evidence does not include independent replication.

Why it matters

Quantization can reduce the memory and serving cost of large models, but recipe choices have often required expert work and differ by model and precision. QDA’s notable contribution is automating that search and making it practical to test many combinations with faster feedback. If its reported results generalize, this could make low-bit models more useful without imposing new serving-kernel requirements, potentially widening local and lower-cost deployment. The evidence is promising but comes from the project’s own evaluations, so generality beyond tested models remains uncertain.

Current assessment

New: MIT/NVIDIA-affiliated researchers have made QDA’s project page, code and model checkpoints available, alongside a paper listed in web results as submitted Nov. 17, 2026. The method uses an agent to search model- and precision-specific post-training quantization recipes, drawing on 21 stackable methods; the authors say a KL score speeds candidate evaluation 350–990× versus full evaluation. In the project’s reported tests, QDA improved on the strongest public recipe in 11 of 12 comparisons across four reasoning models, averaging +0.9 points at W4A16, +1.4 at W4A8 and +2.2 at W3A16. Separately, the authors report that a 6.5-hour, $69 search on 320B-parameter GLM-5.3-Flash recovered 98.3% of the FP8 model’s accuracy, versus 96.9% for NVIDIA’s released NVFP4 checkpoint and 96.3% for Red Hat AI’s; this comparison is also author-reported. They state QDA checkpoints run on existing kernels with no inference overhead, and are available for several serving engines. These results suggest a route to lower-memory, lower-cost model serving and potentially more accessible local inference, while preserving familiar deployment paths. Evidence is a first-party project account and linked paper/repository, not independent validation. The reported benchmarks cover a limited set of models and tasks; the KL proxy is imperfect, and broader reproducibility, performance on other model families and practical deployment outcomes remain to be established. The project describes future plans for day-one searches and expansion to KV caches and sparsity; these are plans, not current capabilities.

Measured heat

now 0 pts/hpeak 5 pts/hcomments 0/hpeers p34momentum: steady2 platformsage 266h
points/hour across evidence · reading as of 2026-11-28 02:25:52.099640+11:00 · deterministic, not a model opinion

How the heat travelled

11-16 13:00⭐ origin echo-reconstructedThe original primary artifact is arXiv:2611.23388, submitted 17 Nov 2026. Its abstract says: “We present QDA, a system in which an agent des
Xingyang Li, Tianlang Zhao, Song Han, and Ligeng Zhu on paper (echo) · attributed from hn.story.50661253
—
11-27 00:09first on hacker news · published · +251.2hQDA: Closed-Loop LLM Quantization Design with Agents
matt_d
—
11-27 00:09amplified on hacker news 👑hn.story.50661253
matt_d
peak 1 · 0 comments · 104% of case engagement
11-27 00:21our radar first saw it · +251.3hdiscovery anchor: hn.story.50661253—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnQDA: Closed-Loop LLM Quantization Design with Agents
Retrieved article excerpt

Open article · Retrieved 2026-11-27T00:21:56.268063+00:00

QDA

# QDA: Closed-Loop LLM Quantization Design with Agents

Xingyang Li\*, Tianlang Zhao\*, Song Han, Ligeng Zhu

MIT    NVIDIA    \*Equal contribution

[Paper](https://arxiv.org/abs/2611.23388)
[Code](https://github.com/humanfia/qda)
[Models](https://huggingface.co/qda-lab)

[![](assets/qda-demo-poster.jpg)](assets/qda-demo.mp4)

## TL;DR

**QDA** brings a coding agent into LLM quantization design. For each model and precision, the agent designs the post-training quantization recipe on its own, with no human in the loop. Its checkpoints beat the strongest public recipe on four reasoning models, by 0.9, 1.4 and 2.2 points on average at W4A16, W4A8 and W3A16, and run on existing kernels with no inference overhead.

The agent works the way a quantization expert does: it proposes a recipe, builds it, measures it and decides what to change next. Two things make this loop fast enough for up to 36 candidates in one eight-hour search: a KL score that takes minutes instead of dozens of GPU-hours, and a library of 21 PTQ methods that stack in any order. **We find that no method wins everywhere: the best recipe differs for every model and precision, and the agent finds it by searching.**

**On the 320B-parameter GLM-5.3-Flash at NVFP4, one 6.5-hour, $69 search recovers 98.3% of the FP8 model's accuracy, against 96.9% for NVIDIA's release.** The tools matter too: given NVIDIA ModelOpt's tools instead of ours, the same agent falls 0.5–1.3 points behind on Qwen3.6-35B. A search costs $19–75 of agent tokens.

## 1An old question

In 2024, Yujun Lin, Xingyang's wonderful mentor at MIT HAN Lab, wrote [DeepCompressor](https://github.com/mit-han-lab/deepcompressor), the quantization toolbox behind QServe and SVDQuant. He once told us that the results sometimes puzzled him: a new method that looks strong in its paper often adds little once it is stacked on a few basics, such as AWQ's smoothing, a Hadamard rotation and GPTQ. Moreover, nobody knew which methods work well together, because each is tested on its own.

Answering that by hand means trying combinations model by model, which no one has time for. Today, however, LLMs can act as optimizers[1, 2], and agent harnesses such as Humanize[3] keep a coding agent working for hours with no one watching. So QDA lets an agent run exactly these experiments, for every model and precision.

The question is real. Across four reasoning models and three precisions, no public recipe is the most accurate everywhere (Figure 1). The newest method wins three of the four models at W3A16, yet plain GPTQ is still the best on R1-Distill-Llama-8B at every precision.

No public recipe wins everywhere

The most accurate public recipe for each model and precision; hover a cell for all scores

GPTQAWQnewer method: ParoQuant, QuaRot+GPTQ or GSQ

**Figure 1.** Mean accuracy over math, GPQA-Diamond, LiveCodeBench and IFBench. Each precision has its own candidates: GPTQ and AWQ everywhere, plus ParoQuant at W4A16, QuaRot+GPTQ at W4A8 and GSQ at W3A16. The small number is the winner's lead over the runner-up; a split cell is a tie.

Stacked well, however, known methods go far. On Qwen3.5-9B at W4A8, GPTQ alone sits 17 points below BF16. A Hadamard rotation wins back 9.9 points, and the agent's recipe wins back another 5.2 with self-generated data, an FP8-aware scale search and scale distillation. None of these steps is new; the gain comes from choosing them for this model.

## 2Why the loop is slow

An agent designs a recipe the way an expert does: propose a recipe, build the checkpoint, measure it, and decide what to change next. The more rounds it fits into a budget, the better the recipe, but two steps of this loop are slow (Figure 2, left).

The design loop, without and with QDA

The agent's loop is the same; QDA replaces the two slow steps

**Figure 2.** Left: building means porting methods across codebases, and measuring means a full evaluation, so a search fits only a few rounds. Right: QDA builds from one library and scores by KL in minutes, so a search fits dozens of rounds.

Measuring is slow, because reasoning models think for thousands of tokens per answer and each problem must be sampled many times, so a full evaluation of one checkpoint takes dozens of GPU-hours. Building is slow, too, because most PTQ methods live in separate codebases. Left to port them itself, the agent wrote 3.1k lines of code per search and still ended up less accurate. QDA makes both steps fast (Figure 2, right). Figure 3 shows how the pieces fit: the agent works in a sandbox and reaches the library, the evaluator and the GPUs only through four commands. The harness around it is built on [Humanize](https://github.com/humanfia/humanize), our agent flow system, which fences the agent's files and network, restarts a stalled turn and keeps a long search running unattended.

System architecture

The agent reaches the rest of the system only through four commands

recipe or checkpointscoreGPU job

**Figure 3.** The agent calls `qda` to build, `kl` to score, `qsched` for other GPU jobs such as long generations, and `handin` to submit. Reference traces and test benchmarks stay outside its sandbox, so it cannot tune on them, and every GPU job goes through one scheduler that keeps the search within budget.

### 2.1Measuring: a score in minutes

QDA scores a candidate in minutes, 350–990× faster than a full evaluation, by how far its next-token predictions drift from the original model's. A quantized model is good when it behaves like the original one, so instead of grading answers, QDA measures the KL divergence between the two models' predictions on reasoning traces that the original model wrote. The original model's side is computed once and cached, so a score needs only one pass of the candidate. The traces stay outside the agent's sandbox, so it cannot tune on them.

The score ranks checkpoints the way accuracy does. Most PTQ methods minimize the error of each layer on its own, which cannot see errors that build up across layers. On Qwen3.5-9B at W4A16, this layer-wise error ranks AWQ last of three public recipes although it is second in accuracy, whereas KL gets the order right (Figure 4). Over 44 pairs of checkpoints, KL picks the more accurate one 82% of the time, against 73% for the layer-wise error, though it does not catch every failure (§3).

Three ways to rank three public recipes

Qwen3.5-9B at W4A16; lower is better in every panel

ParoQuantAWQGPTQ

**Figure 4.** Layer-wise error puts AWQ last even though it is second in accuracy, whereas KL gets the order right.

### 2.2Building: parts that snap together

QDA's library implements 21 PTQ methods behind one interface. Because **every method takes a checkpoint and returns one**, the agent can stack them in any order, and a method written once runs on new architectures. Each method changes one part of the math behind a quantized layer, which Figure 5 lets you assemble.

Assemble a recipe

Pick one option per row or start from a preset; lines that differ from plain GPTQ are highlighted

**Figure 5.** A recipe as math, with a few of the library's 21 methods.

It is also fast enough for the loop. On one H100, a GPTQ build of Qwen3.8-27B takes 191 s against 501 s with llm-compressor, and the 35B MoE builds in 181 s, where llm-compressor runs out of memory.

## 3One search, start to finish

Each search runs Claude Opus 5.5 in Claude Code at high effort, driven by Humanize, on eight GH200 GPUs for eight hours, with no human in the loop, for $19–75 of agent tokens per search (37–122M tokens, mostly read from cache). Figure 6 replays the one on Qwen3.6-35B at W4A16.

Replay of one search

KL of every candidate the agent scored, Qwen3.6-35B-A3B at W4A16

**Figure 6.** Grey dots are the 26 scored candidates; the red line is the best so far.

The agent first rebuilds GPTQ with different clip and solver settings, none of them better than the public checkpoint. At 1.5 hours, it calibrates on the original model's own reasoning traces instead of generic text, and the KL drops by 23% in one step. Its notes, where the “anchor” is the original model, spell out both the bet and the risk:

> Calibrating GPTQ on the anchor's own generated thinking traces is the biggest lever so far (…), but it raises ref KL: it specialises on anchor-style text.

Its KL looked fine, but KL scores the model on text it is given, not on text it writes. So at 3.1 hours the agent had this candidate write full answers to 191 hard problems of its own choosing, and 12 were cut off at the length limit, most of them code answers stuck in a loop, against 3 for the original model. The agent starts watching truncations (“the truncation count is the signal I watch”) and turns to distillation on the quantized model's own long answers. Its hand-in scores 0.0088 against 0.0153 for the best public recipe and cuts off only 6 answers.

## 4Results

We ran one search per model and precision on four reasoning models (dense, linear-attention hybrid and MoE) and evaluated the final checkpoints on math, GPQA-Diamond, LiveCodeBench and IFBench.

### 4.1Over the best public recipe

QDA is more accurate than the best public recipe on 11 of the 12 pairs of model and precision, by 0.9, 1.4 and 2.2 points on average at W4A16, W4A8 and W3A16 (Figure 7). The largest gains, +5.2 on Qwen3.5-9B at W4A8 and +6.1 on R1-Distill-Llama-8B at W3A16, come where the best public recipe is far below BF16, by 7.1 and 11.7 points.

Gain over the best public recipe

Points of mean accuracy over the winner of each cell in Figure 1; hover a cell for all scores

**Figure 7.** Darker means a larger gain. Below each gain: the public recipe it is measured against. The Qwen3.6-35B cells are means of three searches.

### 4.2A 320B model at NVFP4

On GLM-5.3-Flash, a 320B MoE that none of the main searches saw, one 6.5-hour search for $69 recovers 98.3% of the FP8 model's accuracy, against 96.9% and 96.3% for the NVFP4 checkpoints that NVIDIA and Red Hat AI released (Figure 8). It used the same agent, library and evaluator as the main searches, with no public recipe to start from.

**Figure 8.** Mean accuracy over math, GPQA-Diamond, LiveCodeBench and SuperGPQA, as a share of the FP8 model's 77.7. All three checkpoints are served by the same engine on the same GB300 GPUs, with the same sampling settings.

### 4.3Over an agent with NVIDIA ModelOpt

A strong agent alone is not enough. NVIDIA's ModelOpt ships a recipe-search skill for coding agents, so we gave the same agent ModelOpt and that skill instead of our tools, with the same 64 GPU-hours. It falls 0.5–1.3 points behind QDA, and even below the best public recipe at W4A8 and W3A16 (Figure 9), although it picks its candidates on the test benchmarks themselves.

The same agent, with ModelOpt or with QDA

Qwen3.6-35B, mean accuracy, the same 64 GPU-hours per search

best public recipeagent + NVIDIA ModelOptQDA

**Figure 9.** The agent with ModelOpt picks its candidates on the test benchmarks; QDA never sees them. QDA is the mean of three searches.

### 4.4Free at inference

QDA's checkpoints decode as fast as GPTQ's (Figure 10). ParoQuant, the strongest public recipe on Qwen3.5-9B, earns part of its accuracy with a rotation applied to each layer's input at serving time, a sensible trade that comes with its own kernel; at batch sizes 16 and 64, QDA's checkpoints decode 1.3–1.6× faster. QDA only uses steps that fold into the weights, so its checkpoints keep the standard formats and kernels.

Decode throughput, Qwen3.8-27B at W4A16

Output tokens per second on one GH200, vLLM

ParoQuantGPTQQDA

**Figure 10.** QDA runs on GPTQ's kernel and decodes within 0.2% of it. Checkpoints for Qwen3.5, Qwen3.6, Qwen3.8, Qwen3-Coder, Gemma 4, Nemotron 3 Nano, R1-Distill-Llama and GLM-5.3-Flash are on [Hugging Face](https://huggingface.co/qda-lab), ready for vLLM, SGLang and llama.cpp.

## 5What we learned, and what's next

PTQ methods are parts, not rivals. Papers pit one method against an
matt_d10
🟧 echo.paper ⭐The original primary artifact is arXiv:2611.23388, submitted 17 Nov 2026. Its abstract says: “We present QDA, a system in which an agent desXingyang Li, Tianlang Zhao, Song Han, and Ligeng Zhu——

Interpretation history

Decision trace