프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

SWE-bench: Can Language Models Resolve Real-World GitHub Issues?

SWE-bench: 언어 모델은 실제 GitHub 이슈를 해결할 수 있는가?

  • 연구 문제 언어 모델이 실제 GitHub 저장소의 이슈를 패치로 해결할 수 있는지 평가하기 위해 SWE-bench를 제안합니다.
  • 연구 방법 실제 이슈와 병합된 풀 리퀘스트에서 과제를 만들고, 생성된 패치를 저장소 테스트로 실행해 해결 여부를 판정합니다.
  • 주요 결과 BM25 검색 설정에서 가장 좋은 Claude 2의 해결률은 1.96%로, 현재 모델이 대부분의 실제 이슈를 해결하지 못함을 보여 줍니다.

기존 코드 벤치마크의 한계와 실제 소프트웨어 공학 과제

기존 코드 벤치마크는 대개 몇 줄 안에 풀 수 있는 자기완결적 문제를 다룹니다. 실제 저장소에서 버그를 고치는 일은 큰 저장소를 탐색하고, 여러 파일의 함수 사이 상호작용을 이해하며, 복잡한 코드에서 작은 오류를 찾는 일을 요구합니다. SWE-bench는 이 간극을 메우기 위해 실제 GitHub 이슈와 그에 대응하는 병합된 풀 리퀘스트를 바탕으로 언어 모델이 저장소 수준의 패치를 생성해 이슈를 해결할 수 있는지 묻습니다. 평가에 사용되는 과제 인스턴스는 2,294개이며 12개의 인기 Python 저장소에서 가져옵니다.

Figure 1: SWE-bench sources task instances from real-world Python repositories by connecting
GitHub issues to merged pull request solutions that resolve relate…

Figure 1 : SWE-bench sources task instances from real-world Python repositories by connecting GitHub issues to merged pull request solutions that resolve related tests. Provided with the issue text and a codebase snapshot, models generate a patch that is evaluated against real tests.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

과제 인스턴스의 수집과 실행 기반 검증

과제 인스턴스는 병합된 풀 리퀘스트 가운데 이슈를 해결하고, 저장소의 테스트 파일을 변경하며, 설치와 실행에 성공하는 것들에서 만들어집니다. 후보는 속성 기반 필터링과 실행 기반 필터링을 거칩니다. 실행 기반 필터링에서는 테스트 결과가 적용 전후에 실패에서 통과로 바뀌는 FAIL_TO_PASS 테스트가 적어도 하나 있어야 합니다. 모델이 생성한 패치는 기준 커밋에 적용되고 관련 단위 테스트와 시스템 테스트를 실행합니다. 패치가 적용되고 모든 테스트가 통과할 때 해당 과제가 해결된 것으로 보며, 평가 지표는 해결된 과제 인스턴스의 비율입니다.

Figure 2: SWE-bench task instances are created from merged pull requests that resolve an issue,
contributes tests, and install successfully

Figure 2 : SWE-bench task instances are created from merged pull requests that resolve an issue, contributes tests, and install successfully.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.
Figure 7: SWE-bench task instance example. Problem statement P is an aggregation of the issues
related to the pull request. Codebase C corresponds to a reposit…

Figure 7 : SWE-bench task instance example. Problem statement P is an aggregation of the issues related to the pull request. Codebase C corresponds to a repository and base commit. The tests T and solutionD are derived from the original PR’s associated code changes. Stylized for readability.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Table 10: Statistics for how many candidate task instances were kept after the completion of a stage
across the construction and validation procedures

Table 10 : Statistics for how many candidate task instances were kept after the completion of a stage across the construction and validation procedures.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Figure 8: Visualization of the evaluation pipeline at an individual task instance level. During evalua-
tion, the Patch is model generated. A prediction .patch…

Figure 8 : Visualization of the evaluation pipeline at an individual task instance level. During evalua- tion, the Patch is model generated. A prediction .patch must be applied successfully and produce the same results as the corresponding task instance’sD for task completion.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

SWE-Llama의 학습 데이터와 fine-tuning

저자들은 SWE-bench 수집 절차를 37개의 다른 인기 Python 저장소에 적용해 SWE-bench-train을 구성합니다. 이 데이터는 테스트 변경을 요구하지 않은 19,000개의 이슈-풀 리퀘스트 쌍을 포함합니다. 학습 데이터의 저장소는 평가 벤치마크의 저장소와 겹치지 않도록 분리되었습니다. SWE-Llama는 CodeLlama-Python 7B와 13B를 LoRA로 미세조정한 모델로, 이슈 텍스트와 관련 코드 파일을 입력받아 참조 패치를 생성하도록 학습됩니다. 긴 문맥을 위해 30,000 토큰을 넘는 학습 시퀀스는 제외되고, 유효 학습 규모는 10,000개 인스턴스로 줄어듭니다.

BM25 검색과 oracle 검색 설정

코드베이스 전체는 대부분의 언어 모델 문맥 창에 들어가지 않으므로, 실험은 문맥을 고르는 방식을 두 가지로 나눕니다. 희소 검색에서는 BM25로 이슈 설명과 관련된 파일을 골라 문맥 한도 안에서 제공합니다. oracle 검색은 참조 패치가 편집한 파일을 제공하는 분석용 설정입니다. 실제 엔지니어가 어느 파일을 고칠지 미리 알기 어렵다는 점에서 oracle 설정은 덜 현실적이지만, 문맥 선택이 결과에 주는 영향을 분리해 볼 수 있습니다.

