Pith.

Machine Learning · arXiv:2610.21810 v3 · submitted 15 Oct 2026

N-Gram Memories at Two Bits: Quantizing Lookup Tables in Large Language Models

Donghoon Han, Minseop Jung, Dong Woo Kwak, SeungJae Lee, Junhoo Lee

The paper says

“Conditional memory expands language-model capacity through selective lookup, but the full embedding table must remain available for every possible input. We introduce Conditional Program (CP), a compressed representation that reconstructs only the rows an input requests.”

more of the abstract

CP represents each row by a short code and a local scale, with a reconstruction program shared across the table. We instantiate this representation with a Gaussian trellis, norm restoration and independently decodable row records. CP's two-bit code lowers output KL by 41–63% relative to 2-bit round-to-nearest. Analysis across three trained n-gram memory families shows that Gaussian-like coordinate statistics coexist with learned relationships among rows; at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test. For DeepSeek, it reduces table storage from 203GB to 51GB, leaving room for larger workloads when the table is kept on GPU.

from the abstract

Pith says

Machine review · deepseek-v4-flash · 16 Oct 2026 · of version 1 of the paper; version 3 is newer · what was read was not recorded · not checked by a person

It can be wrong. Challenge this review or reply to it.

Holds up, with conditions. Core compression result is solid and honestly evaluated, but the abstract's matched-budget claim is contradicted by the paper's own Table 3 and needs fixing before publication. This line is wrong

2 major objections · 4 minor

How often objections from reviews like this one are right: not yet measured

Are you an author? What you can do.

Not checked: figures, code, what the references say.

The paper says, at Abstract and Section 4.3, Table 3

The review did not quote this passage.

A classifier read this sentence of the paper as acknowledging the concern (probability 0.70):

“Analysis.The fitted-codebook and structured- residual comparisons evaluate output KL only on Qwen, limiting their generality across models.”

Pith says: Objection 1 of 2 · major

The abstract's matched-budget claim is contradicted by the paper's own Table 3. The abstract states that 'at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test.' Table 3 reports that at the same 2.10 bpp, 'Mean + trellis' achieves output KL 0.0193 against 0.0198 for the shared trellis, a 2.4% improvement whose 95% CI [0.1, 4.5] excludes zero (Appendix D.2, Table 16).

more of objection 1

This is a matched-budget comparison, and 'Mean + trellis' is exactly the kind of structured residual the abstract says the shared trellis beats. The paper's Section 4.3 sentence that these representations' 'improvements are limited relative to the storage required' is a practical-value judgment, not a refutation of the equal-rate comparison, since the per-head mean adds negligible shared storage. Additionally, the fitted-codebook and structured-residual comparisons measure output KL on Qwen only, as the Limitations acknowledge, so the abstract's general phrasing is too strong on two counts. The abstract and the Section 4.3 sentence 'These findings support using a shared trellis rather than fitting and storing table-specific representations' should be reworded to restrict the superiority claim to fitted codebooks, or to present mean+trellis as a competitive equal-rate alternative.

The paper says, at Appendix D.2, Table 16, and Limitations

The review did not quote this passage.

A classifier read this sentence of the paper as acknowledging the concern (probability 0.96):

“Some equal-budget comparisons use interpolated trellis values without uncertainty estimates.”

Pith says: Objection 2 of 2 · major

The evidence for trellis superiority over the PC-residual variant at 2.5 bits rests on an unmeasured, interpolated reference. The comparison of 'Mean + four PCs + trellis' (0.0188 at 2.50 bpp) against 'Shared trellis curve' (0.0144) uses a log-linear interpolation across the 1.5-, 2- and 2.5-bit rates, with no measured run and no uncertainty, as acknowledged in Appendix D.2, in the footnote to Table 16, and in the Limitations ('Some equal-budget comparisons use interpolated trellis values without uncertainty estimates').

more of objection 2

If the true 2.5-bit trellis KL is at or above 0.0188, the only direct evidence for trellis superiority over the PC-residual variant disappears and the matched-budget claim would need to be withdrawn or qualified. Because the abstract-level claim depends on this comparison, a measured 2.5-bit trellis run with a bootstrap interval is needed to sustain the claim as stated; otherwise the claim should be restricted to the measured 2.10 bpp comparison against the fitted VQ codebooks.

4 minor objections

