ICML papers
Search ICML papers by title, author, or track. Open a paper’s abstract to read more.
Explore the ICML analysisSearch results
341–360 of 508
- ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents
Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimization
He Du, Qiming Ge, Jiakai Hu, Aijun Yang, Zheng Cai, Zixian Huang, Sheng Yuan, QinXiu Cheng, XIE Xinchen, Yicheng Chen, Yining Li, Jiaxing xie, Huanan Dong, Yaguang Wu, Xiangjun Huang, jian yang, Hui Wang, Bowen Zhou, Bowen Li, Qipeng Guo, Kai Chen
Abstract
High-performance GPU kernel generation is critical for large-scale systems and scientific computing, yet existing LLM approaches lack reliable iterative optimization. We introduce Kernel-Smith, a framework for high-performance operator generation combining an evaluation-driven evolutionary agent with an evolution-oriented post-training strategy. The agent maintains a population of executable candidates, iteratively refining programs using a diverse archive and structured feedback regarding compilation, correctness, and latency. For robust search, we implement dedicated evaluation backends for Triton on NVIDIA and Maca on MetaX GPUs. During training, we transform long-horizon evolution trajectories into step-centric supervision and reinforcement learning signals by distilling high-gain, correctness-preserving revisions. This optimizes the model as an effective local improver within the evolutionary loop. Evaluated on KernelBench, Kernel-Smith-235B-RL achieves state-of-the-art performance on the NVIDIA Triton backend, surpassing frontier models such as Gemini-3.0-pro and Claude-4.6-opus in average speedup. Furthermore, Kernel-Smith-MACA-30B outperforms larger counterparts including DeepSeek-V3.2-think and Qwen3-235B on the MetaX MACA backend, demonstrating cross-platform adaptability. Beyond benchmarks, our framework has generated upstream contributions to production systems such as SGLang and LMDeploy, validating the practical utility of LLM-driven kernel optimization.
Abstract source - ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents
optimize_anything: Unified Text Optimization can Outperform Specialized Systems
Lakshya A Agrawal, Donghyun Lee, Shangyin Tan, Wenjie Ma, Karim Elmaaroufi, Rohit Sandadi, Sanjit Seshia, Koushik Sen, Dan Klein, Ion Stoica, Joseph E Gonzalez, Omar Khattab, Alex Dimakis, Matei Zaharia
Abstract
Can a single LLM-based optimization system match specialized tools across fundamentally different domains? We show that when optimization problems are formulated as improving a text artifact evaluated by a scoring function, a single AI-based optimization system---supporting single-task search, multi-task search with cross-problem transfer, and generalization to unseen inputs---achieves state-of-the-art results across six diverse tasks. Our system discovers agent architectures that nearly triple Gemini Flash's ARC-AGI accuracy (32.5\% → 89.5\%), finds scheduling algorithms that cut cloud costs by 40\%, generates CUDA kernels where 87\% match or beat PyTorch, and outperforms AlphaEvolve's reported circle packing solution (n=26). Ablations across three domains reveal that actionable side information yields faster convergence and substantially higher final scores than score-only feedback, and that multi-task search outperforms independent optimization given equivalent per-problem budget through cross-task transfer, with benefits scaling with the number of related tasks. Together, we show for the first time that text optimization with LLM-based search is a general-purpose problem-solving paradigm, unifying tasks traditionally requiring domain-specific algorithms under a single framework.
Abstract source - ICML · Workshop · 4th Structured Probabilistic Inference & Generative Modeling
Residual-Space Evolutionary Optimization via Flow-based Generative Models
Zhuo Cao, Lena Krieger, Fernanda Nader, Xuan Zhao, Hanno Scharr, Ira Assent
Abstract
Data editing with generative methods typically requires differentiable objectives and gradient-based search. However, these assumptions break down in flow-based settings, where edits are performed through forward and backward integration and often involve non-differentiable or black-box objectives. We introduce residual-space evolutionary optimization, a model-agnostic framework that addresses this gap by combining flow-based generative editing with evolutionary algorithms. Building on the observation that conditional flow matching (CFM) can disentangle condition-controlled factors from instance-specific residuals, our framework directly operates in residual space and separates two complementary search regimes: Self-pollination performs local exploitation through feature-preserving residual refinement. Cross-pollination promotes broader exploration by recombining residuals across heterogeneous samples. As a proof of concept, we validate the framework on MorphoMNIST, a benchmark dataset for counterfactual generation, and on crystal data. The results demonstrate that this exploration--exploitation decomposition provides a useful mechanism for balancing target alignment, instance preservation, and diversity, while extending beyond images to real-world scientific domains.
Abstract source - ICML · Workshop · 4th Structured Probabilistic Inference & Generative Modeling
OrthoBO: Orthogonal Bayesian Hyperparameter Optimization
Maresa Schröder, Pascal Janetzky, Michael Klar, Stefan Feuerriegel
Abstract
Bayesian optimization is widely used for hyperparameter optimization when model evaluations are expensive; however, noisy acquisition estimates can lead to unstable decisions. We identify acquisition estimation noise as a failure mode that was previously overlooked: even when the surrogate model and acquisition target are correctly specified, finite-sample Monte Carlo error can perturb acquisition values. This can, in turn, flip candidate rankings and lead to suboptimal BO decisions. As a remedy, we aim at variance reduction and propose an orthogonal acquisition estimator that subtracts an optimally weighted score-function control variate, which yields an acquisition residual orthogonal to posterior score directions and which thus reduces Monte Carlo variance. We further introduce OrthoBO: a Bayesian optimization framework that combines our orthogonal acquisition estimator with ensemble surrogates and an outer log transformation. We show theoretically that our estimator preserves the target, leads to variance reduction, and improves pairwise ranking stability. We further verify the theoretical properties of OrthoBO through numerical experiments where our framework reduces acquisition estimation variance, stabilizes candidate rankings, and achieves strong performance. We also demonstrate the downstream utility of OrthoBO in hyperparameter optimization for neural network training and fine-tuning.
Abstract source - ICML · Workshop · 4th Structured Probabilistic Inference & Generative Modeling
PairIT: Autoregressive Transformers for Low-Data Molecule Optimization
Hannah Lawrence, Bodhi Vani, Ji Won Park, Natasa Tagasovska, Samuel Stanton, Andrew Watkins, Michael Maser, Ewa M. Nowara
Abstract
Generating novel molecules with desired properties is a central challenge in drug discovery. Although foundational work focused on de novo generation, practical use cases require a more complex setting: conditioning on an initial seed molecule, optimizing multiple properties, and operating in data-sparse regimes. We introduce PairIT, a flexible training framework for autoregressive transformers over SMILES sequences that enables seeded generation by learning from pairs of structurally similar molecules. By leveraging matched pairs, the model learns to generate local, chemically meaningful edits that improve a property of the seed molecule. Prompt tokens extend this framework by specifying the target property, desired direction, and approximate magnitude of change, and by allowing multiple property objectives to be composed at inference time. PairIT naturally supports pretraining on a large dataset and fine-tuning on a smaller dataset, which is critical for performance in data-sparse regimes. Surprisingly, we observe diminishing returns to the scale of the pretraining dataset. We find, moreover, that reinforcement learning post-training can enhance generation, providing a tunable knob for trading off proximity to the seed with the optimization objective. We demonstrate empirically on ZINC-250K and MoleculeNet that, with appropriate paired-data curation, a standard transformer model of modest size (68M parameters) can achieve robust seeded molecular optimization in low-data regimes.
Abstract source - ICML · Workshop · 4th Structured Probabilistic Inference & Generative Modeling
Gaussian Particle Flows for Unsupervised Topology Optimization
Wilhelm F Berghammer, Eric Volkmann, Sebastian Lehner
Abstract
We propose an unsupervised, flow-based approach to topology optimization in which designs are produced by integrating a problem-conditioned velocity field on the configuration space of a Gaussian mixture. The density field is directly parameterised by this mixture distribution, and a transformer-parameterised velocity field evolves its configuration from a fixed initialisation to a high-quality design, conditioned on the physical boundary condition. The velocity field is trained via reinforcement learning (RL) with a structural objective as a black box reward, requiring no differentiable simulator and no dataset of pre-solved designs. On four canonical benchmark problems, a single RL-trained policy produces designs that closely approximate the performance of a classical per instance numerical method. Producing each design from a single forward pass without any simulator calls. A controlled gradient-based ablation confirms that our novel design representation is capable of learning shared structural priors, matching the numerical per instance method quality at matched number of solver calls when solving problem pools jointly.
Abstract source - ICML · Workshop · 4th Structured Probabilistic Inference & Generative Modeling
Proximal Policy Optimization for Amortized Discrete Sampling
Anna Zykova-Myzina, Timofei Gritsaev, Daniil Tiapkin, Nikita Morozov
Abstract
This paper explores policy gradient algorithms for training stochastic policies to sample from structured discrete probability distributions under the Generative Flow Network (GFlowNet) framework. Building on extensive theoretical connections between GFlowNets and entropy-regularized reinforcement learning, we derive equivalents of standard policy gradient algorithms for training GFlowNets, as well as experimentally explore their various methodological aspects, including baseline training and advantage estimation. Most importantly, our work is the first to derive and successfully apply proximal policy optimization to GFlowNets, showing its improved convergence speed and data efficiency compared to standard GFlowNet training objectives on benchmarks ranging from synthetic energies to molecular-graph generation.
Abstract source - ICML · Workshop · 4th Structured Probabilistic Inference & Generative Modeling
Savitar: Curve-Aware Interaction-Structured Kernels for Low-Budget Bayesian Optimization in Rare-Winner Combinatorial Spaces
Ishan Gonehal
Abstract
Bayesian optimization (BO) frequently operates over finite combinatorial candidate pools in which high-value combinations are rare; nevertheless, paradigm kernels (Hamming, Tanimoto) discard informative per-constituent response curves available in quantitative domains (e.g., drug-effectiveness, solubility, profit). Deep surrogates remain too data-hungry to be effective in this low-budget regime. We propose Savitar, a structured Gaussian-process kernel that converts such curves into activity-gated constituent embeddings $\mathbf{f}_i = (1 - s_i)\mathbf{M}\mathbf{e}_i^z$ (where $s_i$ is the Hill-predicted viability at the query), coupled through a shared low-rank tensor factorization of arbitrary-order interactions sharing $O(Dq)$ parameters, thereby yielding a generalized optimization methodology. On retrospective drug-combination effectiveness screens that simulate a 30-evaluation budget across 60 pools of approximately 45,000 candidates each, against both published domain-specific and general-purpose baselines, Savitar attains the lowest mean regret, improving over Tanimoto by 1.8x on every dataset. On HIV, Savitar beats GP baselines while running 2 to 10x faster. For zinc-rich target-phase design (selecting alloy compositions that maximize zinc solubility), Savitar achieves mean regret 0.0165 on Ni3Zn14, compared to 0.0191 for both the strongest linear and deep learning baselines. For same-day ETF-options search (identifying best-performing trading strategies), Savitar outperforms the strongest curve-aware linear baseline on an audited SPY+QQQ family (0.0476 vs. 0.0703, p=0.0019); on a representative 89-strategy SPY pool containing only 4 profitable trades, Savitar repeatedly recovers the best trade on the first BO query after 5-point random initialization. Results indicate Savitar is most effective for finite-pool, rare-winner discovery under budget and per-context data constraints; it excels in regimes where interaction modeling is essential yet per-context data are too sparse for generic kernels or deep surrogates to reliably learn.
Abstract source - ICML · Workshop · 4th Structured Probabilistic Inference & Generative Modeling
Topological Control of Optimization Dynamics on Evolving Manifolds
Xingrui Gu
Abstract
Machine learning optimization is usually framed as a sequence of local responses to the current gradient. In high-dimensional nonconvex training, however, it is more naturally understood as a noise-driven process of trajectory evolution. Motivated by symplectic reduction, which compresses high-dimensional dynamics onto a lower-dimensional effective manifold while preserving essential structure, we propose Trajectory-Adaptive Geometric Damping (TAGD), a geometry-topology control framework for first-order optimization. TAGD uses recent gradient history to estimate a low-rank effective subspace via online Gram-PCA, decomposes each update into tangential and normal components, and adaptively regulates normal suppression through multiscale topological stability feedback. This yields a trajectory-level control mechanism on a low-dimensional effective submanifold, rather than a purely local update rule. Theoretically, under local Fisher geometry, we show that the resulting update reduces information-geometric error, tightens the one-step descent bound, and remains robust to finite-window subspace estimation error; we further show that topological feedback acts as an online proxy for an otherwise unobservable orthogonal bias-variance tradeoff. Empirically, across CIFAR-10 and WikiText-103, TAGD improves performance in 11 of 12 settings without modifying the internal state of the base optimizer. On WikiText-103, relative to AdamW, it improves average best validation perplexity by 8.26\% on LLaMA-style models and 5.96\% on GPT-J-style models, for an overall gain of 7.11\%. Trajectory and local loss-landscape visualizations further show that TAGD enters low-loss channels earlier, reduces lateral drift, and in some cases alters basin selection. Overall, TAGD unifies information geometry, low-rank subspace control, and topological stability feedback within an online optimization framework, offering a trajectory-centric view of deep learning optimization.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
$\delta$-Regularized Gradient Clipping for Stable Optimization: Analysis and Empirical Evaluation
Katsiaryna Novikava, Anna Lytova, Omar Rivasplata
Abstract
This work provides an extended empirical and theoretical analysis of the proposed recently $\delta$-GClip, a variant of gradient clipping with a formal convergence guarantee. Our experiments analyze activation patterns, gradient dynamics, and dependence of $\delta$ on architectural scale across supervised benchmarks, diffusion models, and a lightweight protein‑generation task. In particular, we show that combining Adam with a brief $\delta$‑clipping warm‑up improves the stability and early‑phase optimization in diffusion model training. Using the Kurdyka–Łojasiewicz framework we further extend the convergence guarantees of $\delta$-GClip beyond the squared‑loss setting to more general smooth non‑convex objectives.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
On Lipschitz Explosion in Deep Neural Networks with Normalization: Consequences for Optimization and Adversarial Robustness
Ashkan Soleymani, Reyhaneh Hosseinpourkhoshkbari, Hadi Daneshmand, Patrick Jaillet
Abstract
The Lipschitz constant of a neural network is a basic stability quantity appearing in optimization guarantees, generalization bounds, and robustness certificates. Deep networks naturally admit two such notions, \emph{input Lipschitzness}, measuring sensitivity to data perturbations, and \emph{parameter Lipschitzness}, measuring sensitivity to weight perturbations. We prove that, for deep networks with normalization layers, with batch normalization as the canonical example, \emph{both} Lipschitz constants can grow exponentially with depth and hence with parameter dimension, even under strong per-layer norm control such as $\\|W_\ell\\|_2\le 1$, and already for linear activations. Thus, a mechanism widely used to stabilize training can create severe worst-case instabilities that are invisible from layerwise norm bounds alone. Parameter-Lipschitz explosion turns Lipschitz-dependent nonsmooth optimization guarantees into exponential-in-dimension bounds for deep normalized networks, while input-Lipschitz explosion makes worst-case Lipschitz-based generalization and robustness certificates vacuous. The latter also yields a concrete rank-separation mechanism for adversarial vulnerability. The theory predicts that perturbations introducing new singular directions should be amplified much more strongly than equal-energy perturbations that remain within the input's original singular subspace. Experiments on MNIST, Fashion-MNIST, and CIFAR-10 support this prediction, showing that rank-creating perturbations cause substantially sharper drops in accuracy, confidence, and margins than same-subspace perturbations.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
Critical Batch Size for LLM Policy Optimization
Rachit Bansal, Clara Mohri, Natalie Abreu, David Alvarez-Melis, Sham Kakade
Abstract
Supervised learning's critical batch size defines the point at which increasing batch size leads to lost sample efficiency, which controls the extent to which data-parallel can be used to improve training efficiency. We study critical batch size for verifier-based reinforcement learning (RLVR) under a GRPO-style objective, where gradient noise depends on prompts $B$, rollouts per prompt $K$, and off-policy rollout reuse. We extend the noise-scale model from McCandlish et. al., 2018, to GRPO by decomposing on-policy noise into inter-prompt and intra-prompt terms, and modeling off-policy reuse as drift-inflated intra-prompt noise. We empirically measure the critical batch size in both on-policy and off-policy settings. In our experiments, we find that the gradient noise is dominated by the intra-prompt term and that the relevant batch dimension is approximately the total rollout count $N=BK$. We find that off-policy rollout reuse substantially increases the critical batch size relative to the on-policy setting, suggesting a practical parallelism advantage for RLVR post-training.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
Outer-Momentum Restarting in High-Dimensional Two-Phase Optimization
Kristi Topollai, Allan Ma, Tolga Dimlioglu, Sui Jiet Tay, Anna Choromanska
Abstract
Communication-efficient distributed optimizers such as DiLoCo reduce synchronization costs by letting workers perform many local updates before aggregating their progress with an outer momentum optimizer. Recent theory suggests that the outer optimizer acts on an effective spectrum induced by the inner optimization loop, and that the choice of outer momentum controls how progress from local updates is accumulated across communication rounds. We study periodic restarting of the outer momentum as a simple complementary mechanism for controlling this outer memory. In a linearized squared-loss model where prediction-space residuals evolve under the empirical NTK, we derive a mode-wise restart contraction showing that resets exploit phase cancellation by discarding stale momentum while preserving inner-loop progress. Toy experiments verify the predicted contraction behavior, and language-model pretraining experiments show that periodic restarts widen the stable range of outer learning rates and momentum values across communication periods.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
Deriving Hyperparameter Scaling Laws via Modern Optimization Theory
Egor Shulgin, Jörg Franke, Dimitri von Rütte, Tianyue Zhang, Niccolò Ajroldi, Korbinian Pöppel, Bernhard Schölkopf, Aaron Klein, Peter Richtarik, Antonio Orvieto
Abstract
Hyperparameter transfer has become an important component of modern large-scale training recipes. Existing methods, such as muP, primarily focus on transfer between model sizes, with transfer across batch sizes and training horizons often relying on empirical scaling rules informed by insights from timescale preservation, quadratic proxies, and continuous-time approximations. We study hyperparameter scaling laws for modern first-order optimizers through the lens of recent convergence bounds for methods based on the Linear Minimization Oracle (LMO), a framework that includes normalized SGD, signSGD (approximating Adam), and Muon. Treating bounds in recent literature as a proxy and minimizing them across different tuning regimes yields closed-form power-law schedules for learning rate, momentum, and batch size as functions of the iteration or token budget. Our analysis, holding model size fixed, recovers most insights and observations from the literature under a unified and principled perspective, with clear directions open for future research. Our results draw particular attention to the interaction between momentum and batch-size scaling, suggesting that optimal performance may be achieved with several scaling strategies.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
Optimistic Online Learning for Data Mixture Optimization
Sofija Orlovic, Francesco Tonin, Volkan Cevher
Abstract
Data mixture optimization is important for language model pretraining, where models are trained on heterogeneous corpora with domain-dependent usefulness. We propose Optimistic DoReMi, a minimal modification of DoReMi that replaces its multiplicative domain-weight update with an optimistic update inspired by Optimistic Hedge. Instead of using only the current per-domain excess-loss vector, our method updates weights using a linear prediction from the two most recent estimates. Experiments on SlimPajama and the Pile datasets show that this simple modification yields more stable and accurate mixtures over DoReMi across scales.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
Understanding Polyak's Momentum in Deep Learning May Require Rethinking Non-Convex Optimization
Donghwa Kim, Chulhee Yun
Abstract
Polyak's heavy-ball momentum is widely used in deep learning, where it often accelerates training in practice. However, standard smooth non-convex optimization theory, which typically measures convergence by averaged or best-iterate gradient norms, offers only a limited explanation of this advantage. We revisit this gap through worst-case lower bounds. For SGD with heavy-ball momentum (SHB), SignGD with momentum (Signum), and Muon, we show that the lower bounds on averaged gradient norms considered for these methods can exceed the upper bounds for their non-momentum counterparts, even with their respective optimal constant step sizes. These comparisons cover commonly used ranges of the momentum parameter $\beta$, become unfavorable to momentum as $\beta$ increases, and diverge in deterministic settings as $\beta\to 1$. For GD with heavy-ball momentum (HB), we further show that the same separation persists under the best-iterate squared gradient norm. These results indicate that the standard framework can lead to comparisons opposite to the empirical behavior of momentum in deep learning, motivating refinements involving convergence measures, structure, or stochasticity.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
When and Why Grouping Attention Heads Accelerates Muon Optimization
Hongtao Zhang, WenJie Zhou, Wei Chen, Xueqi Cheng
Abstract
Muon orthogonalizes matrix updates, but multi-head attention naturally operates at the level of heads. This granularity mismatch raises the question of whether Muon should be applied to the full attention projection, to individual heads, or to intermediate head groups. We study this question through a one-step descent comparison between full-matrix Muon and group-wise Muon. Our analysis reveals a trade-off between the \textbf{group-wise whitening gain} from group-wise updates and the \textbf{grouping-induced norm cost}, an additional update-norm cost caused by replacing full-matrix whitening with group-wise whitening. Motivated by this trade-off, we propose \textbf{Group Muon}, which treats head group size and grouping rule as optimizer hyperparameters. On GPT-2 Small trained on FineWeb, appropriate grouping improves validation loss over both full-QKV Muon and fully head-wise MuonSplit.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
Understanding Clipping in Zeroth-order Optimization
Saket Gollapudi, Elisa Bertino, Sewoong Oh
Abstract
Zeroth-order optimization has emerged as a resource-efficient alternative to SGD when fine-tuning LLMs, thanks to the inherent low dimensionality of the loss landscape. It relies on two-point estimate of the gradient that only accesses the function value and not the gradient, bypassing resource heavy backpropagation. Recently, it was accidentally discovered that per-sample clipping can improve performance of the trained model, while running differentially private version of zeroth-order optimization \cite{zhang2024dpzero} with very large privacy parameter $\epsilon$ (corresponding to very little privacy). In this paper, we systematically investigate this phenomenon and demonstrate that ($i$) the optimal choice of learning rate $\eta$ is inversely proportional to the clipping threshold $c$, satisfying $\eta c =$ constant; ($ii$) clipping drives the zeroth-order optimization to a different solution with higher test accuracy; and ($iii$) this phenomenon is only observed with per-sample clipped zeroth-order optimization and not other zeroth-order alternatives that also provide robust estimates of the gradient.
Abstract source - ICML · Workshop · High Dimensional Learning Dynamics: the Science of Scaling
Physics-Guided Policy Optimization with Self-Distillation
Ke Wang, Yuning Wu, Haoran Liu, Chaoqun Jia, Devin Chen, Kai Wei
Abstract
Self-distilled policy optimization (SDPO) has become a popular paradigm for LLM post-training, where a model learns from its own predictions conditioned on privileged information. SDPO, however, is sensitive to how much each update step should be trusted: corrections from a self-teacher can be highly informative on some batches and misleading on others, and applying them uniformly with a fixed step size can destabilize training. Drawing inspiration from viscous-fluid dynamics and formalizing the analogy at the SDE level, we propose Physics-Guided Policy Optimization (PGPO), which introduces an information-modulated step-size multiplier derived from a mutual-information estimate between the student's predictions and the feedback-conditioned teacher. We show that this modulation preserves the order-1 weak-approximation guarantees of vanilla SGD, and incurs negligible overhead per iteration. We evaluate PGPO on the Science-QA dataset, where it outperforms SDPO on 3 of the 4 domains with gains of up to +4.5 points, while remaining stable in a setting where SDPO collapses late in training.
Abstract source - ICML · Workshop · Combining Theory and Benchmarks: Towards A Virtuous Cycle to Understand and Guarantee Foundation Model Performance
Prompt Optimization Is a Coin Flip: Diagnosing When It Helps in Compound AI Systems
Xing Zhang, Guanghui Wang, Yanwei CUI, Qucy W Qiu, Ziyuan Li, Bing Zhu, Peiyang He
Abstract
Prompt optimization in compound AI systems is statistically indistinguishable from a coin flip: across 72 optimization runs on Claude Haiku (6 methods $\times$ 4 tasks $\times$ 3 repeats), 49% score below zero-shot; on Amazon Nova Lite, the failure rate is even higher. Yet on one task, all six methods improve over zero-shot by up to $+6.8$ points. What distinguishes success from failure? We investigate with 18,000 grid evaluations and 144 optimization runs, testing two assumptions behind end-to-end optimization tools like TextGrad and DSPy: (A) individual prompts are worth optimizing, and (B) agent prompts interact, requiring joint optimization. Interaction effects are never significant ($p > 0.52$, all $F < 1.0$), and optimization helps only when the task has exploitable output structure---a format the model can produce but does not default to. We provide a two-stage diagnostic: an $80 ANOVA pre-test for agent coupling, and a 10-minute headroom test that predicts whether optimization is worthwhile---turning a coin flip into an informed decision.
Abstract source