Clustered Randomized Smoothing for Stochastic Prediction Functions

Eduardo Figueiredo, Frederik Baymler Mathiesen, Julian Frederik Schumann, Jens Kober, Arkady Zgonnikov, Luca LaurentiNeurIPS 2026

TL;DR

When neural networks predict multiple distinct possibilities—like turning left or right around an obstacle—standard defenses against adversarial noise average those choices together, effectively steering straight into the wall. This paper introduces clustered $\alpha$-smoothing, a technique that separates noisy predictions into distinct behavioral clusters before smoothing them. The result is an AI that keeps its rich, multi-choice intuition intact while gaining mathematical guarantees of safety.

What Problem Does This Paper Address?

Modern stochastic predictors (like normalizing flows, VAEs, or Bayesian neural networks) don’t just give you a single answer; they give you a rich probability distribution over multiple plausible outcomes. Think of an autonomous car approaching an intersection: an oncoming driver might hit the brakes to yield, or hit the gas to turn first. Both are valid, distinct modes of behavior.

However, neural networks are famously brittle—tiny, adversarial nudges to their inputs can send their predictions haywire. A popular defense is randomized smoothing: inject random Gaussian noise into the input, run the model dozens of times, and average the outputs to get a stable, mathematically certified prediction.

Here is the catch: in multi-modal regression, averaging is a disaster. If Mode A says "turn left around the tree" and Mode B says "turn right," the average says "drive straight into the trunk." Standard randomized smoothing suffers from mode collapse, erasing the very uncertainty that keeps safety-critical systems alive.

Conceptual illustration showing how standard randomized smoothing averages two distinct vehicle behaviors into an uninformative middle ground, whereas clustered smoothing preserves both modes.

Methods

To stop modes from blurring together, the authors propose clustered $\alpha$-smoothing. Instead of blindly averaging all noisy samples, the framework works in three intuitive steps:

  1. Cluster the outputs: Inject noise into the input to generate $N$ output samples, then partition the output space into distinct regions corresponding to the model's modes. Notably, the framework is agnostic to the clustering algorithm used (e.g., DBSCAN or DP-means), defining partitions via generalized Voronoi cells around bounding boxes.
  2. Local $\alpha$-trimming: Within each individual cluster, apply $\alpha$-smoothing (a recent regression technique that trims away the top and bottom $\alpha$-fraction of extreme outliers before averaging).
  3. Recombine as a mixture: Combine the locally smoothed cluster predictions into a categorical mixture distribution, weighted by how many samples landed in each cluster.
Comparison on a multi-modal 1D toy model: standard alpha-smoothing collapses the distribution into a single peak (left), while clustered alpha-smoothing preserves the distinct modes and certifies tight regions around each (right).

What’s new here is pairing local outlier-trimmed smoothing with a mixture model formulation—and actually proving it works. Using the Neyman-Pearson lemma and Clopper-Pearson confidence intervals, the authors derive a tractable linear program (using finite "anchor points") that certifies a lower bound on the probability that predictions stay inside a union of safe, compact hyperrectangles, even under adversarial input perturbations.

Datasets

The authors evaluate their framework on two existing safety-critical benchmarks (no new datasets are introduced):

  • L-GAP Driving Simulator Dataset: Real human driving trajectories at an intersection where drivers decide whether to turn left in front of an oncoming car (go) or wait (yield). Evaluated using the stochastic TrajFlow model.
  • Multi-Modal Quadrotor Navigation: A 3D stochastic control benchmark where a drone, guided by a Gaussian-mixture reinforcement learning policy, must fly through two possible "holes" in an obstacle wall while fighting wind disturbances.

Key Insights and Ideas

  • Averaging creates false confidence: In the driving task, standard smoothing collapses "stay" and "go" trajectories into a single averaged path, tricking the ego-vehicle into being overly confident about what the other driver will do. Preserving the mixture forces the planner to respect behavioral uncertainty.
  • Keep the minor modes: Prior work in LLMs used clustering with smoothing simply to delete small clusters as suspected adversarial noise. In robotics and driving, a low-probability mode might represent a rare pedestrian stepping onto the street—pruning it is fatal. Modeling the full mixture accounts for every mode.
  • Control smoothness isn't sacrificed: One might worry that jumping between discrete smoothed clusters would make a drone jittery. Kinematics checks revealed that acceleration and jerk remained right in line with the smooth base policy.

Key Results

  • Traffic Trajectory Prediction: Across 200 scenarios in L-GAP, clustered $\alpha$-smoothing achieved a 27% lower 2-Wasserstein distance to the noisy ground-truth distribution compared to standard $\alpha$-smoothing ($3.80$ vs. $5.18$). In a simulated intersection decision test, risky "both cars go" collisions dropped from 16.5% ($\alpha$-smoothing) and 7.5% (standard mean smoothing) down to 2.5%.
  • Quadrotor Control: Out of 100 rollout trajectories, the base RL policy crashed 36 times and $\alpha$-smoothing crashed 41 times (by steering straight between the two openings into the wall). Clustered $\alpha$-smoothing crashed only 10 times in that run—and across 100 repeated simulations, reduced the average collision rate from 40.0% down to 4.0% (a 90% relative reduction).

Limitations and Future Work

  • Inference overhead: Like all randomized smoothing methods, running the base model dozens of times per step can be too slow for massive networks on tight real-time budgets.
  • Box-shaped blind spots: The math requires bounding each mode with disjoint, axis-aligned hyperrectangles. If two modes curve around each other (like interlocking half-moons), boxes can't cleanly separate them.
  • Fixed partitions: Currently, the output space partition must remain fixed within the local neighborhood of an input. Allowing input-dependent partitions and noise distributions is highlighted as a prime target for future work, alongside tightening the mathematical bounds when scaling to many clusters.

Summary updated

Abstract

Modern stochastic predictors can model rich, multi-modal outcome distributions. However, this expressive power comes with challenges in ensuring robust predictions $-$ a critical requirement in safety-critical domains. Randomized smoothing is a leading technique for improving robustness, particularly against adversarial perturbations. Yet, in stochastic multi-modal regression settings, randomized smoothing often fails due to mode collapse, yielding averaged predictions that do not reflect the underlying distribution. To address this limitation, we propose clustered $\alpha$-smoothing, a framework that (1) partitions noisy samples using an arbitrary clustering algorithm, (2) applies $\alpha$-smoothing locally within each cluster, and (3) combines the resulting predictions into a mixture distribution. By interpreting the smoothing distribution as a mixture of $\alpha$-smoothers, we derive a lower bound on the probability that the smoothed prediction lies within a union of compact regions corresponding to distinct modes. We empirically evaluate our framework on two benchmarks, demonstrating substantial improvements over state-of-the-art methods. In stochastic trajectory prediction on a driving simulator dataset, our approach achieves, on average, a 27\% lower Wasserstein distance to the ground-truth distribution compared to $\alpha$-smoothing. In quadrotor control, where modes correspond to distinct feasible paths to a target, our method reduces the collision rate by 90\% relative to the state-of-the-art randomized smoothing.
BibTeX
@inproceedings{figueiredo2026clustered,
  author = {Eduardo Figueiredo and Frederik Baymler Mathiesen and Julian Frederik Schumann and Jens Kober and Arkady Zgonnikov and Luca Laurenti},
  title = {{Clustered Randomized Smoothing for Stochastic Prediction Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OeD82ZRKWm},
}
Figure