mlsanityData to 7 Oct 2026

ExplainFuzz: Explainable and Constraint-Conditioned Test Generation with Probabilistic Circuits

arXiv 2604.06559 ↗First posted 8 Apr 2026cs.SE cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Understanding and explaining the structure of generated test inputs is essential for effective software testing and debugging. Existing approaches--including grammar-based fuzzers, probabilistic Context-Free Grammars (pCFGs), and Large Language Models (LLMs)--suffer from critical limitations. They frequently produce ill-formed inputs that fail to reflect realistic data distributions, struggle to capture context-sensitive probabilistic dependencies, and lack explainability. We introduce ExplainFuzz, a test generation framework that leverages Probabilistic Circuits (PCs) to learn and query structured distributions over grammar-based test inputs interpretably and controllably. Starting from a Context-Free Grammar (CFG), ExplainFuzz compiles a grammar-aware PC and trains it on existing inputs. New inputs are then generated via sampling. ExplainFuzz utilizes the conditioning capability of PCs to incorporate test-specific constraints (e.g., a query must have GROUP BY), enabling constrained probabilistic sampling to generate inputs satisfying grammar and user-provided constraints. Our results show that ExplainFuzz improves the coherence and realism of generated inputs, achieving significant perplexity reduction compared to pCFGs, grammar-unaware PCs, and LLMs. By leveraging its native conditioning capability, ExplainFuzz significantly enhances the diversity of inputs that satisfy a user-provided constraint. Compared to grammar-aware mutational fuzzing, ExplainFuzz increases bug-triggering rates from 35% to 63% in SQL and from 10% to 100% in XML. These results demonstrate the power of a learned input distribution over mutational fuzzing, which is often limited to exploring the local neighborhood of seed inputs. These capabilities highlight the potential of PCs to serve as a foundation for grammar-aware, controllable test generation that captures context-sensitive, probabilistic dependencies.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 11 of its 31 references that are in the map. First posted on arXiv 8 Apr 2026.

Builds on

11 of 31 references.

References · 11

  1. 2023Subtractive Mixture Models via Squaring: Representation and Learningcited by 39
  2. 2024Scaling Tractable Probabilistic Circuits: A Systems Perspectivecited by 23
  3. 2024KLay: Accelerating Arithmetic Circuits for Neurosymbolic AIcited by 16
  4. 2024On the Relationship Between Monotone and Squared Probabilistic Circuitscited by 14
  5. 2024Building Expressive and Tractable Probabilistic Generative Models: A Reviewcited by 12
  6. 2024A Compositional Atlas for Algebraic Circuitscited by 10
  7. 2025Scaling Probabilistic Circuits via Monarch Matricescited by 9
  8. 2025TRACE Back from the Future: A Probabilistic Reasoning Approach to Controllable Language Generationcited by 8
  9. 2017Parsing with CYK over Distributed Representationscited by 2
  10. 2025Tuning Random Generators: Property-Based Testing as Probabilistic Programmingcited by 2
  11. 2025Scaling Probabilistic Circuits via Data Partitioningcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.