METAL LAB

타오라이브 라이브방송 AI 아바타가 진행 규칙이 계속 바뀌어도 느려지거나 헛소리하지 않게 훈련하는 법

arXiv:2608.157632026-08-21

Training Agents to Evolve with Their Harness: TaoLive Digital Avatar Agent Technical Report

타오라이브 라이브방송 AI 아바타가 진행 규칙이 계속 바뀌어도 느려지거나 헛소리하지 않게 훈련하는 법

라이브 커머스 AI 아바타는 상품 질문에 실시간으로 답하면서도 운영팀이 수시로 바꾸는 판매 전략을 즉시 반영해야 한다. 이 논문은 모델 가중치를 그대로 두고 스킬·프롬프트·도구·후크만 바꿔서 시스템을 진화시키는 Harness 구조와, 그 변화에도 작은 모델이 흔들리지 않도록 훈련하는 HAT(Harness-Aware Training) 기법을 제안한다. 실제 타오바오 라이브 서비스에 적용해 지연시간 기준을 지키면서 응답 품질도 크게 개선했다.

METAL LAB 해설 도표

Harness라는 실행환경은 스킬·도구·프롬프트가 수시로 바뀐다. HSA는 이 변화를 의도적으로 뒤섞어 학습 데이터로 만든다. 이를 학습한 소형 모델은 가중치를 그대로 둔 채 안정적으로 라이브방송 서비스에서 빠르게 응답한다.
METAL LAB이 원문을 바탕으로 재구성한 해설 도표이며, 논문 저자의 원문 figure가 아닙니다.

무엇을 했나

  1. 큰 모델은 낯선 설정도 스스로 잘 이해하지만 응답이 너무 느리고, 작은 모델은 빠르지만 고정된 설정에만 맞춰 훈련되면 설정이 바뀔 때 제대로 대응하지 못하는 딜레마를 다룬다.
  2. Harness라는 이름의 실행 환경(스킬, 도구 목록, 프롬프트 구조, 검증 후크)을 모델 가중치와 분리해 두고, 이 환경만 바꿔서 서비스를 개선하는 방식을 'Harness Evolution'이라 부른다.
  3. 훈련용 데이터에서 스킬 이름, 도구 이름, 프롬프트 구조, 후크 동작을 의도적으로 다양하게 바꿔주는 HSA(Harness-State Augmentation) 기법으로 모델이 특정 이름이나 형식을 외우는 대신 실제 기능을 이해하게 만든다.
  4. 훈련은 HSA를 적용한 지도학습(HSA-SFT), 일반 능력을 되살리는 온폴리시 증류(General OPD), 시뮬레이터에서 강화학습으로 다양한 환경에 적응시키는 HSA-RL 세 단계로 진행된다.
  5. 실제 라이브방송 QA에서 94.8점(기본 모델 80.3점, 최강 범용 LLM 93.0점 대비), 설정이 바뀐 Harness-Variant QA에서 94.6점(기본 75.4점)을 기록했고, 단일 GPU에서 P50 3.4초, P95 8.1초의 지연시간을 달성했다.
