Skip to main content
QUICK REVIEW

[논문 리뷰] Hybrid-Gym: Training Coding Agents to Generalize Across Tasks

Yiqing Xie, Emmy Liu|arXiv (Cornell University)|2026. 02. 18.
Software Engineering ResearchComputer Science인용 수 0
한 줄 요약

Hybrid-Gym은 실행 가능한 저장소 없이도 실제 코드 벤치마크로의 강력한 전달(전이)을 가능하게 하는 코딩 에이전트를 위한 합성 다중 작업 학습 태스크의 확장 가능한 세트를 소개합니다. SWE-Bench, SWT-Bench, Commit-0 전반의 일반화 성능을 향상시키고 도메인 내 데이터를 보완합니다.

ABSTRACT

When assessing the quality of coding agents, predominant benchmarks focus on solving single issues on GitHub, such as SWE-Bench. In contrast, in real use, these agents solve more various and complex tasks that involve other skills such as exploring codebases, testing software, and designing architecture. In this paper, we first characterize some transferable skills that are shared across diverse tasks by decomposing trajectories into fine-grained components, and derive a set of principles for designing auxiliary training tasks to teach language models these skills. Guided by these principles, we propose a training environment, Hybrid-Gym, consisting of a set of scalable synthetic tasks, such as function localization and dependency search. Experiments show that agents trained on our synthetic tasks effectively generalize to diverse real-world tasks that are not present in training, improving a base model by 25.4% absolute gain on SWE-Bench Verified, 7.9% on SWT-Bench Verified, and 5.1% on Commit-0 Lite. Hybrid-Gym also complements datasets built for the downstream tasks (e.g., improving SWE-Play by 4.9% on SWT-Bench Verified). Code available at: https://github.com/yiqingxyq/Hybrid-Gym.

연구 동기 및 목표

  • 현실 세계의 코딩 태스크에 필요한 공통 구성 요소와 능력(예: 추론, 저장소 탐색, 구현)을 식별한다.
  • 복잡한 실행 환경을 필요로 하지 않으면서 이러한 구성 요소를 학습시키는 확장 가능한 학습 태스크를 설계한다.
  • Hybrid-Gym에서 학습된 에이전트를 여러 다운스트림 코딩 벤치마크로 전달(전이)하는 것을 입증한다.
  • 다른 태스크 설계와 데이터 선택이 전달성 및 성능에 미치는 영향을 보여준다.

제안 방법

  • 현실 세계의 코딩 태스크를 중간 구성 요소로 분해한다: 추론, 저장소 탐색, 실행, 구현, 검증.
  • 출력이 다운스트림 태스크 형식과 일치하도록 하는 태스크 설계의 원리를 도출하며, 저장소 탐색을 포함하고, 비자극적 추론이 필요하며, 과도한 환경 설정을 피한다.
  • 이 원칙을 만족하는 네 가지 Hybrid-Gym 태스크(함수 위치 지정, 이슈 위치 지정, 의존성 검색, 함수 생성)를 만든다.
  • Hybrid-Gym에서 코딩 에이전트(예: Qwen2.5Coder 변형들)를 학습하고, 다운스트림 태스크 미세조정 없이 SWE-Bench, SWT-Bench, Commit-0로의 전달을 평가한다.
  • 출력 형식, 저장소 탐색, 궤적 복잡성, 교사-학생 증류 다이내믹스, 저장소 다양성이 전달 성능에 미치는 영향을 분석하기 위한 차원 실험과 제어 실험을 수행한다.
Figure 1 : ( Left ) We decompose general coding agent tasks into a set of intermediate components and compute the percentage of agent actions spent on each component. Our training tasks partially cover verification and fully cover reasoning, repository exploration, and implementation, which consist
Figure 1 : ( Left ) We decompose general coding agent tasks into a set of intermediate components and compute the percentage of agent actions spent on each component. Our training tasks partially cover verification and fully cover reasoning, repository exploration, and implementation, which consist

실험 결과

연구 질문

  • RQ1RQ1: 현실 세계의 코딩 태스크를 뒷받침하는 공통 중간 구성 요소는 무엇이며 에이전트의 행동은 이러한 구성 요소에 어떻게 매핑되는가?
  • RQ2RQ2: 다양한 다운스트림 태스크에 걸친 코딩 에이전트의 효과적 전달을 가능하게 하는 학습 태스크 설계는 무엇인가?
  • RQ3RQ3: 어떤 요인들(출력 형식, 저장소 탐색, 추론의 복잡성, 궤적 길이, 교사 모델)이 전달 성능에 가장 큰 영향을 미치는가?
  • RQ4RQ4: Hybrid-Gym이 여러 벤치마크에서 일반화를 촉진하는 기존의 태스크-전이 데이터셋과 비교하여 어떠한 차이를 보이는가?

주요 결과

  • Hybrid-Gym에서 학습된 에이전트는 다운스트림 태스크 데이터 없이도 세 가지 실제 작업(SWE-Bench, SWT-Bench, Commit-0)으로의 강력한 전달을 보이며, 기초 모델 대비 실질적인 절대적 이득을 제공합니다.
  • 다운스트림 태스크에서의 대부분의 에이전트 행동은 추론, 저장소 탐색, 구현을 포함하며, 저장소 탐색 명령(grep, find, cd, ls)은 태스크 간에 매우 이전 가능성이 큽니다.
  • 다운스트림 패치 유사 수정과 같은 태스크 출력이 중요합니다; 패치 작성 행동을 제거하면 SWE-Bench 성능이 극단적으로 감소합니다.
  • 다양한 저장소로 학습하면(저장소 다양성 높음) 평가 저장소를 암기하기보다는 보이지 않는 코드베이스에 대한 일반화가 향상됩니다.
  • 더 길고 더 복잡한 궤적과 지시문이 풍부한 교사 데이터가 전달을 향상시키는 반면, 스크립트 수준의 태스크만으로는 저장소 수준의 태스크로 일반화되지 않습니다.
Figure 2 : Scaling law analysis. Performance on SWE-bench Verified improves consistently as training data size increases from around 5% (250 trajectories) to 100% (4.4k trajectories).
Figure 2 : Scaling law analysis. Performance on SWE-bench Verified improves consistently as training data size increases from around 5% (250 trajectories) to 100% (4.4k trajectories).

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.