Papers for

automated code generation 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.

Pre-trained model size impacts causal learning performance variably

When Does Pre-Trained Capacity Help Causal Learning? From Scalar Prediction to Counterfactual Post-Training

Abstract: How does pre-trained model capacity relate to performance after adaptation for causal tasks? We study two systems built on the Qwen 2.5 family: CausalLLM, which estimates scalar potential outcomes with treatment-specific heads, and CausalGen, which generates treatment-conditioned text or code using soft prefixes and factual supervised fine-tuning (SFT), counterfactual SFT, and preference alignment. Increasing backbone size from 0.5B to 1.5B yields mixed scalar-estimation results on IHDP, but improves CodeGen pass@1 from 0.267 to 0.575 and treatment-effect score from 0.231 to 0.515 after the complete generative pipeline. Within 0.5B CausalLLM, narrative inputs reduce mean sqrt(PEHE) from 1.842 to 1.780, a 3.4% improvement over tabular inputs; the 5.8% improvement over a no-LLM baseline combines changes in representation and input format. These descriptive comparisons motivate a distinction between available and convertible capacity. They do not isolate the contribution of post-training: the two systems differ in dataset, architecture, output modality, and supervision, and intermediate-stage evaluations are unavailable. With only two small backbones and three replications, the results support a hypothesis about capacity--adaptation alignment rather than a general scaling law or a demonstrated causal mechanism.

Fri 23 OctMachine LearningArtificial Intelligence
The gist
This paper looks at how the size of a pre-trained computer model affects how well it can learn about cause and effect. The authors study two different systems that use the same base models but have different ways of learning and predicting outcomes. They find that making the model bigger helps in some cases but not always, depending on the task and how the model is used afterwards. The results suggest that it’s not just size that matters, but how well the model’s ability matches what needs to be learned.
Open → 2610.33311v1

Distilling reasoning traces improves student model learning from teacher answers

TraceForge: Distilling with Your Own Thinking

Abstract: Using an LLM to generate training data for another is among the most general ways to train one, and it remains common practice. Some frontier teams have closed that route for their own models: what comes back is an answer, or a short summary, without the detailed reasoning trace behind it. That is a little ironic: they were themselves built on distilling human knowledge, and distilling an open-source model is still entirely routine; the restriction applies to their own outputs alone. Recent work recovers the hidden reasoning by replaying encrypted blocks across models. It somehow works, but it breaks the providers' terms of service, so it is not something a product can be built on long-term. We built the alternative. We take the context and the teacher's answer as input, and generate the reasoning trace ourselves, in the style of the student's own model family. Training is two-stage, supervised and then adversarial: a generator learns to regenerate the family's own reasoning traces from their context and answer, and a critic learns how real a reasoning trace looks. Applied to a teacher's answer, the generator writes one in the family's style. An independent judge rates how likely traces are to be genuine on a scale from 0 to 1: ours average 0.68, real traces 0.66, and traces selected by the critic from four candidates 0.82. These are authenticity scores, not correctness rates. We test the idea on five benchmarks with everything else held fixed. On general tasks the five training corpora are about the same; on coding, the generated reasoning beats Fable 5's own thinking content. With the same 5,000 questions and the same teacher answers, HumanEval+ improves by 3.7 points and MBPP+ by 7.1 at the final checkpoint, and the MBPP+ lead holds at every checkpoint. We suspect that reasoning written in the student's family style is easier for it to learn from.

Wed 21 OctArtificial IntelligenceMachine Learning
The gist
Some large language models only share their final answers without showing their detailed reasoning, making it hard to train other models from their thought process. The authors built a method called TraceForge that generates reasoning steps in the style of the student model itself based on the teacher’s answer and context. This approach helps the student model learn better, especially on coding tasks, by producing reasoning it can understand more easily. Their experiments showed this method improved performance on coding benchmarks with the same training data and teacher answers.
Open → 2610.29680v1

ScoutRoute improves expert selection in large language model systems

ScoutRoute: Efficient Mixture-of-Experts Routing Using Internal Language Model Signals