Figure 1: Application flow and the two independent update paths. Harness Evolution edits agent runtime modules while keeping model weights fixed; Harness-Aware Training (HAT) provides a well-performing, low-latency, and robust model. Both paths meet inside the same production runtime.
Figure 1: Application flow and the two independent update paths. Harness Evolution edits agent runtime modules while keeping model weights fixed; Harness-Aware Training (HAT) provides a well-performing, low-latency, and robust model. Both paths meet inside the same production runtime.
Table 1: Approximate intent mix in the available internal traffic summary.
ScenarioProportion
Product Q&A∼46%
Casual chat and engagement∼19%
Clarification follow-up∼16%
After-sales handling∼7%
Discount and promotion inquiry∼4%
Presentation-order adjustment∼2%
FAQ-based reply∼2%
Silent refusal of irrelevant content<1%
Figure 2: Harness Evolution with a fixed DeepSeek-V4-flash on dev-set (n=482). The process is non-monotonic: Evolution 2 is the selected development checkpoint, while later long-tail edits introduce regressions.
Figure 2: Harness Evolution with a fixed DeepSeek-V4-flash on dev-set (n=482). The process is non-monotonic: Evolution 2 is the selected development checkpoint, while later long-tail edits introduce regressions.
Table 2: Evaluation sets and sources. The sets cover real live-stream reply quality, in-family Harness variation, synthetic tool and prompt robustness, general instruction following, and actual deployment latency.
SetSizeSourceEvidentiary role
𝒯1978Real live-roomPrimary industrial quality (live-stream reply).
𝒯2978Real live-room, aug. HarnessIn-family robustness to new Harness contexts.
𝒯32023Synthetic avatar scenariosIn-domain transfer under broader tools/prompts.
𝒯4541Public IFEvalGeneral instruction following (official evaluator).
𝒞judge482Real live-room, human-labeledJudge calibration, not a policy test set. Also dev-set for harness evolving.
𝒟perf110Deployment replayEnd-to-end deployment latency.
Figure 3: Simplified Harness Agent runtime control flow. Prompt rules and dynamically loaded Skills assemble the model context; lifecycle Hooks validate inference, tool use, and stopping. A failed stop gate starts another round, while a passed gate produces the final response and structured trajectory. Per-call fallback and trajectory-level recovery protect different failure scopes.
Figure 3: Simplified Harness Agent runtime control flow. Prompt rules and dynamically loaded Skills assemble the model context; lifecycle Hooks validate inference, tool use, and stopping. A failed stop gate starts another round, while a passed gate produces the final response and structured trajectory. Per-call fallback and trajectory-level recovery protect different failure scopes.
Table 4: Training-pipeline ablation. Each row adds one stage to the previous checkpoint; ↑/↓ denotes a descriptive score change from the row above and does not include retraining variance.
Configuration𝒯1𝒯2ToolPromptIFE-PIFE-I
Non-augmented pathway (single-run trajectory)
Base80.375.469.572.881.587.7
+SFT89.5↑9.288.2↑12.882.0↑12.568.2↓4.673.8↓7.782.4↓5.3
+General OPD89.589.1↑0.984.3↑2.372.6↑4.482.3↑8.587.9↑5.5
+RL95.1↑5.694.4↑5.383.7↓0.666.7↓5.982.7↑0.487.8↓0.1
Augmented pathway (single-run trajectory)
+Aug-SFT90.0↑9.790.2↑14.885.2↑15.777.3↑4.581.7↑0.287.4↓0.3
+General OPD90.9↑0.990.9↑0.785.6↑0.477.1↓0.281.9↑0.288.0↑0.6
+RL94.1↑3.293.7↑2.884.3↓1.378.7↑1.683.0↑1.188.2↑0.2
+AUG Env (Ours)94.8↑0.794.6↑0.984.0↓0.377.6↓1.183.5↑0.588.7↑0.5
Figure 4: Overview of HAT. (a) HSA constructs diversified Harness states; HSA-SFT followed by General OPD produces the shared initialization. (b) Controlled comparison of Agentic RL and Agentic OPD under the original Harness and HSA environments. Every variant starts from the HSA-SFT + General OPD result, and each OPD variant receives its paired same-environment RL teacher. The selected Agentic RL policy under HSA is HSA-RL.
Figure 4: Overview of HAT. (a) HSA constructs diversified Harness states; HSA-SFT followed by General OPD produces the shared initialization. (b) Controlled comparison of Agentic RL and Agentic OPD under the original Harness and HSA environments. Every variant starts from the HSA-SFT + General OPD result, and each OPD variant receives its paired same-environment RL teacher. The selected Agentic RL policy under HSA is HSA-RL.
Table 5: Single-run comparison of Agentic optimization variants. All configurations share the same Aug-SFT + General OPD initialization; ⋆ marks the deployment choice rather than statistical superiority.
MethodEnvironment𝒯1IFE-PPR-AVG
Agentic RLOriginal94.183.078.7
Agentic RLAugmented94.8⋆83.5⋆77.6
Agentic OPDOriginal94.082.873.9
Agentic OPDAugmented93.981.775.5
Paired contrasts
Δ(RL−OPD)Original+0.1+0.2+4.8
Δ(RL−OPD)Augmented+0.9+1.8+2.1
Δ(Aug−Orig)RL+0.7+0.5−1.1
Δ(Aug−Orig)OPD−0.1−1.1+1.6
Figure 5: Checkpoint trajectories across four training configurations formed by crossing HSA at the SFT and RL stages, evaluated on Accuracy, Effectiveness, Skill Selection, and Tool Rationality. In these trajectories, HSA-SFT is associated with higher reply-quality rewards, while HSA-RL is associated with stronger agentic-behavior rewards, especially Skill Selection and Tool Rationality; combining HSA-SFT and HSA-RL gives the most balanced late-stage reward profile.
Figure 5: Checkpoint trajectories across four training configurations formed by crossing HSA at the SFT and RL stages, evaluated on Accuracy, Effectiveness, Skill Selection, and Tool Rationality. In these trajectories, HSA-SFT is associated with higher reply-quality rewards, while HSA-RL is associated with stronger agentic-behavior rewards, especially Skill Selection and Tool Rationality; combining HSA-SFT and HSA-RL gives the most balanced late-stage reward profile.
Table 6: Single-run isolation of data augmentation at SFT and RL stages. The reported differences are descriptive and do not include retraining variance.
SFT StageRL Stage𝒯1 AVGIFE-PΔIFE
StandardStandard RL95.171.3
StandardAugmented RL94.972.3+1.0
AugmentedStandard RL95.480.7+9.4
AugmentedAugmented RL93.381.3+10.0
Augmented SFT: +9.4 IFE-P; augmented RL: +1.0.
Figure 6: Single-run CoT-length diagnostics for the selected HSA-RL trajectory. Faint lines show recorded step values and bold lines show 25-step trailing means. Panel (a) separates tool-call and final-reply CoT lengths and marks the no-penalty (L≤100), linear (100<L<200), and saturated (L≥200) regions. Panel (b) shows the logged score q⁡(L)∈[0,1] and the equivalent raw reward contribution −0.1​q​(L). The figure is a training diagnostic, not a causal ablation of latency or quality.
Figure 6: Single-run CoT-length diagnostics for the selected HSA-RL trajectory. Faint lines show recorded step values and bold lines show 25-step trailing means. Panel (a) separates tool-call and final-reply CoT lengths and marks the no-penalty (L≤100), linear (100<L<200), and saturated (L≥200) regions. Panel (b) shows the logged score q⁡(L)∈[0,1] and the equivalent raw reward contribution −0.1​q​(L). The figure is a training diagnostic, not a causal ablation of latency or quality.
Table 7: Controlled low-concurrency deployment replay. Latencies are seconds; Decode is the arithmetic mean of client-observed completion tokens/s over model calls. It is length-sensitive and is not an intrinsic cross-checkpoint kernel-speed measure. TTFT is the first call’s client-observed P95 and includes network and queueing. Each row contains 100 measured Agent requests after 10 warm-up cases. API rows are operational references, not same-hardware model comparisons.
ConfigurationMTPCWall P50Wall P95TTFT P95Decode≤15sSuccess
Vendor API routes
DeepSeek-V4-flash111.21021.1912.067103.4471%99%
DeepSeek-V4-flash211.97626.2781.29197.0171%98%
DeepSeek-V4-pro114.31228.8821.31253.5361%99%
DeepSeek-V4-pro213.75223.3931.24855.0460%99%
Qwen3.6-35B-A3B · one H20
BaseOff14.10110.1720.508195.42100%100%
BaseOff24.56011.5040.623138.8197%100%
BaseOn13.6489.8050.502215.9599%100%
BaseOn24.80610.2510.698165.7497%100%
Task-trained checkpoint (Ours) · one H20
OursOff14.1768.980.499160.30100%100%
OursOff24.93610.0740.692129.22100%100%
OursOn13.4078.1140.553271.40100%100%
OursOn24.4799.0470.754196.15100%100%
Figure 7: Judge alignment to a human-labeled calibration cohort (n=482). Accuracy and Effectiveness agreement improve through evidence-tool, rubric, and voting revisions; the cohort evaluates the scoring instrument rather than the policy.
Figure 7: Judge alignment to a human-labeled calibration cohort (n=482). Accuracy and Effectiveness agreement improve through evidence-tool, rubric, and voting revisions; the cohort evaluates the scoring instrument rather than the policy.
Table 8: Harness-Aware Benchmark held-out test results before and after Harness edits. Counts are total detected errors; error reduction is computed relative to the before-edit count.
ModelBeforeAfterError reduction
Naive SFT14912218.1%
Ours23811551.7%
Figure 8: Single-run standalone MTP-loss trajectories for a task-trained policy with a transplanted and subsequently post-trained NextN head, and for the base model with its native factory-trained head. Faint lines show step-level loss; bold lines show a 25-step trailing mean. The runs have different lengths and provide adaptation diagnostics only: they do not compare convergence speed, training stability, sample efficiency, or compute efficiency.
Figure 8: Single-run standalone MTP-loss trajectories for a task-trained policy with a transplanted and subsequently post-trained NextN head, and for the base model with its native factory-trained head. Faint lines show step-level loss; bold lines show a 25-step trailing mean. The runs have different lengths and provide adaptation diagnostics only: they do not compare convergence speed, training stability, sample efficiency, or compute efficiency.
Table 9: Human blind-test preference distribution on 100 paired real live-streaming requests.
PreferenceCountShare
Harness better3535.0%
Tie6464.0%
ReAct better11.0%
Table 10: Attribution of the 35 Harness-preferred examples. Categories are assigned from annotator rationales after the blind decision.
Attribution categoryCountShare
More accurate input understanding1234.3%
More reliable output822.9%
More appropriate scenario behavior822.9%
Higher response quality514.3%
More appropriate tool use25.7%
Table 11: Preliminary seven-day online A/B point estimates in Taobao Live’s production digital-avatar business. Metrics are relative changes of the Harness system against the ReAct control.
MetricHarness vs. ReAct
Cumulative confirmed-receipt GMV per bucketed user+5.54%
Completed orders per bucketed user+0.80%
Table 12: Working inventory of built-in and MCP-discovered runtime interfaces.
ResponsibilityInterfacesRole
Product retrievalsearch_product_by_keyword, get_current_product_info, get_product_info_by_link_id, get_product_extra_info_by_link_id_and_keywords, search_preset_faqFind the active or referenced product and retrieve catalog, detail-page, knowledge-base, or FAQ evidence.
Pricing and promotionget_price_info_by_link_id, get_promotion_infoRetrieve SKU-level prices, entitlements, coupons, and room-level promotions.
Action and flow controlchange_explain_order, load_skill, get_current_time, refuse_to_replyChange presentation order, load behavioral instructions, resolve time-sensitive rules, or silently discard meaningless input.
MCP lookupquery_promotion, query_buyer_resource, query_fund_asset, query_coupon_detailRetrieve campaign conditions and buyer-side resources from the external marketing service.
MCP calculationcalculate_optimal_promotion, calculate_promotionCompute eligible promotional combinations and resulting prices.
Table 13: Working Skill inventory and routing responsibilities.
Reply SkillResponse responsibilityStrategy SkillTool-chain responsibility
item_qaProduct attributes, specifications, comparison, price, and recommendation.tool_strategy_benefitEntitlement, price, and promotion retrieval.
chillchatNon-product conversation and engagement.tool_strategy_compareMulti-product comparison and retrieval.
aftersaleReturns, exchanges, complaints, and other after-sales requests.tool_strategy_multiAggregation and orchestration for multiple comments.
clarificationFollow-up questions when available context is insufficient.tool_strategy_switchPresentation-order adjustment.
faq_replyResponses grounded in configured FAQ entries.general_discountRoom-level promotion retrieval and response composition.
refusalDeclines for inappropriate or unsupported requests.
change_orderConfirmation of presentation-order changes.
thanksResponses to gratitude and positive feedback.
greetWelcome messages for viewers entering the room.
Table 14: Fixed-policy Harness Evolution record. Values come from six direct evaluation summaries on the same 482-item dev-set. “Selected” is an engineering early-stop decision.
StageHarness changesAcc.Eff.Engineering diagnosis
ReActConventional reasoning–action loop without the modular Harness.80.3384.58System baseline.
Harness baseInitial manually maintained Skills and modular runtime.82.4087.16Establishes the editable Harness.
Evolution 1Add refusal tool and stop-loop Hook; rewrite refusal, chat, and after-sales Skills; add four global constraints.92.1384.16Accuracy rises sharply; internal diagnosis attributes Effectiveness loss to over-triggered refusal.
Evolution 2Add seven whitelist exclusions before refusal; map explanation triggers and require the relevant tool call.92.5592.75Selected; restores Effectiveness while retaining Accuracy.
Evolution 3Add attribution, factuality, parameter-completeness, tool-use, and system-message rules; expand refusal exclusions.91.5190.89Long-tail rules interact and regress both metrics.
Evolution 4Relax length, tool-trigger, parameter, transaction-intent, and attribution restrictions.91.5189.96Partial rollback does not recover Effectiveness.
Table 15: Independent paired-bootstrap stability check. Differences are reported in percentage points; intervals are 95% percentile bootstrap intervals over evaluation items.
Contrast / dimensionΔ [95% CI]Pboot​(Δ≤0)
IFEval prompt-level accuracy
Naive SFT − Base−6.47​[−10.72,−2.22]0.9992
Ours − Base+2.03​[−1.11,+5.18]0.1134
Ours − Naive SFT+8.50​[+4.44,+12.38]0.0000
Prompt Robustness
Ours − Naive SFT+8.46​[+5.27,+11.66]<0.0001
Naive SFT − Base−3.22​[−6.59,+0.21]0.9661
𝒯1 Live-Stream QA: Ours − Base
Accuracy+6.95​[+4.60,+9.41]<0.0001
Effectiveness+30.88​[+27.76,+33.90]<0.0001
AVG+18.92​[+17.00,+20.81]<0.0001
Table 16: Same-checkpoint 𝒯1 quality check with MTP Off and On (n=978). Both rows use the same Final Evaluation Judge. AVG is the arithmetic mean of Accuracy and Effectiveness.
Serving modeAccuracyEffectivenessAVG
MTP Off95.893.894.8
MTP On96.2294.2295.22
Table 17: MTP trade-off across concurrency. Arrows show Off → On. Decode TPS is client-observed mean per call; Wall and TTFT are P95 seconds. C=1, 2, and 8 are single runs. C=4 values are means of three run-level statistics, not pooled percentiles.
CheckpointCDecode TPSSpeedupWall P95 (s)TTFT P95 (s)≤15s
Qwen3.6 Base1195.42→215.951.11×10.172→9.8050.508→0.502100→99%
2138.81→165.741.19×11.504→10.2510.623→0.69897→97%
4105.04→113.251.08×13.408→16.2660.643→1.08897.3→92.3%
870.28→70.191.00×17.848→26.1360.953→1.51990→79%
Ours1160.30→271.401.69×8.98→8.1140.499→0.553100→100%
2129.22→196.151.52×10.074→9.0470.692→0.754100→100%
499.65→126.641.27×10.869→12.4600.692→1.34999.3→98.0%
859.01→70.221.19×18.342→20.2980.900→2.57491→75%
Table 18: C=1 workload shape. Values are means over successful complete-Agent requests or their constituent model calls.
Route / checkpointMTPCalls/reqInput/callOutput/call
DeepSeek-V4-flash API4.046,052146
DeepSeek-V4-pro API3.675,537119
Qwen3.6 BaseOff3.235,622115
Qwen3.6 BaseOn3.085,571109
OursOff3.045,679106
OursOn3.125,786105
Table 19: MTP serving configuration used for the reported quality check and deployment measurements.
SettingEngine argumentValue
Speculative algorithm--speculative-algoNEXTN
Speculative steps--speculative-num-steps3
EAGLE top-k--speculative-eagle-topk1
Draft tokens--speculative-num-draft-tokens4
Single-token acceptance threshold--speculative-accept-threshold-single0.5
Accumulated acceptance threshold--speculative-accept-threshold-acc0.7
Table 20: SGLang log-sample diagnostics for MTP-On serving. Triples are mean/P50/P95; Queue is P95/max.
CheckpointRunning reqQueueAccept lenAccept rate
Qwen3.6 Base2.03/1/80/02.94/2.92/3.58.735/.730/.890
Ours2.03/1/70/03.12/3.12/3.62.780/.780/.910

