SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.10655 · 2026

BCJR-QAT: A Differentiable Relaxation of Trellis-Coded Weight Quantization

Venugopalan Iyengar

arXiv · PDF

Code that ran

4 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.10655.json · badge: /api/ran/2605.10655.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Venugopalan2610/quant-2bit community
Papers with Code archive
4 ran · 5 no recorded run
FunctionStatusWhere it lives
_tile_for_viterbi_gpu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("f67937cf64d21ffa")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_untile_from_viterbi_gpu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("dbfafef044e76530")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

apply_rht_gpu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("ee64250424cbbe70")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_pred_succ_tables Ran
ran, honoured the contract we drafted
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("24188092890ee118")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_bcjr_chunk_forward Not yet run
unverified (harvested, no recorded run)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("8adde483717e2e48")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

apply_inverse_rht_gpu Not yet run
unverified (harvested, no recorded run)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("82180d8559e0b53b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

bcjr_quantize_tiles Not yet run
unverified (harvested, no recorded run)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("726af4abf8f2c769")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

bcjr_quantize_weight Not yet run
unverified (harvested, no recorded run)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("2ce4ed51dbda8628")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

bcjr_quantize_weight_rotated Not yet run
unverified (harvested, no recorded run)
Venugopalan2610/quant-2bit/src/bcjr/bcjr_quant.py
pointer only (licence: NOASSERTION) · get_code("eacad7291d0f0b14")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Venugopalan2610/quant-2bit (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Trellis-coded quantization sets the current 2-bit post-training frontier for LLMs (QTIP [27]), but pushing below the PTQ ceiling requires quantization-aware training, and QAT on a trellis is obstructed by the non-differentiable Viterbi argmax. We introduce BCJR-QAT, a relaxation that replaces the argmax with the BCJR forward-backward sum-product algorithm at temperature T , producing a soft codeword equal to the Boltzmann expectation over trellis paths -exactly differentiable, recovering the hard QTIP code as T → 0, and mathematically identical to the transfer-matrix computation for a 1D Ising-like spin chain. We contribute (i) a fused Triton kernel making BCJR tractable on a single consumer GPU (6.57× speedup, fp32 parity); (ii) a quantitative drift-budget theory of when BCJR-QAT can escape the QTIP-PTQ Voronoi basin, verified across four experiments; and (iii) a positive empirical result on Llama-3.2-1B at 2 bpw under end-to-end forward-KL distillation: with the right schedule (skip the high-T phase to avoid an overshoot we diagnose), single-layer BCJR-QAT beats QTIP-PTQ by -0.084 PPL on WikiText-2, and multi-layer compounding is super-additive. Code at https: //github.com/Venugopalan2610/quant-2bit; weights and trajectory snapshots at https:// huggingface.co/Venugopalan2610/BCJR-QAT-Llama-3.2-1B-2bit.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.10655")
get_code_for_paper("2605.10655")
have("2605.10655")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.10655.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.10655.svg)](https://syntology.ai/paper/2605.10655)

Connect an agent — have() is free.