컴백부터 K-뷰티까지 — K-컬쳐의 모든 것을 메일로 받아보세요메일로 받아보기

METAL MEDIA

AI 에이전트가 한 번 성공한 작업 절차를 스스로 재사용 가능한 스킬로 바꿔 학습 없이 점점 똑똑해진다

arXiv:2607.215962026-08-19

FlowEvo: Self-Evolving Agents through the Co-Evolution of Workflows and Executable Skills

AI 에이전트가 한 번 성공한 작업 절차를 스스로 재사용 가능한 스킬로 바꿔 학습 없이 점점 똑똑해진다

LLM 에이전트가 복잡한 작업을 풀 때 그때그때 즉석에서 절차(워크플로우)를 만들지만, 성공한 절차는 보통 한 번 쓰고 버려진다. FlowEvo는 성공한 워크플로우를 실행 가능한 스킬로 컴파일해 저장해두고, 이후 비슷한 작업이 오면 그 스킬을 바로 실행하거나 새 워크플로우를 만들 때 참고자료로 활용한다. 모델 파라미터를 전혀 바꾸지 않고도 GPT-4o-mini만으로 ALFWorld에서 85.6%(기존 최고 대비 +26.4포인트)를 기록하면서 토큰 사용량은 3분의 1 수준으로 줄였다.

METAL MEDIA 해설 도표

AI 에이전트가 한 번 성공한 작업 절차를 스스로 재사용 가능한 스킬로 바꿔 학습 없이 점점 똑똑해진다

  1. 01에이전트가 작업을 성공적으로 풀면 그 과정을 재사용 가능한 '스킬'(호출 가능한 코드 + 사용 설명)로 자동 변환해 저장소에 보관한다
  2. 02새 작업이 들어오면 저장된 스킬을 조건에 따라 바로 실행하거나, 실행 대신 새 워크플로우를 짤 때 참고 정보로만 제공한다
  3. 03각 스킬이 실제로 도움이 되는지(성공률)를 계속 추적해서, 오히려 성능을 떨어뜨리는 스킬(부정적 전이)은 자동으로 사용을 중단시킨다
  4. 04GPT-4o-mini 하나만 백본으로 써서 ALFWorld, HumanEval, MBPP, GSM8K, MATH-500 다섯 개 벤치마크 전체 표준 분할에서 8개 비교 기법 중 가장 높은 정확도를 달성했다
  5. 057B부터 671B까지 파라미터 크기가 다른 10개 기반 모델에서 50개의 모델·데이터셋 조합 중 49개에서 기존 방법(ExpeL)보다 성능이 좋았다
METAL MEDIA이 원문을 바탕으로 재구성한 해설 도표이며, 논문 저자의 원문 figure가 아닙니다.

무엇을 했나

  1. 에이전트가 작업을 성공적으로 풀면 그 과정을 재사용 가능한 '스킬'(호출 가능한 코드 + 사용 설명)로 자동 변환해 저장소에 보관한다
  2. 새 작업이 들어오면 저장된 스킬을 조건에 따라 바로 실행하거나, 실행 대신 새 워크플로우를 짤 때 참고 정보로만 제공한다
  3. 각 스킬이 실제로 도움이 되는지(성공률)를 계속 추적해서, 오히려 성능을 떨어뜨리는 스킬(부정적 전이)은 자동으로 사용을 중단시킨다
  4. GPT-4o-mini 하나만 백본으로 써서 ALFWorld, HumanEval, MBPP, GSM8K, MATH-500 다섯 개 벤치마크 전체 표준 분할에서 8개 비교 기법 중 가장 높은 정확도를 달성했다
  5. 7B부터 671B까지 파라미터 크기가 다른 10개 기반 모델에서 50개의 모델·데이터셋 조합 중 49개에서 기존 방법(ExpeL)보다 성능이 좋았다