Abstract: Efficient expert routing is a fundamental challenge in Mixture-of-Experts (MoE) systems, particularly for heterogeneous collections of independently trained Large Language Mod els (LLMs). Existing routing approaches typically rely on jointly trained gating networks, prompt-based predictors, or computationally expensive multi-model inference, limiting their flexibility and efficiency. This paper presents ScoutRoute, a lightweight post-hoc routing framework that predicts expert competence using internal language model signals extracted from a single forward pass through an inexpensive scout model. Hidden-state representations are used to estimate cross-model competence through lightweight logistic probes, while logit-derived confidence measures are incorporated within a domain-aware routing strategy for efficient expert selec tion without modifying the underlying language models. ScoutRoute isevaluatedon fiveopen-weightlanguagemodels across fourbenchmark datasets covering mathematical reasoning, code generation, commonsense reasoning, and multidis ciplinary knowledge. Experimental results show that ScoutRoute consistently outperforms individual routing signals while requiring only a single scout-model inference. The proposed competence probes also achieve superior calibration compared with conventional confidence measures, demonstrating that internal language model representations provide transferable information for accurate and efficient expert routing across heterogeneous language models

Fri 16 OctArtificial IntelligenceComputation and Language
The gist
Choosing the best expert model to answer a question is hard when multiple language models are involved. The authors introduce ScoutRoute, a lightweight way to predict which model will perform best by looking at signals from a quick initial pass through a simple model. This approach works without needing to retrain models or run many costly checks. Their tests show ScoutRoute picks better experts across different types of tasks, helping systems answer questions more efficiently.
Open → 2610.23443v1

Mentor system helps AI learn better from failures in real time

MENTOR: Learning from Failure with On-Policy Pedagogical Intervention

Abstract: Reinforcement Learning from Verifiable Rewards (RLVR) is a key driver for Large Reasoning Models, but it is vulnerable to "zero-reward collapse", a training failure where a sudden increase in task difficulty causes the learning signal to vanish. We argue that the conventional approach of discarding these failed trajectories is wasteful, as they contain valuable diagnostic information about the model's cognitive gaps, a bright side that can be leveraged for recovery. Existing solutions, however, often regress to static, "off-policy-style" interventions like pre-defined hint libraries or perform post-hoc refinement, failing to provide the adaptive, forward-looking guidance needed to escape the collapse. To address this, we propose a paradigm shift towards on-policy pedagogical intervention and introduce MENTOR, a multi-agent framework that acts as a live mentor. MENTOR diagnoses the root cause of failure in real-time and dynamically generates targeted, instructional prompts to guide the learning agent's next attempt. As a plug-and-play module, MENTOR integrates seamlessly into existing policy optimization pipelines like GRPO without modifying the training infrastructure. Extensive experiments on math and code generation show that MENTOR effectively mitigates zero-reward collapse, outperforming state-of-the-art baselines. Notably, it achieves massive average relative gains of up to 78.3% on Llama-3.2-3B-Instruct over its base model.

Fri 9 OctArtificial Intelligence
The gist
When AI systems learning complex tasks suddenly stop getting helpful feedback, they can get stuck and stop improving. The authors show that instead of ignoring these failures, we can use their clues to help AI understand what went wrong. They created MENTOR, a helper AI that watches the learning process live, spots the cause of failure, and gives useful hints to guide the AI on its next try. This approach fits easily into existing training methods and helps AI models do much better on tasks like math and coding.
Open → 2610.13594v1

Speculative decoding training reduces rounds in large language models

Training Parallel Speculative Draft Models by Directly Minimizing Expected Decoding Rounds

Abstract: Speculative decoding accelerates large language model inference by using a low-cost draft model to propose tokens that the full-size target model verifies in parallel. Parallel and semi-autoregressive (semi- AR) drafters improve drafting efficiency by proposing an entire block in a single forward pass, but training them raises a new difficulty: the draft distribution for a given position depends on where the decoding round starts, and where rounds start depends on how many tokens earlier rounds accepted. Existing training objectives typically rely on block-local surrogates that ignore this cross-round coupling, and therefore do not directly optimize the global decoding efficiency. In this work, we develop a theoretical framework for training and evaluating these drafters by representing speculative decoding as a Markov reward process. This formulation yields the Expected Decoding Rounds (EDR) objective, which weights local rejection costs by state occupancies and exactly equals the expected number of decoding rounds. Unlike prior surrogate objectives, EDR introduces no auxiliary hyperparameters. We then derive an exact temporal-difference gradient that supports unbiased stochastic optimization from target-model rollouts. The same framework also yields an exact offline evaluator for round counts, enabling paired drafter comparisons on shared target rollouts without running speculative decoding. Finetuning two state-of-the- art drafters, DSpark and DFly, with EDR consistently improves mean accepted length and outperforms existing training objectives across nine benchmarks spanning math reasoning, code generation, and chat.