실제로 확인된 결과

  • 실시간 라이브방송 QA에서 HAT 모델은 94.8점을 기록해 기본 모델 80.3점과 가장 강한 범용 LLM 93.0점을 넘어섰다.
  • Harness 설정이 바뀐 상황을 테스트한 Harness-Variant QA에서 HAT는 94.6점으로 기본 모델 75.4점보다 크게 높았다.
  • 고정된 Harness로만 지도학습한 모델(Fixed-Harness SFT)은 일반 지시 이행 능력 지표인 IFEval이 기본 모델보다 7.7점 떨어졌지만, HAT는 이런 퇴화 없이 83.5점을 유지했다.
  • 단일 NVIDIA H20 GPU에서 최적화를 적용한 상태로 P50 지연시간 3.4초, P95 지연시간 8.1초를 달성했다.
  • 타오바오 라이브의 실제 디지털 아바타 서비스에 배포한 온라인 A/B 테스트에서 거래액(GMV)과 상품 페이지 조회수가 긍정적으로 나타났다.

어디에 쓸 수 있나

  • 운영 규칙이나 판매 전략이 자주 바뀌는 라이브 커머스, 고객상담 등에서 모델 재훈련 없이 시스템 동작을 조정해야 하는 서비스
  • 여러 도구와 스킬을 동적으로 로드하는 에이전트형 챗봇에서 도구 이름이나 프롬프트 형식이 바뀔 때 성능 저하를 줄이려는 시스템 설계
  • 지연시간 제약이 엄격한 실시간 응답 서비스에서 소형 모델의 견고성을 높이려는 훈련 파이프라인 설계

