Revisiting Neural Program Smoothing for Fuzzing

Maria-Irina Nicolae, Max Eisele, Andreas Zeller

Abstract

Neural Program Smoothing (NPS) has emerged as a promising technique to enhance fuzzing by using neural networks to guide code mutations via gradients. By approximating discrete program control flow as a differentiable function, NPS aims to navigate complex branch conditions more efficiently than random mutation. However, despite academic acclaim, these tools have seen limited real-world adoption. This paper investigates this discrepancy, introducing MLFuzz, a reproducible benchmarking platform, and Neuzz++, an optimized NPS implementation. Through extensive evaluation, the study reveals that NPS-based fuzzers often underperform compared to modern gray-box fuzzers like AFL++ when tested under rigorous, fair conditions.

Introduction

Fuzzing is a cornerstone of modern software security, involving the automated generation of inputs to trigger crashes and identify vulnerabilities. While traditional gray-box fuzzers rely on evolutionary algorithms and random mutations, Neural Program Smoothing (NPS) proposes a more "intelligent" approach. By training a neural network to model a program’s coverage behavior, researchers can use the model’s gradients to identify specific input bytes that, when modified, are likely to reach new code paths.

Despite the elegance of this theory, the practical utility of NPS has remained questionable. This research addresses the "benchmarking gap" in the field, exploring whether the reported success of NPS tools is a result of fundamental algorithmic superiority or artifacts of outdated experimental setups and slow baselines.

Methodology

The authors conducted a multi-faceted investigation into the efficacy of NPS through four primary contributions:

  1. Conceptual Analysis: The team identified three structural hurdles for NPS: the inherent error in approximating discrete code jumps with smooth functions, the inability of models to predict paths to "unseen" code, and the significant computational overhead of machine learning training and inference.
  2. Neuzz++ Implementation: To ensure the failures of NPS weren't simply due to poor engineering, the authors developed Neuzz++. Unlike its predecessor, Neuzz, which relied on slow file-based I/O, Neuzz++ is integrated as a custom mutator for AFL++. This allows it to leverage modern performance features like persistent mode and shared memory.
  3. The MLFuzz Platform: To facilitate fair comparisons, the authors built MLFuzz, a Docker-based framework that provides standardized access to GPUs and ensures that experiments are reproducible across different environments.
  4. Large-Scale Evaluation: The study represents one of the most comprehensive benchmarks in the field, utilizing over 11 CPU years and 5.5 GPU years of computation to compare various fuzzing strategies.

Experimental Setup and Datasets

The evaluation utilized 23 diverse target programs sourced from industry-standard benchmarks:

  • Google Fuzzer Test Suite: 17 targets including high-profile libraries such as boringssl, freetype2, libxml2, and openssl.
  • FuzzBench: 6 targets including bloaty, curl, and zlib.

Key Insights: Why NPS Struggles

The research highlights several critical reasons why "smart" neural guidance often fails to outperform "dumb" random mutation:

The "Unseen Edge" Catch-22

An NPS model is trained on coverage data the fuzzer has already discovered. Because the neural network only learns the mapping of inputs to known edges, it cannot mathematically provide gradients toward code branches it has never visited. Consequently, any new coverage found during the NPS phase is often a result of random noise rather than directed gradient guidance.

Speed vs. Intelligence

Fuzzing is fundamentally a numbers game. Modern gray-box fuzzers are optimized for extreme execution speed. The time an NPS fuzzer spends pausing to retrain its model or calculate gradients is time a standard fuzzer spends executing thousands of additional test cases. In most scenarios, the sheer volume of attempts by AFL++ discovers more bugs than the computationally expensive guidance of NPS.

The Persistence Pitfall

Many original NPS papers compared their tools against AFL running in its default, slower configuration (feeding inputs via files). Modern fuzzers utilize "persistent mode," which keeps the target process alive and can be 2–20x faster. When the playing field is leveled and AFL++ is allowed to run at full speed, the perceived advantage of ML-based guidance largely vanishes.

Results

  • Code Coverage: AFL++ achieved the highest code coverage on 10 out of 23 targets. NPS-based fuzzers (such as Neuzz and PreFuzz) failed to reach the top two spots in any test case.
  • Bug Discovery: In head-to-head comparisons of unique crashes, AFL++ remained the most successful tool. NPS-guided fuzzers consistently found fewer bugs than the standard gray-box fuzzers they were intended to improve.
  • Neuzz++ vs. Neuzz: While Neuzz++ significantly outperformed the original Neuzz on 21 out of 23 programs—proving that better engineering helps—it still could not consistently beat the AFL++ baseline.
  • Hardware Impact: While using GPUs for model training provided a slight boost in coverage compared to CPU-only training, it did not alter the overall performance ranking of the tools.

Conclusion and Future Directions

The study concludes that treating a program as a black-box function to be "smoothed" is a fundamentally limited approach. To move forward, the authors suggest the community should focus on:

  • Hybrid Representations: Developing models that incorporate program structure, such as Graph Neural Networks (GNNs), rather than relying on simple input-output smoothing.
  • Standardized Benchmarking: Adopting rigorous guidelines, such as performing at least 30 trials for statistical significance and always benchmarking against the most recent versions of state-of-the-art fuzzers.
  • Community Adoption of MLFuzz: Utilizing the MLFuzz platform to ensure future ML-based fuzzing research is transparent, reproducible, and fairly evaluated.

Summary updated

BibTeX
@inproceedings{nicolae2023revisiting,
  author = {Maria-Irina Nicolae and Max Eisele and Andreas Zeller},
  title = {{Revisiting Neural Program Smoothing for Fuzzing}},
  booktitle = {ESEC/SIGSOFT FSE},
  year = {2023},
  doi = {10.1145/3611643.3616308},
}
Figure