The paper says, at Table 1

Pith says: minor objection 1 of 4

The CP 2-bit rows are unlabeled and appear as continuation rows under the QTIP block (for example the DeepSeek row at 50.7 GB, the Qwen row at 13.4 GB, and the LongCat row at 8.1 GB). They should be labeled 'CP 2' so the table matches Appendix C, where the same values appear as CP at 2.06-2.10 bpp.

The paper says, at Section 2.1

Pith says: minor objection 2 of 4

Two editorial artifacts reading 'Length revision: original wording retained below.' appear in Section 2.1 and should be removed before publication.

show 2 more

The paper says, at Appendix A.3 and Table 1

Pith says: minor objection 3 of 4

Appendix A.3 discloses that the Qwen RTN baseline is evaluated with its group scale and minimum kept in fp32 while its advertised rate counts that metadata as bf16; this convention favors RTN and is conservative for CP, so it would be helpful to state it in a footnote to Table 1 rather than only in the appendix.

The paper says, at Section 4.3, Tables 4 and 19

Pith says: minor objection 4 of 4

The main-text phrasing that norm restoration 'consistently achieves lower output KL divergence across all three models' is based on the six-domain geometric mean of Table 4; the held-out gain test in Table 19 confirms the advantage on LongCat (all domains, ratios .904-.940) and on Qwen web and code (.944-.983), but the DeepSeek intervals and the Qwen multilingual interval include 1.

more of objection 4

The paper reports this transparently, and a short pointer in Section 4.3 to the partial held-out confirmation would prevent readers from over-reading the claim.

What would settle it

Re-run the Qwen matched-budget comparison in Table 16 with measured, non-interpolated trellis points at 2.10 and 2.50 bpp using the same 256 held-out FineWeb-Edu documents and paired 2,000-document bootstrap. If the measured 2.50 bpp trellis KL is at or above 0.0188, or if the 2.10 bpp mean+trellis variant still beats the plain shared trellis, the abstract's matched-budget claim should be revised to say the shared trellis is competitive with, not superior to, the tested structured variants.

from the skeptic's reading

How the review went

4 readings by deepseek-v4-flash · 16 Oct 2026

  1. Reader holds up, with conditions confidence moderate
  2. Skeptic partly agrees 2 min 32 s · 40,240 tokens read, 18,200 written
  3. Editor wrote the verdict above 32 s · 41,282 tokens read, 3,566 written
  4. Referee major revision: 2 major objections, 4 minor 1 min 46 s · 40,676 tokens read, 14,629 written

Not run on this paper: the simulated authors' defence.

Pith did not check this review's objections against the paper.

The review in full

The review in brief, machine-written

The paper is worth engaging with seriously. The central claim, that frozen hashed n-gram lookup tables can be stored at roughly two bits per value with a shared Gaussian trellis plus per-row norm-restoring scales while keeping most task performance, is supported by the reported evidence: three model families, 40 tasks, paired item-bootstrap intervals, and honest disclosure of a failed prediction. The 41–63% KL reduction versus 2-bit RTN and the 202.7-to-50.7 GB DeepSeek table reduction stand up.

What is actually new: applying QTIP's trellis codec to frozen lookup rows with per-row norm restoration, independently decodable row records, and the finding that restoring the original row norm beats least-squares scaling for downstream KL, with a theoretical condition and a held-out gain test. The paper also reports a pre-registered prediction that missed, and says so. That is good practice.

The soft spot that matters is in the abstract. It claims that at matched storage budgets the shared trellis outperforms the fitted codebooks and low-rank residual variants tested. The paper's own Table 3 shows the opposite for one of those variants: at equal 2.10 bpp on Qwen, mean+trellis gives KL 0.0193 versus 0.0198 for the shared trellis, with a 95% CI that excludes zero. The 2.50 bpp comparison against mean+four-PCs+trellis uses an interpolated trellis value with no measured run and no uncertainty. The authors acknowledge the interpolation in the Limitations and Appendix D.2, but the abstract still overstates. The headline KL and storage claims are unaffected; this is confined to the matched-budget superiority sentence.

The Gaussian source model is heuristic. The paper's own numbers show 19–33% of energy in 16 shared directions among frequent rows, against a 6.25–10% Gaussian reference, and the synthetic crossover near 45–50% spike energy is a judgment call. They disclose this and test it. Serving numbers are single-node, eager inference, with some one-run configurations; also acknowledged. No code, data, or commit hash is released, and the upstream tables are proprietary, so the numbers cannot be independently reproduced from the paper alone.

