AutoDiDact: Input Reduction over Inferred Structure
Abstract
Delta debugging reduces a failing input by deleting chunks of it, keeping a deletion only if an oracle confirms the failure persists. It chunks the input based only on its length, so its deletions cut through units such as identifiers and delimited groups, wasting calls and leaving outputs large. Current state-of-the-art structural reducers avoid this by supplying grammars or built-in format knowledge. We show that structured reduction needs neither: a neutral word and delimiter pairs suffice, and both can be inferred from the failing input by asking only what delta debugging already asks its oracle: does the failure persist? A neutral word, such as a space, preserves the failure when inserted between such units but not inside them, so it splits the input into tokens. A delimiter pair is two tokens that preserve the failure only when added or removed together, so the span they bound can be reduced as a unit. We formalize both, state when the oracle can reveal them, and learn each with a bounded number of calls. AutoDiDact reduces the resulting tree of spans by hierarchical delta debugging (HDD) and shrinks each token across its occurrences. AutoDiDact finds a neutral word in 75 of 125 inputs from 18 format families. On these, it returns outputs 83% smaller than byte-level delta debugging with 37% fewer calls on geometric mean, inference included. The savings grow with input size, to 98% and 87% on inputs of at least 10 KiB. Without a grammar, AutoDiDact matches grammar-based HDD in output size at 3.85 times its calls, and uses 54% fewer calls than C-Reduce's language-agnostic mode. Because it needs only the oracle, AutoDiDact can minimize whatever a fuzzer finds, malformed inputs included.
Create a lesson
Metadata
- Comments
- 33 pages, including appendices. Replication package: https://doi.org/10.5281/zenodo.24164465
Related papers
Trace2ST: Recovering PLC Structured Text from I/O Traces with LLM Generation and Verification
Shared title terminologycs.SEHsi Chang, Irfan Khan
A Taxonomy and Taxonomy-Guided Benchmark Reduction for Spreadsheet Tasks
Shared title terminologycs.SEBogdan Vasilescu, Emerson Murphy-Hill, Anikesh Parashar et al.
When the Mythical Man-Month Meets Agentic Web Systems: Structured Coordination for Scalable Development
Shared title terminologycs.SEZhiyao Wu, Zi Liang, Haibo Hu
Rasoi: Visual Diffs for Evaluating Structural Changes Made by Coding Agents
Shared title terminologycs.SERiya Sahni, Aryan Kaul, Anushka Bhatnagar et al.
When Exact Inference Changes Code Selection: A Decision-Theoretic Analysis of B4
Shared title terminologycs.SEYanliang Cai
Structure-Aware Quantum Circuit Equivalence Checking via Sparse Pauli Propagation
Shared title terminologycs.SEShangzhou Xia, Junjie Luo, Qichen Wang et al.