Latest / Daily Paper Cast / Self-Evolving Coding Agents via Harness-Policy Optimization
Transcript
- 0:03Evan: Welcome to Daily Paper Cast.
- 0:05Ashley: Today we're diving into a paper from the Hugging Face daily paper list dated October 20, 2026, which has received 32 upvotes.
- 0:14Evan: The paper is titled 'Self-Evolving Coding Agents via Harness-Policy Optimization.'
- 0:20Ashley: It's authored by Zhepei Wei from Microsoft Research and the University of Virginia, with Wenlin Yao from Microsoft Research as the corresponding author.
- 0:30Evan: Large language model agents have shown promising potential in coding tasks, driven by two main components: the policy model which defines the agent’s capabilities, and the harness that mediates interaction with the environment.
- 0:43Ashley: Right.
- 0:44Typically, research focuses on either optimizing the harness, which includes prompts, workflows, and agent code, or the policy model itself, which learns from successful trajectories or rewards.
- 0:56However, each approach on its own has limitations.
- 1:00Evan: Exactly.
- 1:01Optimizing just the harness leaves the policy model untouched, potentially limiting broader improvements.
- 1:07On the other hand, policy optimization relies heavily on the stimuli provided by a fixed harness, which can be a bottleneck.
- 1:14Ashley: The paper addresses these issues by introducing Self-HPO, a recursive self-improving framework for coding agents that alternates between harness and policy optimization.
- 1:25Evan: Interesting.
- 1:26How does Self-HPO work exactly?
- 1:29Ashley: In each round, Self-HPO uses the current policy to propose new harness candidates, known as the H-step.
- 1:36Then, it updates the policy through reinforcement learning under the optimized harness, known as the P-step.
- 1:42This dual optimization ensures that harness improvements target the evolving failures of the policy model.
- 1:48Evan: So the evolving policy essentially becomes its own harness proposer, constantly pushing both components to improve recursively?
- 1:56Ashley: Precisely.
- 1:57This dynamic interplay allows for continuous adaptation.
- 2:00The harness exposes and compensates for weaknesses in the policy, while the policy internalizes the behaviors elicited by the harness and evolves, shifting the failure modes that require attention.
- 2:12Evan: And this method has been tested across multiple coding benchmarks?
- 2:16Ashley: Yes.
- 2:17Self-HPO was evaluated using three coding benchmarks: SWE-Bench Verified, SWE-Bench Multilingual, and SWE-Bench Pro.
- 2:28It consistently outperformed baselines that optimized either only the harness or only the policy.
- 2:34Evan: What kind of improvements are we looking at?
- 2:36Ashley: The average resolve rate of the Qwen3.5-35B-A3B model increased from 57.8% to 64.8%.
- 2:47This performance boost even generalized to out-of-distribution settings, indicating strong adaptability.
- 2:54Evan: That's impressive.
- 2:55What does the analysis say about combining optimized components?
- 2:59Ashley: Analysis shows that optimized harnesses and policies retain their gains even when paired with their base counterparts, and their joint gain exceeds the sum of their individual improvements.
- 3:10Evan: Give us a bit more detail about the reliability and capability enhancement.
- 3:15Ashley: Certainly.
- 3:16Self-HPO not only improves reliability, demonstrated by its higher pass@1 rates, but also expands the capability frontier, as seen in enhanced pass@k rates.
- 3:27This means the agent's robustness is improved and it can tackle a broader range of tasks successfully.
- 3:33Evan: And there's room for even more improvement with stronger external models?
- 3:37Ashley: Using a more advanced external model like Opus 4.8 as the harness proposer further amplified the performance boost.
- 3:44Evan: So the framework isn't just limited to inherent policy and harness revisions, but can also leverage external advancements?
- 3:52Ashley: Exactly.
- 3:53The robustness of Self-HPO's framework allows it to integrate stronger external models seamlessly, leading to even higher resolve rates and a broader capability frontier.
- 4:04Evan: That's the end of the Introduction section.
- 4:06Next, we'll delve into the methods and experimental setup of this innovative framework.
- 4:13Evan: Let's jump into the methods used in Self-HPO, the heart of how this framework achieves continuous improvement in coding agents.
- 4:20Ashley: Sure, Evan.
- 4:21The essence of Self-HPO lies in its two-step optimization process: the Harness-step or H-step, and the Policy-step or P-step.
- 4:31Let's break down each of these steps.
- 4:33Evan: Alright, can you explain what happens in the H-step first?
- 4:38Ashley: In the H-step, the current policy model analyzes its own failures based on the trajectories it generates during task execution.
- 4:46Essentially, it inspects where and why it did not succeed and uses this information to propose new harness candidates that could potentially address these failures.
- 4:55Evan: So the policy looks at its own missteps and suggests revisions for the harness to compensate for these weaknesses?
- 5:02Ashley: Correct.
- 5:03The current policy model proposes modifications to its harness, creating a set of harness candidates.
- 5:09These candidates are then evaluated based on their performance on a specific search set, which initially consists of tasks sampled from the training data.
- 5:19Evan: How does the framework ensure these candidates are effective?
- 5:23Ashley: Good question.
- 5:25Each candidate harness is evaluated by running the policy model on the search set tasks again.
- 5:31The harness that yields the highest performance improvement, in terms of resolve rate, is selected for the next optimization phase.
- 5:38Evan: And that takes us to the P-step where the policy model is updated.
- 5:42How does this step work in detail?
- 5:45Ashley: In the P-step, the previously optimized harness is fixed, and reinforcement learning (RL) techniques are used to update and improve the policy model based on the interactions mediated by this harness.
- 5:57This involves collecting fresh trajectories where the agent performs coding tasks under the new harness and receiving feedback on its performance.
- 6:06Evan: Could you elaborate on the RL techniques employed here?
- 6:10Ashley: Of course.
- 6:10The paper utilizes Group Relative Policy Optimization (GRPO) and Balanced Adaptive Rollout (BAR).
- 6:18GRPO helps in optimizing the policy using group-relative advantages, where reward balancing mitigates the issue of reward sparsity.
- 6:26BAR ensures that additional trajectories are drawn to construct reward-balanced groups, reducing zero-variance groups which provide no useful learning signal.
- 6:35Evan: So, GRPO and BAR work together to refine the policy model based on its performance under the optimized harness, correct?
- 6:44Ashley: Exactly.
- 6:45By doing so, the policy model internalizes the successful behaviors elicited by the new harness.
- 6:51This updated policy model then shifts the failure modes, implicating different weaknesses to be targeted in subsequent H-steps.
- 7:00Evan: And with each round, both harness and policy keep improving adaptively, right?
- 7:06Ashley: Yes.
- 7:07The evolving policy becomes the new harness proposer for the next H-step, keeping the cycle iterative and recursive.
- 7:14Additionally, the task set for harness evaluation evolves too.
- 7:18Hard tasks, which are not solved in the preceding P-step, form the next search set, ensuring the optimization remains aligned with the policy’s latest failure modes.
- 7:28Evan: That’s a clever way to adapt continuously.
- 7:31How many rounds of these optimizations were conducted in the experiments?
- 7:36Ashley: The paper reports conducting two optimization rounds, with each involving six harness candidates per H-step and 50 RL updates per P-step.
- 7:46This assortment was deemed sufficient to demonstrate the effectiveness of Self-HPO across various benchmarks.
- 7:52Evan: Now, I know the paper uses Qwen3.5-35B-A3B as the base policy and mini-SWE-agent as the seed harness.
- 8:03Could you talk more about the datasets and benchmarks used?
- 8:07Ashley: Definitely.
- 8:08The training set consists of 2,484 coding tasks sourced from SWE-rebench, SWE-rebench V2, and Scale-SWE datasets.
- 8:19For evaluation, they used three benchmarks: SWE-Bench Verified, SWE-Bench Multilingual, and SWE-Bench Pro.
- 8:26These cover a diverse range of coding tasks, including human-validated GitHub issues and tasks spanning multiple programming languages and repository-level challenges.
- 8:37Evan: And what metrics are used to evaluate the performance?
- 8:41Ashley: Performance is primarily measured by the resolve rate, which is the percentage of tasks successfully completed by the agent.
- 8:48Additionally, the paper looks at metrics like pass@1 and pass@k, assessing reliability and capability over a broader range of task attempts.
- 8:57Evan: How do these metrics help in comparing Self-HPO with other methods?
- 9:03Ashley: These metrics provide a clear picture of both the reliability of the agent in solving tasks on the first attempt, and its overall capability across multiple attempts.
- 9:13By comparing these metrics, the paper showcases that Self-HPO outperforms policy-only and harness-only baselines, highlighting its advantage in joint optimization.
- 9:24Evan: That’s quite comprehensive.
- 9:26Did the authors perform any ablation studies to validate their method further?
- 9:31Ashley: Yes, they did.
- 9:32Ablations examined the impact of replacing RL strategies with fine-tuning methods, reusing fixed search sets, and using a self-proposer versus an external model.
- 9:42These studies confirmed that RL yields stronger policy updates than fine-tuning, evolving search sets target more relevant tasks, and self-proposal remains effective, though external proposals provide an additional boost.
- 9:55Evan: This detailed evaluation certainly strengthens the case for Self-HPO.
- 10:00Is there anything else that stands out in the methods section?
- 10:03Ashley: Another noteworthy aspect is how the optimized harness not only retains the seed agent's loop but adds targeted interventions.
- 10:11These include early warnings about budget constraints, checks for empty patches, ensuring API signatures conform to the repository, and fallback mechanisms.
- 10:21Such specific enhancements help avoid common submission failures, making the agent more robust.
- 10:27Evan: This kind of targeted control really underpins the agent's adaptive capabilities.
- 10:33It's fascinating to see how each optimization step builds on the previous one.
- 10:37Ashley: The interplay between harness and policy modules through consecutive rounds of optimization creates an agent capable of self-improvement in a highly targeted and efficient manner.
- 10:48Evan: So that's the end of the Methods section.
- 10:51Next, we'll move on to the experiments and results that showcase the practical impact of Self-HPO.
- 10:58Evan: Let's dive into the experiments and results that highlight the effectiveness of Self-HPO.
- 11:04Ashley: Evan.
- 11:04The experimental evaluation of Self-HPO is thorough, designed to validate its performance across multiple coding benchmarks.
- 11:12The authors used Qwen3.5-35B-A3B as the base policy and mini-SWE-agent as the seed harness.
- 11:21Evan: What datasets did they use for training and evaluation?
- 11:26Ashley: The training set comprised 2,484 tasks sourced from SWE-rebench, SWE-rebench V2, and Scale-SWE datasets.
- 11:37For evaluation, they employed three benchmarks: SWE-Bench Verified, SWE-Bench Multilingual, and SWE-Bench Pro, assessing diverse coding tasks spanning various programming languages and repository-level challenges.
- 11:52Evan: How did they structure these experiments?
- 11:54Ashley: The authors conducted two rounds of harness and policy optimization.
- 11:58Each round included six harness candidates per H-step and 50 reinforcement learning updates per P-step.
- 12:05This setup was crucial for demonstrating the iterative improvement capabilities of Self-HPO.
- 12:11Evan: What were the main performance metrics?
- 12:14Ashley: The primary performance metric was the resolve rate—the percentage of tasks successfully completed.
- 12:21Additionally, the authors used pass@1 and pass@k metrics to evaluate reliability and capability across multiple attempts.
- 12:29Evan: And what did the results show?
- 12:32Ashley: Self-HPO consistently outperformed baselines that optimized only the policy or only the harness.
- 12:39For instance, on SWE-Bench Verified, Self-HPO improved the resolve rate from 61.0% with the base model to 69.5%.
- 12:50Similar gains were observed on SWE-Bench Multilingual and SWE-Bench Pro, with increases of 5.5 and 6.9 percentage points, respectively.
- 13:01Evan: That's significant.
- 13:03How does this compare to other methods using external models like Opus 4.8?
- 13:09Ashley: Great question.
- 13:11With Opus 4.8 as the harness proposer in the HPO setup, the performance saw further improvements.
- 13:17Specifically, the resolve rate on SWE-Bench Verified improved to 71.6%, and average scores across benchmarks rose to 66.3%, showing the strong adaptability of Self-HPO.
- 13:32Evan: Were there any notable insights from the ablation studies?
- 13:35Ashley: Yes.
- 13:36The ablation studies highlighted three key insights.
- 13:39First, reinforcement learning yields stronger policy updates compared to supervised fine-tuning, with resolve rates dropping by 4.4 points when RL was replaced by SFT in the P-step.
- 13:51Second, evolving the search set to include hard tasks from previous rounds improved performance by 1.5 percentage points over using a fixed set.
- 14:00Third, while external models like Opus 4.8 provide a performance boost, the self-proposer mechanism in Self-HPO is still highly effective, achieving 69.5% resolve rate on SWE-Bench Verified when used alone.
- 14:15Evan: It sounds like the adaptability and continuous improvement aspects of Self-HPO are well-supported by these experiments.
- 14:24Ashley: Indeed.
- 14:25The authors also cross-evaluated the optimized components, finding that both the enhanced policy and harness retained their improvements, even when paired with their base counterparts.
- 14:35Combining these optimized components resulted in a joint gain exceeding the sum of their individual gains by 1.6 points.
- 14:43Evan: What about the pass@k metrics?
- 14:45Did they show improvements as well?
- 14:47Ashley: Yes, the pass@k metrics indeed showed significant improvements.
- 14:52For example, Self-HPO increased the pass@8 rate from 80.0% to 84.8%, demonstrating enhanced capability across multiple attempts.
- 15:02More notably, pass@1 rates increased for almost all task difficulties, except for some very straightforward tasks where performance slightly dipped, likely due to the focus on harder tasks.
- 15:14Evan: How does Self-HPO handle scenarios where no valid solution is found in the initial rollouts?
- 15:22Ashley: During reinforcement learning, Self-HPO reduces zero-success rollout groups—cases where no rollout succeeds—significantly lowering the proportion from around 11% to 17% to just 6.5%.
- 15:36This reduction is crucial because zero-success groups offer no reward signal, hence mitigating them enhances the learning process.
- 15:44Evan: That’s a substantial improvement.
- 15:47Can you give us an example of how the harness optimization works in practice?
- 15:51Ashley: Of course.
- 15:52One simple yet impactful example is the 'empty-patch guard'.
- 15:56Imagine a scenario where a policy submits an empty or malformed patch.
- 16:01The optimized harness intervenes, prompting the agent to check for any unstaged new files or incorrect submissions.
- 16:08This simple check ensures that valid patches are submitted, reducing the error rate significantly.
- 16:14Evan: That makes sense.
- 16:15Any closing thoughts on the experiment section?
- 16:17Ashley: Overall, the experiments and results strongly support the effectiveness of Self-HPO in creating self-improving coding agents.
- 16:25By dynamically optimizing both the harness and policy through iterative rounds, it achieves significant performance gains and enhanced adaptability.
- 16:34Evan: That brings us to the end of the Experiment section.
- 16:37In the next segment, we’ll discuss some related work and draw conclusions from this exciting framework.
- 16:44Evan: Alright, let's explore some of the related work that forms the backdrop for Self-HPO.
- 16:49Ashley: Sure.
- 16:50The paper discusses several lines of research that contribute to the broader context of harness and policy optimization for large language model agents.
- 16:59Evan: Let's start with harness optimization.
- 17:02What has previous research focused on in this area?
- 17:06Ashley: Harness optimization involves refining the external scaffolding that determines what the model observes, how its actions are executed, and the feedback it receives.
- 17:16This spans across prompts, workflows, and agent code.
- 17:19Studies have shown that optimizing these components without altering the policy model can still lead to significant performance gains.
- 17:27Evan: Could you give some specific examples of how harness optimization has been applied in past research?
- 17:35Ashley: For instance, Pryzant et al., 2023, and Khattab et al., 2023, focused on optimizing prompts and programs.
- 17:44Hu et al., 2024, and Zhang et al., 2025, worked on making workflows more efficient.
- 17:52Approaches like these have been used to guide agents in a variety of tasks, from software engineering to navigating websites.
- 17:59Evan: I see.
- 18:00And what about policy optimization—what's the focus there?
- 18:04Ashley: Policy optimization typically involves adjusting the policy model itself, often through reinforcement learning or supervised fine-tuning.
- 18:13This is done to improve the model based on the successful trajectories or rewards it receives during its tasks.
- 18:20Recent studies, such as those by Guo et al., 2025, and Wei et al., 2025a, have shown considerable advancements by focusing on policy optimization alone.
- 18:32Evan: So how does Self-HPO blend these two optimization strategies?
- 18:37Ashley: Self-HPO stands out by alternating between harness optimization and policy optimization within the same framework.
- 18:44This dual approach is relatively novel compared to prior methods that typically focus on one component at a time.
- 18:50The paper highlights several recent works that begin to explore this combined optimization, but often rely on an external harness proposer.
- 18:59Evan: And in the context of Self-HPO, how is this external reliance addressed?
- 19:04Ashley: Self-HPO mitigates this by using the evolving policy itself as the harness proposer, which is a significant step forward.
- 19:11For example, Kim et al., 2026, and Chen et al., 2026a, have also worked on optimizing both harness and policy, but they use an external model to suggest harness changes.
- 19:24Evan: That makes the framework more self-sufficient.
- 19:27What other aspects set Self-HPO apart in its approach?
- 19:32Ashley: Another key difference is how Self-HPO evolves the search set for the harness.
- 19:37While other methods might use a fixed set of tasks for harness evaluation, Self-HPO adapts by using tasks that the policy finds hard to solve in the previous round.
- 19:47This ensures that the optimization process continuously targets the policy's evolving weaknesses.
- 19:53Evan: That's a smart way to keep the optimization relevant.
- 19:56Are there any other notable methods in joint harness–policy optimization?
- 20:01Ashley: Yes, Luo et al., 2026, proposed HASE, which also uses a self-proposing policy.
- 20:07However, HASE places harness edits within the RL action space itself, unlike Self-HPO, which alternates between policy learning and harness search.
- 20:17Also, Xu et al., 2026a, introduced Evo2, which trains a separate harness proposer while keeping the task-solving policy frozen.
- 20:27Evan: So Self-HPO's method of using the evolving policy as its own harness proposer is fairly unique then.
- 20:35Ashley: Exactly.
- 20:37It’s a novel way to ensure that both the harness and policy evolve together, addressing their mutual dependencies directly and efficiently.
- 20:45Evan: And what about the practical applications of these advancements?
- 20:50How are they typically utilized?
- 20:52Ashley: Harness optimizations are employed in a range of applications, from software engineering as seen in the works by Le et al., 2026, to more general use cases like automated computer use described by Agashe et al., 2025.
- 21:07Joint optimization strategies, especially those addressing evolving tasks and environments, represent a cutting-edge approach to making these systems more robust and generalizable.
- 21:17Evan: This gives a comprehensive understanding of the related works that inform Self-HPO and the distinct contributions it makes.
- 21:28Ashley: Indeed.
- 21:29With Self-HPO's recursive self-improving framework, where the agent itself proposes harness revisions and adapts through reinforcement learning, it pushes the envelope in both harness and policy optimization.
- 21:41This integrated approach sets a new benchmark in the field.
- 21:45Evan: That wraps up our discussion on the Related Work section.
- 21:50Evan: We've covered the introduction, methods, experiments, and related work.
- 21:55Now, let's summarize the key contributions and takeaways of this paper.
- 21:59Ashley: Certainly.
- 22:00The paper introduces Self-HPO, a recursive self-improving framework for coding agents that alternates between harness and policy optimization.
- 22:10Evan: This approach leverages the evolving policy as its own harness proposer, enabling continuous adaptation and improvement in performance.
- 22:18Ashley: The framework has been thoroughly tested across three coding benchmarks, demonstrating significant improvements in resolve rates and robustness.
- 22:27The average resolve rate increased notably from 57.8% to 64.8%.
- 22:33Evan: One of the standout features is the dynamic interplay between the harness and policy modules.
- 22:39Both components keep improving adaptively, ensuring sustained gains.
- 22:44Ashley: Exactly.
- 22:45The optimized components retain their enhancements even when paired with their base counterparts, and their combined improvement exceeds the sum of individual gains.
- 22:55This highlights the efficiency of joint harness–policy optimization.
- 22:59Evan: The paper also provides insights into how reinforcement learning techniques like Group Relative Policy Optimization and Balanced Adaptive Rollout contribute to refining the policy model, making it more effective under the optimized harness.
- 23:14Ashley: Moreover, the evolving search set ensures that harness optimization targets the latest policy weaknesses, making the agent's performance enhancement continuous and aligned with its evolving capabilities.
- 23:27Evan: And with the potential to integrate stronger external models, Self-HPO opens up pathways for even greater performance improvements.
- 23:34Ashley: Overall, Self-HPO represents a significant advancement in creating self-improving coding agents, pushing the boundaries of what these systems can achieve.
- 23:46Evan: That's all for today's episode.
- 23:48Thank you for joining us on Daily Paper Cast as we explored the intricacies of Self-HPO.
- 23:54Ashley: We hope you found the discussion insightful.
- 23:57Be sure to tune in for our next episode where we delve into another exciting paper from the world of AI and machine learning.
- 24:04Evan: Until then, stay curious and keep exploring!
- 24:08Goodbye for now.
- 24:10Ashley: Goodbye!