Bottom line: solid, carefully evaluated work with one overclaim in the abstract and a few addressable weaknesses. It deserves peer review. I would send it to a serious referee and require the matched-budget claim to be corrected or the comparison completed.

The strongest objection

Section 4.3 and the abstract claim that 'at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test.' Table 3's own Qwen numbers do not support that for the low-rank variants: at equal 2.10 bpp, 'Mean + trellis' has output KL 0.0193 whereas 'Shared trellis' has 0.0198, a 2.4% improvement with 95% CI [0.1, 4.5] (Appendix D.2). That is a matched-budget comparison, and mean+trellis is exactly the kind of structured residual the abstract says the shared trellis beats. The paper's 'improvements are limited relative to storage required' is a judgment about practical value, not a refutation of the comparison. The separate 2.50 bpp comparison against 'Mean + four PCs + trellis' (0.0188) relies on a trellis reference of 0.0144 obtained by log-linear interpolation with no measured run and no uncertainty (acknowledged in Appendix D.2 and Limitations); if the true 2.5-bit trellis KL is at or above 0.0188, the only direct evidence for trellis superiority over the PC-residual variant disappears. The headline 41-63% KL reduction versus RTN and the 203-to-51 GB storage figure are unaffected; the concern is confined to the matched-budget superiority claim, which is nevertheless part of the abstract.

I read the central engineering claim as well supported: CP at roughly two bits preserves task scores across 40 tasks and three model families, reduces output KL by 41-63% versus 2-bit RTN with paired bootstrap intervals, and cuts the DeepSeek table from 202.7 to 50.7 GB. The Gaussian source model is explicitly heuristic, but the paper checks it empirically with row kurtosis, effective rank, and direct VQ/trellis comparisons, so I do not consider it the weakest point. The weakest point is internal: the paper's own Table 3 contains a statistically resolved matched-budget case where a low-rank residual variant (mean+trellis) beats the plain shared trellis, while the comparison that would support trellis superiority at 2.50 bpp rests on an unmeasured interpolated value. This does not overturn the main result, but it does mean the abstract's matched-budget sentence should not be taken at face value until the missing point is measured. The reader's CONDITIONAL verdict already accounts for the broader reproducibility concerns, so my stress-test does not move the verdict.

The referee's report

If the claims hold, the paper makes a useful contribution: it shows that frozen hashed n-gram lookup tables can be stored near two bits per value with most task performance retained, while preserving selective per-row access, and it quantifies the serving benefits (GPU memory relief, larger workloads, faster host-memory prefill). The evidence for the two leading claims is strong: the 41-63% KL reduction over RTN follows from paired chunk-bootstrap ratios in Table 13, and the 202.7-to-50.7 GB reduction is consistent across Tables 1 and 13. The evaluation is unusually careful: 40 tasks with paired item bootstraps, held-out gain sweeps with predictions fixed before test splits were opened and the failed primary predictor reported (Appendix E.2), a synthetic rank sweep with pre-fixed equivalence margins (Appendix D.2), a transparent boundary test on token-indexed tables (Appendix H), and storage-accounting conventions that are conservative for CP in some comparisons (Appendix A.3).

Pith's reading of the paper (a machine's summary, not the authors')

Large language models are beginning to carry conditional memory: huge embedding tables, keyed by hashed input n-grams, from which each token reads only a handful of rows. This paper tries to establish that such tables can be stored at roughly two bits per value without giving up either fidelity or selective access: each row keeps a short trellis code and one per-row scale, and a single Gaussian trellis shared by the whole table reconstructs only the rows an input requests. The authors report that across three model families and 40 tasks, this nearly matches uncompressed tables, cuts output KL by 41–63% relative to 2-bit round-to-nearest, and shrinks a 202.7 GB DeepSeek table to 50.7 GB. The payoff is practical: smaller tables fit on GPU, four- to eightfold storage savings translate into larger workloads, and row-granular records keep host-memory lookup fast.

