Introduction
In the fields of data compression and statistical modeling, the Normalized Maximum Likelihood (NML) distribution is considered the "gold standard" for achieving minimax regret. It minimizes the maximum possible difference between the log-loss of a model and the log-loss of the best model in a class, regardless of the actual data sequence. However, NML is notoriously difficult to compute for large datasets because it requires summing over an exponential number of possible future sequences to calculate marginals.
This research bridges the gap between Minimum Description Length (MDL) theory and Bayesian modeling by proving that NML can be exactly represented as a Bayesian mixture, provided we allow for "signed" priors—weights that can be both positive and negative. This discovery offers a massive computational speedup for real-time prediction.
The Signed-Bayes Representation
The core contribution of this work is the Signed-Bayes representation. The authors prove that if a model possesses a sufficient statistic $T$ with $M$ possible values, NML can be written as a weighted sum of $M$ component models.
For a sequence of length $n$ in Bernoulli trials (coin flips), the number of possible sequences is $2^n$, but the number of possible values for the sufficient statistic (number of heads) is only $n+1$. By representing NML as a sum of $n+1$ terms rather than $2^n$ sequences, the computational complexity is reduced from exponential to linear time.
Grid Selection and Numerical Stability
While the mathematical representation is exact, the choice of parameter values (the "grid") for the mixture components significantly impacts numerical stability. When using a simple uniform grid, the weights ($W$) required to match NML oscillate wildly between positive and negative values, reaching extreme magnitudes as $n$ increases.
As shown in the figure above, switching to a $\sin^2$ grid—which corresponds to the quantiles of the Jeffreys prior (the "arcsine law")—results in much more stable, positive weights. This suggests that the "gap" between Bayesian modeling and MDL is essentially the sign and distribution of the prior. While standard Bayesians insist on positive probabilities, the minimax optimal NML naturally tends toward signed weights to balance regret across all possible sequences.
Approximation and Scaling
To handle cases where negative weights might cause numerical instability in standard floating-point math, the authors developed a Newton-type algorithm to minimize the Renyi divergence between NML and a mixture. This allows for near-exact approximations using only positive weights.
For $n=500$, the authors achieved a Kullback-Leibler divergence of less than $10^{-7}$ between the NML and their mixture. This demonstrates that even when avoiding negative weights for stability, the Bayes-like structure is incredibly powerful for approximating minimax optimal distributions.
Conclusion
By proving that NML is a signed-Bayes mixture, this research provides a theoretical bridge between MDL and Bayesianism while solving a major practical hurdle. The ability to compute NML-like distributions in linear time opens new doors for sequential prediction and arithmetic coding in large-scale machine learning tasks. Future work will focus on extending these results to more complex models, such as Markov chains, where sufficient statistics are more nuanced.
Summary updated