Wed 7 OctMachine LearningArtificial IntelligenceComputation and Language
The gist
Making large language models faster can be done by using a smaller model to guess parts of the output quickly, and then checking those guesses with the big model. The authors studied how to train the smaller model better by thinking about the whole guessing and checking process, not just parts of it. They created a new way to measure how well the small model helps reduce the total checking done by the big model. Their method helps train these smaller models to do better at speeding up the bigger models in tasks like math, coding, and chatting.
Open → 2610.10411v1

Self improving code modules boost agent performance and lower costs

MESH-Harness: Self-Improving Agent Harnesses via Bandit-Guided Compositional Evolution

Abstract: An agent harness is the code that organizes context, maintains state, and coordinates tool calls for a language model. We study how to improve the harness under a limited evaluation budget while keeping model weights fixed. Our method, MESH-Harness, organizes each harness into functional modules with explicit role-specific interfaces, allowing alternative implementations of each module to be substituted and recombined. It uses shared module representations and full-covariance LinUCB to score candidate combinations based on predicted performance and exploration value. Mixed-start coordinate ascent selects complete configurations for evaluation without enumerating the combinatorial space. Validation traces then guide local code edits, and the resulting candidates are incorporated into fixed-capacity role-specific pools for subsequent recombination. On text tasks, retrieval-augmented mathematical reasoning, code generation, and interactive scientific tasks, MESH-Harness outperforms Meta-Harness by 5.70, 7.01, 2.00, and 5.00 points, respectively, under matched candidate-evaluation budgets. Iterative harness optimization improves MESH-Harness by 5.63-7.79 points over its first-round configurations. For the reported configurations, aggregate test-time cost is 44.2% lower than that of Meta-Harness, while total cost including search is 14.6% lower. These results show that combining module-level design reuse with feedback-driven compositional search can systematically improve agent harnesses while keeping overall optimization cost under control.

Sun 4 OctArtificial Intelligence
The gist
Some AI programs work better when their toolbox and control code are organized well. The authors show a way to improve this control code—called an agent harness—by mixing and matching small parts and trying out new versions smartly, without changing the AI’s inner brain. They use a method that predicts which changes will work best and tests them efficiently. Their approach leads to better results on tasks like math problems, coding, and interactive science, while also saving time and resources.
Open → 2610.05300v1

Soft tokens improve parallel decoding for faster language model generation

Rethinking Soft Tokens for Parallel Decoding in Diffusion Language Models

Abstract: Diffusion language models (DLMs) enable parallel generation by predicting and committing multiple tokens at each denoising step, yet they can generate individually plausible but mutually inconsistent tokens. Recent work shows that \emph{soft tokens} can mitigate this issue by representing uncertain positions with continuous embeddings built from the model's predictive distribution at the previous decoding step. However, although soft tokens are commonly understood as preserving predictive uncertainty, how soft-token feedback improves parallel decoding has not been systematically examined. In this paper, we investigate this question in frozen pretrained DLMs to examine soft-token feedback without the effects of additional training. To construct soft-token inputs in a training-free setting, we identify a geometric mismatch between conventional soft-token construction and the pretrained embedding space. Based on this observation, we propose a training-free, geometry-aware construction of soft tokens. Our analysis of soft-token feedback suggests that uncertainty preservation alone does not fully explain how it reshapes subsequent predictions. To better explain how soft-token feedback improves parallel decoding, we provide empirical evidence that it favors coherent token sequences. Across four pretrained DLMs and four math and code benchmarks, our method outperforms standard parallel decoding and a training-free Euclidean soft-token baseline. Code: https://github.com/kodaikawamura/rethinking-soft-tokens