What carries the argument. The carrying object is the Conditional Program representation, $\hat{e}_i = \alpha_i f(c_i)$: a per-row trellis code $c_i$, a per-row bf16 scale $\alpha_i$, and one shared decoder $f$ implemented as trellis-coded quantization with a Gaussian HYB bitshift trellis, a 16-bit state, two values per step, and tail-biting Viterbi search. The shared decoder is justified by a source model: normalized rows $z_i = \sqrt{d}\, e_i/\|e_i\|_2$ are treated as approximately $\mathcal{N}(0,1)$ coordinate-wise, so one trellis built from a Gaussian codebook encodes every row without per-table codebooks or rotation. The scale does the second half of the work: $\alpha_i$ restores the original row norm exactly, which the paper shows is preferable to least-squares scaling in the downstream model, and a local quadratic analysis yields the condition $2v^\top H u > (1+c)v^\top H v$ under which magnitude preservation beats coordinate error. Storing each record as an independent (code, scale) pair at rate $b + 16/d$ bits per value preserves selective lookup, because a fused kernel fetches and decodes only addressed rows.

Core claim. The central claim is that a single shared reconstruction rule, instantiated as a Gaussian trellis decoder, suffices for the normalized contents of every row of a hashed n-gram memory, so the compressed table stores only a short code $c_i$ and a norm-restoring scale $\alpha_i = \|e_i\|_2/\|f(c_i)\|_2$ per row, with $\hat{e}_i = \alpha_i f(c_i)$. The paper argues that normalized rows approximate a standard Gaussian source by a high-dimensional central-limit argument, and its measurements find within-row kurtosis within 0.02–0.06 of the Gaussian reference even though frequently read rows carry 10–33% of their energy in 16 shared directions (against a 6.25–10% Gaussian baseline). At two bits, the paper reports a 41–63% output-KL reduction over 2-bit round-to-nearest and a further 3–9% over the QTIP trellis baseline, with pooled accuracy across all 40 DeepSeek tasks changing by −0.07 points. The central design choice is norm restoration: for a fixed code, restoring the original row magnitude beats a least-squares scale on output KL for all three models, so minimizing reconstruction error is not the right objective when decoded rows feed a trained readout and network.

The premise it rests on. The scheme stands or falls on the premise that the normalized contents of trained lookup rows look enough like independent Gaussian vectors that one fixed trellis decodes every row well; if rows ever concentrate more than about half their energy in a few shared directions, fitted per-table codebooks would beat the shared trellis at the same storage.

If the paper is right (Pith's inferences, not the authors')

DeepSeek's Engram tables drop from 202.7 GB to 50.7 GB at 2.06 bits per value, with pooled accuracy across all 40 tasks changing by −0.07 points and most per-task confidence intervals containing zero.

Two-bit CP preserves output distributions: per-token KL falls 41–63% relative to 2-bit round-to-nearest and a further 3–9% relative to the QTIP trellis baseline across web, code, math, chat, and multilingual text.

GPU serving capacity grows: on four H200s the representative DeepSeek prefill drops from 64.66 s to 13.27 s and a batch-512 decode becomes feasible; on eight GPUs the largest tested decode batch rises from 1,024 to at least 2,048 and prefill from 96k to at least 128k tokens.

Selective access survives compression: independent row records make a 4,096-token host-memory lookup 6.54 ms versus 10.78 ms for a tile-window layout, and a 51.5 GB cache can hold the entire compressed table.

Norm restoration is the objective that matters: restoring the original row magnitude consistently beats least-squares scaling on output KL across all three models, implying the downstream network consumes row magnitude, not just direction.

Generalization: if the Gaussian-row premise holds, the conditional-program recipe is not tied to hashed n-grams — any frozen lookup table with roughly isotropic rows could be stored at about two bits, with the per-row scale carrying magnitude; the paper's own token-indexed Gemma test indicates such tables need sensitive-row protection first.

The norm-restoration condition, $2v^\top H u > (1+c)v^\top H v$, is a transferable test: in any setting where quantized embeddings feed a trained network, one could check before compressing whether magnitude preservation will beat least-squares scaling, rather than discovering it after the fact.

The paper's roughly 45–50% spike-energy crossover is a falsifiable boundary for future training methods: if conditional-memory training is pushed toward stronger shared low-rank structure, fitted codebooks should overtake the trellis exactly in that regime.

A deployment consequence left implicit is that compression stacks with caching: because each record is four to eight times denser, hot-row caches hold proportionally more rows, so host-side serving should require less DRAM per replica and fewer SSD reads per token at a fixed cache size.

