TL;DR
This paper introduces IconoCLaSM (Interleaving for economical Compression with Latent Sequence Models), a method that extends bits-back coding with Asymmetric Numeral Systems (BB-ANS) to time-series models with latent Markov structures. By interleaving latent bits-back sampling steps with temporal transitions, the method reduces the initial message overhead from $O(T)$ to $O(1)$, achieving near-optimal lossless compression on sequential data.
What Problem Does This Paper Address?
Bits-Back with Asymmetric Numeral Systems (BB-ANS) enables practical lossless data compression using latent variable models at rates close to the evidence lower bound (ELBO). However, standard BB-ANS was designed for independent, identically distributed (i.i.d.) data samples like individual images.
Directly applying BB-ANS to a sequential State Space Model (SSM) of length $T$ requires sampling the entire latent trajectory $z_1, \dots, z_T$ before encoding any observations. Because the compressed message is initially empty, this creates an "initial bits" overhead that scales linearly with sequence length ($O(T)$), rendering the method impractical for long time series. Partitioning sequences into independent chunks avoids this scaling issue, but breaks temporal dependencies and degrades compression efficiency.
Methods
The authors propose IconoCLaSM, which interleaves decoding and encoding steps across time steps rather than processing the entire latent sequence up front:
-
Posterior Factorization: IconoCLaSM assumes an approximate posterior that factors backwards in time: $$Q(z_1, \dots, z_T \mid x_1, \dots, x_T) = Q(z_T \mid x_1, \dots, x_T) \prod_{t=1}^{T-1} Q(z_t \mid x_1, \dots, x_t, z_{t+1})$$ These factors can be computed via standard message passing (in linear Gaussian SSMs or HMMs) or via backward recurrent neural networks.
-
Interleaved Reverse-Time Encoding:
- The encoder samples only the final latent state $z_T \sim Q(z_T \mid x_{1:T})$ from initial auxiliary bits (an $O(1)$ overhead).
- Iterating backwards from $t = T$ down to $2$, the sender pushes observation $x_t \to P(x_t \mid z_t)$, pops $z_{t-1} \leftarrow Q(z_{t-1} \mid x_{1:t-1}, z_t)$ from the message stream, and pushes $z_t \to P(z_t \mid z_{t-1})$.
- Finally, $x_1$ and $z_1$ are pushed onto the message stack using their respective priors/likelihoods.
- Forward Decoding: The receiver decodes sequentially forward from $t=1$ to $T$, popping and pushing symbols in the exact inverse order.
Datasets
The authors evaluate IconoCLaSM as a proof of concept on two setups:
- Synthetic Data: Sequences sampled directly from a discrete Hidden Markov Model (HMM) with 64 hidden states and 64 observation states, where transition and emission parameters were drawn from a Dirichlet distribution ($\alpha_i = 1$).
- Natural Language Text: Character sequences from Leo Tolstoy's War and Peace. An HMM with 64 hidden states and 101 observation states (representing character tokens) was trained on an earlier portion of the text using 100 iterations of Expectation-Maximization (EM).
No new public benchmarks were introduced.
Key Insights and Ideas
- LIFO Message Structures Match Temporal Smoothing: The last-in-first-out (LIFO) nature of ANS naturally pairs with the backward smoothing pass used in state space models.
- Constant Overhead via Step-by-Step Latent Recycling: By popping $z_{t-1}$ from the message buffer only after pushing information from time step $t$, the message buffer remains sufficiently populated throughout encoding. The initial random overhead is paid only once for $z_T$, maintaining an $O(1)$ startup cost regardless of $T$.
- Robustness to Model Misspecification: The bits-back principle ensures that lossless compression converges to the model's bound even when the model does not perfectly match the true data distribution (demonstrated on real-world text).
Key Results
- Near-Optimal Compression: For both synthetic data and real text, the ratio of actual message length to optimal information content, $l(m) / h(x)$, quickly converges to 1.0 as sequence length $T$ increases.
- Rapid Amortization: The overhead of the initial bits is noticeable at small sequence lengths ($T < 50$), but becomes negligible by $T \approx 200 \text{--} 400$.
Message Length Ratio l(m) / h(x) vs. Sequence Length T
Ratio
4 | *
3 | *
2 | *
1 | *-------------------- (Tends to 1.0 as T -> inf)
0 +---------------------------
0 100 200 300 400 (T)
Limitations and Future Work
- Proof-of-Concept Scale: Evaluated solely on small, discrete HMMs (64 states). For small HMMs, exact marginalization $P(x_t \mid x_{1:t-1})$ is tractable, meaning standard ANS without bits-back is practically faster; the authors used HMMs simply to validate the theoretical mechanism against exact ground-truth entropy.
- Tractable Posterior Requirement: The method requires access to conditional CDFs and inverse CDFs for $Q(z_t \mid x_{1:t}, z_{t+1})$, which limits direct application unless efficient filtering/smoothing distributions are accessible.
- Future Directions:
- Extending the framework to high-dimensional deep sequence models (e.g., video and audio compression using deep latent state space models).
- Generalizing the formulation to hierarchical latent temporal structures.
- Combining IconoCLaSM with Sequential Monte Carlo (SMC) bits-back coding to achieve compression rates tighter than the standard ELBO.
Summary updated