Papers for

software optimization teams

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

World reward models choose better programs without predicting execution

Predict the Reward, Not the World: World Reward Models for ML Agents

Abstract: Search-based machine-learning (ML) agents improve a solution by writing candidate programs, executing them, and keeping the best. Execution gives the search reliable feedback, but a single run can take hours, and most runs end in programs the agent discards. Recent agents try to save these runs by letting a large language model act as a world model that predicts how each program would perform. However, a wrong prediction feeds the search false information. We argue that an agent does not need to predict the outcome of execution, only the decision that execution would support. We propose World Reward Models (WRMs), which learn from real execution results to choose directly which candidate will perform better, without predicting any intermediate outcome. We prove that a selector which predicts execution from the same inputs cannot outperform the best direct selector, that predicted outcomes add an error which can make a likelihood-trained world model prefer the worse program on every instance, and that cross-entropy on executed winners drives a WRM toward the optimum. Our WRM, ForeCritic, adapts a 9B typed decision model to 5k executed program pairs. On 12,438 held-out pairs from 26 ML tasks, it picks the better program 79.4% of the time, while general-purpose LLM judges reach 53--62%, and its probabilities are calibrated. Inside AIDE, ML-Master, and ForeAgent, it cuts mean task time by 4.4--7.5 times while keeping their mean scores within 0.01 or raising them.

Wed 28 OctArtificial IntelligenceComputation and Language
The gist
Machine learning agents often try many program options by running them, but this takes a lot of time since most runs are discarded. The authors found that instead of predicting what will happen when a program runs, it’s better to predict which program will do better directly. They created a model called ForeCritic that learns from past results which program is likely superior. This model picks better programs much more often and speeds up the process without losing quality.
Open → 2610.38439v1

Complexity and approximation limits for compressing finite automata

Hardness and Approximation for Compressing Deterministic Finite Automata

Abstract: The delayed deterministic finite automaton ($\text{D}^2\text{FA}$) is a powerful tool for compressing the prohibitively large deterministic finite automata (DFAs) used in modern signature-based deep packet inspection systems. A $\text{D}^2\text{FA}$ augments a DFA with unlabeled default transitions to remove transitions that are similar. This technique works well in practice and has inspired numerous subsequent studies. However, existing approaches do not guarantee a $\text{D}^2\text{FA}$ of optimal size as they restrict the default transitions to form a forest. In this paper, we consider the problem of finding an optimal $\text{D}^2\text{FA}$. We make the key observation that cycles of default transitions can be valid and produce a smaller $\text{D}^2\text{FA}$, provided that for every character in the alphabet, at least one state in the cycle has an outgoing transition labeled by that character. This observation raises fundamental questions concerning the computational complexity of finding an optimal $\text{D}^2\text{FA}$ and the approximation guarantee of the standard (forest-restricted) approach. We answer both questions by showing that it is NP-hard to find an optimal $\text{D}^2\text{FA}$ and by proving that the standard approach provides a $3/2$-approximation to the optimum. To establish NP-hardness, we construct a reduction from set cover using a DFA with gadgets where valid default transition choices correspond to selecting sets. To prove our approximation ratio, we compare the cycles in an optimal solution to a variant where the default transitions form a forest. Finally, we demonstrate that this $3/2$ ratio is tight via a constructed family of DFAs.

Thu 22 OctData Structures and Algorithms
The gist
Large state machines called deterministic finite automata (DFAs) are used to recognize patterns in systems like network security. Compressing these machines saves memory and speeds up processing, but finding the smallest possible compressed version is very hard. The paper shows it’s computationally difficult (NP-hard) to find the smallest compressed DFA with flexible default transitions, and proves that the common way of restricting these transitions to simpler structures gets close but not perfect. This helps us understand the limits of how well these machines can be compressed.
Open → 2610.31273v1

Small model guides large model to find better scientific solutions

Evolving in Thought Space: Training a Small Model at Test Time Unlocks Better Discoveries

Abstract: Open-ended scientific discovery often requires repeatedly proposing and evaluating candidate solutions. LLM-based systems can support this process by generating and refining executable solutions from verifier feedback. Methods such as TTT-Discover use test-time training (TTT) to update the solution-generating LLM from verifier feedback, adapting its generation policy to improve subsequent proposals on the target problem. However, this becomes expensive when reliable execution requires a large model, since training must maintain gradients, optimizer states, and policy statistics while repeatedly generating long, structured outputs. It also complicates credit assignment: outcome-level verifier feedback must jointly evaluate the high-level strategy and its low-level implementation. In this work, we introduce Guidance-TTT, which separates these roles. A compact guidance model is trained at test time to propose high-level strategic changes, while a frozen execution model implements them as complete executable solutions. At each step, the system selects a promising previously discovered solution, proposes a change, executes and verifies it, and updates only the guidance model using an adaptive group-relative RL objective. This concentrates test-time learning on short strategic decisions while retaining the implementation capability of a substantially stronger model without adapting it. Without web access, Guidance-TTT produces strong solutions across four distinct domains: combinatorial optimization (Polyomino Packing), heuristic programming (AHC058), machine learning (Lasso), and GPU kernel optimization (TriMul). Across these tasks, it outperforms the best solutions reported in prior work while remaining competitive with state-of-the-art results on public online leaderboards. Code is available at https://github.com/Human-Agent-Society/reef/tree/guidance-ttt-support.