Figure 1: Overview of FlowEvo. Successful workflows are compiled into executable skills and stored in a persistent bank. Retrieved skills can either be executed directly or supplied as structured context for subsequent workflow generation.
Figure 1: Overview of FlowEvo. Successful workflows are compiled into executable skills and stored in a persistent bank. Retrieved skills can either be executed directly or supplied as structured context for subsequent workflow generation.
Table 1: Routing modes in FlowEvo. The distinction between direct execution and skill-conditioned generation is central to the mechanism analysis.
RouteRole of retrieved skillExecutes codeIndirect effect
Dynamic generationNo retrieved skill is used.
Direct skill executionA retrieved skill is called as an executable subroutine before verification.
Skill-conditioned generationRetrieved skills are supplied only as structured context for planning and generation.
Figure 2: Skill accumulation dynamics on ALFWorld. (a) FlowEvo’s token cost drops sharply once the first compiled skill becomes available around episode 10 (dashed line) and remains substantially below ReAct for the rest of the run. (b) Cumulative direct-reuse count (green) grows nearly linearly to 101/134, and the reuse hit rate (orange) stabilizes around 75%.
Figure 2: Skill accumulation dynamics on ALFWorld. (a) FlowEvo’s token cost drops sharply once the first compiled skill becomes available around episode 10 (dashed line) and remains substantially below ReAct for the rest of the run. (b) Cumulative direct-reuse count (green) grows nearly linearly to 101/134, and the reuse hit rate (orange) stabilizes around 75%.
Table 2: Main results across three benchmarks (GPT-4o-mini). Bold = best accuracy or lowest tokens; underline = second best.
ALFWorldHumanEvalGSM8K
MethodSR (%)Tokenspass@1 (%)TokensSolve (%)Tokens
Reflexion52.231,90092.789096.8555
ExpeL46.332,95889.088392.1552
ADAS53.029,67182.43,77690.82,820
AFLOW59.230,13794.73,82693.52,494
FlowEvo82.812,26795.188097.1541
Figure 3: Per-task-type success rate on ALFWorld (GPT-4o-mini; n per type varies). FlowEvo improves over ReAct on all five displayed task types. The magnitude of improvement tracks how often the compiled skill completed the task through direct execution alone without fallback to skill-conditioned or dynamic generation. The pick_two task type is omitted because its compiled skill was suppressed by skill curation as a case of negative transfer (see Section 4.3).
Figure 3: Per-task-type success rate on ALFWorld (GPT-4o-mini; n per type varies). FlowEvo improves over ReAct on all five displayed task types. The magnitude of improvement tracks how often the compiled skill completed the task through direct execution alone without fallback to skill-conditioned or dynamic generation. The pick_two task type is omitted because its compiled skill was suppressed by skill curation as a case of negative transfer (see Section 4.3).
Table 3: Core decision thresholds used in FlowEvo. All values are defaults; no per-benchmark tuning was performed for the reported results.
ConstantValue
Retrieval
top_k3
retrieval_threshold5.0
Historical positive-transfer cap2.5
Negative-transfer risk cap3.0
Routing
_COMPATIBILITY_DIRECT_THRESHOLD0.55
Direct-execute compat gate≥1.5
_CODE_EXCERPT_THRESHOLD4.6
Max seed context skills2
Admission
banned_imports{os, subprocess, socket, requests, pathlib}
banned_calls{eval, exec, compile, __import__, open}
prune_audit_fail_threshold2
Curation (ALFWorld)
_CONTRASTIVE_MIN_GUIDED5
_CONTRASTIVE_MIN_UNGUIDED3
_CONTRASTIVE_HARM_THRESHOLD−0.1
_AUDIT_MIN_USES3
_AUDIT_UTILITY_THRESHOLD0.5
_AUDIT_INACTIVITY_LIMIT50 episodes
Adaptive escalation
Level 1 (greedy)temp=0.0, max=2048
Level 2 (mini-ensemble, 2 candidates)temp=0.5, max=2048
Level 3 (retry, hot)temp=0.7, max=2048
Level 4 (retry, cool)temp=0.2, max=2048
Reflexion reasoningtemp=0.0, max=300
Execution
ALFWorld max_steps50
Sandbox timeout (code/math)10 s
Table 4: Active skills after 134 ALFWorld episodes. Uses counts episodes in which the skill was retrieved above retrieval_threshold and thus participated in routing (whether the router eventually selected direct execution or skill-conditioned generation, or downgraded to dynamic). Success / Fail are the outcomes of those retrieval-matched episodes; Utility = Success / Uses. Entries are cumulative over the run. For five of the six task types, Uses equals Direct+Cond from Table 5; look_at_obj_in_light has 3 additional retrieval matches that were routing-downgraded to pure_dynamic (see Section 4.4: "the retrieved skill matched on 15 of 18 episodes").
Task typeStatusUsesSuccessFailUtility
pick_and_place_simpleactive232301.00
pick_clean_then_place_in_recepactive282801.00
pick_heat_then_place_in_recepactive212101.00
pick_cool_then_place_in_recepactive201820.90
look_at_obj_in_lightactive151320.87
pick_two_obj_and_placesuppressed10190.10
Table 5: Internal routing modes by task type on ALFWorld. “Direct” = pure direct_skill; “Cond.” = direct_then_* plus exemplar_guided; “Dyn.” = pure_dynamic. “Direct SR” is the success rate among pure direct-execute episodes. “Overall SR” is the pass rate on all episodes of the task type.
Task typenDirectCond.Dyn.Direct SROverall SR
look_at_obj_in_light18012614/18 (78%)
pick_and_place_simple24149114/1424/24 (100%)
pick_clean_then_place_in_recep31226322/2229/31 (94%)
pick_cool_then_place_in_recep21128112/1219/21 (90%)
pick_heat_then_place_in_recep23192219/1922/23 (96%)
pick_two_obj_and_place1701073/17 (18%)
Total13467472067/67111/134 (83%)

왜 중요한가

모델을 다시 학습시키지 않고도 에이전트가 실행 도중 스스로 경험을 쌓아 성능과 효율을 동시에 개선할 수 있음을 보여준다. 반복 작업이 많은 실무 환경(가정용 로봇 제어, 코드/수학 문제 자동 풀이 등)에서 비용을 크게 줄이면서도 정확도를 높일 실질적 방법을 제시한다.

이 논문의 용어

  • 워크플로우 · 에이전트가 작업을 풀기 위해 그때그때 구성하는 추론·도구사용·코드실행 절차
  • 스킬 뱅크 · 성공한 워크플로우를 컴파일해 만든 실행 가능한 절차들을 모아두는 저장소
  • 부정적 전이 · 과거에 저장한 스킬을 재사용했을 때 오히려 성공률이 떨어지는 현상
  • 스킬-조건부 생성 · 저장된 스킬을 그대로 실행하지 않고 참고 맥락으로만 활용해 새 워크플로우를 만드는 방식
  • 학습 없는(training-free) 방법 · 모델의 가중치를 업데이트하지 않고 추론 시점에서만 성능을 개선하는 접근

저자 · Zeyu Ren

arXiv에서 원문 보기

최신 논문

논문 전체 보기 →

METAL MEDIA 최신 기사

그림 출처: Zeyu Ren et al., arXiv:2607.21596, arxiv-nonexclusive