Appearance
Where to spend compute in a generative model: latents, bits, and plans
Three papers landed on arXiv this week with the same target: cutting the cost of running a generative model. They take three different routes. One changes what compute is spent on (persistent latent state instead of more depth). One changes how memory is stored (a KV cache at roughly 1.25 bits per element). One changes when compute is spent (a plan that lets a masked diffusion decoder fill in many tokens per round).
Different tools, same question. If you are going to pay for compute, where should it go?
Depth has a cost you can't scale away
Depth is the default answer. If a model isn't good enough, add layers, loop the layers you have, or chain more latent reasoning steps. All three raise per-token FLOPs. The Lattice of Latents paper asks a different question: what if you scale the number of active computational states instead?
The vertical residual stream is the highway through depth. The Lattice adds a set of horizontal per-layer latents that persist across tokens and update recurrently along the time axis. These latents are not memory for sequence mixing the way an SSM state is. They condition the vertical stream's attention, KV cache writes, MLP computation, and decoding directly.
Related work already exists. Hyper-connections and mHC reroute residual pathways through depth; attention and value residuals extend the residual stream itself. The Lattice adds companion states that outlive a single token rather than rerouting what's already there. That distinction matters if you're picking an architecture to train from scratch, because the Lattice changes what you carry at inference time, not just what you wire together.
Quick Take: The Lattice paper's real claim is that persistent per-layer state is a scaling axis independent of depth, and a 406M model already moves perplexity from 15.41 to 14.40 on it.
What the perplexity numbers actually mean
On 20B FineWeb-Edu tokens, a 406M-parameter Lattice model lowers validation perplexity from 15.41 to 14.40 against a parameter-matched Transformer. That's a 6.5% reduction at a scale that fits on a single 24GB card. Not headline material on its own, but it compounds with tricks you may already use. Add hyper-connections and input residuals and the baseline moves to 14.22, then to 13.61 with the Lattice on top.
| Configuration | Params | Validation perplexity | Delta vs base |
|---|---|---|---|
| Base Transformer | 406M | 15.41 | — |
| Lattice | 406M | 14.40 | -1.01 |
| Base + hyper-connections + input residuals | 406M | 14.22 | -1.19 |
| Same enhancements + Lattice | 406M | 13.61 | -1.80 |
It also composes with SSM-style backbones. On Gated DeltaNet, Mamba-2, Triadic GDN, and GDN-Mamba-2 hybrids, the Lattice improves perplexity at every native state size tested. Lattice-GDN and Lattice-Triadic-GDN beat pure baselines that carry 4x larger native states. If you're already running a Mamba or GDN variant, that result hints your state budget has room you aren't using.
MiSTiQ: the KV cache that stays in low precision
KV cache cost has two ends: bytes stored and bytes moved. Both grow with context length and with batch size. Codebook-based vector quantizers push the storage side to very low bit widths, but they hit two walls. Codebook size is bounded by hardware lookup bandwidth, and most methods reconstruct the cache in a higher-precision float format before attention runs. That second wall is the expensive one, because it throws away the compute savings of the compression.
MiSTiQ replaces the codebook with a trellis, a structured state machine over reconstruction candidates encoded with beam search. That gets a large reconstruction space without a large codebook. The reconstruction values are generated directly in a microscaling (MX) element format using MX-Hash functions, which rely on the scale-conditioned marginal distribution of block-normalized Gaussian inputs.
Result: about 1.25 effective bits per element. Against fp16 at 16 bits that's roughly 12.8x less cache memory; against int8 it's 6.4x. On Llama3 and Qwen3, MiSTiQ posts lower WikiText perplexity and higher GSM8K accuracy than the codebook baselines across several block-scale formats. With NVFP4, it also has the highest LongBench average on both models.
I ran into the kernels-upcast problem on a 32K-context workload last quarter, where a codebook-vq path re-materialized the cache in fp16 during decode and the memory saving vanished at exactly the layer I cared about. MiSTiQ is aimed at that gap. It only closes if your serving stack has an MX-capable attention kernel. Without one, 1.25 bits will stay a paper number.
The Price of Not Planning: when does a plan help?
Masked diffusion models sample each token in a round independently. Planned decoders first produce a coarse plan, then fill tokens in parallel under it. When does that actually save rounds?
Model the plan as a broadcast tree. Leaves are tokens, internal nodes are the plan, and an edge correlation θ controls how strongly tokens depend on it. Error is measured by forward KL divergence ε. The bounds hold for every deterministic value-adaptive rule, including ones with learned conditionals.
Below the reconstruction threshold, a decoder without a plan needs on the order of min{n, (n/ε)^α} rounds, where α = log b / (4 log(1/θ)). That exponent rises to 1/2 at the threshold; above it, the exponent stays below 1/2. The binary channel with 0.02 ≤ θ ≤ 0.98 carries this behavior.
With a plan, log_b n + 1 rounds suffice. Logarithmic in the token count instead of polynomial. In the binary model below the threshold, a plan with units of m tokens needs roughly log_b(n/m) + min{m, (n/ε)^α} rounds, so the logarithmic depth shows up exactly when m is logarithmic.
The practical takeaway is narrow and easy to miss. A plan helps most near the reconstruction threshold, and only if its units are small. A coarse plan that groups 64 tokens into one unit doesn't recover the log_b n term. You've swapped one polynomial for another. Exact divergence computations in the Gaussian model up to 2^20 leaves confirm the exponents below the threshold.
Three papers, three levers
| Paper | What it optimizes | Intervention cost | Reported gain | Where it breaks |
|---|---|---|---|---|
| Lattice of Latents | Per-token compute vs capacity | Architecture change, train from scratch | Ppl 15.41 to 14.40 at 406M; 13.61 with enhancements | No published 1B+ results; persistent state costs memory at serving time |
| MiSTiQ | KV cache memory and bandwidth | Drop-in quantizer plus MX kernel | ~1.25 bits per element, better ppl and GSM8K | Needs NVFP4 or MX path in the attention kernel |
| Price of Not Planning | Decoding rounds | Plan scheduling policy | log_b n + 1 vs min{n, (n/ε)^α} rounds | Only pays near the reconstruction threshold, with small plan units |
The three don't compete. A Lattice-based SSM model serving into a MiSTiQ-compressed KV cache with a planned masked-diffusion decoder would touch per-token compute, memory, and round count at once. Whether that combination is practical is an engineering question nobody has answered yet, but nothing in the three papers rules it out.
Common Pitfalls
Don't treat parameter matching as serving-cost matching. The comparison is parameter-matched at training time. Per-layer latents have to be held in GPU memory per sequence at inference. The paper reports perplexity, not throughput, so if you're capacity-bound rather than quality-bound, benchmark memory before you commit.
Don't deploy a 1.25-bit quantizer without an MX-capable decode kernel. If your attention kernel upcasts to fp16 to do the matmul, you keep the storage win and lose the bandwidth win. Bandwidth is half of why you quantized the cache in the first place.
Don't expect a plan to save rounds far from the reconstruction threshold. The theory is explicit that the benefit concentrates where α approaches 1/2. If your diffusion sampler runs well below the threshold, a coarse plan is pure overhead.
Don't pick plan unit size m by gut feel. The bound log_b(n/m) + min{m, (n/ε)^α} only drops the second term when m is logarithmic in n. If m grows with n, you haven't bought the asymptotic win.
Don't extrapolate a 6.5% perplexity reduction from 406M to 7B without checking. Lattice composes with enhancements and with GDN/Mamba variants, which is a good sign, but every reported number is at 406M parameters and 20B training tokens.
One Thing to Remember
All three papers are about where compute should live, not how much of it to remove. The Lattice moves compute into persistent state. MiSTiQ moves it into the encoding and keeps it out of the reconstruction. The plan moves it out of sequential rounds and into a coarse pass. If you can only change one thing in your stack this quarter, pick the one where your current bottleneck actually is. For long-context serving that's usually the KV cache. For small-model training it's your depth budget.
The Bottom Line
- If you're training a sub-1B model from scratch and your baseline already has hyper-connections or an SSM backbone, add the Lattice. The perplexity reduction holds at this scale, it composes with what you already have, and it changes the state you carry rather than the backbone you train.
- If you're serving Llama3 or Qwen3 at long context and you can patch an NVFP4 or MX kernel into the attention path, prototype MiSTiQ first. 1.25 bits per element is a 12.8x reduction against fp16, and it holds accuracy on GSM8K and LongBench, not just WikiText perplexity.
- If you're building a masked diffusion sampler, size your plan units before you size your parallelism. The theory says small m near the reconstruction threshold is the only regime that pays, and aggressive token grouping will erase the log_b n win you thought you bought.