Mon 5 OctArtificial IntelligenceMachine Learning
The gist
Solving scientific problems often needs trying many ideas and seeing which works best. The authors show that a small AI model can learn at test time to suggest new strategies, while a bigger AI model creates detailed solutions without changing. This way, their method finds better answers more efficiently, without needing to retrain the big model. They tested this approach on several tasks like puzzle packing, programming, machine learning, and GPU optimization, and it matched or beat previous bests.
Open → 2610.06269v1

OptiCom improves optimization by dynamically combining language model tools

OptiCom : A Unified Framework for State-Conditioned Composition in LLM-Driven Optimization

Abstract: Large language models (LLMs) are increasingly deployed to solve complex scientific and practical problems via iterative optimization. However, dynamically coordinating diverse search mechanisms as candidate quality, failure modes, and resource budgets evolve remains a critical open challenge. Targeted empirical diagnostics reveal that mechanism effectiveness is highly state-dependent. Motivated by this, we analyze how individual decisions drive final outcomes, decomposing the expected terminal improvement under a shared budget into cumulative decision opportunities minus cumulative selection losses. Guided by this opportunity-loss theoretical foundation, we propose OptiCom, a unified framework that represents LLM-driven optimizers within a shared configuration space: C=(A,Q,O,E,M,S), corresponding to artifact, query, operator, evaluation, memory, and strategy. Operating within this space, a fast LLM-based Optimization Controller dynamically composes immediate mechanisms through structured Action Packages, while a slower Strategy Adapter refines long-term selection preferences, operator weights, and templates based on accumulated trajectory feedback. Comprehensive evaluations across 32 benchmark groups demonstrate the superiority of framework: OptiCom achieves an average Max-score rank of 1.72 among 14 evaluated configurations, securing the top score in 23 groups. Ultimately, these results highlight the broad applicability and high extensibility of OptiCom as a general-purpose paradigm for robust LLM test-time scaling.

Tue 29 SeptArtificial Intelligence
The gist
Solving hard problems often means trying many methods and picking the best ones as conditions change. The authors show that the success of these methods depends on the current situation. They created OptiCom, a system that uses a big language model to smartly combine different tools during the problem-solving process. Tests on many benchmarks show OptiCom works better than other approaches by adjusting both immediate steps and overall strategies as it learns.
Open → 2609.37221v1

Evaluation of search strategies changes with budget and task

Evolution or Illusion? Rethinking Evaluation in LLM Evolutionary Search

Abstract: LLM-driven evolutionary search finds programs by launching seeds and iterating each one. Papers report a single budget setting, usually one seed run for a fixed number of iterations, and rank methods from that one point. We show this is not enough. We evaluate three evolutionary search strategies on five optimization tasks, commonly used by papers in the genre to report results. We run the analysis over a full grid of seeds and iterations. Our findings suggest that the best way to split a fixed budget between more seeds (width) and more iterations (depth) changes with the strategy, the task, and the total budget. Furthermore, we observe that the ranking of strategies also changes with the budget. On one task the strategy that looks worst at one seed is best at forty seeds. On another the best number of iterations is well below the value common in practice, so extra depth wastes budget that more seeds would turn into score. We provide a measurement protocol that reports the seeds-by-iterations frontier and practical guidance for using it.

Thu 17 SeptComputation and LanguageArtificial IntelligenceMachine Learning
The gist
Finding the best way to search for solutions using large language models depends on how you spend your time on trying different starting points (seeds) and how many times you improve each one (iterations). The authors show that just testing one fixed setup can be misleading because different ways to balance seeds and iterations work better depending on the problem and total time allowed. They tested three search methods on five problems with many settings and found rankings of these methods can change a lot. They suggest a better way to report results by showing performance across different numbers of seeds and iterations.
Open → 2609.19799v1

Hyperspecialized SAT solvers achieve faster problem solving than general ones

The Case for Automated Hyperspecialization: Evidence from SAT

