Option-GRPO: 미지의 SDK에 대한 코드 생성에서 AI 슬롭에 대응하는 계층적 강화학습
Option-GRPO: Hierarchical RL Against AI Slop in Code Generation for Unseen SDKs
한국어 초록
대규모 언어 모델은 생성한 코드에서 AI 슬롭을 점점 더 많이 만들어낸다. 이는 기능 검사는 통과하지만 코드베이스를 비대하게 만드는, 장황하고 중복적이며 관용적이지 않은 구현을 말한다. 이 문제는 모델의 학습 시점 이후에 출시된 SDK에서 더욱 심해지는데, 모델이 관용적 사전 지식도, 구성적 이해도 갖고 있지 않기 때문이다. 우리는 사람이 작성한 사용 예제나 테스트 케이스 없이 소스 코드만으로 코드 LLM을 미지의 SDK에 적응시키며, 기능적 정확성과 코드의 우아함을 모두 명시적으로 최적화하는 계층적 강화학습 프레임워크인 Option-GRPO를 제시한다. 핵심 통찰은 SDK 소스 코드가 재사용 가능한 코드 패턴(코드 옵션)의 계층을 정의하는 구성적 구조를 담고 있으며, 이 옵션이 커리큘럼의 구성 요소이자 효율적인 정책 최적화를 위한 행동 공간으로 동시에 기능한다는 점이다. 우리는 코드 옵션이 유효한 반마르코프 결정 과정을 유도함을 보이고, 옵션 기술 길이가 짧을수록 더 간결하며 기대값 기준으로 API 효율이 더 높은 프로그램을 의미하게 되는 조건부 한계를 제시하며, 명시된 가정 하에서 옵션 계층이 $\sqrt{T/K}$ 배만큼 크레딧 할당을 개선하는 방식을 분석한다. 각 커리큘럼 단계에서 실행 기반 보상과 함께 그룹 상대 정책 최적화(GRPO)를 사용하여, Option-GRPO는 SDK 관용구를 발견하고 이를 패턴으로 구성하며 패턴을 완전한 프로그램으로 조립한다. 320억 파라미터 기반 모델로 12개의 미지의 SDK에서 수행한 실험에서 pass@1 61.4%를 달성하여, 평면 GRPO보다 8.7점, ExploraCoder보다 11.2점, ReCode보다 6.3점 높은 성능을 보였다. Option-GRPO는 평면 GRPO의 출력보다 API 호출을 34.7% 적게 사용하고 27% 더 짧으면서도 더 높은 정확성을 유지하는 해법을 생성하여, 슬롭 문제에 직접 대응한다.
원문 초록
Large language models increasingly produce AI slop in generated code: verbose, redundant, non-idiomatic implementations that pass functional checks but bloat codebases. The problem compounds on SDKs released after the model's training cutoff, where the model has neither idiomatic priors nor compositional understanding. We present Option-GRPO, a hierarchical reinforcement learning framework that adapts a code LLM to an unseen SDK from its source code alone, without human-written usage examples or test cases, and that explicitly optimizes for both functional correctness and code elegance. Our key insight is that SDK source code contains compositional structure that defines a hierarchy of reusable code patterns (code options) which simultaneously serve as the building blocks of a curriculum and the action space for efficient policy optimization. We show that code options induce a valid semi-Markov decision process, give conditional bounds under which shorter option description length implies more concise and, in expectation, more API-efficient programs, and analyze under stated assumptions how the option hierarchy improves credit assignment by a factor of $\sqrt{T/K}$. Using Group Relative Policy Optimization (GRPO) with execution-based rewards at each curriculum level, Option-GRPO discovers SDK idioms, composes them into patterns, and assembles patterns into complete programs. Experiments on 12 unseen SDKs with a 32B-parameter base model demonstrate 61.4% pass@1, outperforming flat GRPO by 8.7 points, ExploraCoder by 11.2 points, and ReCode by 6.3 points. Option-GRPO produces solutions that use 34.7% fewer API calls and are 27% shorter than flat-GRPO outputs while maintaining higher correctness, directly attacking the slop problem.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.23633v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.