Self-Ensembling through Multi-Shot Stochastic Inference

This direction is split into other directions: stochastic reconstruction aggregation. Its last version stays readable and citable here.

Version 1 of 198 papers122 conceptsfrozen 2026-10-04

Modern deep learning is increasingly moving away from deterministic "one-and-done" predictions. Whether it is a diffusion model generating an image, a Transformer using random shuffling to capture global context, or a Bayesian network estimating uncertainty, stochasticity is now a feature, not a bug. However, this randomness introduces a new problem: variance. A single forward pass might produce an outlier or a noisy artifact.

To solve this, researchers across diverse domains have converged on a shared strategy: Multi-Shot Stochastic Inference. By running a probabilistic model multiple times for the same input and aggregating the results, we can "cancel out" idiosyncratic noise and converge on a more stable, accurate, and robust expectation.

The Core Intuition: Noise Cancellation

Imagine trying to measure the height of a person using a ruler that slightly expands or contracts randomly every time you pick it up. A single measurement might be off by an inch. But if you take twenty measurements and average them, the random expansions and contractions will likely cancel each other out, leaving you with a very accurate estimate.

In stochastic neural networks, the "random ruler" takes many forms:

  • Diffusion Trajectories: In SegDiff, Eliya Nachmani and colleagues show that the inherent randomness of the denoising process can be smoothed by averaging multiple masks.
  • Structural Shuffling: Shuffle Mamba by Xuanhua He uses random permutations to break structural biases. To prevent these permutations from introducing their own artifacts, they use Monte Carlo averaging to approximate an unbiased expectation.
  • Dropout and Weights: Jos van der Westhuizen demonstrates in Bayesian LSTMs in medicine that treating model components as random variables and sampling them multiple times acts as an "internal ensemble," significantly boosting reliability in high-stakes medical decisions.

Stabilizing Generative Processes

Diffusion models are the primary drivers of this research direction. Because they generate data by iteratively removing noise, every "run" follows a slightly different path in the latent space.

In DeScoD-ECG, Huayu Li introduces "multi-shot averaging" to clean medical signals. A single denoising pass might accidentally remove a sharp peak in an ECG signal, mistaking it for noise. By averaging multiple independent passes, the consistent underlying signal (the heartbeat) is preserved while the random errors of the generative process are filtered out.

Similarly, for Synthetic CT Generation, Elham Abouei uses Monte Carlo inference to ensure that the generated images are stable enough for radiation therapy planning. The goal is to reach a Minimum Mean Square Error (MMSE) estimate, which is theoretically best approximated by the mean of many stochastic samples.

Breaking the Local Barrier with Shuffling

A second major application appears in "shuffling" architectures like HomoFormer and ShuffleFormer. Jie Xiao argues that while local window Transformers are efficient, they miss global context. By randomly shuffling pixels before processing them, the model can "see" the whole image through a local lens.

However, a single random shuffle might split a critical edge or texture across different windows. By performing multiple passes with different random seeds and averaging the results, the model aggregates diverse "global perspectives" of the same input, leading to a reconstruction that is both detailed and globally coherent.

Robustness and Outlier Detection

Multi-shot inference also serves as a powerful tool for security and anomaly detection.

  1. Adversarial Defense: Bhaskar Mukhoty shows in Certified Adversarial Robustness that stochastic encoding (like rate encoding in Spiking Neural Networks) creates a "smoothed" decision boundary. Running multiple Monte Carlo simulations at inference time allows the model to recover "clean" accuracy while maintaining its defense against attacks.
  2. Out-of-Distribution (OOD) Detection: In the Lift, Map, Detect (LMD) framework, Zhenzhen Liu uses multiple reconstruction passes to identify "weird" data. If a model is asked to reconstruct an image it has never seen, the different stochastic passes will vary wildly. By measuring the median distance across these samples, LMD can robustly flag OOD samples that a single-pass model might have confidently misclassified.

Beyond Simple Averaging

While averaging is the most common aggregation method, the field is exploring more sophisticated consensus mechanisms:

  • Median Aggregation: Used in LMD to provide better protection against extreme outliers produced during generative sampling.
  • Soft Voting: Employed in Spot and Learn by Wen-Hsuan Chu to preserve uncertainty information during few-shot classification.
  • Self-Ensemble Regularization: In LaGDif, Tai Te Wu averages candidate feature vectors during the denoising steps, not just at the end, acting as a real-time stabilizer for protein sequence design.

The trade-off for these benefits is computational cost—running a model ten times takes ten times as long. However, as Sida Wang notes in Measuring all the noises of LLM Evals, this "test-time compute" is often the most reliable way to stabilize performance in generative tasks where a single lucky or unlucky seed can otherwise dictate the result.

Papers in this version

Showing 60 of 98 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_self_ensembling_through_multi_shot_stoch_afcf80c7,
  title = {Self-Ensembling through Multi-Shot Stochastic Inference},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/self-ensembling-through-multi-shot-stochastic-inference/rdr_afcf80c74f714ac0a8df2f1b393d5846},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_self_ensembling_through_multi_shot_stoch_afcf80c7_v1,
  title = {Self-Ensembling through Multi-Shot Stochastic Inference},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/self-ensembling-through-multi-shot-stochastic-inference/rdr_afcf80c74f714ac0a8df2f1b393d5846/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}