{"id":"7b7cdca2-1b98-4d97-9619-727cb8f62299","arxiv_id":"2609.05327","paper_version":1,"verdict":"ACCEPT","confidence":"HIGH","novelty_score":7.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":3,"one_line_summary":"An LLM-driven evolutionary framework discovers a variable ordering heuristic for BDD-based reversible circuit synthesis that reduces quantum cost compared to BDD-size-minimizing methods.","lead":"This paper uses an LLM to evolve new heuristics for ordering variables in binary decision diagrams, aiming to reduce the quantum cost of the resulting reversible circuits. The best discovered heuristic, HGA-QE, achieves lower quantum cost than existing methods on a set of benchmark circuits, particularly on circuits not seen during the search.","discovery_kind":"new_method","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"The transfer claim rests on a single split and a search set augmented from the same RevLib corpus; the independent non-RevLib evidence is a few expensive strict wins, not a broad transfer signal.","rationale":"The reader's weakest assumption is representativeness of the 100-function augmented RevLib search set, and I agree that this is the right general area of concern. I sharpen it: the benchmark itself is dominated by the same source corpus, so the only independent transfer evidence is the 52 non-RevLib functions, and HGA-QE's strict wins there are concentrated in a small number of high-runtime instances. Importantly, this concern does not invalidate the results as reported on the fixed benchmark. The paper provides code, detailed per-function tables, paired statistical tests, ablations, and sensitivity analyses; the aggregate 70.9% tie-or-win rate and 13.5% strict-best rate are supported as stated. The proposed cross-suite, runtime-matched evaluation would settle whether the non-RevLib advantage reflects robust transfer or an artifact of a few expensive runs. Because the paper is appropriately hedged about the modest improvement and the competitive non-LLM baseline, I would not change the reader's accept verdict; this is a generalization caveat, not a correctness failure.","tokens_in":38544,"tokens_out":22018,"duration_ms":200125,"concrete_test":"Evaluate HGA-QE against SA and GA on a third suite not represented in search, validation, or benchmark construction, for example randomly generated 14-to-30-input Boolean functions or EPFL combinational benchmarks mapped to reversible form, using a per-function runtime cap equal to the fastest baseline's per-seed time. Recompute tie-or-win and strict-best rates; if HGA-QE does not reproduce the non-RevLib strict-win rate under a matched budget, the transfer claim in the abstract should be softened.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The reusable-heuristic claim is that QCC-aware LLM search discovers a heuristic that transfers: HGA-QE is \"broadly competitive\" and has a \"clearer relative advantage\" on suites drawn outside the discovery data. Section B.3 shows the 100 search/validation functions are augmented RevLib functions, while the benchmark's 96 RevLib circuits share metadata but no exact Boolean functions with them. That leaves the two non-RevLib suites, 48 LGSynth91 and 4 ISCAS85/89 circuits, as the only genuinely out-of-distribution evidence. Table 2 shows HGA-QE's strict wins are 6/96 on RevLib, 13/48 on LGSynth91, and 1/4 on ISCAS85/89. In Table 3, the headline non-RevLib strict wins include c432I, where HGA-QE's best QCC is 10494 versus 11101 for the best baseline but costs 245.19 s per seed versus 1.46-6.20 s, and rot_origL, where HGA-QE wins 23926 versus 24124 but costs 845.19 s per seed versus 25.99 s. Table 12 also shows no significant benefit on the four ISCAS circuits. Because the search set is derived from the same source corpus as 96 of the 148 benchmark functions, the aggregate 70.9% tie-or-win rate is weak evidence that HGA-QE would maintain an advantage on structurally different functions; the \"clearer\" non-RevLib advantage may be driven by a few high-budget runs rather than systematic transfer. This is a limitation rather than a demonstrated error, and the paper's sensitivity analyses address selection, but not this source-corpus overlap combined with runtime concentration.","agreement_with_reader":"partial"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"The paper proposes \\texttt{QuantumEvo}, an LLM-driven evolutionary framework that discovers a BDD variable ordering heuristic (HGA-QE) for reversible circuit synthesis, using downstream quantum cost (QCC) rather than BDD size as the fitness function. The discovered heuristic replaces standard sifting in a genetic algorithm with a targeted local sifting subroutine (MiniSift) and is evaluated on 148 benchmark circuits from RevLib, LGSynth91, and ISCAS85/89. HGA-QE achieves a 70.9% tie-or-win rate against the per-function best baseline and is strictly best on 13.5% of the functions, with clearer relative advantage on suites not used during heuristic discovery.","tokens_in":40062,"tokens_out":2010,"duration_ms":70549,"significance":"If the claimed performance holds, this work introduces a principled way to incorporate domain-specific downstream metrics into heuristic design for BDD-based synthesis, an application area where BDD size has traditionally been the objective. The framework is general and could be adapted to other optimization decisions within computational workflows. However, the practical advantage is modest and concentrated on a small number of expensive instances, and the LLM component is not cleanly necessary for the best discovered heuristic.","major_comments":[{"comment":"The strict-win examples in Table 3, particularly c432I and rot_origL, show runtime per seed of 245 s and 845 s, respectively, which are two to three orders of magnitude higher than the competing baselines. While the paper notes that 'synthesis runtime remains practically manageable', this level of overhead makes HGA-QE impractical for many use cases. The claim of a 'clearer relative advantage' on non-RevLib suites should be accompanied by an explicit discussion of whether those wins are practically meaningful given the runtime cost.","section":"Table 3 and Section 4.2.2"},{"comment":"The non-LLM control (multi-seed QCC, Non-LLM) achieves very similar validation fitness to the full LLM-driven search, and its selected heuristic obtains 66.9% best/total and 5.4% strictly best on the benchmark, compared to 70.9% and 13.5% for the LLM version. The paper states that LLM guidance 'can yield heuristics that transfer more effectively', but the advantage is small and only appears on a few non-RevLib circuits. The claim that LLM guidance is beneficial should be toned down, or the authors should provide a clearer decomposition of where the LLM specifically adds value beyond the non-LLM search space.","section":"Section 4.2.3, Figure 6, and Table 4"},{"comment":"The search set is derived from augmented RevLib functions, and the benchmark set contains 96 RevLib functions that share metadata but no specific Boolean functions. This still means that 96 of the 148 benchmark functions come from the same underlying corpus as the search set. The genuine out-of-distribution evidence is limited to the 48 LGSynth91 and 4 ISCAS85/89 circuits, where HGA-QE achieves 14 strict wins (13 LGSynth, 1 ISCAS). The aggregate 70.9% tie-or-win rate is dominated by RevLib cases. The paper should explicitly quantify how much of the advantage comes from RevLib vs. non-RevLib and discuss whether this materially supports a claim of cross-corpus transfer.","section":"Section B.3 and Discussion"}],"minor_comments":[{"comment":"The 'Bold' annotation in the table header is not defined in the caption or text. If it indicates the best result per row, please state this explicitly.","section":"Table 4"},{"comment":"Typo: 'minimizing the BDD size is a common objective' should be 'minimizing'.","section":"Section 2.2, paragraph 2"},{"comment":"The notation in PartialSift (Algorithm 2) uses both sigma and pi for the current order, which can be confusing. Consider renaming to make clear that pi records the original order before imposing sigma.","section":"Algorithm 1 and 2"},{"comment":"The table caption says 'Correspondence between pseudocode functions and CUDD source', but the column 'Type' uses 'W', 'A', 'N' which are not explained in the caption. Add a legend.","section":"Table 10"},{"comment":"The hardware normalization for BDD2Seq uses a PassMark single-thread ratio derived from the dual Xeon 8375C. Please justify that the synthesis calls are single-threaded and that the normalization factor of 0.714 is appropriate for your Ryzen 9 5900X.","section":"Appendix G"},{"comment":"The figure caption mentions 'g function' but the function is $f_{232}$. Also, the expression for $y$ in the caption is truncated and should be checked for correct LaTeX.","section":"Figure 1 caption"}],"recommendation":"minor_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"This paper is fine but not a slam dunk. What’s actually new: an LLM-driven evolutionary search for BDD variable ordering heuristics that directly optimize quantum circuit cost (QCC) rather than BDD size. The discovered heuristic, HGA-QE, patches the sifting step in a genetic algorithm and shows a 13.5% strict-win rate over six baselines on 148 benchmarks. The experimental setup is thorough — code released, statistical tests, ablation of LLM guidance, multi-family initialization, and QCC fitness. The authors honestly discuss the competitive non-LLM search and the runtime cost on some instances.\n\nSoft spots. The main claim is that HGA-QE \"transfers\" to structurally different functions, but the evidence is weaker than the headline suggests. The search set (100 augmented RevLib functions) shares the same source corpus as 96 of the 148 benchmark functions. The genuinely out-of-distribution suites — LGSynth91 (48 circuits) and ISCAS85/89 (4 circuits) — show a few strict wins, but those wins often come at 10–100× the runtime of baselines (c432I costs 245 s per seed vs 1–6 s; rot_origL costs 845 s vs 26 s). Table 12 shows no significant benefit on the four ISCAS circuits. So the \"clearer relative advantage\" on non-RevLib suites may be driven by high-budget runs on a handful of functions rather than systematic transfer.\n\nSecond, the LLM guidance is not clearly superior: the non-LLM control (predefined component search) achieves competitive or better validation fitness and converges to GA-family heuristics every time. The paper argues that LLM guidance yields better transfer, but the cross-suite advantage is small and expensive. This is consistent with many LLM-for-heuristic papers: the LLM adds variety but the core improvement comes from search and a tailored fitness function.\n\nOverall, this is a solid empirical paper for the reversible-circuits community and for people applying LLMs to heuristic search. The modest improvement is honestly reported. I would send it to peer review, but I would push the authors to either strengthen the transfer evidence (e.g., hold out entire RevLib families, test on more non-RevLib functions, or provide cost-adjusted win rates) or tone down the generalization claims. The paper is worth reading and discussing, but I wouldn't bet my own work on the transfer claim without more data.","headline":"Solid empirical study with a modest improvement; the cross-corpus transfer claim is overstated.","tokens_in":39384,"tokens_out":1273,"duration_ms":11982},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"AI-discovered BDD ordering beats best baseline on 70.9% of circuits.","keywords":["quantum computing","binary decision diagrams","variable ordering","reversible circuit synthesis","LLM-driven algorithm design","evolutionary search","heuristic discovery","quantum cost"],"falsifier":"A concrete falsifier is to take a fresh set of, say, 100 large Boolean functions drawn from sources that share no structural features with the search or benchmark sets (e.g., random arithmetic or cryptographically-inspired networks) and run HGA-QE against the per-function best baseline under the same NCT cost model. If HGA-QE's tie-or-win rate falls to around 50% or its strict-win rate to near 0%, the claimed transferability of the QCC-aware ordering heuristic is falsified; if it remains around 70%, the generalization claim survives.","tokens_in":42253,"feed_emoji":"⚛️","tokens_out":9206,"duration_ms":138804,"temperature":0.7,"pith_summary":"The paper argues that minimizing the size of a binary decision diagram (BDD) is an imperfect proxy for the quantum cost of the reversible circuit synthesized from it, and proposes to search instead for BDD variable-ordering heuristics that optimize that downstream cost directly. It introduces QuantumEvo, an evolutionary search in which a large language model generates and revises executable ordering heuristics, seeded with sifting, genetic algorithm, and simulated annealing orderers, and scored by the average quantum-cost gap over a training set of 100 Boolean functions. The discovered heuristic, HGA-QE, is a hybrid genetic algorithm whose only change is to replace full sifting with a targeted re-sifting of just the BDD levels a candidate ordering actually altered, which increases population diversity while keeping BDD size roughly constant. On 148 benchmark circuits HGA-QE matches or beats the best per-function baseline on 70.9% of functions and is uniquely best on 13.5%, with its clearest relative gains on the two benchmark suites whose structures do not appear in the search data.","feed_headline":"AI-discovered BDD ordering beats best baseline on 70.9% of circuits","feed_subtitle":"LLM-evolved re-sifting step lowers quantum cost on unseen circuits while holding BDD size steady.","key_machinery":"The carrying mechanism is QuantumEvo, an evolutionary loop that treats a heuristic as an executable C function linked to the CUDD BDD library, seeded from three heuristic families (sifting, GA, and SA), mutated and recombined by an LLM under reflective feedback, and evaluated by the average relative QCC gap to the per-instance best classical baseline over a 100-function search set. The fitness metric is the quantum cost of the synthesized NCT circuit, where a gate with $k$ control bits contributes $2k^2 - 2k + 1$. The discovered object, HGA-QE, modifies the genetic-algorithm loop so that after producing a candidate order, it calls PartialSift, which imposes the candidate permutation and then MiniSift, which locally sifts only the variable levels that the candidate actually moved. MiniSift's effect is to raise the diversity of candidate orderings (unique fraction +11.2%, normalized Hamming distance +5.9%) while leaving BDD size essentially unchanged, which the diagnostic analysis connects to fewer child-node line preservation cases and fewer Toffoli gates and controls during circuit synthesis. This mechanism is what enables the search to improve QCC without first improving the BDD-size proxy.","core_discovery":"QuantumEvo discovers that a BDD variable-ordering heuristic can meaningfully reduce quantum cost by replacing a BDD-size-oriented reordering step with a cost-blind but diversity-inducing targeted sifting step, while keeping the outer genetic algorithm's size-based selection unchanged. The central empirical pair of observations is: BDD size and QCC are strongly correlated (Spearman $\\rho = 0.989$) yet imperfectly aligned, with a mean absolute residual of 79.3 and 35% of the functions admitting an ordering where a smaller BDD yields a higher QCC; and the found heuristic HGA-QE, by re-sifting only the levels changed by a candidate permutation (MiniSift), produces more diverse orderings that synthesize to fewer Toffoli gates and controls without shrinking the BDD. Across 148 benchmark functions, HGA-QE achieves a 70.9% tie-or-win rate against the per-function best baseline, is strictly best on 13.5% of functions, and after Holm correction significantly outperforms every baseline in per-circuit QCC. The paper interprets these results as evidence that optimizing the downstream objective, rather than the BDD-size proxy, transfers to unseen functions, while explicitly noting that on the RevLib subset the advantage over simulated annealing and the genetic algorithm is not statistically significant.","pith_inferences":["A testable extension would run the same QuantumEvo pipeline with a search set drawn from LGSynth91 and ISCAS85/89 and check whether the discovered heuristic improves the strict-win rate on RevLib; a symmetric improvement would strengthen the transfer story.","MiniSift's mechanism, re-sifting only the levels a variation operator changed, is a general diversity-preserving refinement that could be ported to any population-based BDD reorderer without LLM involvement; the paper does not test that standalone transfer.","The FPGA experiment suggests that the correct objective matters beyond quantum cost: the same ordering heuristic can lead for one downstream metric and lose for another, so the QuantumEvo framework should be re-run with each target metric as fitness.","Given that the non-LLM search matches the LLM-guided search in validation fitness but transfers worse, a hybrid that invokes the LLM only when predefined operators stagnate could reduce offline cost without sacrificing the generalization benefit."],"forward_implications":["HGA-QE can be deployed as a fixed compiled CUDD ordering routine requiring no LLM calls at runtime, so the discovery cost is one-time and the online cost is only BDD reordering plus synthesis.","The evidence that 35% of the searched functions admit an ordering with a smaller BDD but higher QCC implies that proxy-based ordering search leaves recoverable quantum cost on the table, and that QCC-aware fitness is a more direct target.","Because the advantage is clearest on LGSynth91 and ISCAS85/89, the result suggests that LLM-driven heuristic search can generalize beyond the distribution of the training circuits, at least when the search set is diverse.","The paper's quality-runtime Pareto analysis indicates that HGA-QE reaches a trade-off comparable to the learning-based BDD2Seq baseline after two seeds, and then improves further with more seeds at the cost of cumulative runtime.","The positive result on the QCC objective does not transfer automatically to other downstream objectives, as the paper's own FPGA-mapping experiment shows HGA-QE losing to SA and GA on four-input LUT counts despite winning on multiplexer-network size."],"supporting_citations":[{"why":"Supplies the BDD-based synthesis procedure that maps each non-terminal BDD node to a cascade of reversible gates; this fixed procedure S converts an ordering into a QCC value for every candidate.","marker":"Wille et al. (2009)"},{"why":"Defines sifting, the standard dynamic variable-ordering method that seeds one heuristic family and whose full sifting step HGA-QE replaces with targeted MiniSift.","marker":"Rudell (1993)"},{"why":"Provides the genetic algorithm for BDD variable ordering whose population, PMX crossover, and size-based selection HGA-QE inherits and modifies.","marker":"Drechsler et al. (1996)"},{"why":"Provides the simulated-annealing seed family used to initialize the search and supplies one of the classical baselines.","marker":"Bollig et al. (1995)"},{"why":"Supplies the reflective evolutionary heuristic-search paradigm that QuantumEvo adapts for BDD variable ordering.","marker":"Ye et al. (2024)"},{"why":"Provides the learning-based BDD2Seq baseline whose QCC values are used in comparison and whose benchmark set the 148-function evaluation set is designed to match.","marker":"Miao et al. (2026)"},{"why":"Defines the quantum cost model $2k^2 - 2k + 1$ for a gate with $k$ controls, which is the fitness currency for all methods.","marker":"Szyprowski & Kerntopf (2013)"},{"why":"Provides the CUDD library with the reordering API and built-in sifting/GA/SA routines that serve both as the substrate for generated heuristics and as classical baselines.","marker":"Somenzi (2023)"}],"fun_headline_variants":["LLM-evolved BDD heuristic achieves 70.9% tie-or-win over baseline","QuantumEvo: AI discovers BDD ordering that lowers Toffoli gates","70.9% of circuits improved by LLM-discovered BDD ordering","HGA-QE: LLM-evolved sifting step reduces quantum circuit cost","LLM-driven BDD ordering heuristic ties or beats baseline 70.9%"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The load-bearing premise is that the 100 augmented RevLib functions used to evaluate heuristics during evolution accurately represent the structural variety of the Boolean functions the discovered heuristic will later be applied to, so that optimizing average QCC on those 100 transfers to unseen circuits.","fun_headline_variants_meta":{"raw":{"variants":["LLM-evolved BDD heuristic achieves 70.9% tie-or-win over baseline","QuantumEvo: AI discovers BDD ordering that lowers Toffoli gates","70.9% of circuits improved by LLM-discovered BDD ordering","HGA-QE: LLM-evolved sifting step reduces quantum circuit cost","LLM-driven BDD ordering heuristic ties or beats baseline 70.9%"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000515,"raw_usage":{"cost":0.0005145868,"is_byok":false,"cost_details":{"upstream_inference_cost":0.0005145868,"upstream_inference_prompt_cost":0.0001160708,"upstream_inference_completions_cost":0.000398516},"total_tokens":2558,"prompt_tokens":1071,"completion_tokens":1487,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":256,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":1380}},"tokens_in":1071,"tokens_out":1487,"cost_source":"openrouter_usage","duration_ms":14298,"temperature":1.0,"reasoning_tokens":1380,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-09-08T17:09:44.853055+00:00","model_set":{"reader":"deepseek/deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.1-alltime-deepseek-or-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"A concrete falsifier is to take a fresh set of, say, 100 large Boolean functions drawn from sources that share no structural features with the search or benchmark sets (e.g., random arithmetic or cryptographically-inspired networks) and run HGA-QE against the per-function best baseline under the same NCT cost model. If HGA-QE's tie-or-win rate falls to around 50% or its strict-win rate to near 0%, the claimed transferability of the QCC-aware ordering heuristic is falsified; if it remains around 70%, the generalization claim survives.","supporting_citations":[{"cited_title":"Low quantum cost realization of generalized peres and toffoli gates with multiple-control signals","cited_arxiv_id":null,"evidence_quote":"Defines the quantum cost model $2k^2 - 2k + 1$ for a gate with $k$ controls, which is the fitness currency for all methods."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}