{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-06559","title":"ExplainFuzz: Explainable and Constraint-Conditioned Test Generation with Probabilistic Circuits","arxiv_id":"2604.06559","date":"2026-04-08","proceeding":null,"authors":["Annaëlle Baiget","Jaron Maene","Seongmin Lee","Benjie Wang","Guy Van den Broeck","Miryung Kim"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2604.06559","url_pdf":"https://arxiv.org/pdf/2604.06559","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2604.06559","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.06559"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/niMgnoeSeeL/ExplainFuzz","reach":null}],"summary":{"unverified":12},"by_repo_kind":{"found_in_text":{"samples":12,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":12,"samples":[{"code_sha256_prefix":"31eb2ef0fa44a495","entry":"choose","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/xml_concretizer.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/xml_concretizer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"31eb2ef0fa44a495"}},{"code_sha256_prefix":"c18eb61531320b96","entry":"edge_sampler","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/xml_concretizer.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/xml_concretizer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c18eb61531320b96"}},{"code_sha256_prefix":"b6a0ab74e8246afb","entry":"extract_text_chunks","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/extract_pools.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/extract_pools.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b6a0ab74e8246afb"}},{"code_sha256_prefix":"9e94d3a32546848f","entry":"gen_all_paths_project","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/utils.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9e94d3a32546848f"}},{"code_sha256_prefix":"76cf1f11091a8146","entry":"gen_sensitive_paths","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/utils.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"76cf1f11091a8146"}},{"code_sha256_prefix":"145e15f90b2e67c7","entry":"get_main_tags","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/xsd_to_metadata.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/xsd_to_metadata.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"145e15f90b2e67c7"}},{"code_sha256_prefix":"9fdddd73b7e0b2e4","entry":"get_metadata","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/xsd_to_metadata.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/xsd_to_metadata.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9fdddd73b7e0b2e4"}},{"code_sha256_prefix":"5d5c34a847a9d13b","entry":"load_results_from_json","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"eval_multi_bug.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/eval_multi_bug.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5d5c34a847a9d13b"}},{"code_sha256_prefix":"8777159829c1048b","entry":"parse_xsds_to_metadata","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/xsd_to_metadata.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/xsd_to_metadata.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8777159829c1048b"}},{"code_sha256_prefix":"f42e8e1b36b82e9c","entry":"sanitize_attr_value","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/xml_concretizer.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/xml_concretizer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f42e8e1b36b82e9c"}},{"code_sha256_prefix":"c01d8001e909f052","entry":"sanitize_text","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/extract_pools.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/extract_pools.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c01d8001e909f052"}},{"code_sha256_prefix":"72e4af9dce41b4eb","entry":"wrap_with_doctype","repo":"niMgnoeSeeL/ExplainFuzz","repo_kind":"found_in_text","path":"xml_concretizer/auth_service_xml/utils.py","file_url":"https://github.com/niMgnoeSeeL/ExplainFuzz/blob/HEAD/xml_concretizer/auth_service_xml/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"72e4af9dce41b4eb"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}