Tue 29 SeptMachine Learning
The gist
Generating multiple words at once with diffusion language models sometimes produces words that don't fit well together. The authors studied how using soft tokens—special placeholders that represent uncertainty—helps these models create more consistent word groups. They found that just keeping track of uncertainty isn’t enough; soft tokens also encourage more logical and coherent sequences of words. Their new method builds on this insight without extra training and works better than existing approaches on math and coding tasks.
Open → 2609.37391v1

Information-proximal self-distillation improves language model learning and retention

iSDFT: Information-Proximal Self-Distillation for Continual Learning in LLMs

Abstract: On-policy self-distillation fine-tuning (SDFT) learns new skills from demonstrations while reducing forgetting, but it always distils toward the full demonstration-conditioned teacher. This fixes teacher influence at the full-teacher endpoint, providing no control over how much demonstration information should be transferred at each prediction state. We introduce Information-Proximal SDFT (iSDFT), which instead treats the teacher as a budgeted source of information. At each token, iSDFT selects the distribution closest to the current student that satisfies a prescribed teacher-information constraint, yielding a closed-form exponential target with a locally determined tilt. To control cumulative drift, we further anchor the student to its frozen base policy. Across four heterogeneous LLM backbones and two specialisation tasks, iSDFT improves vanilla SDFT in 7 of 8 model-task settings and matches it in the remaining one. It also provides tighter retention on the original SDFT benchmark suite, with 73% of evaluations remaining within 0.5 points of the base model versus 52% for the strongest baseline, while achieving the largest mean improvement on all ten additional mathematics, coding, and competition-mathematics benchmarks. These results show that controlling how much and when teacher information is introduced improves specialisation while preserving broader capability.

Mon 21 SeptMachine LearningArtificial Intelligence
The gist
Large language models (LLMs) often learn new skills from examples but can forget older abilities. The authors introduce a method called Information-Proximal Self-Distillation (iSDFT) that carefully controls how much new information is learned at each step. By adjusting the influence of the teaching model to be closer to the student’s current state, iSDFT helps models specialize better without losing their original capabilities. Tests on various tasks show it generally improves performance and better retains prior knowledge compared to previous methods.
Open → 2609.24646v1

Assurance envelopes identify minimal evidence for software changes

Assurance Envelopes for Autonomous Coding Agents: Minimum-Cost Evidence for Software Change

Abstract: When a coding agent returns to existing software, it inherits evidence from earlier engineering work: tests, type checks, proofs, static analyses, and traces. Reloading all of it is wasteful, but dropping a piece the change depends on can leave a required property unsupported. Given the properties a change must preserve, its obligations, we ask which least-cost subset of the available evidence re-establishes them, and we call such a subset a task-conditioned assurance envelope. Evidence and the rules that combine it form a typed inference graph; an obligation is met when forward chaining from the selected evidence reaches it, and we validate every selection by that closure rather than by trusting the optimizer. The software-derived graphs in our evaluation come from preserved outcomes of prior AI coding-agent runs; we freeze those artifacts and ask which accumulated evidence should be restored for a later task. Small graphs from Rust, IronBlocks, and Pong outcomes show that the minimum envelope depends on the task, that none may exist when current evidence cannot re-establish a required property, that some properties need several pieces of evidence together, and that expanding the requirements adds evidence rather than replacing it. A prespecified synthetic benchmark of 249 instances characterizes computation: a baseline that discards the 'several pieces together' structure necessarily fails to re-derive them; every completed exact cross-check agreed with the CP-SAT optimizer; and median solve time stayed below 20 ms at 500-evidence graphs, except that graphs with many alternative derivations per target timed out at far smaller sizes, so structure, not raw size, drives difficulty. The contribution is a bounded application of established optimization to selecting assurance context for a software change; discovering the obligations and downstream agent benefit remain open.

Mon 14 SeptSoftware EngineeringArtificial IntelligenceProgramming Languages
The gist
When software is changed by automated coding tools, many tests and checks from before still apply but not all are needed each time. The authors study how to find the smallest set of previous evidence like tests and proofs required to verify new changes. They model the relationships between evidence and properties as a graph and use optimization to pick minimal supporting evidence sets. Their method evaluates on small and synthetic examples, showing that different tasks need different evidence, and sometimes no sufficient evidence exists. The work helps reduce wasted effort when verifying software updates.
Open → 2609.16302v1