CodeReel: 프레임의 정확한 재사용과 대기 시간을 고려한 스케줄링으로 코드 기반 비디오 제작 에이전트 가속
CodeReel: Accelerating Code-to-Video Agents with Exact Frame Reuse and Blocking-Aware Scheduling
한국어 초록
코딩 에이전트는 프로그램을 작성하고 빌드, 검사, 편집을 반복해 비디오를 만든다. 영상 하나를 완성하는 데 모델 호출 비용은 중앙값 2.85달러, 소요 시간은 중앙값 11분이다. 시간의 3분의 1 이상은 에이전트가 빌드를 기다리는 데 쓰인다. 이 시간의 상당 부분을 줄일 수 있는 이유는 두 가지다. 첫째, 한 세션에서 후반에 생성한 영상 프레임의 37.5%는 이전에 이미 그린 적이 있으며, 그중 상당수는 시간 위치가 달라졌거나 편집한 장면에 들어 있었다. 둘째, 빌드의 절반은 검사 단계에서 중단된다. 이 경우 에이전트에는 판정 결과만 필요하지만, 어떤 빌드가 중단될지는 검사가 끝나야 알 수 있다. 기존 에이전트 명령의 배후에서 동작하고 추가 학습이 필요 없는 실행 계층 CodeReel을 제시한다. 정확한 프레임 재사용은 시간상 위치와 무관하게 그리기 명령에서 각 프레임의 키를 만들고, 키가 다시 나오면 그 프레임을 재사용한다. 대기를 고려한 스케줄링은 검사를 먼저 시작하고, 최근 빌드 이력으로 보아 검사에 통과하기 어려운 경우를 제외하면 유휴 우선순위로 렌더링을 병행한다. 스케줄링은 더 빨리 응답하기 위해 CPU를 쓰고, 프레임 재사용으로 그 비용을 회수한다. 정확한 키를 쓰므로 에이전트가 다음 수정을 추론하는 동안 실패한 버전에서 렌더링한 프레임도 이후 버전에서 재사용할 수 있다. 재실행 가능한 에이전트 세션으로 구성한 벤치마크 EditLoop를 소개한다. 각 영상은 처음부터 다시 렌더링한 결과와 대조한다. 여기에서 CodeReel은 병렬 렌더링과 준비된 실행 환경을 쓰는 Rebuild 대비 에이전트 대기 시간을 36.3%, 기존 순차 파이프라인인 Sequential 대비 57.9% 줄였다. 시간 위치를 바꾸는 편집에서 프레임 재사용 방식은 43.9%를 렌더링했다. 픽셀이 새로운 프레임 비율 43.0%에 가까웠으며, Manim 방식의 캐싱은 99.8%를 렌더링했다. 실제 에이전트에서 빌드당 대기 시간 중앙값은 개발에 없던 주제를 사용한 Claude Code에서 Rebuild의 0.62배, Codex CLI에서 0.67배였다. 이 개선은 모델 다섯 개와 프레임워크 두 개에서 유지됐다.
원문 초록
Coding agents make videos by writing and refining programs in a build--inspect--edit loop. A finished film costs a median of $2.85 in model calls and 11 minutes, over a third of that time in builds that block the agent. We find that much of this time is avoidable, for two reasons. First, 37.5% of the frames of a session's later films were drawn before, many shifted in time or inside an edited scene. Second, half of the builds stop at a check, where the agent needs only the verdict, but which builds stop is unknown until the checks finish. We present CodeReel, a training-free execution layer behind agents' existing commands. Exact frame reuse keys each frame by its drawing commands, regardless of its position in time, and reuses each frame whose key recurs. Blocking-aware scheduling runs the checks first and starts the render alongside them, at idle priority, unless the session's recent builds make a pass unlikely. Scheduling spends CPU to answer sooner and reuse returns it; exact keys let later versions use frames rendered for a failed one as the agent thinks. We introduce EditLoop, a benchmark of replayable agent sessions whose films are checked against renders from scratch. On it, CodeReel cuts the agent's wait by 36.3% against Rebuild, a warm pipeline with parallel rendering, and by 57.9% against Sequential, today's step-by-step pipeline. On time-shifting edits its reuse renders 43.9%, close to the 43.0% whose pixels are new, while Manim-style caching renders 99.8%. With real agents, the median wait per build is 0.62x Rebuild's in Claude Code, on topics never used in development, and 0.67x in Codex CLI. The gain holds for five models and two frameworks.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2611.22967v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.