Random Window Discriminators
- Random window discriminators are sliding-window branching programs (SWBPs) that use only the last t input bits to determine state transitions, ensuring memory-constrained computation.
- They support the construction of pseudorandom generators with near-optimal seed lengths by employing extractor-based and combinatorial rectangle techniques to balance seed length and error.
- Their design enables deterministic simulations of probabilistic models, such as cellular automata, thus advancing derandomization strategies in low-space algorithm design.
A random window discriminator, also known as a sliding-window branching program (SWBP), is a class of read-once branching program whose current state depends only on the last input bits seen, for a fixed window size . The SWBP formalism provides a structure for modeling sliding-window algorithms operating under space constraints, particularly when analyzing the construction and derandomization of low-space randomized algorithms. Pseudorandom generators (PRGs) for SWBPs offer near-optimal seed lengths and error resilience, enabling efficient deterministic simulations of probabilistic models such as sublinear-time cellular automata. These results connect the structural properties of SWBPs, PRG construction techniques, and applications to derandomization in computational complexity (Modanese, 2023).
1. Formal Definition and Structural Properties
A sliding-window branching program of window size , length , and width is a read-once (unanimity) branching program where, at each layer , the transition function
depends only on the last inputs. More precisely, for and any states and input history ,
meaning any two runs reading the identical length- suffix will synchronize in their next transition regardless of the prior state.
Acceptance in an SWBP is defined by unanimity: the SWBP accepts an input if and only if every state visited (across all steps) is marked accepting.
Structurally, an SWBP can be characterized via de Bruijn graphs of order . After layer , the state progression is determined only by the last bits, and the number of possible states is at most (excluding dead states). The state at layer is a function
for and for [(Modanese, 2023), Theorem 2.1].
2. Pseudorandom Generators for SWBPs: Construction and Analysis
Given a base PRG that -fools width-, length- unanimity programs, the objective is to stretch this output to length , preserving pseudorandomness against all width-, length-, window- SWBPs.
Construction (INW-style with extractor):
- Seed Length:
- Error:
- Technique: Shatters the SWBP computation into blocks of length , separated by dedicated blocks, and uses an extractor (Goldreich–Wigderson) to re-seed the base PRG, allowing simultaneous fooling of $2m$ subprograms. Interleaved construction ensures global sliding-window property.
Construction (Combinatorial-rectangle PRG):
- Seed Length:
- Error:
- Technique: Concatenates independent outputs of the base PRG, using a combinatorial-rectangle PRG (e.g., Lu–Potukuchi or Gopalan–Yehudayoff) to reduce the cumulative seed length while controlling the error blowup.
A further optimized variant of using the Gopalan–Yehudayoff rectangle-PRG achieves
with .
The table below summarizes the key differences between and :
| Generator | Seed Length | Error |
|---|---|---|
| (INW + extractor) | ||
| (Rectangle-PRG) |
3. SWBP Derandomization Techniques
The construction of PRGs for SWBPs leverages two techniques:
- Interleaving plus Extractor: Block-splits the program, enables low entropy loss via extractor-based re-seeding, and utilizes interleaving to match the sliding-window dependency.
- Combinatorial Rectangle PRGs: Allows for compact multi-seeding of the base PRG across program blocks, employing combinatorial-rectangle generators to minimize seed length while maintaining error control.
A key lemma supporting the extractor-based approach states that, given a PRG that -simultaneously -fools -block subprograms, extension to $2m$ via extractor-split seeds can -fool $2m$ blocks with marginal additional seed overhead.
Rectangle-PRG techniques asymptotically optimize the seed at the expense of a linear blowup in error by the number of subprograms, which is later controlled by parameter selection.
4. Applications to Probabilistic Cellular Automata
A probabilistic cellular automaton (PACA) is a one-dimensional automaton on cells, each updated stochastically at each timestep using two local rules . Each cell, per step, selects a rule based on a fair coin and applies it to its 3-neighborhood. The system accepts if, within steps, all cells reach an accepting state.
Any -step PACA can be simulated by a randomized sliding-window algorithm of window size and space , where is the cell alphabet size. This simulation, composed with an SWBP PRG, yields deterministic deciders for the PACA's accepted language.
- One-sided error PACA (analogous to ): Any such process of runtime is deterministically decidable in space .
- Two-sided error PACA (analogous to ): For any , deterministic decision is possible in space . This improves prior bounds for relative to Armoni-PRG approaches.
Both results are achieved by exhaustive enumeration of PRG seeds, with total simulation space proportional to the requisite seed length.
5. Trade-offs and Implications
The two PRG constructions for SWBPs present trade-offs:
- yields superior dependence on in the seed length but incurs worse dependence in .
- achieves better scaling in but linearly inflates the error by .
Seed lengths are nearly optimal in , , and , outperforming general branching-program PRGs when .
A plausible implication is that, for randomized low-space algorithms with strong sliding-window locality, these PRG constructions provide more efficient deterministic simulation strategies than previously possible for general branching programs. This suggests sliding-window constraints can be exploited to surpass traditional derandomization resource bounds for suitable computational classes (Modanese, 2023).
6. Connections to Broader Complexity Theory
Random window discriminators (SWBPs) embody structured memory-limited computation analogous to a class of sliding-window algorithms, allowing direct mapping to models such as probabilistic cellular automata. The overlay of PRGs with optimal seed complexity for SWBPs enables sublinear-space deterministic computation for problems previously tractable only via randomness under tight space budgets.
The explicit connection to de Bruijn graphs highlights the fundamental role of local-historical dependency in state-space growth and influences the analysis of algorithmic complexity within the sliding-window model.
The SWBP framework, as developed by Modanese, expands the toolbox for derandomization in streaming and automata contexts, with consequences for understanding the boundaries between probabilistic and deterministic small-space computation (Modanese, 2023).