Skip to main content
QUICK REVIEW

[논문 리뷰] OpenCoder: The Open Cookbook for Top-Tier Code Large Language Models

Siming Huang, Tsung‐Chieh Cheng|arXiv (Cornell University)|2024. 11. 07.
Natural Language Processing TechniquesComputer Science인용 수 5
한 줄 요약

요약: OpenCoder는 재현 가능한 사전 학습 데이터와 학습 파이프라인, 그리고 두 단계의 지시 미세 조정을 통해 6B 이상 매개변수에서 완전히 공개된 모델 중 최고 성능을 달성하는 완전한 오픈 소스 코드 LLM을 제시합니다. 이는 재현 가능한 코드 AI 연구를 위한 열린 기반을 제공합니다.

ABSTRACT

Large language models (LLMs) for code have become indispensable in various domains, including code generation, reasoning tasks and agent systems. While open-access code LLMs are increasingly approaching the performance levels of proprietary models, high-quality code LLMs suitable for rigorous scientific investigation, particularly those with reproducible data processing pipelines and transparent training protocols, remain limited. The scarcity is due to various challenges, including resource constraints, ethical considerations, and the competitive advantages of keeping models advanced. To address the gap, we introduce OpenCoder, a top-tier code LLM that not only achieves performance comparable to leading models but also serves as an "open cookbook" for the research community. Unlike most prior efforts, we release not only model weights and inference code, but also the reproducible training data, complete data processing pipeline, rigorous experimental ablation results, and detailed training protocols for open scientific research. Through this comprehensive release, we identify the key ingredients for building a top-tier code LLM: (1) code optimized heuristic rules for data cleaning and methods for data deduplication, (2) recall of text corpus related to code and (3) high-quality synthetic data in both annealing and supervised fine-tuning stages. By offering this level of openness, we aim to broaden access to all aspects of a top-tier code LLM, with OpenCoder serving as both a powerful model and an open foundation to accelerate research, and enable reproducible advancements in code AI.

연구 동기 및 목표

  • 코드 LLM의 기계적 해석가능성과 코드 LLM의 데이터 분포에 대한 연구를 위한 연구 가능한, 완전히 투명한 강력한 기준선 코드 LLM을 제공한다.
  • stronger code LLMs를 위한 설계 선택을 이해하기 위해 사전 학습 및 지시 데이터 큐레이션 파이프라인을 조사한다.
  • 오픈하고 재현 가능한 데이터 처리 파이프라인, 데이터셋 및 학습 프로토콜을 제공하여 코드 AI의 오픈 과학 연구를 가속화한다.

제안 방법

  • RefineCode를 도입한다. 이는 607개 언어에 걸친 960B 토큰 규모의 고품질 사전 학습 데이터셋으로, 130개의 언어별 규칙과 가중치를 포함한다.
  • 전처리, 중복 제거(정확 매칭 및 퍼지 매칭), 변환(저작권 제거, PII 감소), 및 언어- 및 코드별 필터링 규칙을 포함하는 코드 중심 데이터 처리 파이프라인을 설계하고 적용한다.
  • Common Crawl으로부터 도메인 기반 코딩 분류 및 URL 주석을 통한 반복 회상 파이프라인으로 코드 관련 웹 데이터를 수집한다.
  • RealUser-Instruct, Large-scale Diverse-Instruct, 필터링된 지시 세트를 사용한 2단계 지시 미세 조정 체계를 제안하고, 2단계에서 GitHub의 고품질 코드로 마무리한다.
  • Megatron-LM을 사용해 1.5B 및 8B의 두 가지 모델 크기로 OpenCoder를 학습시키고, WSD 학습 스케줄, 특정 최적화 알고리즘, 대규모 토큰 예산을 적용한다. 사전 학습과 SFT를 연결하기 위한 고품질 합성 데이터로 섭씨 완만화 단계를 신중하게 적용한다.

실험 결과

연구 질문

  • RQ1오픈 소스 코드 LLM이 완전히 개방적이고 재현 가능한 상태를 유지하면서 최상위 성능에 도달할 수 있는 방법은 무엇인가?
  • RQ2데이터 큐레이션, 중복 제거 및 품질 관리 전략 중 어떤 것이 코드 LLM의 사전 학습 및 다운스트림 코딩 작업을 가장 효과적으로 향상시키는가?
  • RQ3이론 컴퓨터 과학 콘텐츠와 GitHub의 고품질 코드가 결합된 2단계 지시 미세 조정 접근 방식이 일반 코딩 기능과 설명 가능성을 향상시키는가?

주요 결과

  • OpenCoder는 6B+ 매개변수 규모의 코드 관련 벤치마크에서 이전의 완전 공개 모델을 능가한다(그림 1에 나와 있음).
  • RefineCode는 607개 언어에 걸친 960B 토큰의 고품질 재현 가능한 사전 학습 데이터셋을 제공하여 The Stack v2와 비교해 학습 효율성을 향상시킨다.
  • 이론 CS QA를 먼저, 그다음 GitHub의 고품질 코드로 구성된 2단계 지시 미세 조정 전략은 코드 생성 및 이해 작업 모두에서 더 강력한 성능을 보인다.
  • 출시에는 모델 가중치뿐 아니라 재현 가능한 데이터 처리 파이프라인, 제거/제거 실험, 학습 프로토콜이 포함되어 재현 가능한 코드 LLM 연구를 가능하게 한다.
  • Table 1의 공개 모델과의 비교에서 OpenCoder-8B는 HumanEval Pass@1 점수에서 경쟁력을 보이면서도 데이터와 워크플로우의 전면적 개방성을 제공한다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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