Circular Image

S. Dumančić

info

Please Note

80 records found

Program synthesis searches a grammar-defined space for a program that satisfies a user specification. Constraints can significantly reduce this search space. They can either be added manually by the user or derived through conflict analysis, which turns failed candidates into learned constraints. These constraints often retain irrelevant candidate details and accumulate costly redundancy. This thesis extends a conflict-analysis framework with core-guided MUC generalization and constraint-set cleanup. Generalization uses a semantic unsatisfiable core to wildcard irrelevant branches while preserving the candidate root and core nodes, as well as values referenced by core relations. Cleanup minimizes the active constraint set in many ways: by either removing constraints through exact deduplication or subsumption, or by merging constraints through single-differences and cross-relations. We evaluate both extensions on several benchmarks, assessing the reduced search space, constraint set size, runtime, and number of solved problems and used enumerations. At the largest program sizes, generalized MUC reduces enumerations by anywhere between 60 and 99.9%, consistently improving over the previous MUC implementation. Similarly, the strongest cleanup configuration can reduce the mean active constraint population by more than three orders of magnitude. While the new extensions manage to solve slightly more problems, their runtime improvement is negligible. Nonetheless, our extensions show that conflict analysis can learn substantially more general constraints and represent them more compactly. ...
Existing Inductive Program Synthesis (IPS) techniques generate programs from
examples and are restricted to specific task classes to exploit domain knowledge.
To compete with general-purpose LLM-based code generation, a single IPS system
must handle tasks with different types of inputs, outputs, and instructions without
relying on domain-specific knowledge. This thesis introduces task-level adapta-
tion, a framework in which a synthesizer must learn how to search only from the in-
dividual task it is solving rather than from a predefined domain. We focus specific-
ally on search guided by automatically generated properties that capture useful
aspects of a program’s output. We introduce PHALCON to demonstrate the frame-
work’s viability. PHALCON repeatedly samples programs, selects properties that
distinguish incorrect outputs from intended behavior, and uses them to constrain
subsequent sampling. PHALCON outperforms state-of-the-art techniques special-
ized for string and bit-vector transformations, and solves tasks from the challenging
Abstraction and Reasoning Corpus. These results establish task-level adaptation as
a promising foundation for efficient, general program synthesis. ...
Master thesis (2026) - I.S. Yordanov, Alexander Mey, Kshitij Goyal, S. Dumančić, G. Gaydadjiev
Reducing diagnostic time is a fundamental challenge in the maintenance of manufacturing machines. At ASML, failures in deep ultraviolet (DUV) lithography machines involve interactions between interconnected modules, making root cause identification difficult. Identifying the root cause of the failure is the first step of diagnostics. This work investigates whether data-driven approaches are suitable for that task. Three research questions are addressed: the quality and stability of learned network structures, the effectiveness of these structures for root cause analysis, and the potential benefits of combining multiple models. A representative selection of algorithms is evaluated and compared with an expert-developed network currently used in practice. The learned structures are assessed both using unsupervised metrics and manually labeled fault cases. To investigate how learned networks from data can support diagnostics in lithography machines, three paradigms are formulated and compared.

The results show that structure learning provides a practical and scalable alternative to manually constructing networks. Several models achieved performance close to that of the expert model, despite requiring substantially less domain expertise and engineering effort. Although none of the evaluated structures surpassed the expert model in the number of correctly solved test cases, multiple learned models performed within a small margin. The findings suggest that current evaluation data is insufficient to clearly distinguish between the best-performing models. This key limitation of not having enough high-quality labeled diagnostic data impacts the learning and evaluation processes. To address this challenge, a feedback-driven data collection process is proposed. Overall, the results demonstrate that data-driven Bayesian networks are a practical and scalable solution for supporting diagnostics in lithography machines. This enables rapid experimentation across operating conditions without requiring as much expert insight for each analyzed environment. ...
Constructing a Qualitative Network model of biological systems traditionally requires substantial manual effort and domain expertise, as existing knowledge of activation and inhibition relationships between entities is insufficient to fully determine the algebraic update functions that such models require. This thesis formulates (1) QN construction as a set of program synthesis problems, one per network entity, and introduces a refactoring mechanism that learns reusable components from previously synthesized solutions; (2) several structurally motivated strategies for grouping entities, to maximize the benefit of refactoring across related synthesis tasks. To measure the effectiveness of grouping strategies, we evaluated our method on three existing QN models (Cancer Signalling, Leukaemia, and VPC). The results show that refactoring can meaningfully improve synthesis performance, though its effectiveness depends on the grouping strategy used, with no single strategy performing best across all models.
...

