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

221–240 of 1,024

  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Comparing Developer and LLM Biases in Code Evaluation

    Ryan Shar, Aditya Mittal, Zichu Wu, Shyam Agarwal, Sherry Wu, Chris Donahue, Ameet Talwalkar, Wayne Chi, Valerie Chen

    Abstract

    LLMs are increasingly used as judges in code applications, yet their efficacy remains untested in realistic code settings that often feature partial context and ambiguous intent. We present TRACE (Tool for Rubric Analysis in Code Evaluation), a framework that evaluates LLM judges’ ability to predict human preferences and automatically extracts rubric items to highlight systematic differences in how humans and models weight these criteria. Across three modalities---IDE autocompletion, chat-based programming, and instructed code editing---we benchmark 13 judge models spanning general-purpose LLMs, specialized judge models, and reward models. Among these models, even the best judges align with human preference only 6--18% above random chance. TRACE identifies 8 significantly misaligned rubric items across interaction modalities. For example, in chat-based coding, judges prefer longer code explanations while humans prefer shorter ones. Many of these gaps occur within existing code quality dimensions, showing that current LLM judges remain misaligned with human evaluation in realistic coding workflows.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Back to the Beginning of Heuristic Design: Bridging Code and Knowledge with LLMs

    Tuan-Kiet Nguyen-Viet, Pham Bui Dinh, Tung Dao, Cong D Tran, Huynh Thi Thanh Binh

    Abstract

    Large language models (LLMs) have recently advanced automatic heuristic design (AHD) for combinatorial optimization (CO), where candidate heuristics are iteratively proposed, evaluated, and refined. Most existing approaches search over executable programs and distill insights from execution feedback to guide later iterations. Because this process moves from low-level implementations to high-level principles, we refer to it as a bottom-up paradigm. We argue that this view is incomplete and introduce a complementary top-down perspective: knowledge becomes the primary search object and code merely instantiates and tests it, making what is learned explicit and reusable across problems and trajectories. We formalize this shift through a statistical-learning view that exposes a distortion--compression trade-off, and instantiate it in both population-based and tree-based AHD frameworks. Across CO and tasks beyond it, knowledge-first search improves discovery efficiency, transfer, and generalization, often outperforming code-centric pipelines, while combining both strategies yields further gains. Our results suggest that progress in AHD depends on iteratively constructing and evolving interpretable hypotheses that retain value beyond a single search trajectory.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Metal-Sci: A Scientific Compute Benchmark for Evolutionary LLM Kernel Search on Apple Silicon

    Victor Gallego

    Abstract

    We present Metal-Sci, a 10-task benchmark of scientific Apple Silicon Metal compute kernels spanning six optimization regimes (stencils, all-pairs in $n$-body problems, multi-field Boltzmann, neighbor-list molecular dynamics, multi-kernel PDE, FFT). Each task ships a CPU reference, a roofline-anchored fitness function, and a held-out generalization size. We pair the benchmark with a lightweight harness for automatic kernel search that runtime-compiles each candidate, scores it against the roofline across multiple sizes, and feeds structured compile and per-size correctness diagnostics back to a frozen LLM driving a $(1{+}1)$ evolutionary loop. We report matched single-model sweeps of Claude Opus 4.7, Gemini 3.1 Pro, and GPT-5.5 on M1 Pro: in-distribution self-speedups span $1.00\times$ to $10.7\times$. Beyond raw speedup, our central methodological claim is structural: the held-out gate scoring function $\Phi_\mathcal{T}$ (evaluated once at end-of-run on a configuration the agent never sees during search) functions as a cheap mechanical oversight primitive on this automatic search loop, catching e.g. an Opus template \ HMC win that returns wrong samples at unseen dimensions, and a GPT FFT3D best that wins in-distribution at $2.95\times$ speedup but collapses to $0.23\times$ on a $256^3$ held-out cube, a silent regression that the in-distribution score alone cannot see. Code at https://github.com/anon590/metal-sci-kernels .

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Execution-Grounded Agents: Enforcing Physical Constraints in AI Code Generation via Oracle Search

    Hugo G Grañena, Cilicia U Perez

    Abstract

    Modern large language models are increasingly used inside scientific workflows, where the central failure mode is not syntax but reward misalignment: code can compile, execute, and look plausible while violating the physical semantics that make a result scientifically valid. This paper reframes scientific code assistance as reinforcement learning at inference time: the LLM is a base policy over candidate programs, and a deterministic scientific oracle acts as the environment that returns world feedback through execution exceptions, tolerance-checked numerical deviations, and domain-invariant violations. We present Oracle-Guided Trajectory Search (OGTS), a test-time compute algorithm that uses this feedback as a directional environmental reward by sampling candidate trajectories, evaluating them against scientific constraints, and greedily collapsing toward the most informative oracle trace. We evaluate this framing on a 50-task suite of scientific coding oracles and a reproduction of the 2014 ATLAS Higgs Boson Machine Learning Challenge, where Monte Carlo weights, missingvalue sentinels, and the regulated AMS discovery metric define deterministic environmental constraints that syntactic benchmarks do not enforce. OGTS raises an open-weight model, Llama-3.1- 70b, from a 58% to 84% pass rate by using oracle feedback to recover from systematic semantic errors, while retrieval remains useful as an audit layer for project evidence. We analyze the conditions under which OGTS outperforms sequential repair, showing that the standard failure-type taxonomy (exec/num/inv) is insufficient to predict strategy ordering; instead, within-category score diversity across branches emerges as the operationally relevant signal.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    VeriBench: An End-to-End Formal Verification Benchmark for AI Coding Agents in Lean 4

    Brando Miranda, Srivatsava Daruru, Ethan S Hersch, (Andrew) Zhanke Zhou, Allen Nie, Daneshvar Amrollahi, Leni Aniva, Iddah Mlauzi, Kirill Acharya, Elyas Obbad, Dilara Soylu, Weston Kirk, Zixiao Jolene Wang, Kai Fronsdal, Ying Li, Donald Poindexter, Rakshit Kaushik, Shurui Liu, Yegor Denisov-Blanch, Steven Dillmann, Simon Obstbaum, Santiago Cuellar, John Sarracino, Rylan Schaeffer, Mo Tiwari, Donghyun Lee, Bo Han, Sanmi Koyejo

    Abstract

    Test-based coding benchmarks have repeatedly required strengthening passes---HumanEval gave way to HumanEval+, SWE-Bench to SWE-Bench Verified to SWE-Bench+, each release exposing test-invisible bugs in code that passed the prior suite---a structural limitation of finite testing: passing tests routinely leave behaviorally important bugs unobserved. Existing formal-verification benchmarks (e.g., VERINA, FVAPPS, CLEVER, DafnyBench) provide stronger machine-checkable signals, but many focus on proof completion, scaffolded verified generation, or isolated formal subtasks rather than the full path from developer-written source code to a verified formal artifact. We argue that trustworthy code-verification benchmarks must be end-to-end and agentic, scoring full Python-to-Lean autoformalization under verifier feedback, and must aggregate verification stages conjunctively ---weakness at any stage penalizing the composite while preserving smooth evaluation signals that retain discriminative power across models still far from the frontier. We introduce VeriBench, a 452-task end-to-end Python-to-Lean~4 autoformalization benchmark spanning HumanEval-style programs, classical algorithms, Python standard-library functions, security examples, and 282 high-assurance-inspired tasks across 14 domains such as cryptography, aerospace, medical devices, and compilers. We score agents with the Smooth Conjunctive Score for Code verification (SCSC), a log-domain geometric mean over five per-task factors: $\mathrm{SCSC} = \exp\!\bigl(\tfrac{1}{5}\sum_i \log f_i\bigr)$, combining (i) the agent's Lean file typechecks, (ii) the agent's theorems verify without \textsf{sorry}, (iii) the agent's theorems semantically cover the gold theorems, and (iv,v) gold-side benchmark-validity gates ($D_1, D_2$) ensuring the gold reference itself compiles and proves cleanly before being used to score agents. Under an agentic verifier-feedback loop, Codex, Claude Code, and Leanstral-v2 reach SCSC of only 0.42, 0.36, and 0.23; iterative self-correction adds 14.3\% over single-shot baselines, yet theorem--gold coverage stalls uniformly at $\leq 0.11$ across all three agents---a specification gap validated by an LLM judge calibrated against five independent human raters (Pearson $r=0.70$, $p<10^{-11}$). VeriBench reframes code-verification evaluation from isolated proof search to end-to-end conjunctive grounding, surfacing specification synthesis as a bottleneck at least as severe as proof search and offering a measurable target for the next generation of verifiable AI coding agents.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    SFT Overtraining Predicts Rank Inversion via Entropy Collapse Under RLVR

    Siddharth Aphale, Kelly Liu

    Abstract

    The standard recipe of picking the highest scoring SFT checkpoint for GRPO can pick the worst one when the policy has entered entropy collapse during SFT. We show that under binary rewards the within group advantage variance is exactly $p(1-p)(g-1)/g$, and characterise a threshold $p^{\ast}(g)$ below which the GRPO gradient vanishes. We test this on two SFT depth ladders, Qwen2.5-Coder-3B and DeepSeek-Coder-6.7B, across 1.0--5.8 epochs and 3 seeds. The Qwen ladder crosses $p^{\ast}(8)$ at deeper checkpoints and shows rank inversion: peak GRPO pass@10 falls monotonically from 0.806 to 0.481 (3 seed mean, $n=20$), with pre-RL pass@1 correlating inversely with GRPO outcome ($\rho=-0.75$) and pre-RL entropy correlating positively ($\rho=+0.69$). DeepSeek stays $\geq 4.2\times$ above $p^{\ast}(8)=0.083$ and shows rank compression with uniformly positive $\Delta$pass@10, providing a contrastive validation of the threshold prediction; $p^{\ast}(g)$ correctly classifies both experimental regimes before any RL compute is spent. A two stage diagnostic, a pre-RL entropy screen and a 150 step in training monitor, rejects high risk checkpoints before GRPO (saving 100\% of RL compute) or by step 150 of 400 (saving 62.5\%), and improves deep eval pass@10 by +0.090 ($n=128$) when used for initialisation. Neither KL regularisation nor label smoothing eliminates the rank inversion, ruling out hyperparameter and RL-stage artefacts as explanations.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    CodeCast: Context-Conditional Code Generation for Multimodal Time Series Forecasting

    Xiyuan Zhang, Boran Han, Abdul Fatir Ansari, Andreas Auer, Rui Wang, Mononito Goswami, Alexander Zhang, Hao Wang, Michael Bohlke-Schneider, Yuyang Wang

    Abstract

    LLM-generated code recently serves as an effective reasoning medium beyond software engineering, from solving mathematical problems to scientific discovery. We extend this paradigm to multimodal time series forecasting, where textual context (financial news, clinical notes, event reports) carries predictive signals that time series foundation models cannot access due to their purely numerical interface. We present CodeCast, a framework in which a small, open-weight LLM generates an executable program that incorporates textual context into time series predictions. Given a time series, its statistical profile, and associated text, CodeCast produces code that converts context into relevant time series or applies post-processing transformations on top of a pretrained forecaster, preserving numerical precision and providing an interpretable reasoning trace that reveals how context was grounded into numerical adjustments. We train on real time series paired with LLM-generated synthetic context that explains future trends, and optimize the code generation policy with GRPO using a ranking-based execution reward that compares program outputs against eight baseline forecasters. On three multimodal forecasting benchmarks, CodeCast consistently outperforms the base forecaster, showing that even a small open-weight model can effectively leverage textual context for scientific prediction through RL-trained code generation.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    SLEEP: Simulated Future Learning Environments for Automated Evolution of Heuristic Portfolios

    Tuan-Kiet Nguyen-Viet, Nguyen Huu Duc, Cong D Tran, Trong Duc Bui, Huynh Thi Thanh Binh

    Abstract

    We introduce continual heuristic portfolio learning, a new setting of automatic heuristic design (AHD) for nonstationary combinatorial optimization, where instances arrive over time and the learner must maintain a compact set of executable heuristics for future distributions. This setting naturally leverages LLM code generation: candidate heuristics can be synthesized as programs, executed inside a solver, and improved from objective feedback. We propose SLEEP, a sleep-wake framework that learns to construct synthetic training environments for an inner automatic heuristic set design (AHSD) procedure. During sleep, SLEEP prepares simulated and replayed instances for an LLM-based evolutionary portfolio designer; during wake, real-instance performance provides delayed feedback. Rather than forecasting the next distribution explicitly, SLEEP learns environments that induce robust and complementary heuristics. We further introduce EoH-C, a counterfactual extension of EoH-S that incorporates recent wake replay during portfolio selection. Experiments on classical combinatorial optimization benchmarks, including TSP and VRP variants, demonstrate improved future-instance performance under distribution shift.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    SynKer: Synthesize, Kernelize, Reinforce - Teaching GPU Kernel Generation to Small Language Models

    Qi Sun, Robert Lange, Alex Zhang

    Abstract

    Combining test-time scaling with verifier execution feedback has demonstrated glimpses of frontier language models being able to generate GPU kernels. However, small language models still lack the capability to robustly produce compilable backend-specific code. We argue that this is largely due to a lack of diverse training environments and accompanying validated kernel datasets, representative of the target domain. In order to overcome this limitation, we introduce SynKer, a general recipe for improving language model kernel generation capabilities via synthetic task and solution generation: By evolving and translating natural-language task descriptions, we generate a large-scale set of diverse target operations. We then leverage evolutionary test-time search to generate an end-to-end validated kernel dataset across target backends. Finally, we use the resulting dataset to post-train 8B, 14B, and 32B open-source models with supervised fine-tuning and reinforcement learning. The resulting set of task environments contains 2365 validated and configurable synthetic tasks and a kernel archive consisting of approximately 100k kernels across three backends. We demonstrate that increased task diversity improves held-out BackendBench transfer performance after post-training. By open-sourcing the resulting tasks, kernel dataset, and checkpoints, we hope to accelerate the development of more capable kernel generation capabilities.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    V1: Unifying Generation and Self-Verification for Parallel Reasoners

    Harman Singh, Xiuyu Li, Kusha Sareen, Monishwaran Maheswaran, Sijun Tan, Xiaoxia (Shirley) Wu, Junxiong Wang, Alpay Ariyak, Qingyang Wu, Samir Khaki, Rishabh Tiwari, Long (Tony) Lian, Yucheng Lu, Boyi Li, Alane Suhr, Ben Athiwaratkun, Kurt Keutzer

    Abstract

    Test-time scaling for complex reasoning tasks shows that leveraging inference-time compute, for example by independently sampling and aggregating multiple solutions, results in significantly better task outcomes. However, a critical bottleneck is verification: sampling is only effective if correct solutions can be reliably identified among candidates. While existing approaches typically evaluate candidates independently via scalar scoring, we demonstrate that models are substantially stronger at pairwise self-verification. Leveraging this insight, we introduce V1, a framework that unifies generation and verification through efficient pairwise ranking. V1 comprises two components: V1-Infer, an uncertainty-guided algorithm using a tournament-based ranking that dynamically allocates self-verification compute to candidate pairs whose relative correctness is most uncertain; and V1-PairRL, an RL framework that jointly trains a single model as both generator and pairwise self-verifier, ensuring the verifier adapts to the generator's evolving distribution. On code generation (LiveCodeBench, CodeContests) and math reasoning (AIME, HMMT) benchmarks, V1-Infer improves Pass@1 by up to 10% over pointwise verification and outperforms recent test-time scaling methods while being significantly more efficient. Furthermore, V1-PairRL achieves 7-9% test-time scaling gains over standard RL and pointwise joint training, and improves base Pass@1 by up to 8.7% over standard RL.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Test-Time Scaling with Weak Verifiers via Self-Play

    Akira Yoshiyama, Akmal Ashirmatov, Jonas Hübotter, Ido Hakimi, Andreas Krause

    Abstract

    Test-time scaling methods spend additional compute at deployment to improve a large language model's performance on a hard target problem. Most methods rely on a verifier that scores candidate solutions for correctness, using it to select among or refine the model's outputs. In many deployment regimes, however, a strong verifier on the target problem is unavailable. We introduce Test-Time Self-Play (TTSP), an approach to test-time scaling using asymmetric self-play without reliance on a verifier. On a difficulty-calibrated subset of LiveCodeBench v6, TTSP is the best-performing method at every verifier strength we evaluate, and the gap to the strongest baseline widens as the verifier weakens; in the no-verifier limit, TTSP yields a 35\% absolute improvement in mean@8. The gains hold across a range of verifier strengths, except when the base policy has near-zero coverage of the correct answer.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    SpIDER: Spatially Informed Dense Embedding Retrieval for Software Issue Localization

    Shravan S Chaudhari, Rahul T Jacob, Mononito Goswami, Jiajun Cao, Muhammad Shihab Rashid, Christian Bock

    Abstract

    Retrieving code functions, classes or files that are relevant in order to solve a given user query, bug report or feature request from large codebases is a fundamental challenge for Large Language Model (LLM)-based coding agents. Agentic approaches typically employ sparse retrieval methods like BM25 or dense embedding strategies to identify semantically relevant units. While embedding-based approaches can outperform BM25 by large margins, they often don’t take into consideration the underlying graph-structured characteristics of the codebase. To address this, we propose SpIDER (Spatially Informed Dense Embedding Retrieval), an enhanced dense retrieval approach that integrates LLM-based reasoning along with auxiliary information obtained from graph-based exploration of the codebase. We further introduce SpIDER-Bench, a graph-structured evaluation benchmark curated from SWE-PolyBench, SWEBench-Verified and Multi-SWEBench, spanning codebases from Python, Java, JavaScript and TypeScript programming languages. SpIDER’s graph-based candidate expansion gives each surfaced function a structural reason for inclusion (the seed it neighbors and the edge type linking them), making the candidate set auditable by a developer reviewing the agent’s actions while keeping the retrieval budget fixed. The code graph is built from per-repository syntax trees, so it can be constructed on-demand at the start of an interactive developer session rather than precomputed offline across an entire codebase corpus. Empirical results show that SpIDER consistently improves dense retrieval performance by at least 13% across programming languages and benchmarks in SpIDER-Bench.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    The Scaffold Effect in Coding Agents: Harness Choice as a Hidden Variable in Coding-Agent Evaluation

    Naman Vats, Oleg Golev

    Abstract

    Public leaderboards rank coding agents primarily by which model they use, treating the surrounding agent harness (the scaffold that issues tools, manages context, and decides when to stop) as a controlled constant. We show this assumption breaks down empirically. Running two recent agentic coding models (Qwen 3.6 Plus and MiniMax M2.5) across three open-source harnesses (Goose, OpenCode, OpenHands-SDK) on a stratified 50-task subset of Terminal-Bench Pro, we find that harness choice produces up to a $\mathbf{40\times}$ difference in tokens consumed per solved task while paired pass-rate differences within a model remain within 0-8 percentage points (95% paired-task bootstrap CIs include zero for all but the largest pairwise gap). The same harness-specific failure fingerprints (REASON-dominated for Goose, VERIFY-and-MAX_TURNS for OpenHands-SDK, idle-loop / TIME for OpenCode) replicate independently on both models, identifying these patterns as scaffold properties rather than model properties. We argue that, for human-centered coding-agent evaluation, "model name" is an incomplete unit of comparison: harness-model pairs determine real-world cost, latency, and the oversight burden a developer must absorb (no-action turns are a per-task wait tax, not just a token tax). We include anonymized configurations, raw trial logs, aggregated snapshots, and analysis scripts as supplementary material.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    VibeSWEBench: Can AI Co-Worker Agents Do Real-World Software Engineering by Vibe Coding?

    Md. Ashraful Islam, Mohammed Eunus Ali, Xiaoning Du, Md Rizwan Parvez

    Abstract

    The growing reliance on autonomous agents for real-world software engineering demands evaluation that reflects actual workflows, where developers give feedback, agents recover from mistakes, and tasks span the full project lifecycle. Existing benchmarks, however, focus largely on single-turn code generation from pristine prompts, ignoring the iterative reality of human–agent collaboration. To address this gap, we introduce **VibeSWEBench**, the first benchmark to evaluate AI co-worker agents on the four core capabilities of real-world development: greenfield construction, feature evolution, specification-driven bug repair, and database operations—and on the multi-turn user-corrective interactions that authentic workflows actually produce. **VibeSWEBench** contains **109** tasks (cumulative weight 230) across two real backend projects, evaluated against comprehensive human-validated test suites with no LLM-as-a-judge component. To capture multi-turn recovery without proxy-developer confounds, we introduce Trajectory Unrolling, a procedure that converts authentic human–agent failure sessions into independent single-turn tasks while preserving human-authored corrective signals. Across four frontier coding agents—Codex, Claude Code, Gemini Code Assist, and Terminus-2—the strongest configuration (Codex with $gpt-5.5$) achieves only **20.87%** overall, with performance dropping from **36.11%** on bug repair to **2.56%** on greenfield tasks, and no successful completions on the hard subset. We release **VibeSWEBench**, its evaluation harness, and all associated artifacts to support future research in autonomous software engineering.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    From Search to Policy: Thompson Sampling Trees for Robust LLM Code Refinement

    Daria Ozerova, Ekaterina Trofimova

    Abstract

    Iterative refinement has become an effective strategy for improving LLM performance on difficult coding tasks, but existing methods suffer from limited exploration during debugging. We introduce Tree-Guided Policy Refinement (TGPR), which augments GRPO with Thompson Sampling-guided tree search to generate diverse refinement trajectories at training time only, with no additional inference overhead. Across HumanEval, MBPP, APPS, Codeforces, and LiveCodeBench, TGPR consistently outperforms competitive RL baselines, improving pass@1 by up to +4.4 pp and pass@10 by up to +5.2 pp over GRPO, with especially strong gains on harder and contamination-resistant benchmarks. Under zero-shot greedy decoding, TGPR (77.6 MBPP, 41.2 LiveCodeBench pass@1) exceeds GPT-4o-mini (74.8 and 36.7), though the comparison is not fully controlled as TGPR is fine-tuned on task-specific data while GPT-4o-mini is not. These results suggest that structured training-time exploration is a scalable alternative to increasing model scale for iterative code refinement. Code: https://github.com/AnonimusCoders/TGPRcoderefinement.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Selective Code Generation under Correctness and Security Risk

    Ahmad A. Rushdi

    Abstract

    LLM-generated code can pass every unit test and still contain known-vulnerable patterns. Existing selective-generation methods -- pass@1, best-of-K on tests, and one-objective conformal abstention -- accept it silently. We extend Conformal Risk Control (CRC) to the joint event of accepting code that fails a test verifier or triggers a static analyzer. Our wrapper, joint-CRC, samples K candidates per problem, clusters by joint test-pass / static-analysis-clean behavior, and accepts when the largest good cluster clears a calibrated threshold; one CRC call bounds the joint silent-failure rate at a user-chosen alpha. On thirteen function-level CWE prompts (K=8, two generators), joint-CRC accepts correct-and-clean code in 82.6 +/- 1.4% of cases with no observed joint silent failures, while pass@1 and pass@1+Semgrep gate leak joint-bad code at 42% and 26%. A security-only CRC baseline achieves zero security silent failures yet still leaks 34% joint-bad code, directly showing that controlling either axis alone does not control the joint event. Our experiments demonstrate calibrated control of the verifier-defined joint event; controlling hidden correctness failures beyond the supplied tests requires a held-out test split, left to future work.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Interpreting Code Correctness in Language Models through Activation Steering

    Aditya Narendra, Shubham Kamble, Subhankar Panda, Kanav Benipuri, vibha mishra, Chandresh K Maurya

    Abstract

    Code-generating language models lack an explicit correctness indicator: their token-level probabilities are largely disconnected from the functional correctness of the generated code, hindering their deployment in high-stakes settings. Despite this, limited works have studied whether these models encode code correctness in their internal representations. In this work, we show that code correctness is mediated by a one-dimensional subspace in the residual stream, across two open-weight code-generation models ranging from 1.5B to 7B parameters. Using a contrastive probing and activation addition framework, we extract a correctness direction and demonstrate that it affords bidirectional causal control: adding the direction to the residual stream recovers failing generations, while subtracting it induces failures in previously correct ones. We further establish that geometric coherence of the correctness axis is a necessary complement to linear discriminability for predicting effective causal intervention. Results on MBPP+ demonstrate that forward interventions increase pass@1 by as much as 15.6\% and 11.0\%, whereas backward interventions degrade performance by up to 12.9\% and 11.7\% for Qwen2.5-Coder-1.5B-Instruct and Qwen2.5-Coder-7B-Instruct, respectively. We demonstrate that code correctness is a causally operative feature encoded along a single geometric axis in the residual stream, and offers a computational efficient mechanism for improving code generation without finetuning. Code and data are available at \url{https://github.com/MechCode1/Correct_Codegen}.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Bridging Online and Offline RL: Contextual Bandit Learning for Multi-Turn Code Generation

    Ziru Chen, Dongdong Chen, Ruinan Jin, Yingbin LIANG, Yujia Xie, Huan Sun

    Abstract

    Recently, there have been significant research interests in training large language models (LLMs) with reinforcement learning (RL) on real-world tasks, such as multi-turn code generation. While online RL tends to perform better than offline RL, its higher training cost and instability hinders wide adoption. In this paper, we build on the observation that multi-turn code generation can be formulated as a one-step recoverable Markov decision process and propose contextual bandit learning with offline trajectories (Cobalt), a new method that combines the benefits of online and offline RL. Cobalt first collects code generation trajectories using a reference LLM and divides them into partial trajectories as contextual prompts. Then, during online bandit learning, the LLM is trained to complete each partial trajectory prompt through single-step code generation. Cobalt outperforms two multi-turn online RL baselines based on GRPO and VeRPO, and substantially improves R1-Distill 8B and Qwen3 8B by up to 9.0 and 6.2 absolute Pass@1 scores on LiveCodeBench. Also, we analyze LLMs' in-context reward hacking behaviors and augment Cobalt training with perturbed trajectories to mitigate this issue. Overall, our results demonstrate Cobalt as a promising solution for iterative decision-making tasks like multi-turn code generation. We will release our code and data.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    Improving Code Efficiency with Iterative Refinement using LLMs

    Chulin Xie, Badih Ghazi, Pritish Kamath, Ravi Kumar, Pasin Manurangsi, Da Yu, Chiyuan Zhang

    Abstract

    Large Language Models (LLMs) generate functionally correct but often computationally inefficient code, yet current evaluation paradigms rarely assess efficiency. We propose ICER (Iterative Code Efficiency Refinement), an iterative self-improvement framework that optimizes LLM-generated code using runtime and memory feedback together with execution error signals. Unlike prior methods that enforce strict, monotonic acceptance criteria---which we find prone to system noise and overfitting to seen unit tests---ICER adopts a relaxed update policy that prioritizes correctness and exploration, enabling convergence toward better accuracy-efficiency trade-offs on unseen tests. Ablation studies reveal a counter-intuitive result: explicitly prompting for "Big-O" complexity predictions degrades optimization performance in later iterations. To investigate this disconnect, we introduce a tri-component evaluation framework spanning complexity prediction, constrained generation, and code refactoring. Our analysis confirms that frontier models struggle with explicit complexity labeling yet possess strong implicit optimization capabilities, refactoring inefficient code to near golden solution's runtime on competitive programming benchmarks.

    Abstract source
  • ICML · Workshop · Deep Learning for Code: Towards Human-Centered Coding Agents

    VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?

    Keisuke Kamahori, Shihang Li, Simon Peter, Baris Kasikci

    Abstract

    For years, we have built LLM serving systems like any other critical infrastructure: a single general-purpose stack, hand-tuned over many engineer-years, meant to support every model and workload. In this paper, we take the opposite bet: a multi-agent loop that automatically synthesizes bespoke serving systems for different usage scenarios. We propose VibeServe, the first agentic loop that generates entire LLM serving stacks end-to-end. VibeServe uses an outer loop to plan and track the search over system designs, and an inner loop to implement candidates, check correctness, and measure performance on the target benchmark. In the standard deployment setting, where existing stacks are highly optimized, VibeServe remains competitive with vLLM, showing that generation-time specialization need not come at the cost of performance. More interestingly, in non-standard scenarios, VibeServe outperforms existing systems by exploiting opportunities that generic systems miss in six scenarios involving non-standard model architectures, workload knowledge, and hardware-specific optimizations. Together, these results suggest a different point in the design space for infrastructure software: generation-time specialization rather than runtime generality.

    Abstract source