Deterministic Finite Memory for Statistical Inference

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 15 papers17 conceptsfrozen 2026-10-04

When an algorithm has strictly limited memory, how much does it lose by being deterministic? For decades, the consensus in information theory was that internal randomness—the ability to flip a private coin—was a fundamental advantage. Recent work by Tomer Berg, Ofer Shayevitz, and Or Ordentlich has overturned parts of this conventional wisdom, revealing a nuanced landscape where determinism is sometimes a crippling handicap and other times surprisingly optimal.

The Problem of Finite Memory

Imagine you are observing a stream of coin flips to decide if the coin is biased toward Heads ($H_1$) or Tails ($H_0$). You have only a few bits of memory, represented as a finite-state machine with $S$ states.

In a randomized machine, your transitions can be probabilistic. If you see "Heads," you might move to a "more certain" state with probability $0.001$ and stay put otherwise. This allows you to "buffer" against noise; you only change your mind after seeing a massive preponderance of evidence.

In a deterministic machine, your transitions are fixed. If you are in state $i$ and see "Heads," you must move to a specific state $j$. You cannot "slow down" your transitions using internal coins.

Why Determinism Fails in Hypothesis Testing

In Binary Hypothesis Testing with Deterministic Finite-Memory Decision Rules, Tomer Berg and Ofer Shayevitz demonstrate that for the task of choosing between two hypotheses, deterministic machines suffer an unbounded performance gap compared to randomized ones.

The intuition lies in the "escape probability." To achieve a very low error rate, a machine needs to reach an extreme state (representing a hypothesis) and stay there despite occasional noisy inputs. A randomized machine can make the probability of leaving that state arbitrarily small by requiring an internal coin flip to succeed.

A deterministic machine, however, is at the mercy of the input distribution. If the probability of seeing a "Heads" is $p$, the deterministic machine will transition every time it sees a "Heads." It cannot simulate a transition probability smaller than the smallest probability inherent in the data. As the number of states $S$ grows, the randomized machine's error rate decays much faster because it can "tune" its transitions to be much rarer than any single input event.

The Surprising Power of Determinism in Estimation

While determinism is a weakness in hypothesis testing, the story changes completely when the goal is parameter estimation (e.g., estimating the exact bias $p$ of a coin).

For over 30 years, researchers followed a 1986 conjecture suggesting that deterministic machines would always be less efficient than randomized ones for this task, specifically by a factor of $\log S$. However, in Deterministic Finite-Memory Bias Estimation, Or Ordentlich, Tomer Berg, and Ofer Shayevitz disproved this. They showed that deterministic machines can achieve the optimal asymptotic risk of $\Theta(1/S)$, matching randomized machines exactly.

How can a deterministic machine match a randomized one without internal coins? The key is embedding stochasticity into the state structure.

Instead of using an internal coin to create a "rare" transition, a deterministic machine can use the input stream itself as a source of randomness. For example, it can be designed to only transition when it sees a very specific, rare sequence of inputs (like ten "Heads" in a row). By carefully structuring the $S$ states into a chain where transitions only occur upon observing these specific "trigger" sequences, the machine effectively simulates the tiny transition probabilities that randomized machines get for free.

Summary of the Intuition

The research by Berg, Shayevitz, and Ordentlich clarifies the relationship between memory and randomness:

  1. In Decision Making (Hypothesis Testing): Randomness is essential. Deterministic machines cannot "wait" long enough to reach the extreme levels of certainty required to match randomized performance.
  2. In Estimation: Randomness is a convenience, not a necessity. A deterministic machine can use its state space to "sift" through the input stream for rare patterns, using the data's own randomness to achieve optimal precision.

This work shows that the "penalty" for determinism is not a universal law of limited memory, but rather a consequence of the specific statistical task being performed.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_deterministic_finite_memory_for_statisti_f761cb53,
  title = {Deterministic Finite Memory for Statistical Inference},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/deterministic-finite-memory-for-statistical-inference/rdr_f761cb538e4442eca32ef3e3ff3e4e72},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_deterministic_finite_memory_for_statisti_f761cb53_v1,
  title = {Deterministic Finite Memory for Statistical Inference},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/deterministic-finite-memory-for-statistical-inference/rdr_f761cb538e4442eca32ef3e3ff3e4e72/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}