Better identifying when transformations apply in a program synthesis agent

Bachelor thesis (2026) - J.S. Duifs, D.Z. Zak, S. Dumančić, A. van Deursen
The Abstraction and Reasoning Corpus (ARC) challenges AI systems to induce general rules from as few as two to four examples. BEN is a program synthesis agent that tackles ARC through a Divide, Align, and Conquer pipeline inspired by analogical reasoning, but its concept learning phase, which synthesizes Boolean rules governing when transformations apply, must frequently choose between candidate rules of equal structural complexity. Because ARC's extreme data scarcity makes such ties highly prevalent, the system's coarse notion of complexity provides insufficient nuance to distinguish between candidates, leaving it vulnerable to overfitting.

We present three optimizations to BEN's concept learner, built on a reimplementation of BEN in Julia. These optimization provide better nuance in complexity at different stages of the pipeline, helping the system more accurately mimic human analogical reasoning. A \emph{Rule Generality} heuristic uses cross-transformation frequency analysis to discount broadly applicable features. A \emph{DNF Model Score} leverages cumulative solver objective values as a semantic tie-breaker between structurally equivalent rules. A \emph{Simple Minimal Transformation Coverage} heuristic extends the greedy set-cover procedure, with secondary criteria based on correspondence ambiguity and transformation complexity. An ablation study on 400 ARC-AGI-1 tasks shows these optimizations increase accuracy from 32 to 36 solved tasks with no regressions and negligible computational overhead. Analysis of rule complexity reveals that generated DNFs consistently require only a single clause, suggesting that the current performance bottleneck lies in the upstream pipeline rather than in concept complexity itself. ...

Grammar Extensions and Structural Ranking for the BEN Agent on the ARC Benchmark

Bachelor thesis (2026) - F.G. Howard, D.Z. Zak, S. Dumančić, A. van Deursen
The Abstraction and Reasoning Corpus (ARC) is a benchmark designed to measure general-purpose skill acquisition, requiring solvers to infer transformation rules from very few examples. Program synthesis approaches such as the Divide, Align and Conquer (DA&C) framework have shown promise, but their segmentation stage, which decomposes input grids into objects, remains a bottleneck in both computational cost and task coverage. This work presents a reimplementation of the BEN agent in Julia, integrated with the Herb.jl program synthesis ecosystem, alongside two targeted improvements to the segmentation module. First, we extend the segmentation grammar with a proximity;N mode that groups same-color pixels within Chebyshev distance N [1], enabling correct decomposition of objects with small internal gaps. Second, we replace the original full-pipeline mode selection with a lightweight structural ranking that scores all candidate modes on their segmentation output alone, using all training examples rather than only the first. Evaluated on the 400-task ARC training set with a 140-second budget, the Julia reimplementation solves 46 tasks, of which 5 are solved via proximity modes absent from the original grammar and are therefore likely attributable to the grammar extension. Analysis of the ranking reveals that the top-ranked mode solves 59% of solvable tasks. A deliberate fallback mechanism compensates for the heuristic's imperfection by guaranteeing that a reliable base mode is always attempted second. Grammar extensions account for some improvement (5 out of 13 tasks likely solved exclusively by Julia). ...

Where Reaction-Database Knowledge is most effective in reducing search

Recovering a chemical reaction network (CRN) from concentration data can be framed as program synthesis, but the search scales poorly: reaching the ground-truth network requires enumerating a very large number of candidates. Hard constraints on the synthesizer's grammar prune candidates by chemical rules such as atom valence and mass balance, yet among the valid candidates a uniform search has no sense of which reactions are plausible. We ask where in a top-down CRN synthesizer knowledge from a reaction database most reduces the candidates explored before the target is found? We compare three integration points across five benchmarks, using the USPTO-50K and Rhea databases: (1) a database-derived building-block vocabulary, (2) a probabilistic context-free grammar (PCFG) over the grammar rules, and (3) an output reranker. The building-block vocabulary is the most positive result: it decides whether the target network is recovered at all, and a shuffle control attributes this to the database's frequency content rather than vocabulary size. Each corpus unlocks only the chemistry it covers, and rank-normalised merging recovers targets that a naive union dilutes. The PCFG adds ordering gain, while the reranker, acting only on the finished list, helps under corpus match and hurts under mismatch. Matching a corpus to the target chemistry, not enlarging it, is what turns a reaction database into useful search guidance.

...

Exploring heuristically-driven backtracking for the DA&C paradigm

Bachelor thesis (2026) - J.M. Florek, S. Dumančić, D.Z. Zak, A. van Deursen
Program synthesis for the Abstraction and Reasoning Corpus (ARC) remains challenging due to large search spaces, limited computational budgets, and the propagation of early synthesis decisions throughout the solver pipeline. This paper investigates whether internal solver metrics can guide retriggerable transformation search within the BEN Divide, Align, and Conquer (DA&C) architecture.To address this question, we introduce an anytime transformation-refinement mechanism that resumes synthesis from previously explored search frontiers, along with a threshold-based retriggering strategy driven by transformation overfitting and solver-state metrics. The proposed approach was implemented in a Julia-based reimplementation of BEN using the Herb.jl program synthesis framework and evaluated on the ARC benchmark.The experimental results show that retriggerable synthesis substantially changes the distribution of search effort across correspondences, enabling deeper exploration of highly ranked alignments while preserving exploration of lower-ranked alternatives. Compared to the baseline solver, the proposed method explores significantly fewer candidate transformations. It produces a different set of solved tasks, demonstrating that it redirects synthesis toward different regions of the search space. However, these changes do not translate into a large improvement in overall ARC solve rate, with both approaches achieving comparable aggregate performance.These findings suggest that transformation synthesis is not the primary bottleneck in the current BEN architecture. Instead, overall performance appears to be constrained by earlier stages of the pipeline, including segmentation, correspondence generation, and the expressiveness of the transformation language. While retriggerable anytime synthesis does not increase aggregate benchmark runtime performance, it provides a structured mechanism for adaptive search control. It lays the foundation for future work on stateful, dynamically allocated program synthesis. ...

How can we better find the matches between input and output objects?

Bachelor thesis (2026) - A. Zaghăr, S. Dumančić, D.Z. Zak, A. van Deursen
The Abstraction and Reasoning Corpus (ARC) serves as a challenging benchmark designed to measure human-like artificial intelligence by only providing a few training examples for each task. Program synthesis offers a new approach to solving this benchmark by generating rule-based transformation programs. A recent approach, BEN, tackles these tasks by making use of program synthesis in a Divide, Align and Conquer strategy. The Align component identifies correspondences between the input and output objects by using a Structure Mapping Engine (SME) rooted in analogical reasoning. Despite its success, each individual part of the algorithm can be further improved, in particular the features of objects used in Align.

We present an enhanced object-matching methodology of the Align component to improve the quality of the correspondences found. First, the BEN algorithm is re-implemented in Julia, making use of an Answer Set Programming (ASP) solver using Clingo and Prolog for the SME to offer better efficiency. Second, we augment the structural representation of the objects by introducing features that capture the spatial relations between them, specifically through forms of ranked coordinates. Furthermore, we refine how multi-coloured objects are propositionally encoded. Finally, we introduce a weighting heuristic for the features: the significance of individual visual attributes is minimized when the input and output grids contain the same number of objects, and simple coordinates are eliminated when the input and output grids have different sizes.

The proposed changes were evaluated by isolating the Align component across subsets of the ARC-AGI-1 benchmark. In a sample of 25 manually selected tasks, the number of perfectly matched tasks improved significantly from 11 to 23. In a randomly selected sample of 25 tasks, the modifications give better or identical matches in 22 tasks, with only 3 showing degradations. When running the entire benchmark with the full BEN algorithm, one extra task is solved and two no longer are. Average times are similar and the number of searched transformations decreases. These findings suggest that including spatial relations and contextual weighting of the features improves the accuracy of finding correct correspondences for the ARC benchmark. ...

Improving transformation search in BEN

Bachelor thesis (2026) - D. Condratov, D.Z. Zak, S. Dumančić, A. van Deursen
The Abstraction and Reasoning Corpus (ARC) challenges systems to recognise patterns from just a few input-output examples, which proves to be a setting where most current approaches struggle. Program synthesis systems like BEN tackle this by decomposing the images into objects rather than pixels and then searching for transformation programs that explain the examples. However, its reliance on exhaustive enumeration makes the transformation search computationally expensive and difficult to scale.

This project aims to improve the transformation search and, in doing so, asks whether correspondence-tailored grammar pruning can reduce the search space and improve the efficiency of BEN’s conquer step. BEN is reimplemented in Julia using the Herb.jl library. On top of that, a pruning strategy that exploits structural similarities between matched input-output object pairs is added. Both the baseline and the improved version are evaluated on the 400-task ARC training set.

The pruning reduces the average number of candidate programs evaluated by 77%, but it has a seemingly slight negative impact on the tasks that get solved. The number of correctly solved tasks decreases from 31 to 30. These results show that simple structural observations about the matched object pairs substantially reduce the search space. More informed search looks like a promising direction for improving program synthesis systems on ARC. ...
Recovery of full Chemical Reaction Networks from an incomplete (partially observable) problem is an extensive and combinatorial expensive process. This work investigates some of the possible methods to restrict the overall search space of program synthesis and obtain a better rank for the target network, through the use of reaction templates. As such, filter-based network pruning and ranking, as well as reaction size constraint are compared to the existing base synthesizer that this work builds upon, both in terms of search-space and target rank. Additionally, runtime is also considered as a second metric for these experiments. Overall, these methods have obtained some improvements in the small subset of benchmarked networks, but achieving integration of reaction templates into CRN program synthesis still remains an open challenge. ...
Chemical Reaction Networks (CRNs) are essential for understanding complex reactive processes, yet incomplete experimental data often leave many networks only partially known. Grammar-driven program synthesis offers an approach to completing partial CRNs, but atom-by-atom construction of molecular candidates causes a severe combinatorial explosion, and the baseline synthesiser lacks awareness of the structural context of target molecules. It is not yet known whether substructure-aware heuristics can improve the computational tractability of CRN discovery via program synthesis. To investigate this, BRICS (Breaking of Retrosynthetically Interesting Chemical Substructures) fragments were incorporated into the molecular context-free grammar, and Tanimoto similarity of Morgan2 fingerprints was used to guide reaction and network synthesis. The results show that BRICS fragmentation achieves a 13.8 percentage-point improvement in completing partial reactions on a dataset missing complex organic compounds by encoding large substructures as single grammar rules. Conversely, the enhanced grammar solves 27.4 percentage points fewer problems than the baseline on reactions missing small non-carbon species, as increased branching delays discovery of small molecules. Moreover, molecular similarity guidance does not improve performance in reaction rebalancing from SynRXN datasets, but it substantially reduces the search space in an example esterification CRN synthesis problem, requiring 2,565 fewer candidate reactions and 409 fewer candidate networks before discovering the targets. Thus, BRICS fragmentation and similarity-guided heuristics have distinct strengths. Future frameworks should split the candidate molecule pool between fragment-enhanced and atom-by-atom methods to successfully capture both large structural fragments and small, dissimilar species. ...
This report studies valence constraints for molecule synthesis in a staged program-synthesis framework for chemical reaction network discovery. The baseline system already performs limited molecule validation, but it does so as a final filter after candidate SMILES strings have been generated. The change evaluated here is a valence-constrained grammar for ringless molecules that encodes atom valence directly in the grammar, restricting derivations to locally valence-consistent construction steps.

The resulting grammar reproduces the same ringless molecule sets as the legacy baseline on the audited tests and benchmarks, and all generated molecules pass the repository’s valence-validity checks. Runtime results are mixed: on the small water benchmark, the new grammar becomes faster from depth 5 onward and reaches a 2.87× speedup at depth 10, while on methane and urea it remains slower throughout the measured ringless depth series. A fixed-count methane benchmark shows that this slowdown is not mainly caused by legacy validity checking, but by the added search overhead of the larger valence-aware grammar.

The main conclusion is that the new grammar preserves the audited ringless output behaviour while shifting pruning earlier in the search, but this does not translate into consistent runtime gains. ...
Bachelor thesis (2026) - T.M. Bood, S. Dumančić, R.J. Gardos Reid, J.M. Weber
Chemical Reaction Network (CRN) discovery is a time-consuming task that can be automated using program synthesis. However, the search space for realistic CRNs is large, making exhaustive search intractable. This paper investigates whether incorporating bond-breaking energy as a search heuristic can improve the efficiency of grammar-based CRN discovery. This paper proposes two heuristics: a maximum-bond-order heuristic and a more sophisticated delta-energy heuristic, which prioritise reactions with lower net energy change. Both are benchmarked against naive breadth-first search across an entire synthesis pipeline and the three individual stages, for seven Chemical Reaction Networks: water formation, methane combustion, photosynthesis, ethylene glycol formation, methyl acetate hydrolysis, an esterification reaction, and fermentation of glucose. Results show that both the Delta-Energy and Max-Bond heuristics consistently reduce the number of candidates explored and total runtime compared to BFS, with Delta-Energy generally outperforming the Max-Bond heuristic. However, neither heuristic guarantees improvement in all cases. These findings suggest that energy-guided search is a promising direction for scalable CRN discovery, with more accurate bond-energy estimation being a natural avenue for future work. ...
This thesis proposes a method that leverages incremental inference to improveinference efficiency in complex probabilistic programs, providing an algorithm-agnostic approach that does not rely on any single sampling method. The methodbuilds on an existing incremental inference framework, which samples from oneprobabilistic program and uses the results to perform inference on a related pro-gram. Our approach uses this framework to sample from simplified programs,thereby bypassing direct inference on complex programs. These simplificationsare constructed by automatically detecting certain program patterns, both struc-tural and parametric, that increase program complexity, and applying correspond-ing changes to simplify them. On a set of input programs, we empirically showwhich patterns increase complexity and demonstrate how the constructed changesachieve more efficient inference than baseline sampling methods. ...
Bachelor thesis (2026) - C.D.M. Preda, S. Dumančić, J.G.H. Cockx
A key problem in program synthesis is that the search space is too big to traverse without a tactic. Budgeted search, specifically the Probe algorithm, is a promising one. Unfortunately Probe is treated as a monolith, instead of a collection of design choices. We identify these choices in the Herb-Probe algorithm and implement it in a budgeted search framework. Through its evaluation we learn more about Probe's design and create a framework for easy budgeted search comparison and hybridization. ...

Letting clingo find subprograms and inserting them into the grammar

Bachelor thesis (2026) - J.P.L. Römer, J.G.H. Cockx, S. Dumančić
Program synthesis automatically generates pro-grams satisfying given specifications through sys-tematic search over candidate programs. This pa-per explores an enhancement to Herb.jl, a pro-gram synthesis framework, by implementing a two-phase approach that alternates between a ”wak-ing” phase that generates candidate programs, anda ”sleeping” phase that identifies frequently occur-ring subprograms and refactors the grammar ac-cordingly. The sleeping phase uses Clingo to dis-cover common patterns, which are incorporatedinto the grammar to enable more efficient synthesis.I investigate whether this iterative refactoring ac-celerates synthesis, and identify types of problemswhere it provides improvements. This work con-tributes to understanding how grammar compres-sion and abstraction discovery can enhance pro-gram synthesis efficiency.

https://github.com/jelleromer/herb-bep ...
Bachelor thesis (2026) - A. Jelev, S. Dumančić, J.G.H. Cockx
Program synthesis is a computationally difficult task. Budgeted search seems to be a relatively unexplored method of performing program synthesis tasks. This paper describes a budgeted program synthesis implementation that makes use of subprograms it discovers during attempts and leverages them in future attempts in hopes of finding an optimal solution faster. The approach performed slightly worse than most of the control synthesis task runs during experiments. However, some specific cases were discovered for which the budgeted synthesis ran faster than the control synthesis task. ...

Online Structural Generalization from Partial Programs

Bachelor thesis (2026) - U. Jacimovic, S. Dumančić, Jesper Cocx
Budgeted program synthesis explores the program space through multiple limited search attempts,but typically discards unsuccessful attempts de-spite producing partially successful programs that pass some examples. We present an approach that leverages these partial solutions by integrating anti-unification into the synthesis loop to extract and reuse structural sketches. These sketches capture shared program structure while abstracting over details, and are used to guide subsequent search. Direct anti-unification over heterogeneous partial programs is often ineffective. We therefore study grouping strategies based on behavioral similarity and root syntactic structure prior to generalization.Evaluated on string-processing benchmarks from the SyGuS PBE-SLIA Track, our results show that grouping-based approaches yield more informative sketches and improve solution quality on a subset of problems, with root-based grouping being particularly effective when early structural decisions dominate the search. ...
Learning from Demonstration allows robot behaviour to be specified by examples rather than manual programming, but demonstrations are often noisy and provide limited structure for efficient search. Framing the problem as program synthesis allows us to search for programs that follow the demonstrated behaviour, but enumerative synthesis suffers from an enormous search space and inefficient exploration. Recent work shows that large language models (LLMs) can guide synthesis by providing probabilistic priors over program structure, though such methods typically ignore execution traces and structural depth. In this thesis, we propose a synthesis framework that combines LLM-guided probabilistic grammars with trace-based feedback and depth-sensitive costs. We derive a depth-aware probabilistic grammar from LLM-generated programs, guide bottom-up enumeration using the induced costs, and dynamically update rule probabilities based on how closely candidate programs follow demonstrated execution traces. The results show that the effectiveness of LLM guidance and trace-based feedback depends on structural depth: while LLM priors mainly improve reachability in depth-agnostic settings, trace-based updates performs better when depthaware costs are used, and their combination yields the strongest gains in search efficiency. ...