Abstract: The software status quo is to use one system to process many different kinds of inputs. In contrast, we propose hyperspecialization: creating new software that is optimized for a single class of inputs. Hyperspecializing manually is anywhere from expensive to impossible. We conjecture that coding agents make automated hyperspecialization cheap, effective, and safe for problems with measurable performance and checkable output. This paper explores one such problem, SAT solving, by synthesizing hundreds of workload-specific SAT solvers at an average cost of \$37 each. Our specialists outperform their competition-winning, general-purpose cousins by 5$\times$ on average, and by over $10\times$ on a quarter of benchmark families. A general-purpose solver constructed from over a hundred of our prototype hyperspecialists won the SAT track at the 2026 SAT Competition.

Sun 13 SeptSoftware EngineeringLogic in Computer Science
The gist
Most software tries to handle many different problems with one tool. This paper shows that making many tiny tools, each specialized for one specific kind of problem, can work much better. The authors tested this idea on a type of puzzle-solving software called SAT solvers, creating hundreds of special solvers cheaply. These specialized solvers solved their problems about five times faster than general ones, and a combined solver made from many specialists won a big contest in 2026.
Open → 2609.14836v1

Thermodynamical AI method improves evolving code and descriptions

T-GADE: Thermodynamical Generative-AI-Driven Evolution of LLM Artifacts

Abstract: Integrating evolutionary computation and large language models (LLMs) requires control of population diversity as well as generative capability. Among LLM outputs, those with explicit structure, such as a description paired with code, are structured artifacts; we use artifact for short. We propose T-GADE, which evolves these artifacts by extending thermodynamical genetic algorithms through LLM-based genetic operators and artifact-level diversity evaluation. A common free-energy objective supports generational and steady-state updates, with Fermi-type occupancy excluding repeated genotypes and Bose-type occupancy permitting them. We establish exact one-member removal and conditions for recovering the zero-temperature survival rule of Evolution of Heuristics (EoH). On the online bin-packing task studied in the EoH paper, excess measures relative bin-count overhead above a volume lower bound. Training excess uses search instances; transfer excess uses instances with another bin capacity. Generational Bose-type T-GADE at $T=0.003$ reduced median training excess by approximately 29%, from 1.152% to 0.815%, over 20 runs per configuration (two-sided Mann-Whitney $p=0.042$, Cliff's $δ=0.378$). Validation selection among its two highest-ranked final candidates reached the same median transfer excess as EoH, 0.496%. These results demonstrate the utility of thermodynamical selection and validation-based use of retained artifacts.

Thu 10 SeptArtificial IntelligenceNeural and Evolutionary Computing
The gist
Combining evolutionary computing with large language models (LLMs) can create better sets of structured outputs like paired descriptions and code. The authors propose a method called T-GADE that uses a physics-inspired selection process to evolve these paired artifacts while keeping diversity in the population. They tested this approach on a bin-packing problem and showed it reduces waste compared to previous methods. Their results confirm that this thermodynamics-based selection helps find better solutions and reuse good results.
Open → 2609.12286v1

Large language models reason more efficiently using geometric latent states

A*-Thought-V2: Efficient Latent Reasoning via Geometric Dynamics of LLM

Abstract: Chain-of-Thought (CoT) improves the reasoning ability of Large Language Models (LLMs) but incurs substantial computation and context costs. Existing methods either lose intermediate information through hard pruning or lack a principled criterion for continuous compression. We present A*-Thought-V2, a geometric dynamics of LLM guided framework that models CoT as a hidden-state trajectory and replaces hard deletion with an explicit-implicit interleaved latent architecture. After projecting question, step, and solution representations into a 3D PCA space, it measures alignment between each local transition and global question-to-solution direction. Aligned steps remain explicit text, whereas deviating steps are compressed into continuous latent tokens. Directional angles capture both local semantics and reasoning dynamics: small angles indicate direct execution and answer formation, while large angles more frequently involve checking, correction, and branch exploration; their temporal variation reveals exploration, convergence, and refinement stages. To train this architecture, we introduce stepwise embedding forcing, which pools each redundant step into a single latent embedding, and label forcing, which supervises that latent token with a soft multi-modal vocabulary distribution instead of a hard one-hot label. Experiments on Qwen3.5-9B and Qwen3.6-27B across six in-domain and out-of-domain benchmarks show that A*-Thought-V2 improves average accuracy by up to 2.6% while reducing response length by up to half, increasing Accuracy per Computation Unit by 2.29$\times$, and reducing preprocessing and training time by 94.6% and up to 80.3%, respectively. Representation analyses suggest that latent states form a compact region distinct from textual states, while higher entropy at latent-token positions reflects broader soft targets that encourage richer step-level feature learning.

Mon 7 SeptComputation and LanguageArtificial IntelligenceMachine Learning
The gist
Large language models think through problems by writing out steps, but this can take a lot of time and computer power. The paper introduces a way to let the model keep important steps as text while turning less important ones into shorter, hidden summaries by looking at how the steps change direction in a special 3D space. This method helps the model solve problems more accurately and faster, using less computing resources. The authors trained the models to learn good summaries without losing important details.
Open → 2609.07821v1