Skip to content

ICML papers

Search ICML papers by title, author, or track. Open a paper’s abstract to read more.

Explore the ICML analysis

Search results

661–680 of 1,024

  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Optimizing the Cost-Quality Tradeoff of Agentic Theorem Provers in Lean

    Kári Rögnvaldsson, Chenhao Sun, Jasper Dekoninck, Martin Vechev

    Abstract

    Large language models (LLMs) are increasingly used in workflows for generating formal proofs in Lean. These workflows often decompose problems into smaller lemmas, sample many proof attempts, and use compiler feedback to guide search. However, they can be prohibitively expensive, often spending substantial compute on attempts that ultimately fail. In this work, we address this problem with an action routing agent that consists of a data plane and a control plane. The data plane generates natural-language lemma decompositions, formalizes them in Lean, and samples proof attempts for the resulting theorem and lemma targets. The control plane observes previous failed Lean attempts, estimates both the likelihood of success and the cost of another attempt, and decides whether to continue proving the current target or restart from a new breakdown. On a subset of PutnamBench, our agent decreases the cost by 28.9% over a fixed-step baseline on average, preserving performance while using substantially less compute. These results suggest that failed Lean trajectories provide actionable signals for cost-aware resource allocation in agentic theorem proving.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    From Table to Cell: Attention for Better Reasoning with TABALIGN

    Tung Sum Thomas Kwok, Zeyong Zhang, Xinyu Wang, Chunhe Wang, Xiaofeng Lin, Hanwei Wu, Lei Ding, Guang Cheng, Zhijiang Guo

    Abstract

    Multi-step LLM reasoning over structured tables fails because planning and execution share no explicit cell-grounding contract. Existing methods constrain the planner to a left-to-right factorization at odds with table permutation invariance, and score intermediate states by generated content alone, overlooking cell grounding. We conduct a pilot study showing that diffusion language models (DLMs) produce more human-aligned and permutation-stable cell attention on tables than autoregressive models, with a 40.2% median reduction in attention-AUROC variability under row reordering. Motivated by this, we propose TABALIGN, a planned table reasoning framework that operationalizes the contract. TABALIGN pairs a masked DLM planner, whose bidirectional denoising emits plan steps as binary cell masks, with TABATTN, a lightweight verifier trained on 1,600 human-verified attention standards to score each step by its attention overlap with the plan-designated mask. Across eight benchmarks covering table question answering and fact verification, TABALIGN improves average accuracy by 15.76 percentage points over the strongest open-source baseline at comparable 8B-class scale, with a matched-backbone ablation attributing 2.87 percentage points of this gain to the DLM planner over an AR planner on a fixed reasoner. Cleaner DLM plans also accelerate downstream reasoning execution by 44.64%.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Agentic Numeric Optimization for Nutrition Planning

    Kritik Soman

    Abstract

    We introduce Agentic Numeric Optimization (ANO), a framework for nutrition planning that combines a Large Language Model (LLM) orchestrator with a numeric optimizer for meal selection and quantity assignment. Given a free-text user profile query, ANO computes dietary targets, retrieves matching ingredients from the OpenNutrition dataset, builds a structured diet specification, and calls the optimizer to assign ingredient quantities. To measure the benefit of solver-backed planning, we compare ANO against both a Baseline Agent (BA), which shares the same target-computation and retrieval tools but relies on iterative reasoning guided by a nutrient calculator, and a deterministic No-LLM baseline that uses fixed templates and heuristics with the same optimizer. We evaluate all three planners on synthetically generated benchmarks based on the Canada Health Dietary Reference Intakes (DRI) and MyFitnessPal (MFP) style nutrition targets. Relative to BA, ANO substantially improves calorie adherence: on DRI, the share of profiles within 10 kcal improves from 9.0\% to 79.5\%, while on MFP it improves from 3.1\% to 78.0\%; the share above ~100 kcal falls from 74.8\% to 6.8\% on DRI and from 79.7\% to 6.8\% on MFP. While the No-LLM baseline is numerically stronger on several bins, and BA is stronger on palatability, ANO is competitive on cuisine alignment.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    MathlibPR: Pull Request Merge-Readiness Benchmark for Formal Mathematical Libraries

    Zixuan Xie, Xinyu Liu, Shangtong Zhang

    Abstract

    The ecosystem of Lean and Mathlib has become the de facto standard for large language model (LLM) assisted formal reasoning with remarkable successes in recent years. Those successes, however, only consume Mathlib as an essential dependency but do not directly contribute to it. In the meantime, the growth of Mathlib has recently been bottlenecked by the review process, which requires human reviewers to judge whether proposed pull requests (PRs) follow the Mathlib's conventions and are worth integrating as part of a shared mathematical infrastructure. This leads to our central question: can LLMs help review Mathlib PRs? To this end, we introduce MathlibPR, a benchmark built from real Mathlib4 PR histories. We further propose a staged evaluation protocol and use it to evaluate both LLM models (e.g., DeepSeek, Qwen, Goedel, and Kimina) and LLM agents (e.g., Codex and Claude Code). Surprisingly, both LLM models and LLM agents struggle to distinguish merge-ready PRs from build-passing PRs that were revised or never merged. By turning Mathlib PR histories into a supervised signal, MathlibPR provides a step toward reviewer assistants and reward models that could help evaluate PRs and steer LLMs toward producing merge-ready Mathlib contributions.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Counterexample-Carrying FormalRx: Lean-Checkable Witnesses for Autoformalization Misalignment

    Joy Z. Yang, Socrates Osorio

    Abstract

    Autoformalization systems can write Lean statements that compile but mistranslate the original mathematics. Existing diagnostic benchmarks like FormalRx ask the model to label and repair the mismatch, but a correction alone does not prove that the candidate and intended formalizations differ in meaning. Lean checks the proposition it sees, not whether the English was captured. We propose Counterexample-Carrying FormalRx (FormalRx-CC): every misalignment diagnosis must be accompanied by a small Lean-checkable artifact that mechanically separates the candidate from the intended formalization. We give a task definition, a seven-family witness taxonomy, an adversarial verification protocol that rejects sorry, admit, and escape hatches, and a 204-example executable artifact with completed 204-example runs on GPT-4.1-mini, GPT-4.1, and Claude Haiku plus one-pass Lean-feedback repair. The results expose a distinction that single-number scoring hides. Lean-feedback repair lifts raw Lean acceptance by 23-61% across the three models, but the joint metric that additionally requires the correct semantic direction is only 13/204 in the strict GPT-4.1-mini funnel: repair fixes proof engineering, not semantic understanding. In the GPT-4.1-mini comparison, full mode passes Lean more often than gold-target mode: 33/204 raw and 48/204 after one repair pass, versus 21/204 in gold mode, suggesting that raw Lean success can conflate witness construction with self-target selection.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    When LLMs Solve ODEs: Failure Modes, Conservation Blind Spots, and Ground-Truth-Free Auditing

    Ahmad A. Rushdi

    Abstract

    When frontier LLMs produce numerical solutions for dynamical systems, their errors are silent: a trajectory can look plausible while violating conservation laws by orders of magnitude. We identify three distinct failure regimes: catastrophic divergence, trivial-invariant collapse, and phase drift, and show that each demands a different verification strategy. We propose two ground-truth-free audit signals: the conservation residual R, which measures invariant drift, and step consistency S, which checks whether the trajectory locally satisfies the governing ODE. R catches catastrophic failures but is structurally blind to phase drift and can be trivially satisfied; the complementary signal S closes these gaps. Within-model, S rank-orders true trajectory error with Spearman $ \rho \in [0.77,0.99]$ across all six frontier LLMs, and leave-one-task-out analysis confirms robustness ($ \rho \in [0.81,0.90]$). We further document that models split into deterministic and stochastic numerical reasoners---the latter producing over $1{,}000\times$ error variation across identical prompts---and that prompting models to preserve invariants triggers Goodhart-style evaluation gaming: some models learn to emit invariant-preserving but dynamically incorrect trajectories.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Evaluating SageMath-Augmented LLM Agents for Computational and Experimental Mathematics

    Pavel Snopov, German Magai

    Abstract

    Recent advances in AI for Mathematics have focused largely on autoformalization and theorem proving, leaving the role of Computer Algebra Systems (CAS) in agentic LLM workflows underexplored. We propose a ReAct-style agentic setup that combines LLM reasoning with verifiable feedback from SageMath, together with Context7 for the up-to-date documentation. We evaluate this agentic setup across frontier models for solving research-level mathematical problems from the RealMath benchmark in a setting that emulates a computational-mathematics research loop. We also propose a refinement to the RealMath benchmark by introducing multi-step post-processing procedure and multi-stage validation pipeline, both of which increase the quality and reliability of the extracted problem set. Our experiments reveal substantial performance gains from SageMath access across all evaluated models with OpenAI's flagship model, GPT-5.5, achieving the higher solve rate of $75.2\%$ and the lowest token usage among tool-enabled configurations. Our findings suggest that CAS-augmented agents represent a promising direction for assisting mathematicians in computational exploration, and we believe that this work is a step towards automated conjecture discovery.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Agentic Separation Logic Specification Synthesis

    Tarun Suresh, David korczynski, Julien Vanegue

    Abstract

    Specification synthesis, the task of automatically inferring formal specifications from program implementations and natural language, is important for refactoring, transpilation, optimization, and verification, yet remains an open challenge for large C++ repositories. Existing LLM-based approaches do not simultaneously scale to such repositories, produce specifications expressive enough to capture systems code features like dynamic memory and heap-allocated data structures, and systematically validate those specifications to rule out incorrect ones. We present Spec-Agent, an agentic system for synthesizing expressive, well-validated specifications across large C++ codebases. Spec-Agent targets a ladder of specification languages: propositional, first-order, propositional separation, and first-order separation logic. For each function, Spec-Agent uses static analysis and runtime heap tracing to select the target specification language, generalizes existing functional tests into fuzz harnesses, and iteratively refines LLM-generated candidates with counterexample-guided feedback. We evaluate Spec-Agent on open-source C++ codebases comprising millions of lines of code. Spec-Agent synthesizes valid specs for 85% of functions, with no false positives observed under fuzzing and expert validation, outperforming Claude Code Opus 4.6 at 10x lower token cost.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    SABER-Math: Automated Benchmark for Information Retrieval Evaluation in Mathematics

    Nikolay Georgiev, Maria Drencheva, Kseniia Ibragimova, Ivo Petrov, Dimitar I. Dimitrov, Martin Vechev

    Abstract

    As agentic AI systems tackle more complex mathematical tasks, they increasingly rely on information retrieval (IR) to search problem databases, theorem libraries, and educational resources. However, choosing the right retriever remains difficult, as it is infeasible to directly isolate its effect on downstream performance. On the other hand, existing retrieval-specific benchmarks often fail to capture fine-grained mathematical relevance, penalizing relevant documents. We address this gap by introducing SABER-Math, the first fully automated benchmark for evaluating mathematical IR without expert annotation. Starting from 283K high-school-level math problems with solutions, SABER-Math builds challenging reranking tasks in three steps: (i) first, LLMs extract concise solution summaries and mathematical topics for each problem; (ii) then, per-query relevant documents are discovered using ontology topic-based and lexical solutions-summary-based similarities, and (iii) finally, a Swiss-style LLM preference tournament produces fine-grained relevance ratings for the documents. We evaluate lexical retrievers, specialized mathematical retrieval systems, and recent embedding models. We find that while modern embedding models substantially outperform classical and math-specific baselines, even the strongest systems struggle in symbol-heavy domains like Algebra and Calculus. Importantly, we show that general-purpose IR benchmarks such as MTEB do not reliably predict mathematical performance, especially for recent embedding models, highlighting the need for math-specific retrieval benchmarks.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Evolutionary Multi-Task Optimization for LLM-Guided Discovery

    Halil Alperen Gozeten, Xuechen Zhang, Muhammed Emrullah Ildiz, Ege Onur Taga, Tara Javidi, Samet Oymak

    Abstract

    Recent LLM-guided evolutionary search methods have shown that iterative program mutation can discover strong algorithms, but they typically optimize each task independently, even when related tasks share reusable structure. We introduce Evolutionary Multi-Task Optimization (EMO) for LLM-guided program discovery, and propose EMO-STA (Shared-Then-Adapt), a two-stage framework that first evolves a shared archive of executable programs across a task family and then adapts selected shared candidates to each target task. Within EMO-STA, we explore multiple adaptation strategies, including warm-starting from the shared archive, adapting the best average shared program, and adapting the shared program that performs best on each target task. Across eight task families spanning continuous optimization, geometric construction, modeling, and algorithmic optimization, EMO-STA improves over matched-compute single-task evolution in most settings, with STA Best-Local providing the strongest in-distribution adaptation and STA Best-Shared yielding robust transfer to unseen tasks. Compute-allocation experiments show that allocating a substantial fraction of the family-level budget to shared evolution is consistently beneficial, with roughly balanced shared and adaptation budgets often being optimal. Beyond compute efficiency, we show that shared evolution can mitigate overfitting in low-evidence settings (e.g. few training data), including ARC tasks and time-series feature engineering, by favoring programs that generalize across all tasks rather than exploiting task-specific brittle artifacts.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Foundry: Host-Owned Trust and Memory for Long-Horizon Agent Swarms

    Monishwaran Maheswaran, Leon Lakhani, Shu Liu, Yuqing Jian, Tianyi Zhang, Kurt Keutzer, James Zou, Aditya Akella, Ben Athiwaratkun, Chenfeng Xu

    Abstract

    LLM-agent swarms can turn frontier models into discovery engines but fail when agents own the two states that determine progress: trusted evaluation and persistent memory. Without an external evaluator, agents reward-hack local reports and claim improvements that do not survive independent checking; without shared memory, agents waste budget re-discovering already-falsified hypotheses. We introduce Foundry, a host-coordinated control plane whose principle is: agents propose, while the host verifies and remembers. The host owns an authoritative evaluator, an established-facts registry that compounds evidence across independent agents, and a hypervisor $\rightarrow$ orchestrator $\rightarrow$ solver hierarchy that routes work under token budgets. Across combinatorial mathematics, GPU-kernel engineering, and computational biology, Foundry instantiates without per-domain changes: it tightens the Erdos minimum-overlap upper bound, achieves the fastest GPUMode Trimul kernel runtime on H100, and matches the state-of-the-art on the OpenProblems single-cell denoising benchmark. These results suggest that progress in agentic discovery depends not only on stronger agents, but on the system boundary that separates untrusted proposal generation from trusted verification and memory.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Mixture of Graders: Adaptive Strategy Routing for LLM-Based Mathematical Evaluation

    Eric Chen, Aryan Gulati, Brando Miranda, Zeyu Tang, Sanmi Koyejo

    Abstract

    LLM judges are promising for evaluating reasoned mathematical solutions, yet their scores remain prompt-sensitive and unstable. We evaluate 13 grading strategies on Putnam-AXIOM-Grading, a new 500-problem benchmark with 1,000 mathematically annotated candidate solutions, and IMO-GradingBench. The strategies span direct scoring, structured chain-of-thought, and multi-call pipelines such as G-Eval, Chain-of-Verification, and Debate. No fixed strategy dominates, and the strongest single default, comparative prompting, wins only on average. In hindsight, the best strategy per problem differs from the best fixed default in 76% of cases, revealing substantial oracle headroom for adaptive selection. Motivated by this, we train Mixture of Graders, a ModernBERT-large strategy router, using the fixed-strategy score matrix and human labels, then deploy it using only problem and reference features. On Putnam-AXIOM-Grading, MoG improves over the best fixed strategy across all open-weight judge models, with relative MSE reductions up to 27.8% across both Qwen2.5-72B-Math-Instruct and Mistral-Large-Instruct-2411 student responses. It also generalizes across students, with a router trained on Qwen responses outperforming the best fixed default on Mistral responses. The prescription for difficult mathematical grading is not a single best prompt, but a learned mixture over grader strategies. Our code is available at https://anonymous.4open.science/r/mixture-of-graders-8327/README.md.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Goedel-Architect: Streamlining Formal Theorem Proving with Blueprint Generation and Refinement

    Jui-Hui Chung, Jack Cai, Zihao Li, Qishuo Yin, Rohit Agarwal, Simon Park, Rodrigo Porto, Narutatsu Ri, Ziran Yang, Shange Tang, Xingyu Dang, Hongzhou Lin, Mengdi Wang, Danqi Chen, Chi Jin, Liam Fowl, Sanjeev Arora

    Abstract

    We introduce Goedel-Architect, an agentic framework for formal theorem proving in Lean 4 centered on blueprint generation and refinement. A blueprint is a dependency graph of definitions and lemmas that builds up to the main theorem. First, Goedel-Architect generates a blueprint of formally stated definitions and lemmas, along with declared dependencies. This blueprint is optionally guided by a natural language proof. Then, a tool-equipped Lean prover component closes each open lemma node in parallel using relevant dependencies. Failed lemmas in turn drive refinement of the global blueprint. This strategy contrasts with other mainstream approaches which use recursive lemma decomposition, and can inefficiently loop on dead-end strategies. Using the open-weight DeepSeek-V4-Flash (284B-A13B) as the backbone, Goedel-Architect attains $99.2\%$ pass@$1$ on MiniF2F-test and $75.6\%$ pass@$1$ on PutnamBench. With an optional natural-language proof seeding the initial blueprint on the harder problems, we additionally close the remaining two MiniF2F-test problems (reaching 100%), lift PutnamBench to 88.8% (597/672), and solve 4/6 on IMO 2025, 11/12 on Putnam 2025, and 3/6 on USAMO 2026. This represents state-of-the-art performance for an open-source pipeline at a price point up to 500× less than comparable open-source pipelines.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    On Compositional Learning Behaviours in Formal Mathematics

    Kevin Y. Denamganaï

    Abstract

    Self-evolving scientific agents capable of conquering the hard tail of formal mathematics require Compositional Learning Behaviours (CLBs)---the capacity to ground and recombine novel symbolic structures in context, beyond mere recombination of prelearned atoms. We propose S2B-LM, an adaptation of the CLB-evaluating Symbolic Behaviour Benchmark that removes numerical processing as a confound and adds chain-of-thought scaffolding to elicit rather than merely probe latent CLB competency. Cross-evaluating ten Lean~4 theorem provers on CLB competency in S2B-LM and miniF2F whole-proof performance, we find correlational and causal evidence of our claim: First, a necessary-condition analysis via quadrant test yields $p=0.004$, with model scale being ruled out as a confound. Second, extracting a CLB-encoding activation direction from *DeepSeek-Prover-V2-7B* using S2B-LM traces via Contrastive Activation Addition and applying it during miniF2F whole-proof generation on the AIME subset, CLB suppression collapses solve rate from $32.3\%$ to $2.9\%$, without loss of coherence, while suppressing a random activation direction of equal magnitude leaves it at $31.9\%$. Together, these results show that CLB competency is **necessary but not sufficient** for the hard tail of formal mathematical verification.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    LeanFlow: A Case Study in Workflow-Driven Lean Autoformalization

    Lazar Milikic, Simon Guilloud, Khánh Nguyễn, Viktor Kunčak

    Abstract

    We present and evaluate \method, an LLM agent system specialized for translating mathematical papers into buildable \lean projects. Recent verifier-in-the-loop systems show that large formal artifacts can be produced, but it remains unclear which runtime mechanisms affect completion, auditability, or efficiency in document-to-project formalization. We study this question through case studies on two previously unformalized mathematical papers in number theory and measure theory, using model, proof-workflow, and toolset ablations with \kimi and \gpt; we report task outcome, API calls, input tokens, and output tokens. With \kimi, the full workflow completes both document-level projects within the 2000-call budget, while no-queue variants reach the budget limit; with \gpt, all document-level variants complete, and the full workflow has the lowest or tied-lowest input-token cost on both sources. As complementary calibration, \method reaches 75.7\% BEq+ on the PFR slice of RLM25 and solves all five ICML 2026 AI for Math TCS challenge projects in our \gpt runs.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Formalization of QFT: Osterwalder–Schrader Axioms for the Free Field in Lean 4

    Anna Mei, Michael R Douglas

    Abstract

    A foundational result in constructive quantum field theory is the construction of the free bosonic field on four-dimensional Euclidean spacetime and the verification that it satisfies the Glimm-Jaffe axioms, a variant of the Osterwalder-Schrader axioms. We present a complete formalization of this result in the Lean 4 interactive theorem prover. The project serves as a proof of concept that extended arguments in mathematical physics can be translated into machine-checked proofs using currently available formalization tools and AI assistance. We introduce the relevant background in interactive theorem proving and constructive quantum field theory, describe the structure of the formalization, and discuss the design choices and methods that made the project feasible. Because the work was carried out during a period of rapid change in AI coding capabilities, from July 2025 to March 2026, we also reflect on how these changes affected the formalization process. We conclude by discussing practical strategies for AI-assisted formalization and its possible role in the future of theoretical physics.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    EMA Policy Gradient: Taming Reinforcement Learning for LLMs with EMA Anchor and Top-k KL

    Lunjun Zhang, Jimmy Ba

    Abstract

    Reinforcement Learning (RL) has enabled Large Language Models (LLMs) to acquire increasingly complex reasoning and agentic behaviors. In this work, we propose two simple techniques to improve policy gradient algorithms for LLMs. First, we replace the fixed anchor policy during RL with an Exponential Moving Average (EMA), similar to a target network in deep Q-learning. Second, we introduce Top-k KL estimator, which allows for flexible interpolation between exact KL and sampled KL. We derive the stability conditions for using EMA anchor; moreover, we show that our Top-k KL estimator yields both unbiased KL values and unbiased gradients at any k, while bringing the benefits of exact KL. When combined with GRPO, the two techniques (EMA-PG) lead to a significant performance boost. On math reasoning, it allows R1-distilled Qwen-1.5B to reach 53.9% on OlympiadBench compared to 50.8% by GRPO. On agentic RL domains, with Qwen-3B base, EMA-PG improves GRPO by an average of 33.3% across 7 datasets of Q&A with search engines, including 29.7% $\rightarrow$ 44.1% on HotpotQA, 27.4% $\rightarrow$ 40.1% on 2WikiMultiHopQA. Overall, we show that EMA-PG is a simple, principled, and powerful approach to scaling RL for LLMs.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Peano Player: Interactive Theorem Proving as a Constrained MDP

    Matthew Retchin, Kianté Brantley, Nada Amin

    Abstract

    Reinforcement learning with verifiable rewards is frequently used for neural theorem proving and typically trains on a single binary signal indicating whether a complete generated proof verifies. However, proof assistants are interactive systems: after each tactic, they return an updated proof state and report whether the tactic failed. Prior methods that use tactic-failure signals treat failure as a minor penalty and allow generation to continue after a tactic fails. We introduce Peano Player, a tactic-level theorem prover formulated as a constrained Markov decision process, where the agent observes the verifier-produced proof state, receives reward for closing proofs, and incurs a terminal cost of equal magnitude for failing a tactic. We evaluate in a controlled equational-theory environment over the Peano numbers that generates unlimited provable theorems at controlled difficulty. An ablation over proof-state observation and tactic-failure cost shows that each improves solve rate independently, and their combination more than quadruples overall solve rate relative to the strongest baseline, with a tenfold difference at the greatest difficulty level. These results suggest that theorem-proving agents would benefit from learning from errors during interaction---not only from whether a completed proof verifies---because any tactic-level proof assistant exposes the same per-step signals.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Adaptive Generate-Rank-Verify: Inference-Time Search with Costly Verification

    Shaddin Dughmi, Mahdi Haghifam, Yusuf Kalayci

    Abstract

    Many inference-time language-model pipelines combine a cheap reward signal with an expensive verifier, such as exact answer checking in mathematical reasoning or hidden-test execution in code generation. We formalize this setting using a learning-theoretic lens as generative active search: a cost-sensitive first-positive search problem in which a policy adaptively samples candidates from an unknown distribution, observes cheap scores, and pays for verifier labels until it finds a positive example. For a fixed prompt, the generator and reward model induce two unknown objects: a distribution over reward scores and a score-conditioned success function. When these quantities are known, we characterize the distribution-aware optimal policy using a dynamic programming approach. In the realistic and practical setting where both the score distribution and success function are unknown, we propose ADAP, a shellwise adaptive generate-rank-verify algorithm that progressively increases the number of sampled responses and top-ranked verifications. Under the monotonicity assumption that higher reward scores are no less likely to pass verification, we show that ADAP achieves expected cost within a constant factor of the distribution-aware optimum. We complement this result with learning-theoretic lower bounds, based on a centered star number, showing that structural assumptions on the score– label relationship are necessary. Experiments on mathematical reasoning and competitive programming validate the predicted advantage over both fixed non-adaptive policies and difficulty-adaptive baselines.

    Abstract source
  • ICML · Workshop · 3rd AI for Math Workshop: Toward Self-Evolving Scientific Agents

    Which Regular Languages Admit Provably Correct RNN Implementations? A Lattice-Theoretic Characterisation via Forward-Invariant Sets

    Zacharie Bugaud

    Abstract

    We study which regular languages can be recognised by recurrent neural networks with a forward-invariant certificate of length generalisation. An Elman RNN defines a switched dynamical system $h_{t+1} = \tanh(W_{hh} h_t + u_{x_t})$; we prove that length generalisation under such a certificate is equivalent to the existence of a forward-invariant positive-margin set (Theorem 2.1, if-and-only-if). We then establish a precise connection to automata theory: the class of regular languages admitting forward-invariant RNN implementations is contained within the class of absorbing-state languages, those whose minimal DFA has an accept state $q_a$ with $\delta(q_a, \sigma) = q_a$ for all $\sigma \in \Sigma$. This class is closed under union and intersection (but not complement in general). Non-absorbing languages (modular counting, last-$k$, alternating patterns) provably cannot admit forward-invariant sets of this form, and empirically show near-zero (0--7%) success with our training protocol (vs. 63--100% baseline). We verify the characterisation computationally: Kleene iteration on the complete lattice of axis-aligned boxes converges in $\sim 14$ iterations ($\rho_\mathcal{T} \approx 0.12$), and CQLF certificates via LMI verify 109/110 models up to $H = 70$. Across 42 absorbing patterns and 12 non-absorbing patterns: 350/350 vs $\leq 7$%, a near-perfect separation predicted by the lattice-theoretic characterisation. The gap formula $\mathrm{gap}_d \approx \operatorname{sech}^2(\bar{z}_d) \cdot |\Delta z_d|$ connects the automaton structure to an analytic sufficient condition ($r = +0.743$, F1 $= 0.872$). The result is a one-directional characterisation of the expressibility-verifiability boundary for recurrent networks on formal languages: necessity is proven, while the converse is supported empirically across the 42 absorbing patterns we tested.

    Abstract source