한계와 남은 검증

  • 논문에 보고된 성능은 타오바오 라이브의 특정 상품·라이브방송 도메인과 Qwen3.6-35B-A3B 규모 모델, 단일 H20 GPU 환경에 한정된 결과로 다른 도메인이나 모델 크기에 그대로 적용될지는 검증되지 않았다.
  • 지연시간 측정치는 소규모 동시성(C=1~2) 조건에서 얻은 것이며, C=4~8 같은 높은 동시성에서는 MTP 가속 효과가 줄어드는 것으로 나타나 실제 대규모 트래픽에서의 성능은 별도 검증이 필요하다.
  • MTP 드래프트 헤드 이식 실험은 단일 실행(run)에 기반한 진단적 관찰로, 여러 시드에 걸친 수렴 속도나 학습 안정성을 비교하는 근거로는 사용할 수 없다고 저자들이 명시했다.
  • 온라인 A/B 테스트는 7일간의 예비 결과로 표현되어 있어, 장기적이고 안정적인 프로덕션 효과인지는 추가 확인이 필요하다.

왜 중요한가

라이브 커머스처럼 빠른 응답과 잦은 정책 변경이 동시에 필요한 서비스에서는 큰 모델의 정확성과 작은 모델의 속도를 둘 다 챙기기 어려운데, 이 연구는 실행 환경과 모델을 분리하고 훈련 데이터를 다양화하는 방식으로 그 절충점을 실제 서비스에서 검증했다는 점이 중요하다.

이 논문의 용어

  • Harness · 모델 가중치와 분리되어 독립적으로 업데이트 가능한 스킬·프롬프트·도구·후크로 이루어진 실행 환경 설정
  • HSA (Harness-State Augmentation) · 스킬 이름, 도구 정의, 프롬프트 구조, 후크 동작을 의도적으로 다양하게 바꿔서 훈련 데이터에 넣는 기법
  • HAT (Harness-Aware Training) · HSA-SFT, General OPD, HSA-RL 세 단계로 구성된, 환경 변화에 강한 소형 모델을 만드는 훈련 파이프라인
  • GRPO/GDPO · 여러 응답 후보를 그룹으로 비교해 강화학습 보상을 계산하는 최적화 기법들
  • MTP(멀티토큰 예측) 드래프트 헤드 · 다음 토큰을 미리 여러 개 예측해 추론 속도를 높이는 보조 모듈

저자 · TaoLive AIGC LLM Team

arXiv에서 원문 보기

최신 논문

논문 전체 보기 →

METAL LAB 최신 기사

그림 출처: TaoLive AIGC LLM Team et al., arXiv:2608.15763, CC BY 4.0