Check this review

Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.

How often reviews like this one are right

Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.

How often objections from reviews like this one are right: not yet measured

Every value above, in the review's public record (JSON)

Reviews by people

This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

Conditional memory expands language-model capacity through selective lookup, but the full embedding table must remain available for every possible input. We introduce Conditional Program (CP), a compressed representation that reconstructs only the rows an input requests. CP represents each row by a short code and a local scale, with a reconstruction program shared across the table. We instantiate this representation with a Gaussian trellis, norm restoration and independently decodable row records. CP's two-bit code lowers output KL by 41–63% relative to 2-bit round-to-nearest. Analysis across three trained n-gram memory families shows that Gaussian-like coordinate statistics coexist with learned relationships among rows; at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test. For DeepSeek, it reduces table storage from 203GB to 51GB, leaving room for larger workloads when the table is kept on GPU.

The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-10-16

The authors' main claim, as the classifier picked it out 0.91

“Analysis across three trained n-gram memory families shows that Gaussian-like coordinate statistics coexist with learned relationships among rows; at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test.”

How the main claim is stated: asserted 1.00

What the abstract itself states, as probabilities: claims first 0.05 · states limitation 0.25 · human participants 0.02 · controlled comparison 0.90 · randomized assignment 0.02 · states quantitative result 0.99 · compares with prior results 0.96 · mentions code or data availability 0.03

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
Conditional memory expands language-model capacity through selective lookup, but the full embedding table must remain available for every possible input. background 0.96 0.11 0.05 asserted 1.00
We introduce Conditional Program (CP), a compressed representation that reconstructs only the rows an input requests. contribution 0.97 0.91 0.20 asserted 1.00
CP represents each row by a short code and a local scale, with a reconstruction program shared across the table. method 0.96 0.81 0.07 asserted 1.00
We instantiate this representation with a Gaussian trellis, norm restoration and independently decodable row records. method 0.98 0.89 0.05 asserted 0.98
CP's two-bit code lowers output KL by 41--63\% relative to 2-bit round-to-nearest. result 1.00 0.95 0.31 asserted 1.00
Analysis across three trained n-gram memory families shows that Gaussian-like coordinate statistics coexist with learned relationships among rows; at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test. result 0.95 0.95 0.42 asserted 1.00
For DeepSeek, it reduces table storage from 203GB to 51GB, leaving room for larger workloads when the table is kept on GPU. result 0.96 0.88 0.14 asserted 0.98

What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.75

What was examined, and what was not

Sources read

  • arXiv listing abstract v1

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-10-16: 1 request, 5,552 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

Figures (4)
Figure 1 of the paper
Figure 1. Conditional Program (CP). An input selects row addresses in the compressed memory. Each record contains a trellis code and a bf16 scale; a shared decoder reconstructs the vector, and the scale restores its norm before the existing readout. (a) Offline, the encoder selects a low-error trellis path and stores its code with the norm-restoring scale. (b) Online, only addressed records are fetched, decoded and scaled. Trellis states and paths are schematic. • We introduce Conditional Program, a repre￾sentation that exchanges storage across the full memory table for reconstruction work on…
Figure 2 of the paper
Figure 2. Table size versus six-domain geometric-mean output KL (log scale); lower and further left is better. CP
Figure 3 of the paper
Figure 3. LongCat damage model KL = c0 + k Sp + k∥ dN2 with the measured small-perturbation offset c0 = .0021 and k = .198, p = .79, k∥ = 2.19 fit￾ted once on 29 codec configurations (LM, VQ and TCQ at 0.5–4 bits with the MSE-optimal scale or with norm restoration, plus one global gain, not drawn). Pure di￾rection edits that keep every row norm (triangles) are out of sample. S and dN summarize direction and norm error using the codec-level approximations defined in the text; the direction controls set S explicitly. G Storage Format and Systems Measurements End-to-end serving runs and the…
Figure 4 of the paper
Figure 4. DeepSeek tables behind a static hot-row cache

Figures are the authors', reproduced from the paper.

Cited by 1 Pith paper

Reviewed papers on Pith that cite this one. The full citation record

  1. Placing LLM Lookup Tables by Per-Layer Prefetch Deadlines cs.DC · Nov 2026

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment