Manuscript Offprint
arXiv:2611.05871The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded
Zhe Yan
Xidian University
China
Yihao Liu
Tsinghua University
China
liuyihao24@
mails.tsinghua.edu.cn
Antonio Boffa
EPFL
Switzerland
Huanchen Zhang*
Tsinghua University
China
Abstract
Large language models (LLMs) compress text far better than classical compressors, but LLM-based compressors are slow, particularly during decompression. We argue that their decoding time has two fundamentally different sources. Execution redundancy, such as per-token host transfers, CPU-side coding, and token-by-token encoding, is work that the coded output does not require and can be removed without changing a single output bit. Sequential dependency, one model call per decoded token, is inherent to lossless decoding and cannot be removed by better execution, only traded for more calls or for more bits. We remove execution redundancy with a GPU-resident pipeline whose block-parallel encoding is made lossless in half precision by batch-invariant kernels, speeding up arithmetic coding by up to 5.8× in encoding and 3.0× in decoding without changing its compression rate. We then study the two ways of trading sequential dependency, speculative dual-model coding (SDMC) and multi-token single-model coding (MSMC), characterize the compression cost of predicting several tokens from a shared prefix, and identify the workloads in which fewer model calls are worth that cost.
Artifact Availability: The source code, data, and other artifacts are available at https://github.com/Angie-Yan/LLM-based-Data-Compression.
1 Introduction
Data compression is fundamentally a problem of density estimation paired with entropy coding [50]: the more accurately a probabilistic model predicts upcoming symbols, the closer the resulting bitstream approaches the entropy of the source. Early learned compressors relied on lightweight statistical models or compact recurrent networks [8, 34], whose limited modeling capacity kept their compression rates well above the entropy of natural language and structured text. Large language models (LLMs) change this picture: as highly expressive next-token predictors, they make the long-standing observation that language modeling is compression [19] directly usable in practice.
LLM-based compression is increasingly relevant to long-lived archival storage, including source-code repositories, historical data-lake partitions, high-density system logs, and scientific datasets. These environments retain data for extended periods while still requiring reasonably fast access. In these settings, the one-time compute cost of compression, and of adapting auxiliary components to a data domain, can be amortized over a long retention period and over all data of that domain. Furthermore, modern data
platforms increasingly use GPUs for both analytical processing and AI inference [32]. Where such accelerators and models are already deployed, reusing them for storage operations such as decompression lowers the marginal cost of LLM-based compression, turning it from a dedicated compute expense into a plausible use of existing capacity.
LLM-based compressors pair the model's conditional probabilities with an entropy coder, most commonly Arithmetic Coding (AC) [47, 58], as in [19, 42, 55], and reach compression rates well beyond traditional compressors such as gzip [20], zstd [14] and xz [15], the strongest of which in our evaluation is xz. Their weakness is speed. A recent economic analysis [33] concludes that, at current prices, their compute cost takes years to amortize, and follow-up work [2] shows that in the compression direction, arithmetic coding rather than model inference is the main bottleneck. Decompression is harder to accelerate, because each token's distribution depends on the tokens decoded before it. Our profiling of the public implementation accompanying [33] shows that here, too, inference is not the only cost: on our hardware, it decodes Wikipedia text at 14.3 KB/s, and CPU-side arithmetic coding together with copying each probability vector to the host accounts for about two thirds of decode time.
We argue that decoding time in LLM-based compression has two fundamentally different sources, which call for different treatment. Execution redundancy is work that the coded output does not require: transferring a full probability vector to the host for every token, building cumulative distributions on the CPU, and encoding token by token although the encoder knows the whole input. It can be removed without changing a single output bit. Sequential dependency is inherent to lossless decoding: the decoder cannot evaluate a token's distribution before it has recovered the preceding tokens. With a fixed model, it cannot be removed by better execution, only traded. Sequential calls can be made cheaper for some tokens by delegating them to a second and smaller model, although every token still requires one sequential call. Alternatively, calls can be made fewer by coding several tokens from a shared prefix; for coders that predict each offset independently, this costs bits, only part of which better predictors can recover.
We study both limits on a common backbone, the same evaluation files, and a byte-exact losslessness requirement. For execution redundancy, we build a GPU-resident coding pipeline that encodes whole blocks by teacher forcing and keeps vocabulary-sized work on the GPU, and we make it lossless in half precision with batch-invariant kernels [28], which give encoder and decoder bit-identical predictions although they call the model with different shapes. We pair the pipeline with arithmetic coding and with Rank-Tier Coding, a simple fixed-length rank code in the spirit of prior rank-based
*Also affiliated with the Shanghai Qi Zhi Institute. Corresponding author.

Figure 1: Compression rate (as 1/bpb, higher is better) versus decode throughput, averaged over Wiki and Code (Qwen2.5-0.5B [46], FP16, B=256). Removing execution redundancy speeds up arithmetic coding without changing bpb; resolving more tokens per call (MSMC) trades bpb for further decode throughput.
schemes [51, 55], which we use as a low-cost reference point to measure how much the choice of coder still matters. For sequential dependency, we evaluate one representative design for each way of paying, as a probe of the trade-off rather than a replacement for token-by-token decoding: speculative dual-model coding (SDMC), which keeps full conditioning and pays in calls, and multi-token single-model coding (MSMC), which reduces calls and pays in bits. Our individual components build on existing techniques, namely batch-invariant kernels [28], rank-based coding, speculative decoding [35], and multi-token heads [10]; the contribution lies in making them lossless and composable in a compression pipeline and in characterizing what each gains and costs. Figure 1 summarizes the resulting operating points.
Our contributions are as follows. First, we separate decoding time into execution redundancy, which can be removed without changing the output, and sequential dependency, which can only be traded for calls or for bits, and show where each dominates (Section 2). Second, we apply batch-invariant kernels [28] to make block-parallel encoding lossless in half precision, and build a GPU-resident pipeline that removes redundancy from decoding as well. With the same model and probabilities, arithmetic coding becomes 4.4–5.8× faster for encoding and 2.3–3.0× faster for decoding; entropy coding then takes under 3% of decode time, so any faster coder could add at most about 10% (Sections 3 and 6.3). Third, for multi-token coders that predict each offset independently from a shared prefix, we identify a code-length overhead set by the information lost between offsets, and show that per-offset code lengths account for the measured compression loss of 2–3× at n=6 (Sections 2.2 and 6.4). Keeping full conditioning with a draft model instead saves little decode time and halves encode throughput (Section 6.6). Finally, we model and validate both sides of the multi-token trade-off: fewer calls pay off when decoding is latency-bound, with a 5.7× speedup for single-stream decoding, but much less at large batch sizes, where batching already fills the GPU (Section 6.5). The best LLM-based operating points produce output 2.4–2.7× smaller than
xz-9, while remaining far slower. We release our implementation, including the batch-invariant kernels.
Section 2 analyzes where decoding time goes and states the two limits. Section 3 removes execution redundancy. Sections 4 and 5 study the two ways of trading sequential dependency, SDMC and MSMC. Section 6 evaluates them, Section 7 discusses related work, and Section 8 concludes the lessons and open directions.
2.1 LLM-Based Compression and Where Its Time Goes
Framework. Standard LLM-based lossless compression combines an autoregressive model with an entropy coder, commonly Arithmetic Coding (AC) [47, 58], as in [19, 42, 55]. Given a token sequence , the model estimates at each position, and by Shannon's source coding theorem [50] the ideal code length is
which arithmetic coding approaches within a few bits. The model therefore determines the compression rate, and how the model and the coder are executed determines the speed. Encoding and decoding differ in one essential respect. The encoder knows the whole sequence and can in principle evaluate all positions in parallel; the decoder cannot, because the distribution at position depends on tokens it has not yet recovered. Practical systems therefore split the input into independent streams and advance them in lockstep, so that each model call serves tokens [33], while decoding within each stream remains sequential.
The conventional pipeline. Figure 2 shows one decoding step of the pipeline we start from, the public implementation accompanying [33]. The model produces logits on the GPU, which are turned into probabilities over the vocabulary ( for Qwen2.5 [46]). The probability vectors are copied to the host, where the arithmetic decoder builds each stream's cumulative distribution, locates the encoded value in it, and recovers the next token, which is the input to the next model call. With tokens per stream, decoding takes
where implementations can overlap part of with GPU execution [33], but not all of it, because the next call needs the tokens that the host has just decoded.
Two limits. Equation (2) contains two fundamentally different kinds of cost. Execution redundancy is work that the coded output does not require. The host receives probabilities per step although it needs only a few numbers per stream to recover each token, and it builds full cumulative distributions on the CPU; the encoder mirrors the decoder and calls the model once per token although all tokens are known. None of this affects which bits are produced. In the conventional pipeline it dominates: CPU-side arithmetic coding and the device-to-host copy of probability vectors together account for 68% of decode time on Wikipedia text and 60% on source code, more than the model itself (Section 6.3). Sequential dependency is the factor . It is a property of lossless decoding,
The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded
not of an implementation: to recover , the decoder needs a distribution conditioned on , which it knows only after decoding . A third factor, the cost of each call, depends on model size, precision, and hardware. It is complementary to both limits.
2.2 Addressing the Two Limits
The two limits differ in what it costs to address them. Execution redundancy can be removed without changing the output, provided encoder and decoder still produce bit-identical predictions although removing redundancy makes them call the model with different shapes; Section 3.1 shows why this does not hold by default and how we obtain it. Sequential dependency cannot be removed by better execution, only traded, for more calls or for more bits.
Fewer sequential calls cost bits under per-offset prediction. Consider multi-token coders of the form we study [10, 25, 52]: a single model call resolves tokens by fixing, before any of them is decoded, a separate distribution for each offset , conditioned only on the prefix before the round. For any such coder, the expected code length of a round is at least
whereas token-by-token decoding conditions each token on everything before it and can reach, by the chain rule, . The difference is
the information that the earlier tokens of a round carry about the later ones, which per-offset prediction leaves unused. For this class of coders, is a property of the coding scheme rather than of how well the predictors are trained: no choice of removes it, and a practical predictor additionally pays the divergence between and the true conditionals. The bound does not cover designs in which the distribution for a later offset depends on tokens decoded earlier in the same round, for example through verification of drafted tokens or structured joint prediction [5, 11, 35]. Such designs reintroduce dependencies within the round or require modeling joint distributions over several tokens; we do not study them here.
The alternative is to pay in calls. A decoder can instead keep full conditioning, so that the decoding schedule imposes no conditioning loss, and make some sequential calls cheaper, for example by letting a smaller model handle the tokens it predicts correctly [35]; every token still requires one sequential call. After removing execution redundancy (Section 3), we study one technique at each end of this trade-off: SDMC pays in calls (Section 4), and MSMC pays in bits (Section 5).
3 Removing Execution Redundancy
This section removes the execution redundancy of Section 2.1 without changing what is coded. Adams et al. [2] substantially reduced compression-side overhead through target-interval capture and pipelined arithmetic coding. Two questions remain open: whether block-parallel encoding stays lossless under half-precision arithmetic, and how to remove the redundancy in decompression, which

Figure 2: One decoding step for batch size = . (a) The conventional pipeline copies the full probability matrix floats) to the host, where each stream's arithmetic decoder builds a cumulative distribution over the vocabulary and recovers its token; the next backbone call waits for this CPU work (red block). (b) Our pipeline quantizes probabilities and builds cumulative frequencies on the GPU. The host sends only each stream's target value ( integers). With Rank-Tier Coding, (b) needs no device-to-host transfer.
their work does not evaluate. We first obtain bit-identical predictions across call shapes (Section 3.1), then build a pipeline that encodes whole blocks and keeps vocabulary-sized work on the GPU in both directions, for arithmetic coding and for Rank-Tier Coding (Section 3.2).
3.1 Numerical Parity Across Call Shapes
The encoder knows the complete input, so it can evaluate many consecutive positions in one teacher-forced forward pass [56], whereas the decoder must evaluate one position per call. Lossless decoding requires both to produce the same prediction at every position: identical Top- lists for a rank-based coder and, more strictly, identical integer cumulative frequencies for arithmetic coding. A single mismatch, , corrupts every later token, since is the input to all later positions.
Such mismatches arise because floating-point addition is not associative [26]: . In FP16, for example, , because 2049 is not representable and rounds to 2048, whereas . Every matrix multiplication, attention score, and normalization in a transformer is a long sum, and standard GPU kernels choose how to split and order that sum, through tiling, split reductions, and the choice of tensor-core path, based on the shape of the call [28]. The same position can therefore produce slightly different logits when it is evaluated inside a teacher-forced block than when it is evaluated alone. These differences affect only the last bits, but they are enough to swap two near-tied candidates, and over millions of tokens near-ties occur. Fixing the batch size, as in [33], makes one execution schedule repeatable; it does not make an encoder that evaluates blocks agree with a decoder that evaluates single positions. Block-parallel encoding is therefore safe only if every reduction is performed in the same order regardless of the call shape.
Batch-invariant kernels. Following the design principle of He et al. [28], we replace every operation whose reduction order could depend on the call shape with a Triton [53] kernel in which the computation for one position is independent of the others in the call:
-
Attention. Each program computes one query row of one head in FP32 with an online softmax [18, 41], visiting fixed-size key blocks in a fixed order from the first cached position. Key blocks beyond a query's causal horizon, which a teacher-forced block adds, are fully masked and leave the accumulator bit-for-bit unchanged.
-
Linear projections. All linear layers, including the LM head and the prediction heads of Section 5, use a fixed-tile matrix multiplication: rows are padded to a fixed tile height, and each tile is accumulated in FP32 in a fixed order on FP16 tensor cores.
-
RMSNorm [60]. Each program normalizes one row in FP32, so the reduction over the hidden dimension is the same for every call shape.
We also disable TF32 and reduced-precision reductions in the remaining PyTorch matrix operations. Encoder and decoder run the same kernels, and we verify both at the kernel level, by comparing block evaluation against position-by-position evaluation bit for bit, and end to end (Section 6.1).
Shared schedule. The remaining sources of divergence are controlled by construction. The encoder replays the decoder's KV-cache schedule exactly: whenever the decoder's cache reaches the context length (1024 tokens), both sides truncate it to the most recent 512 entries at the same step, and the encoder never lets a block span such a truncation point. Every position is therefore evaluated on the same cached prefix on both sides. Probability quantization (for AC) and Top-K selection (for Rank-Tier Coding) are applied to tensors of the same shape on both sides, so bit-identical logits yield the same frequencies and the same candidate ordering, including the order of tied candidates.
Arithmetic Coding. Both sides convert logits to integer frequencies on the GPU with a fixed total :
assigning the rounding remainder to the most probable token so that the frequencies sum exactly to T, and take a cumulative sum over the vocabulary. Every token thus receives a nonzero frequency, and the quantization loses little probability mass. The coder itself is a standard 32-bit integer arithmetic coder [58] that runs on the CPU, one instance per stream.
Encoding. For each position in a block, the GPU gathers the target token's interval for all streams. Only these two integers per token are copied to the host, once per block, and a background thread feeds them to the per-stream encoders while the GPU processes the next block. This corresponds to the target-interval capture and pipelined coding of [2].
Decoding. At each step, every stream's decoder computes its current target value from its coder state, a single integer. The B values are sent to the GPU, which locates each one in the corresponding cumulative frequencies with a batched binary search, recovers the
token, and returns only the token's interval integers) so that the host can update its coder states. The decoded tokens remain on the GPU as the input to the next call. This applies the target-interval principle to decoding, where the interval is not known in advance and must be located from the coder state.
Compared with the conventional pipeline, which copies a probability matrix to the host and builds each stream's cumulative distribution on the CPU at every step, the host now handles integers per step instead of floating-point values.
Rank-Tier Coding. The same schedule applies, with rank computation in place of frequency quantization (Section 3.2). The encoder computes Top-K lists and ranks for a whole block on the GPU and passes ranks (and, for escapes, token IDs) to a background serializer. The decoder needs no device-to-host transfer at all: it parses the stored tier codes, sends them to the GPU, and recovers all B tokens with one gather from the Top-K lists.
Section 6.3 measures the effect of these changes: with the same model and probabilities, host-side work falls from the dominant cost of decoding to under 10% of decode time. What remains is the model call itself, once per token: sequential dependency.
3.2 Rank-Tier Coding
Arithmetic coding assigns each token a code length close to , which requires building a cumulative distribution and updating an interval at every step. Rank-Tier Coding instead encodes each token by its position in the model's ranked predictions, a form of symbol ranking that dates back to Shannon [51] and has been paired with LLM predictors before, with the rank stream passed to a general-purpose compressor [42, 55] or coded with bit-packing or Huffman codes [2]. We use a simple fixed-length tier code computed on the GPU, which requires only a Top-K selection and a comparison per token. We include it as the cheapest coder we could pair with the pipeline, to measure how much the choice of coder still matters once redundancy is removed.
Code. Let be the logits for position , and the Top-K ( ) token IDs sorted by decreasing logit with deterministic tie-breaking. The rank of is its 1-indexed position in ; if , then and the token is encoded as an escape, analogous to the escape mechanism of PPM [13] and the exceptions of thresholded symbol ranking [43]. Ranks map to four tiers:
For the first three tiers, the payload is , which fits in 2 bits for Tier 2 and 5 bits for Tier 3. Tier 4 stores the raw token ID in 18 bits, since :
The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded
With a 2-bit tier label, the code length of a token is , i.e., 2, 4, 7, or 20 bits for Tiers 1–4.
Decoding. The decoder reconstructs the same Top-K list from the decoded prefix and recovers the token as
Decoding is lossless whenever encoder and decoder produce the same Top-K list at every position, which Section 3.1 guarantees. The argument is inductive: if the decoded prefix matches the original, both sides compute the same list and recover the same next token.
What the fixed code gives up. Rank-Tier Coding needs neither a probability vector nor a coder state, so its per-token work is a Top-K selection and a comparison, and its encoding of each position is independent of the others. The price is that code lengths are fixed by tier rather than by the model's confidence: a correct top-1 prediction always costs 2 bits, whereas arithmetic coding can spend a small fraction of a bit on a confident prediction. Rank-Tier Coding therefore cannot reach the bound of Equation (1), and its compression rate is bounded below by 2 bits per token regardless of model quality. Section 6 quantifies this trade-off: on the same pipeline, Rank-Tier Coding decodes 10–20% faster than arithmetic coding but costs 0.4–0.8 more bits per byte. Once redundancy is removed, a cheaper coder therefore buys little speed at a large price in compression.
4 Speculative Dual-Model Coding
Once execution redundancy is removed (Section 3), decoding is dominated by one sequential model call per token. Section 2.2 showed that, with a fixed model, this dependency can be paid for in calls or in bits. This section studies the first option: keep every token's full conditioning, so that the decoding schedule itself costs no bits, and make some of the sequential calls cheaper. How many bits SDMC spends then depends on how it codes each token. Speculative decoding [11, 35, 59] does this in text generation by letting a small draft model propose tokens for a larger target model; Adams et al. [2] name it as a promising direction for compression. We study whether it helps. Compression has an advantage over generation here: the encoder knows the true sequence and can record whether each draft prediction is correct, so the decoder never needs to verify a draft. We call this design Speculative Dual-Model Coding (SDMC).
4.1 Design
SDMC pairs a small draft model (Qwen2.5-0.5B) with a larger target model (Qwen2.5-7B) [46]; both share a tokenizer. For each token , the encoder first checks whether it is the draft model's top-1 prediction. If so, it emits a single flag bit. Otherwise, it emits a zero flag followed by the token's Rank-Tier code under the target model (Section 3.2):
A hit thus costs 1 bit and a miss at least 3 bits. With draft hit rate , the expected cost per token is
where is the probability that a missed token falls into tier of and is that tier's payload.
Encoding. The encoder knows all tokens, so evaluates blocks of positions per call, as in Section 3.1. is stepped one position at a time to match the decoder, which uses it to generate tokens. Both models run on every token, for B streams in parallel.
Decoding. The decoder splits each stream into maximal runs: an S-run of consecutive hits or an L-run of consecutive misses. In an S-run of length , generates the tokens one call at a time from its own top-1 predictions, and then ingests them in one prefill call to update its KV cache [45]. In an L-run, decodes the tokens one call at a time from their stored ranks, and then catches up in one prefill call. Each token is processed by both models, but only one of them needs a sequential single-token call for it. The two KV caches therefore advance on offsetting schedules that depend on the data, and these schedules differ across streams. In our implementation, streams are therefore decoded one at a time ().
Adapting the draft model. The draft hit rate determines both the code length and how often is skipped; each additional percentage point of saves at least 0.02 bits per token, because a miss costs at least 3 bits against 1 for a hit. We therefore also tested fine-tuning with LoRA [30], using cross-entropy plus a hinge term [16] that penalizes the target token when its logit does not exceed that of its strongest competitor by at least a margin :
where is the draft model's probability of the target token . Fine-tuned on the target file, this raises the draft's top-1 hit rate on Wiki from 47.7% to 55.3% with cross-entropy alone and to 56.5% with the hinge term. Because these adapters are specific to a file, their size would have to be counted toward the compressed output; the comparison in Section 6.6 therefore uses the un-adapted base model.
4.2 Limitations of SDMC
Savings are capped by the hit rate and the run structure. SDMC does not reduce computation: every token passes through both models. It only replaces some sequential single-token calls to with calls to . Let and be the latencies of a single-token call, and those of a prefill call, and the numbers of S- and L-runs, and , . By analogy with the analysis of speculative decoding [35], decoding takes approximately
A large speedup requires a high hit rate, long runs, and at the same time. None of these holds comfortably. The hit rate is bounded by how predictable the data is; hits and misses interleave, so runs are short and each switch adds a prefill call; and at , a single-token call is dominated by fixed per-call latency rather than arithmetic [45], so a call to the 0.5B model is far less than cheaper than a call to the 7B model.
SDMC adds a sequential loop to encoding. On the encoding side, the target model already processes blocks, so there are no sequential calls to save. The draft model, however, must be stepped one position at a time to reproduce the decoder's computation. SDMC therefore adds a sequential loop to an encoder that would otherwise have none. Whether this makes encoding slower in absolute terms depends on how fast the single-model coder encodes (Section 6.6).
Half-precision parity is not reached in our implementation. Lossless decoding requires the decoder to reproduce the draft model's top-1 decisions and the target model's candidate lists exactly. In single-model coding, encoder and decoder differ in a fixed, known way, the number of positions per call, which the kernels of Section 3.1 handle. In SDMC, each model's KV cache is written by single-token calls in some runs and by prefill calls of data-dependent length in others, and the encoder writes it differently again. With FP16 or BF16 execution, our implementation fails to reconstruct some inputs, and it still fails when we apply the batch-invariant kernels to both models. The failure persists in a control in which and are the same model, which leaves only the coordination pattern as a difference. We hypothesize that caches written under data-dependent call shapes are the source, but we have not located the first diverging operation, so we report this as a limitation of our implementation rather than of dual-model coordination in general. We therefore run both models in FP32 for all SDMC experiments, which makes decoding lossless on every input we test but forgoes half-precision tensor cores [40].
Lesson. SDMC saves sequential calls only in proportion to the draft's hit rate, slows encoding, and in our implementation requires FP32 and single-stream decoding. These costs share a cause: progress per sequential call depends on a second model whose state must be kept in step with the first. In the terms of Section 2.2, SDMC pays for sequential dependency in calls, and since a call to a small model is not much cheaper than one to a large model when decoding is latency-bound, the payment buys little. Section 5 studies the other option, fewer calls paid for in bits. Section 6.6 reports the measurements.
5 Multi-Token Single-Model Coding
SDMC pays for sequential dependency in calls. Multi-Token Single-Model Coding (MSMC) takes the other option of Section 2.2: it makes fewer calls and pays in bits, by letting one model resolve several tokens per call. Following Medusa [10] and related multi-token

Figure 3: MSMC schedule for one stream (let , ). From each predictor position , the backbone LM head predicts and heads predict . Encoding covers rounds per call by teacher forcing, so the last targets of one call are fed in the next; decoding covers one round per call. Gray boxes are positions already in the KV cache. Once the cache reaches the context length, both sides truncate it at the same round (not shown). All streams follow this schedule in lockstep.
predictors [25, 52], it attaches lightweight heads to a frozen backbone, each predicting a different future offset from the same hidden state. Encoding and decoding both run on the pipeline of Section 3, and MSMC works with either coder: each predicted distribution is coded with arithmetic coding or Rank-Tier Coding exactly as a single-token prediction would be. The number of tokens resolved per call, , is chosen at encoding time. We describe the design (Section 5.1), quantify what costs in compression (Section 5.2) and gains in speed (Section 5.3), and combine both into a model for choosing (Section 5.4). MSMC does not compress better than token-by-token arithmetic coding. It adds operating points with higher decode throughput at a known cost in bits, which are useful when decoding latency matters more than compression rate.
5.1 Design
Heads. Let be the backbone's final (post-norm) hidden state at position . Offset +1 is predicted by the frozen backbone LM head , so MSMC with is exactly single-model coding. For offsets +2 to +K+1 we train heads: , each a feed-forward block with a residual connection [23, 29]:
with and . Following Medusa, is initialized to zero, and we initialize as a copy of , so every head starts as the backbone's next-token predictor and then adapts to its offset.
Encoding. A round resolves consecutive tokens from one predictor position : from , the backbone LM head predicts and heads predict . Because
The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded
the input is known, the encoder covers rounds, that is, coded tokens, in one teacher-forced backbone call. Each call feeds the tokens up to the last predictor position of its rounds, so the final targets of one call are fed as input in the next (Figure 3). Attention reads all earlier positions from the KV cache, subject to the truncation schedule of Section 3.1, and the causal mask ensures that depends only on , exactly as in decoding. The LM head and the heads are evaluated only at predictor positions, and each prediction is coded with arithmetic coding or Rank-Tier Coding as in Section 3.1.
Decoding. The decoder advances all streams one round per backbone call. The call for predictor position ingests the tokens recovered in the previous round (only for ; the first token of each stream is stored in the header), appends them to the KV cache, and returns ; the LM head and the heads then produce the distributions from which the coder recovers . Because these tokens are unknown until they are decoded, the decoder cannot cover several rounds in one call, so each round costs exactly one sequential backbone call. The value of is stored in the stream header.
Training per domain. Heads are trained once per data domain, with the backbone frozen, by minimizing the cross-entropy of each head at its offset, averaged over heads:
The training data come from the same domain as the data to be compressed but exclude it; in our evaluation, they are held-out files of each corpus, disjoint from the test files (Section 6.1). Training on the input itself would make the heads part of the compressed representation, since under the minimum description length principle [48] the cost of a model fitted to the data counts toward its code length; training per domain makes them share infrastructure like the backbone.
Storage and its amortization. Each head has parameters, dominated by its vocabulary projection: for the 0.5B backbone (), about parameters, or 0.27 GB in FP16. Five heads thus occupy 1.37 GB, which is comparable to or larger than the backbone itself. Because one set of heads serves a whole domain, its storage can be amortized over the volume of data compressed with it, adding
bits per byte. For heads of 1.4 GB, this is 0.011 bpb at TB and 0.11 bpb at GB. MSMC therefore suits domains with large volumes of data, such as the archival settings of Section 1, and does not suit small, one-off inputs. Sharing across heads would reduce the storage to per head; we leave this to future work.
Losslessness. Encoder and decoder evaluate the same predictor positions on the same cached prefixes, but with different numbers of positions per call ( versus ). The batch-invariant kernels of
Section 3.1, which also cover the LM head and the heads, make the resulting distributions bit-identical, so decoding is lossless with either coder. Losslessness does not depend on how well the heads predict: a poor prediction only produces a longer code (a lower-probability interval, or a deeper tier or escape), never a wrong token.
5.2 What Fewer Calls Cost in Compression
In a round of tokens, the token at offset is coded with a distribution conditioned only on the prefix before the round, so by Section 2.2, MSMC pays at least extra bits per round compared with token-by-token decoding under the true distribution, plus the gap between its heads' predictions and the true conditionals. Both parts are captured by a quantity we can measure directly: the average code length that the coder spends on tokens at offset . Since each round codes exactly one token at each offset , the compression rate at round size is
where is the average number of bytes per token. Equation (17) separates what is fixed from what can be improved. is the code length of the backbone itself and does not depend on . Under the true distribution, each further offset would add at least the information lost by not conditioning on the preceding tokens of the round. Our backbone and heads, however, both make prediction errors, so the measured gap mixes this conditioning loss, which no head can recover, with the prediction error of the head at offset relative to the backbone, which better-trained heads could reduce. Our measurements do not separate the two, so the measured loss should not be read as entirely unavoidable. Section 6.4 measures and shows that Equation (17) reproduces the measured bpb.
5.3 What Fewer Calls Gain in Speed
We compare MSMC with single-model coding on the same pipeline and coder, that is, with MSMC at . One backbone call serves all streams, so we count calls per stream.
Sequential calls. Single-model decoding of tokens takes dependent calls, MSMC takes :
where is the latency of a call that ingests positions per stream and evaluates projections. The speedup approaches when , that is, when a call is latency-bound: dominated by reading the weights and launching kernels rather than by arithmetic [45, 57]. This holds when is small. As grows, each call carries positions, becomes compute-bound, and grows with , so the speedup shrinks.
Total work. Per round, MSMC processes positions through the backbone body, one LM-head projection, and head evaluations, each costing . Per token, this is
(19) essentially the same work as single-model coding, which evaluates the LM head at every position. MSMC thus reorganizes the same work into fewer, larger calls rather than reducing it. It helps only where the GPU would otherwise idle between dependent calls, and not in encoding, whose teacher-forced calls already keep the GPU busy: from to , encode throughput changes by at most 13% (Table 1), while decode throughput roughly doubles. At large , two further costs reduce the gain: coder work scales with tokens rather than calls, and each call reads additional vocabulary projections. Section 6.5 confirms these predictions.
5.4 Choosing the Number of Tokens per Call
Equation (17) and the speedup describe the two sides of the trade-off with quantities that can be measured once per domain and hardware: per-offset code lengths from a sample of the data, and call latencies at the intended batch size. Given a compression budget, for example to stay below the bpb of the best classical compressor, the operator picks the largest whose predicted bpb satisfies it, and the speedup that buys follows from the batch size. Two regimes follow. When many independent streams are available, batching alone fills the GPU, falls well below , and a small captures most of the attainable speedup at a modest cost in bpb. When few streams are available, as in decompressing a single block or serving random access, batching cannot help, approaches , and fewer calls are the only way to speed up decoding with a fixed model. Section 6.5 quantifies both regimes.
6 Experiments
We evaluate the framework of Sections 3–5 along two axes: compression rate, measured in bits per byte (bpb), and encode/decode throughput, measured in KB/s of original data. The evaluation is organized around four questions: (i) how the resulting operating points compare with conventional LLM-based coding and with classical compressors (Section 6.2); (ii) where decoding time is spent, and how much of the speedup comes from the execution pipeline rather than the choice of entropy coder (Section 6.3); (iii) why compression degrades as more tokens are resolved per backbone call (Section 6.4); and (iv) in which execution regime multi-token decoding pays off (Section 6.5). Section 6.6 then revisits the dual-model alternative of Section 4.
Overall, Section 6.2 reports end-to-end results; Sections 6.3–6.5 analyze where the differences come from.
6.1 Experimental Setup
Hardware. All experiments run on a single NVIDIA H100 GPU (80 GB HBM3) without multi-GPU parallelism or CPU offloading; all throughput numbers are single-device. Losslessness and throughput are measured on this GPU type.
Datasets. We use two corpora with different statistical structure:
-
Wiki: plain-text files from the Plain Text Wikipedia (Simple English) dataset [24], which provides roughly 170 ~1 MB files. We randomly sample 10 files for evaluation.
-
Code: ~1 MB excerpts of source code drawn from MBPP [6], HumanEval [12], and RocksDB [39]. We sample 10 excerpts for evaluation.
Every reported number is the mean over the 10 files of a corpus; per-file variation is shown as standard deviation in Figure 4. To test longer streams, we also concatenate the ten Wiki files into one 10 MB input (Table 2).
Backbone and prediction heads. All LLM-based methods use Qwen2.5-0.5B-Instruct [46] in FP16. Offset +1 is always predicted by the frozen backbone LM head; the MSMC heads predict offsets +2 to +6. Heads are trained once per domain, not per file: one set for Wiki and one for Code, on files of that corpus that exclude the 10 evaluation files, which we verify by file hash and line-level overlap. Five of these files are held out for validation. The Wiki heads are trained on 160 MB of text (about 22,000 steps) and the Code heads on 36 MB (4,448 steps), each for 2 epochs on sequences of 1024 tokens with batch size 4, AdamW (learning rate for the residual block and for the vocabulary projection, cosine schedule with 5% warmup), and BF16 mixed precision. This takes about 17 and 3.5 GPU-hours on a single H100, respectively. For each head, we keep the checkpoint with the lowest validation loss at its own offset. Each head has about parameters (0.27 GB in FP16; Section 5.1). This is a one-time cost per domain.
Accounting for model parameters. We do not count the backbone or the domain heads toward bpb. Both are input-independent: the same weights serve every file of a domain, so they are deployed infrastructure in the same sense as the backbone, rather than part of any compressed artifact. Their one-time costs (training time and storage) are reported above and are amortized over all data of the domain. Every stream header needed for decoding is counted.
Baselines. Classical compressors: gzip (-9), zstd (-3 and -19), and xz (-9) [14, 15, 20], run on the same files. Conventional AC. The public implementation accompanying [33], in which each decoding step runs the backbone, copies the probability vector to the host, and updates the arithmetic coder on the CPU. Both pipelines thus use the same backbone and context schedule, and code with essentially the same probabilities.
Configurations. Unless stated otherwise, all LLM-based methods use batch size for both encode and decode, where is the number of independent streams into which a file is split. We write MSMC + AC and MSMC + RC for multi-token decoding with Arithmetic Coding and Rank-Tier Coding, with tokens resolved per backbone call. uses no prediction heads and isolates the effect of the execution pipeline.
Metrics. Throughput is reported in KB/s of original data rather than tokens/s, so that LLM-based and byte-oriented compressors share a unit. Throughput is the wall-clock time of the full encode or decode after the model is loaded. Reported bpb for all LLM-based methods, AC and Rank-Tier alike, includes the stream header.
Losslessness. Every configuration in this section is verified to reconstruct the input byte-for-byte on all 20 evaluation files and on the 10MB concatenated input. Losslessness of the FP16 configurations relies on the batch-invariant kernels of Section 3.1; it holds when encoder and decoder run the same kernels, GPU architecture, and value of . Encoding and decoding run as separate processes: the encoder writes the compressed file to disk, and the decoder, in a new process, reconstructs the input from that file and the saved
The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded

(a) Wiki
(b) Code
Figure 4: Compression rate versus decode throughput for conventional AC, MSMC + AC, and MSMC + RC (n=1, 2, 4, 6), same setting as Table 1, n = 3 and n = 5 omitted for space; trends are monotone. Ellipses span ±1 standard deviation across the 10 files of each dataset. The dotted line marks xz-9.
backbone and head checkpoints alone, with no state carried over from encoding. Verification therefore exercises exactly the artifacts a deployment would use.
6.2 How Do the Methods Compare Overall?
Table 1 reports all configurations, and Figure 4 plots the two quantities that trade off against each other, bpb and decode throughput.
LLM-based coding compresses far better but runs far slower than classical compressors. At n=1, MSMC + AC reaches 0.88 bpb on Wiki and 0.58 bpb on Code, against 2.41 and 1.38 for xz-9, the strongest classical baseline: the output is 2.7× and 2.4× smaller. Decode throughput, however, is 43.2 KB/s against xz-9's 106.7 MB/s, more than three orders of magnitude lower. LLM-based compression is therefore attractive only where storage savings outweigh decode cost, as in cold archival data, and the remaining experiments ask how far this throughput gap can be narrowed and at what price.
The pipeline accelerates AC without changing its compression. At n=1 no prediction head is used, so MSMC + AC and conventional AC produce the same probabilities and differ only in execution. Our pipeline raises encode throughput by 5.75× on Wiki and 4.42× on Code, and decode throughput by 3.03× and 2.30×, while bpb is unchanged up to probability quantization (0.89 versus 0.88 on Wiki; 0.58 on Code). Section 6.3 attributes this gain.
The number of tokens per call trades decode throughput for compression. Increasing n from 1 to 6 raises MSMC + AC's decode throughput by 1.91× on Wiki (43.2→82.7 KB/s) and 1.99× on Code (39.9→79.3 KB/s). The price is a 2.0× increase in bpb on Wiki (0.88→1.78) and a 3.0× increase on Code (0.58→1.76). Encode throughput stays nearly flat across n (81.1–87.9 KB/s on Wiki), because teacher-forced encoding already processes many positions per call and gains nothing from resolving several tokens at once; the extra heads only add projection cost. Within each dataset, every increase in n raises both decode throughput and bpb, and the ±1 standard-deviation ellipses of adjacent operating points do not overlap in bpb (Figure 4), so the ordering is consistent across files, not an artifact of a single file.

Figure 5: Decode time per KB of original data, broken down by stage. Bar length is the un-instrumented decode time. Conventional AC: mean over 10 files; stage times are measured with instrumentation and scaled to the un-instrumented total, so stage shares are approximate. Our pipeline: one representative file per dataset; time not covered by any timed stage is included in “Other”. The decode throughputs of the representative files are within 5% of the 10-file means in Table 1.
Arithmetic Coding dominates Rank-Tier Coding on the frontier. At equal n, Rank-Tier Coding decodes 10% faster than AC at n=1 and 18–20% faster at n=6, but its bpb is 0.43–0.78 higher on Wiki, reflecting its fixed per-tier code lengths (Section 3.2). As a result, at every decode throughput that both coders reach, MSMC + AC attains lower bpb (Figure 4). Rank-Tier Coding only extends the frontier beyond AC's highest throughput (83 KB/s on Wiki), and does so at bpb close to or above xz-9.
The useful operating range is bounded by classical compressors. Because bpb rises steeply with n, high-n configurations lose the advantage that justifies an LLM-based compressor. On Code, MSMC + AC is worse than xz-9 from n=4 on, and MSMC + RC from n=2 on; on Wiki only MSMC + RC at n=6 crosses this line (italic entries in Table 1). In practice, the useful range is therefore small n with AC: up to n=3 on Code and somewhat higher on Wiki. Section 6.4 explains why Code reaches this limit earlier despite starting from lower bpb.
To check that these results do not depend on short streams (about 4 KB per stream at B=256), we also compress a 10 MB concatenation of the Wiki files (Table 2). All configurations remain byte-exact, bpb improves slightly for every method including xz, and our pipeline decodes 13–26% more slowly, which we attribute to longer streams keeping the KV cache between 512 and 1024 positions and thus raising the attention cost per call. The relative conclusions are unchanged: n=6 still decodes 1.7–1.8× faster than n=1, and 3.4–3.7× faster at B=64 (not shown), where fewer streams share each call.
6.3 Where Does the Time Go?
Table 3 separates the effect of the execution pipeline from that of the entropy coder, and Figure 5 shows which decoding stages account for the difference.
The conventional pipeline is bound by host-side coding, not by the model. In conventional AC, CPU-side arithmetic coding and the device-to-host copy of each probability vector together account for 68% of decode time on Wiki and 60% on Code (Figure 5). Each
Table 1: Main results on Wiki and Code (mean over 10 files per dataset). LLM-based methods use Qwen2.5-0.5B-Instruct [46], FP16, batch size for both encode and decode. For MSMC, is the number of tokens resolved per backbone call; uses only the frozen backbone LM head. MSMC rows run on our batch-invariant, teacher-forced pipeline. Bpb of all LLM-based methods includes the stream header. Classical compressors are run on the same files. Italic bpb: worse than xz-9. All configurations are verified lossless at the byte level.
| Method | Wiki | Code | ||||
|---|---|---|---|---|---|---|
| Encode Speed | Decode Speed | Bpb (↓) | Encode Speed | Decode Speed | Bpb (↓) | |
| Classical compressors | ||||||
| gzip-9 | 14.1 MB/s | 199.3 MB/s | 2.98 | 16.2 MB/s | 302.5 MB/s | 1.72 |
| zstd-3 | 207.1 MB/s | 1185.3 MB/s | 2.90 | 312.4 MB/s | 1430.1 MB/s | 1.75 |
| zstd-19 | 4.5 MB/s | 1246.0 MB/s | 2.46 | 4.6 MB/s | 1539.8 MB/s | 1.40 |
| xz-9 | 3.2 MB/s | 106.7 MB/s | 2.41 | 4.2 MB/s | 164.7 MB/s | 1.38 |
| LLM-based baseline | ||||||
| Conventional AC | 14.10 KB/s | 14.28 KB/s | 0.89 | 17.67 KB/s | 17.35 KB/s | 0.58 |
| MSMC with Arithmetic Coding | ||||||
| MSMC + AC (n=1) | 81.1 KB/s | 43.2 KB/s | 0.88 | 78.0 KB/s | 39.9 KB/s | 0.58 |
| MSMC + AC (n=2) | 86.9 KB/s | 59.9 KB/s | 1.20 | 83.0 KB/s | 56.7 KB/s | 0.97 |
| MSMC + AC (n=4) | 87.9 KB/s | 75.9 KB/s | 1.58 | 84.1 KB/s | 72.0 KB/s | 1.48 |
| MSMC + AC (n=6) | 86.9 KB/s | 82.7 KB/s | 1.78 | 83.4 KB/s | 79.3 KB/s | 1.76 |
| MSMC with Rank-Tier Coding | ||||||
| MSMC + RC (n=1) | 100.7 KB/s | 47.6 KB/s | 1.31 | 96.5 KB/s | 43.8 KB/s | 1.03 |
| MSMC + RC (n=2) | 110.5 KB/s | 64.9 KB/s | 1.75 | 104.2 KB/s | 61.3 KB/s | 1.47 |
| MSMC + RC (n=4) | 114.2 KB/s | 88.7 KB/s | 2.28 | 107.8 KB/s | 83.8 KB/s | 2.12 |
| MSMC + RC (n=6) | 113.7 KB/s | 99.3 KB/s | 2.56 | 107.9 KB/s | 93.5 KB/s | 2.50 |
Table 2: Longer streams: the ten Wiki files concatenated into one 10 MB input (40 KB per stream, ). In parentheses: 1 MB results from Table 1 (4 KB per stream). Throughput in KB/s.
| Method | Bpb (↓) | Encode (KB/s) | Decode (KB/s) |
|---|---|---|---|
| Conventional AC | 0.85 (0.89) | 7.7 (14.1) | 7.8 (14.3) |
| MSMC + AC (n=1) | 0.81 (0.88) | 66.0 (81.1) | 37.7 (43.2) |
| MSMC + AC (n=6) | 1.72 (1.78) | 71.0 (86.9) | 64.0 (82.7) |
| MSMC + RC (n=1) | 1.26 (1.31) | 78.4 (100.7) | 40.3 (47.6) |
| MSMC + RC (n=6) | 2.52 (2.56) | 86.7 (113.7) | 73.3 (99.3) |
| xz-9 | 2.17 (2.41) | - | - |
Table 3: Effect of the coding pipeline (0.5B backbone, FP16, , , no prediction heads; mean over 10 files). Encode/decode throughput in KB/s. Both AC rows use the same model and probabilities; only the execution pipeline differs. The last row swaps the entropy coder for Rank-Tier coding on the same pipeline.
| Configuration | Wiki | Code | ||||
|---|---|---|---|---|---|---|
| Enc | Dec | Bpb | Enc | Dec | Bpb | |
| Conventional AC pipeline | 14.10 | 14.28 | 0.89 | 17.67 | 17.35 | 0.58 |
| Our pipeline, AC speedup | 81.09 | 43.22 | 0.88 | 78.04 | 39.94 | 0.58 |
| 5.75× | 3.03× | - | 4.42× | 2.30× | - | |
| Our pipeline, Rank-Tier | 100.70 | 47.62 | 1.31 | 96.45 | 43.84 | 1.03 |
decoding step must wait for the copy before the coder can run, and the next backbone call must wait for the coder to emit a token, so the GPU idles during most of each step.
Our pipeline makes decoding backbone-bound. With probability processing and coding kept on the device and batched across streams, these two stages almost vanish. On the representative files of Figure 5, the copy drops to about 0.1 ms/KB, and entropy coding to 0.59 ms/KB on Wiki and 0.62 ms/KB on Code. The backbone now accounts for 80% (Wiki) and 82% (Code) of decode time. The larger encode speedup in Table 3 has a separate source: the batch-invariant kernels let the encoder process whole blocks by teacher forcing while still producing exactly the probabilities the token-by-token decoder will see.
A faster entropy coder would add little. On our pipeline, entropy coding takes 2.7% (Wiki) and 2.3% (Code) of decode time at on these files; probability processing, copy, and coding together take 9.7% and 8.8%. By Amdahl's law, replacing AC with any faster entropy coder, such as rANS or FSE [22] with the same predictor and precision, could therefore improve decode throughput by at most about 10%. The last row of Table 3 confirms this from the other direction: swapping AC for the much simpler Rank-Tier coder on the same pipeline raises decode throughput by only 10%, at a bpb cost of 0.43 on Wiki and 0.45 on Code. The dominant speedup comes from the execution pipeline, not from the choice of coder.
Coder cost re-emerges as the backbone share shrinks. At , backbone time per KB on the same files falls by relative to (17.27→7.79 ms/KB on Wiki; 22.33→10.17 on Code). Coder-side work does not shrink, because it scales with the number of tokens
The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded

Figure 6: Per-offset prediction quality of the domain heads: top-1 hit rate (left) and average code length in bits per token (right) at each prediction offset. Offset +1 is the frozen backbone LM head. Error bars: ±1 standard deviation across the 10 files of each dataset.
rather than with the number of backbone calls: AC's probability processing and coding now take 21% of decode time on Wiki and 19% on Code. This is where Rank-Tier Coding's cheaper per-token work becomes visible, making MSMC + RC 18–20% faster than MSMC + AC at n=6 (Table 1). Coder efficiency thus matters more the more aggressively backbone calls are reduced.
6.4 Why Does Compression Degrade with n?
With tokens resolved per call, the token at offset is predicted from a hidden state that is positions behind it. Figure 6 measures how prediction quality falls with distance. This decline has two sources that the figure does not separate: the information lost by not conditioning on the intervening tokens, which no head can recover (Section 2.2), and the prediction error of our trained heads, which better-trained heads could reduce. The figure therefore reflects the heads we trained, not a lower bound on what multi-token coding must pay.
Prediction quality decays quickly with distance. Top-1 hit rate falls from 0.50 at offset +1 to 0.10 at +6 on Wiki, and from 0.69 to 0.10 on Code. Correspondingly, the average code length grows from 3.46 to 8.74 bits/token on Wiki and from 2.20 to 9.09 bits/token on Code. Most of the loss occurs at the first head (+2); later heads add progressively less.
Per-offset code lengths account for the observed bpb. Each decoding round of size codes one token at each offset , so the expected code length per token is the mean of the first per-offset code lengths. Dividing this mean by the average number of bytes per token reproduces the measured bpb of Table 1. The compression-throughput trade-off of Section 6.2 is thus fully explained by how well the heads predict at each distance, not by any loss in the coding mechanism itself.
Why Code degrades faster. Code is more predictable than Wiki one token ahead (hit rate 0.69 versus 0.50), which gives it its lower bpb at . From offset +4 on, however, its code length matches or exceeds Wiki's. Locally, code is highly regular, but which identifier or statement comes several tokens ahead is hard to predict. This is why Code's bpb rises from to against Wiki's , and why Code crosses the xz-9 line at a smaller . Better far-offset

Figure 7: Decode throughput of MSMC + AC across batch size and tokens per call (left), and speedup over at the same (right), on one representative Wiki file. Row labels give the bpb of each on that file.
prediction, for example from larger heads or longer head training, is therefore the main lever for widening MSMC's useful range.
6.5 When Does Multi-Token Decoding Pay Off?
MSMC reduces the number of sequential backbone calls; batching raises the work done per call. Both aim to use the GPU better, so their benefits should interact. Figure 7 sweeps both.
At small batch sizes, the speedup approaches . At , resolving tokens per call speeds up decoding by , , , , and for to 6, close to the ideal speedup of derived in Section 5. With a single stream, each backbone call is latency-bound: its cost is dominated by reading the weights and launching kernels, so processing a few more positions per call is almost free.
At large batch sizes, the two techniques compete. As grows, each call becomes compute-bound and extra positions cost proportionally more. The speedup of falls to at and at . Absolute throughput behaves accordingly: keeps improving up to (55.8 KB/s), while peaks at (82.2 KB/s) and declines beyond it. The highest throughput in the sweep is still reached with .
Implication. Multi-token decoding is most valuable when the number of independent streams is limited: decompressing a single small block, serving random access into an archive, or restoring data under a latency constraint. In these settings, it delivers speedups that additional batching cannot. In throughput-oriented bulk decompression with large batches, its benefit is smaller and must be weighed against the bpb cost quantified in Section 6.4. We note that absolute single-stream throughput remains low (1.5 KB/s at , ), which bounds the latency-sensitive use cases LLM-based compression can serve at this model scale.
6.6 Does a Separate Draft Model Help?
Section 4 explored an alternative way to reduce expensive backbone calls: a small draft model (0.5B) proposes tokens and a large target model (7B) is invoked only when needed. We evaluate this design against single-model coding on the same 7B target. SDMC requires FP32 for lossless decoding in our implementation (Section 4.2), so all methods in this subsection run in FP32 with matched batching (encode , decode , the largest settings SDMC supports
Table 4: SDMC versus single-model coding on the 7B backbone under matched FP32 precision and batching (encode B=128, decode B=1; one representative file per dataset). SDMC uses the un-fine-tuned 0.5B base model as its draft model. Throughput in KB/s.
| Method | Bpb (↓) | Encode | Decode | |||
|---|---|---|---|---|---|---|
| Wiki | Code | Wiki | Code | Wiki | Code | |
| AC (7B) | 0.65 | 0.48 | 4.05 | 3.68 | 0.28 | 0.25 |
| RC (7B) | 1.02 | 0.88 | 16.76 | 14.49 | 0.24 | 0.23 |
| SDMC (0.5B + 7B) | 0.97 | 0.70 | 8.58 | 7.81 | 0.29 | 0.28 |
on one H100). Because 7B-scale runs are expensive, this comparison uses one representative file per dataset and should be read as qualitative.
SDMC's gain is limited to decoding and is small. Relative to single-model Rank-Tier Coding on the same target, SDMC decodes about 20% faster (0.29 versus 0.24 KB/s on Wiki; 0.28 versus 0.23 on Code), because tokens the draft model predicts correctly skip the 7B call. Encoding, however, is about 2× slower (8.58 versus 16.76 KB/s on Wiki; 7.81 versus 14.49 on Code): teacher-forced encoding already batches positions for the single-model coder, so the draft model only adds a second, sequential model to the loop. For comparison, MSMC obtains a 1.96× single-stream speedup already at n=2 (Section 6.5), with one model and no extra encode cost; that measurement uses the 0.5B backbone in FP16, so the comparison is indicative rather than matched.
Compression lies between RC and AC. SDMC reaches 0.97 and 0.70 bpb, below single-model RC (1.02 and 0.88) but well above AC on the same 7B model (0.65 and 0.48). The gap to AC comes from SDMC's fixed per-token code (Section 4.1), not from its decoding schedule. Fine-tuning the draft model on the target file raises its top-1 hit rate (from 47.7% to 55.3% on Wiki with standard cross-entropy, and to 56.5% with the additional margin term) and lowers bpb accordingly, but does not change the encode-side cost.
7 Related Work
Classical and learned compression. Dictionary compressors such as gzip [20, 62], zstd [14], and FSST [9] decode at hundreds of MB/s but exploit mostly local, literal redundancy. Statistical compressors pair a predictive model with arithmetic coding [47, 58] or ANS [22], from PPM [7, 13] and context mixing [34, 37] to neural predictors [8, 27]. L3TC [61] reaches MB/s-level decoding with a small RWKV [44] model at a lower compression rate; it makes each call cheaper by shrinking the model, which is complementary to our study with a fixed model. Database systems favor lightweight schemes that decode fast enough to integrate with query execution [1, 3, 4, 17], including on GPUs [49], and learned models have been used for semantic compression of tabular data [31].
LLM-based compression. LLMZip [55] pairs LLaMA-7B [54] with arithmetic coding or with a compressed stream of token ranks, FineZip [42] adds online fine-tuning and batching, Llamazip [21] uses the same mechanism to detect training data, and Mao et al. [38]
compress LLM-generated text. These works target compression rate and report decoding throughput briefly, if at all.
Throughput of LLM-based compression. Kipf et al. [33] benchmark LLM-based compressors and conclude that, at current prices, their compute cost takes about a decade to amortize, leaving cold archival data as the most plausible use; their public implementation is our baseline. Adams et al. [2] find that, once inference is optimized, arithmetic coding limits compression speed, and they transfer only each target token's interval to the host while pipelining coding with inference. We apply the same principles, and additionally make block-parallel encoding lossless in half precision and remove the corresponding redundancy from decoding, where the target interval is not known in advance. We then study the sequential dependency that remains.
Rank-based coding. Coding a symbol by its rank goes back to Shannon [51]. With LLM predictors, rank streams have been passed to general-purpose compressors [42, 55], thresholded with an escape [43], and bit-packed or Huffman-coded [2].
Numerical determinism. He et al. [28] trace the non-reproducibility of LLM inference to kernels that lack batch invariance, and design kernels whose per-row results do not depend on the rest of the batch. Lossless compression needs more than run-to-run reproducibility, since encoder and decoder invoke the model with different shapes. We use such kernels to make the two agree in half precision, and report a case, dual-model coding, in which ours do not suffice.
Acceleration techniques from generation. Speculative decoding [11, 35, 59] and EAGLE [36] let a draft model propose tokens that a target model verifies. Blockwise parallel decoding [52], Medusa [10], and multi-token prediction [25] predict several future tokens from one hidden state, and Hydra [5] conditions later heads on earlier drafts. Compression changes the setting in three ways. The encoder knows the true sequence, so drafts never need verification (SDMC). A poor prediction at a later offset costs bits, not only time, which gives rise to the overhead that MSMC pays. And encoder and decoder must produce bit-identical predictions.
8 Conclusion
We separated the decoding time of LLM-based lossless compression into execution redundancy and sequential dependency. Removing execution redundancy with batch-invariant kernels and a GPU-resident pipeline leaves model invocation as the main decompression bottleneck: entropy coding accounts for little of the remaining time, and multi-token prediction can trade fewer calls for more bits only at a rate set by how well its predictors work. This opens research into models designed for compression rather than generation, with cheaper inference per token and multi-token predictions that condition on more of the tokens they resolve together.
References
[1] Daniel J. Abadi, Samuel Madden, and Miguel Ferreira. 2006. Integrating compression and execution in column-oriented database systems. In Proceedings of the ACM SIGMOD International Conference on Management of Data, Chicago, Illinois, USA, June 27-29, 2006, Surajit Chaudhuri, Vagelis Hristidis, and Neoklis Polyzotis (Eds.). ACM, 671-682. https://doi.org/10.1145/1142473.1142548 [2] David Adams, Luisa Neubauer, Ping-Lin Kuo, Mihail Stoian, Thomas Rückstieß, Josif Grabocka, Renata Borovica-Gajic, and Andreas Kipf. 2026. High-Throughput
The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded
LLM-Based Compression and What It Takes: A Systems Study of Inference Engines and Entropy Coding Optimizations. arXiv preprint arXiv:2610.17586 (2026).
[3] Azim Afroozeh and Peter Boncz. 2023. The FastLanes Compression Layout: Decoding >100 Billion Integers per Second with Scalar Code. Proc. VLDB Endow. 16, 9 (2023), 2132–2144. https://doi.org/10.14778/3598581.3598587
[4] Azim Afroozeh, Leonardo Kuffo, and Peter Boncz. 2023. ALP: Adaptive Lossless floating-Point Compression. Proc. ACM Manag. Data 1, 4 (2023), 230:1–230:26. https://doi.org/10.1145/3626717
[5] Zachary Ankner, Rishab Parthasarathy, Aniruddha Nrusimha, Christopher Rinnard, Jonathan Ragan-Kelley, and William Brandon. 2024. Hydra: Sequentially-Dependent Draft Heads for Medusa Decoding. CoRR abs/2402.05109 (2024). https://doi.org/10.48550/ARXIV.2402.05109 arXiv:2402.05109
[6] Jacob Austin, Augustus Odena, Maxwell I. Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie J. Cai, Michael Terry, Quoc V. Le, and Charles Sutton. 2021. Program Synthesis with Large Language Models. CoRR abs/2108.07732 (2021). https://doi.org/10.48550/ARXIV.2108.07732 arXiv:2108.07732
[7] Timothy C. Bell, John G. Cleary, and Ian H. Witten. 1990. Text Compression. Prentice Hall.
[8] Fabrice Bellard. 2019. Lossless Data Compression with Neural Networks. https://bellard.org/nncp/.
[9] Peter Boncz, Thomas Neumann, and Viktor Leis. 2020. FSST: Fast Random Access String Compression. Proc. VLDB Endow. 13, 11 (2020), 2649–2661. http://www.vldb.org/pvldb/vol13/p2649-boncz.pdf
[10] Tianle Cai, Yuhong Li, Zhengyang Geng, Hongwu Peng, Jason D. Lee, Deming Chen, and Tri Dao. 2024. Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024 (Proceedings of Machine Learning Research), Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (Eds.), Vol. 235. PMLR / OpenReview.net, 5209–5235. https://proceedings.mlr.press/v235/cai24b.html
[11] Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. 2023. Accelerating Large Language Model Decoding with Speculative Sampling. CoRR abs/2302.01318 (2023). https://doi.org/10.48550/ARXIV.2302.01318 arXiv:2302.01318
[12] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating Large Language Models Trained on Code. CoRR abs/2107.03374 (2021). https://doi.org/10.48550/ARXIV.2107.03374 arXiv:2107.03374
[13] John G. Cleary and Ian H. Witten. 1984. Data Compression Using Adaptive Coding and Partial String Matching. IEEE Trans. Commun. 32, 4 (1984), 396–402. https://doi.org/10.1109/TCOM.1984.1096090
[14] Yann Collet and Murray S. Kucheray. 2021. Zstandard Compression and the 'applicationstd' Media Type. Technical Report. 1–45 pages. https://doi.org/10.17487/RFC8878
[15] Lasse Collin. 2024. XZUtils. https://tukaani.org/xz/.
[16] Koby Crammer and Yoram Singer. 2001. On the Algorithmic Implementation of Multiclass Kernel-based Vector Machines. J. Mach. Learn. Res. 2 (2001), 265–292. https://jmlr.org/papers/v2/crammer01a.html
[17] Patrick Damme, Dirk Abich, Juliana Hildebrandt, and Wolfgang Lehner. 2017. Lightweight Data Compression Algorithms: An Experimental Survey (Experiments and Analyses). In Proceedings of the 20th International Conference on Extending Database Technology, EDBT 2017, Venice, Italy, March 21-24, 2017, Volker Markl, Salvatore Orlando, Bernhard Mitschang, Periklis Andritos, Kai-Uwe Sattler, and Sebastian Breß (Eds.). OpenProceedings.org, 72–83. https://doi.org/10.5441/002/EDBT.2017.08
[18] Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 – December 9, 2022, Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Hb (Eds.). http://papers.nips.cc/paper_files/paper/2022/hash67d57c32e20fd0a7a302cb81d36e40d5-Abstract-Conference.html
[19] Grégoire Delétang, Anian Ruoss, Paul-Ambroise Duquenne, Elliott Catt, Tim Genewein, Christopher Mattern, Jordi Grau-Moya, Li Kevin Wenliang, Matthew Aitchison, Laurent Orseau, Marcus Hutter, and Joel Veness. 2024. Language Modeling Is Compression. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net. https://openreview.net/forum?id=jznbginyus
[20] Peter Deutsch. 1996. GZIP file format specification version 4.3. Technical Report. 1–12 pages. https://doi.org/10.17487/RFC1952
[21] Sören Dreano, Derek Molloy, and Noel Murphy. 2025. Llamazip: Leveraging LLMA for Lossless Text Compression and Training Dataset Detection. CoRR abs/2511.17589 (2025). https://doi.org/10.48550/ARXIV.2511.17589 arXiv:2511.17589
[22] Jarek Duda. 2013. Asymmetric Numeral Systems: Entropy Coding Combining Speed of Huffman Coding with Compression Rate of Arithmetic Coding. arXiv preprint arXiv:1311.2540 (2013).
[23] Stefan Elfwing, Eiji Uchibe, and Kenji Doya. 2018. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural Networks 107 (2018), 3–11. https://doi.org/10.1016/J.JNEUNET.2017.12.012
[24] flatty. 2023. Plain Text Wikipedia (Simple English). Kaggle Dataset. https://www.kaggle.com/datasets/flatty/plain-text-wikipedia-simpleenglish
[25] Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Rozière, David Lopez-Paz, and Gabriel Synnaeve. 2024. Better & Faster Large Language Models via Multi-token Prediction. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024 (Proceedings of Machine Learning Research), Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (Eds.), Vol. 235. PMLR / OpenReview.net, 15706–15734. https://proceedings.mlr.press/v235/gloeckle24a.html
[26] David Goldberg. 1991. What Every Computer Scientist Should Know About Floating-Point Arithmetic. ACM Comput. Surv. 23, 1 (1991), 5–48. https://doi.org/10.1145/103162.103163
[27] Mohit Goyal, Kedar Tatwadi, Shubham Chandak, and Idoia Ochoa. 2019. DeepZip: Lossless Data Compression Using Recurrent Neural Networks. In Data Compression Conference, DCC 2019, Snowbird, UT, USA, March 26-29, 2019, Ali Bilgin, Michael W. Marcellin, Joan Serra-Sagrista, and James A. Storer (Eds.). IEEE, 575. https://doi.org/10.1109/DCC.2019.00087
[28] Horace He and Thinking Machines Lab. 2025. Defeating Nondeterminism in LLM Inference. Thinking Machines Lab: Connectionism (2025). https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/.
[29] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep Residual Learning for Image Recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016. IEEE Computer Society, 770–778. https://doi.org/10.1109/CVPR.2016.90
[30] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net. https://openreview.net/forum?id=nZeVkeeFYF9
[31] Amir Ilkhechi, Andrew Crotty, Alex Galakatos, Yicong Mao, Grace Fan, Xiran Shi, and Ugur Çetintemel. 2020. DeepSqueeze: Deep Semantic Compression for Tabular Data. In Proceedings of the 2020 International Conference on Management of Data, SIGMOD Conference 2020, online conference (Portland, OR, USA), June 14-19, 2020, David Maier, Rachel Pottinger, AnHai Doan, Wang-Chiew Tan, Abdussalam Alawini, and Hung Q. Ngo (Eds.). ACM, 1733–1746. https://doi.org/10.1145/3318464.3389734
[32] Yi Jiang, Hamish Nicholson, Viktor Sanca, and Anastasia Ailamaki. 2026. Data Movement-Aware GPU Sharing for Data-Intensive Systems. In 16th Conference on Innovative Data Systems Research, CIDR 2026, Chaminade, CA, USA, January 18-21, 2026. www.cidrdb.org. https://vldb.org/cidrdb/2026/data-movement-aware-gpu-sharing-for-data-intensive-systems.html
[33] Andreas Kipf, Tobias Schmidt, Ping-Lin Kuo, Skander Krid, Moritz Rengert, Luca Heller, Andreas Zimmerer, Mihail Stoian, Varun Pandey, and Alexander van Renen. 2026. Waiting to Decompress: The Economics of LLM-Based Compression. In 16th Conference on Innovative Data Systems Research, CIDR 2026, Chaminade, CA, USA, January 18-21, 2026. www.cidrdb.org. https://vldb.org/cidrdb/2026/waiting-to-decompress-the-economics-of-llm-based-compression.html
[34] Byron Knoll. 2024. cmix. https://www.byronknoll.com/cmix.html.
[35] Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2023. Fast Inference from Transformers via Speculative Decoding. In International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA (Proceedings of Machine Learning Research), Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (Eds.), Vol. 202. PMLR, 19274–19286. https://proceedings.mlr.press/v202/leviathan23a.html
[36] Yuhui Li, Fangyun Wei, Chao Zhang, and Hongyang Zhang. 2024. EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024 (Proceedings of Machine Learning Research), Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (Eds.), Vol. 235. PMLR / OpenReview.net, 28935–28948. https://proceedings.mlr.press/v235/li24b.html
[37] Matthew V. Mahoney. 2005. Adaptive Weighing of Context Models for Lossless Data Compression. Technical Report CS-2005-16. Florida Institute of Technology.
[38] Yu Mao, Holger Pirk, and Chun Jason Xue. 2025. Lossless Compression of Large Language Model-Generated Text via Next-Token Prediction. CoRR abs/2505.06297 (2025). https://doi.org/10.48550/ARXIV.2505.06297 arXiv:2505.06297
[39] Meta Platforms, Inc. 2024. RocksDB: A Persistent Key-Value Store. https://rocksdb.org/.
[40] Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory F. Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh
Venkatesh, and Hao Wu. 2018. Mixed Precision Training. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net. https://openreview.net/forum?id=r1gs9lgRZ
[41] Maxim Milakov and Natalia Gimelshein. 2018. Online normalizer calculation for softmax. CoRR abs/1805.02867 (2018). https://doi.org/10.48550/ARXIV.1805.02867 arXiv:1805.02867
[42] Fazal Mittu, Yihuan Bu, Akshat Gupta, Ashok Devireddy, Alp Eren Ozdarendeli, Anant Singh, and Gopala Anumanchipalli. 2024. FineZip : Pushing the Limits of Large Language Models for Practical Lossless Text Compression. CoRR abs/2409.17141 (2024). https://doi.org/10.48550/ARXIV.2409.17141 arXiv:2409.17141
[43] Angelo Nardone and Paolo Ferragina. 2026. LLM-Based Source Code Compression via Thresholded Symbol Ranking. In AIxDA 2026 - Advances in Artificial Intelligence - XXIVth International Conference of the Italian Association for Artificial Intelligence, AIxDA 2026, Perugia, Italy, October 6-9, 2026, Proceedings (Lecture Notes in Computer Science), Stefano Bistarelli, Marco Maratea, and Francesco Santini (Eds.), Vol. 17131. Springer, 466–480. https://doi.org/10.1007/978-3-9302-40774-0_34
[44] Bo Peng, Eric Alcaide, Quentin Anthony, Alon Albalak, Samuel Arcadinho, Stella Biderman, Huanqi Cao, Xin Cheng, Michael Chung, Leon Derczynski, Xingjian Du, Matteo Grella, Kranthi Kiran GV, Xuzheng He, Haowen Hou, Przemyslaw Kazienko, Jan Kocon, Jiaming Kong, Bartlomiej Koptya, Hayden Lau, Jiaju Lin, Krishna Sri Ispit Mantri, Ferdinand Mom, Atsushi Saito, Guangyu Song, Xiangru Tang, Johan S. Wind, Stanislaw Wozniak, Zhenyuan Zhang, Qinghua Zhou, Jian Zhu, and Rui-Jie Zhu. 2023. RWKV: Reinventing RNNs for the Transformer Era. In Findings of the Association for Computational Linguistics: EMNLP 2023, Singapore, December 6-10, 2023 (Findings of ACL), Houda Bouamor, Juan Pino, and Kalika Bali (Eds.), Vol. EMNLP 2023. Association for Computational Linguistics, 14048–14077. https://doi.org/10.18653/V1.2023.FINDINGS-EMNLP.936
[45] Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Jonathan Heek, Kefan Xiao, Shivani Agrawal, and Jeff Dean. 2023. Efficiently Scaling Transformer Inference. In Proceedings of the Sixth Conference on Machine Learning and Systems, MLSys 2023, Miami, FL, USA, June 4-8, 2023, Dawn Song, Michael Carbin, and Tianqi Chen (Eds.). mlsys.org; proceedings.mlsys.org/paper_files/paper/2023/hash/c4be71ab8d24cdfb45e3d06dbfca2780-Abstract-mlsys2023.html
[46] Qwen Team. 2024. Qwen2.5 Technical Report. CoRR abs/2412.15115 (2024). https://doi.org/10.48550/ARXIV.2412.15115 arXiv:2412.15115
[47] Jorma Rissanen. 1976. Generalized Kraft Inequality and Arithmetic Coding. IBM J. Res. Dev. 20, 3 (1976), 198–203. https://doi.org/10.1147/RD.203.0198
[48] Jorma Rissanen. 1978. Modeling by shortest data description. Autom. 14, 5 (1978), 465–471. https://doi.org/10.1016/0005-1098(78)90005-5
[49] Anil Shanbhag, Bobbi W. Yogatama, Xiangyao Yu, and Samuel Madden. 2022. Tile-based Lightweight Integer Compression in GPU. In SIGMOD '22: International Conference on Management of Data, Philadelphia, PA, USA, June 12 - 17, 2022, Zachary G. Ives, Angela Bonifati, and Amr El Abbadi (Eds.). ACM, 1390–1403. https://doi.org/10.1145/3514221.3526132
[50] Claude E. Shannon. 1948. A mathematical theory of communication. Bell Syst. Tech. J. 27, 3 (1948), 379–423. https://doi.org/10.1002/J.1538-7305.1948.TB01338.X
[51] Claude E. Shannon. 1951. Prediction and Entropy of Printed English. The Bell System Technical Journal 30, 1 (1951), 50–64.
[52] Mitchell Stern, Noam Shazeer, and Jakob Uszkoreit. 2018. Blockwise Parallel Decoding for Deep Autoregressive Models. In Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montréal, Canada, Samy Bengio, Hanna M. Wallach, Hugo Larochelle, Kristen Grauman, Nicolò Cesa-Bianchi, and Roman Garnett (Eds.). 10107–10116. https://proceedings.neurips.cc/paper/2018/hash/c4127b9194fe8562c64dc0f5bf2c93bc-Abstract.html
[53] Philippe Tillet, Hsiang-Tsung Kung, and David D. Cox. 2019. Triton: an intermediate language and compiler for tiled neural network computations. In Proceedings of the 3rd ACM SIGPLAN International Workshop on Machine Learning and Programming Languages, MAPL@PLDI 2019, Phoenix, AZ, USA, June 22, 2019, Tim Mattson, Abdullah Muzahid, and Armando Solar-Lezama (Eds.). ACM, 10–19. https://doi.org/10.1145/3315508.3329973
[54] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurélien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. LLAMA: Open and Efficient Foundation Language Models. CoRR abs/2302.13971 (2023). https://doi.org/10.48550/ARXIV.2302.13971 arXiv:2302.13971
[55] Chandra Shekhara Kaushik Valmeekam, Krishna Narayanan, Dileep Kalathil, Jean-François Chamberland, and Srinivas Shakkottai. 2023. LLMZip: Lossless Text Compression using Large Language Models. CoRR abs/2306.04050 (2023). https://doi.org/10.48550/ARXIV.2306.04050 arXiv:2306.04050
[56] Ronald J. Williams and David Zipser. 1989. A Learning Algorithm for Continually Running Fully Recurrent Neural Networks. Neural Comput. 1, 2 (1989), 270–280. https://doi.org/10.1162/NECO.1989.1.2.270
[57] Samuel Williams, Andrew Waterman, and David A. Patterson. 2009. Roofline: an insightful visual performance model for multicore architectures. Commun. ACM 52, 4 (2009), 65–76. https://doi.org/10.1145/1498765.1498785
[58] Ian H. Witten, Radford M. Neal, and John G. Cleary. 1987. Arithmetic Coding for Data Compression. Commun. ACM 30, 6 (1987), 520–540. https://doi.org/10.1145/214762.214771
[59] Heming Xia, Zhe Yang, Qingxiu Dong, Peiyi Wang, Yongqi Li, Tao Ge, Tianyu Liu, Wenjie Li, and Zhifang Sui. 2024. Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding. In Findings of the Association for Computational Linguistics, ACL 2024, Bangkok, Thailand and virtual meeting, August 11-16, 2024 (Findings of ACL), Lun-Wei Ku, Andre Martins, and Vivek Srikumar (Eds.), Vol. ACL 2024. Association for Computational Linguistics, 7655–7671. https://doi.org/10.18653/V1.2024.FINDINGS-ACL.456
[60] Biao Zhang and Rico Sennrich. 2019. Root Mean Square Layer Normalization. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, Hanna M. Wallach, Hugo Larochelle, Alina Beygelzimer, Florence d'Alché-Buc, Emily B. Fox, and Roman Garnett (Eds.). 12360–12371. https://proceedings.neurips.cc/paper/2019/hash/1e8a19426224ca89e83ce4f7f1e7f53b-Abstract.html
[61] Junxuan Zhang, Zhengxue Cheng, Yan Zhao, Shihao Wang, Dajiang Zhou, Guo Lu, and Li Song. 2025. L3TC: Leveraging RWKV for Learned Lossless Low-Complexity Text Compression. In Thirty-Ninth AAAI Conference on Artificial Intelligence, Thirty-Seventh Conference on Innovative Applications of Artificial Intelligence, Fifteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2025, Philadelphia, PA, USA, February 25 - March 4, 2025, Toby Walsh, Julie Shah, and Zico Kolter (Eds.). AAAI Press, 13251–13259. https://doi.org/10.1609/AAAIV39112.33446
[62] Jacob Ziv and Abraham Lempel. 1977. A universal algorithm for sequential data compression. IEEE Trans. Inf. Theory 23, 3 (1977), 337–343. https://doi.org/10.1109/TIT.1977.1055714