Table 2: Model resolve rates with BM25 re-
trieval, with different maximum context lengths

Table 2 : Model resolve rates with BM25 re- trieval, with different maximum context lengths.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Table 3: BM25 recall with respect to oracle files
for different maximum context lengths

Table 3 : BM25 recall with respect to oracle files for different maximum context lengths.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Table 4: We compare the different context lengths and proportion of the “oracle” retrieval setting
covered. Models with shorter context lengths are thus inhere…

Table 4 : We compare the different context lengths and proportion of the “oracle” retrieval setting covered. Models with shorter context lengths are thus inherently disadvantaged. Note that descrip- tions of token-lengths is a relative non-standard measure (e.g. Llama-tokenized sequences are 42% longer on average than the equivalent sequence tokenized for GPT-4).

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

BM25 설정의 주요 해결률

BM25 검색을 사용한 설정에서 Claude 2는 전체 이슈의 1.96%를 해결하며 가장 좋은 성능을 보입니다. 저자들은 이 낮은 수치를 과제 난이도를 보여 주는 결과로 해석합니다. 이 결과는 BM25로 제공한 문맥과 평가 설정 아래에서 얻은 것이며, 다른 검색 방법이나 문맥 한도에서 같은 값이 나온다고 보장하지 않습니다.

Table 5: We compare models against each other using the BM25 retriever as described in Section 4

Table 5 : We compare models against each other using the BM25 retriever as described in Section 4.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

실행 테스트의 한계

저자들은 실행 기반 테스트만으로는 모델 생성 코드가 포괄적이고 효율적이며 읽기 쉬운지 보장하기 어렵다고 설명합니다. 테스트를 통과한 패치라도 사람이 작성한 해법보다 덜 포괄적이거나 덜 효율적일 수 있다는 것이 저자들의 관찰입니다.

Table 8: Average edits of model generated patches in the “oracle” retrieval setting across success-
fully applied patches. For the task instances specific to e…

Table 8 : Average edits of model generated patches in the “oracle” retrieval setting across success- fully applied patches. For the task instances specific to each model, we calculate the same statistics across the gold patches. Avg Gold shows statistics macro-averaged over each models’ respective gold patches. All Gold shows statistics for all gold patches unconditioned on model performance.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 23: Categorization of model generations that applied successfully by the cases defined in
Table 22. As mentioned, GPT-4 was evaluated on a25% subset (574…

Table 23 : Categorization of model generations that applied successfully by the cases defined in Table 22. As mentioned, GPT-4 was evaluated on a25% subset (574 instances) of SWE-bench.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 29쪽에서 그림 영역을 추출했습니다.
Table 25: In this example, Claude 2 correctly addresses an issue from scikit-learn/scikit-learn. How-
ever, as demonstrated in the discussion, while the soluti…

Table 25 : In this example, Claude 2 correctly addresses an issue from scikit-learn/scikit-learn. How- ever, as demonstrated in the discussion, while the solution is correct, it demonstrates models’ ten- dency to write primitive Python and not employ existing methods within the codebase.

원문 · CC BY 4.0 · Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan · SWE-bench: Can Language Models Resolve Real-World GitHub Issues? · 원문 그림 인용 · 원본 PDF 33쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan
학회·저널
arXiv · 프리프린트
최초 공개일
2023년 10월 10일
등록일
2026년 10월 20일
수정일
2024년 11월 11일
버전
v3
arXiv
2310.06770
분류
cs.CL · cs.AI · cs.SE
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

Language models have outpaced our ability to evaluate them effectively, but for their future development it is essential to study the frontier of their capabilities. We find real-world software engineering to be a rich, sustainable, and challenging testbed for evaluating the next generation of language models. To this end, we introduce SWE-bench, an evaluation framework consisting of $2,294$ software engineering problems drawn from real GitHub issues and corresponding pull requests across $12$ popular Python repositories. Given a codebase along with a description of an issue to be resolved, a language model is tasked with editing the codebase to address the issue. Resolving issues in SWE-bench frequently requires understanding and coordinating changes across multiple functions, classes, and even files simultaneously, calling for models to interact with execution environments, process extremely long contexts and perform complex reasoning that goes far beyond traditional code generation tasks. Our evaluations show that both state-of-the-art proprietary models and our fine-tuned model SWE-Llama can resolve only the simplest issues. The best-performing model, Claude 2, is able to solve a mere $1.96$% of the issues. Advances on SWE-bench represent steps towards LMs that are more practical, intelligent, and autonomous.

원문 인용

Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan (2023). SWE-bench: Can Language Models Resolve Real-World GitHub Issues?. arXiv:2310.06770v3. https://arxiv.org/abs/2310.06770v3

BibTeX
@misc{jimenez2023bench,
  title = {{SWE-bench: Can Language Models Resolve Real-World GitHub Issues?}},
  author = {Carlos E. Jimenez and John Yang and Alexander Wettig and Shunyu Yao and Kexin Pei and Ofir Press and Karthik Narasimhan},
  year = {2023},
  eprint = {2310.06770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.06770v3}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입