Sampling from complex, discrete distributions—like the space of all possible drug-like molecules or optimal scheduling sequences—is a fundamental challenge in Bayesian inference and combinatorial optimization. While Generative Flow Networks (GFlowNets) and other amortized samplers have made huge strides, they often get stuck. They suffer from slow convergence, "state aliasing" (where the model can't tell two different states apart), and a mathematical ambiguity known as underdetermination.
A new paper, "Random Features for Discrete Amortized Samplers," proposes a deceptively simple fix: just add noise. Specifically, by injecting continuous random features into the sampler’s policy network, the authors transform the learning problem into a mixture model that is faster, more expressive, and better at exploring.
TL;DR
The authors introduce Mixture Model Augmentation (MMA), a method that adds continuous random inputs to the policy networks of discrete samplers like GFlowNets. This approach treats the sampler as a mixture of Markov processes, which provably increases expressive power and significantly accelerates the discovery of high-probability regions in discrete spaces.
What Problem Does This Paper Address?
Discrete amortized samplers learn a policy to build an object (like a graph or a set) step-by-step such that the final result matches a target probability distribution. However, they face three major hurdles:
- Underdetermination: There are infinitely many ways to define a policy that results in the same target distribution. Choosing just one "correct" policy during training is difficult.
- Limited Expressiveness (State Aliasing): Neural networks, especially Graph Neural Networks (GNNs), sometimes produce identical embeddings for different states. If the network can't distinguish between states, it can't learn to treat them differently, leading to poor fit.
- Inefficient Exploration: Standard samplers often struggle to move between different "modes" (high-probability peaks) in the distribution, getting trapped in local optima.
Methods
The authors propose Mixture Model Augmentation (MMA). Instead of learning a single fixed policy $p_F(s)$, they learn a policy $p_F(s, \gamma)$ that is conditioned on a random vector $\gamma$.
- The Augmented State Graph: The state space is expanded to include this continuous variable $\gamma$. Crucially, $\gamma$ is sampled once at the start of a trajectory and held constant until the end.
- Mixture Semantics: Mathematically, this turns the sampler into a convex mixture of Markov processes. Each value of $\gamma$ essentially "indexes" a different feasible policy.
- Augmented Trajectory Balance (ATB): The authors adapt the standard Trajectory Balance loss—a staple of GFlowNet training—to account for this new random variable.
- Architecture: The state $s$ and noise $\gamma$ are encoded separately and then concatenated before being passed through the policy network.
Datasets
The researchers evaluated MMA on three standard benchmarks for discrete sampling:
- Hypergrid: A 2D grid-world where the agent moves to find rewards. Two variants were tested: CORNERS (rewards at the edges) and GAUSSIAN (rewards in a grid of peaks).
- Lazy Random Walk: A 2D walk with an added timestamp coordinate, testing the sampler's ability to handle temporal dependencies.
- Set Generation: A task where the model builds sets from a universe of 32 items to match a specific log-linear reward function. This involves a massive state space ($|X| \approx 10^9$).
Key Insights and Ideas
- Breaking Symmetry: In graph-based tasks, standard GNNs often fail to distinguish between non-isomorphic graphs if they have similar local structures. By adding random features (similar to Random Node Initialization in GNNs), MMA gives the model the "hooks" it needs to tell these states apart.
- Exploration via Diversity: Because each $\gamma$ represents a slightly different way of navigating the state space, the model naturally explores a wider variety of paths. This prevents the "winner-take-all" problem where a model commits too early to a single sub-optimal path.
- No Extra Inference Cost: Since $\gamma$ is just a small vector added to the input, the computational overhead during sampling is negligible, yet the benefits to training stability are substantial.
Key Results
The empirical results show that MMA consistently outperforms standard samplers:
- Faster Convergence: In the Hypergrid domains, MMA discovered high-probability regions (modes) much earlier in training than the baseline (see Figure 5 in the paper).
- Better Distributional Fit: In the "CORNERS" task, the Total Variation (TV) distance—a measure of how far the learned distribution is from the target—dropped from 0.189 (without MMA) to 0.039 (with MMA).
- Handling Large Spaces: In the Set Generation task, MMA achieved significantly better "goodness-of-fit" across various set sizes ($K=12, 18, 24$), proving it scales well to large combinatorial spaces.
Limitations and Future Work
While the results are promising, the authors note a few areas for further exploration:
- Hyperparameter Sensitivity: The paper uses a simple Gaussian distribution for $\gamma$. Future work could investigate if more complex priors or learned noise distributions perform better.
- Integration: The authors are looking into more sophisticated ways to incorporate $\gamma$ into the policy network beyond simple concatenation.
- Theoretical Depth: As a "short communication," the paper provides a strong proof of concept, but more extensive theoretical work is needed to understand the optimal dimensionality of the random features for different types of state graphs.
Summary updated