每天早上一封邮件,把昨天的 AI 梳理好订阅邮件

METAL LAB

PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM Agents

arXiv:2608.198612026-08-21

让客服AI坐席不只是拦住一个危险动作,而是把整个流程走对

客服LLM坐席的合规失败,既可能是执行了被禁止的操作,也可能是漏掉了身份核实、最终确认等必要步骤,而现有的运行时防护通常只在提议某个高风险动作的那一刻才介入,无法覆盖之前遗漏的环节。PolicyGuide的做法是提前把每个业务领域的政策文档编译成一张工作流图,并在每次用户发言后调用一个独立的验证AI,对照该图检查到目前为止的对话,告诉坐席接下来还差哪一步。以GPT-5.4作为坐席时,在航空、零售、电信三个领域上,平均Pass4成功率从0.42提升到0.62,其中流程最复杂的电信领域提升最大,从0.19升到0.61。

他们做了什么

  1. 问题背景:合规失败既可能来自执行了被禁止的操作,也可能来自漏掉身份核实、最终确认等程序性要求,而现有安全机制通常只在提议某个高风险动作时才介入,无法发现更早发生的遗漏。
  2. 方法:PolicyGuide先离线把各领域的政策文档转换成一张工作流图,用节点表示谁该做什么、用连线表示先后顺序;每轮用户发言后,一个独立的验证LLM会对照坐席在图上保存的当前位置和完整对话记录,找出第一个尚未满足的步骤,并给出具体的纠正指示。
  3. 这个进度位置由代码而不是模型自身的对话记忆来持久保存,因此可以同时跟踪多个尚未完成的请求而不遗漏。
  4. 结果:在τ2-bench的航空、零售、电信基准上,以GPT-5.4为坐席,平均Pass4(连续4次尝试全部成功的比例)从0.42提升到0.62,电信领域提升最大,从0.19升到0.61。同一套工作流迁移到Claude Sonnet 4.6和Gemini 2.5 Pro坐席上依然有效,并且在用户用虚假信息试图诱导违规的对抗测试中,PolicyGuide的攻击成功率也是最低的。
Table 1: Main results on the base splits (GPT 5.4 agent, n=4; airline 50, retail/telecom 114 tasks). Cells report Pass1 and Pass4 overall and on the PV/Mut slices. The verifier is absent for ReAct, static code for ToolGuard, and GPT 5.4 for PolicyGuard and PolicyGuide.
Airline (50)Retail (114)Telecom (114)
SystemVerifierOverallPVMutOverallPVMutOverallPVMut
Pass1ReAct0.6400.8650.4330.8000.9000.7910.3840.7210.180
ToolGuardstatic code0.5750.9690.212
PolicyGuardGPT 5.40.7101.0000.4420.6450.9750.6130.4060.7330.208
PolicyGuideGPT 5.40.7750.9790.5870.8090.9750.7930.8660.8950.849
Pass4ReAct0.4600.7500.1920.5960.7000.5870.1930.4420.042
ToolGuardstatic code0.5200.8750.192
PolicyGuardGPT 5.40.5801.0000.1920.3600.9000.3080.2020.4880.028
PolicyGuideGPT 5.40.6200.9170.3460.6140.9000.5870.6140.7210.549
Table 2: Workflow ablations (GPT 5.4 agent; Airline base split, Retail and Telecom benchmark test splits of 40 tasks). All cells report Pass4.
DomainMetricReActPolicyGuide SelfPolicyGuide RawPolicyGuide
AirlineOverall0.4600.4800.5200.620
PV0.7500.8330.8750.917
Mut0.1920.1540.1920.346
RetailOverall0.5750.3500.5750.725
PV0.7500.7500.7501.000
Mut0.5560.3060.5560.694
TelecomOverall0.2500.3250.3500.675
PV0.4290.5710.6190.667
Mut0.0530.0530.0530.684
Table 3: Matched workflow-controller comparison on the 40-task Telecom benchmark test split. All values are Pass4.
SystemRuntime controlPass4
ReActactor only0.250
PolicyGuardaction-local check0.325
FlowAgentPDL + API control0.350
PolicyGuideexternal graph verifier0.675
Table 4: Agent-family generalization on Airline (50 tasks, n=4; verifier model paired to the agent). All metrics are Pass4. The GPT 5.4-authored workflow graph is reused without re-authoring.
AgentMetricReActPolicyGuardPolicyGuide
GPT 5.4Overall0.4600.5800.620
PV0.7501.0000.917
Mut0.1920.1920.346
Claude Sonnet 4.6Overall0.7200.7800.780
PV0.9581.0001.000
Mut0.5000.5770.577
Gemini 2.5 ProOverall0.4800.6000.680
PV0.7501.0000.917
Mut0.2310.2310.462
Table 5: Author-designed Telecom ordered trace compliance (%; n=4). Step- and Trace-TCR condition on outcome-passing traces.
SystemStep-TCRTrace-TCRProcess-valid rate
ReAct86.435.417.5
PolicyGuard85.723.913.1
PolicyGuide94.563.456.2
Table 6: Argument- (A), process- (P), and workflow-level (W) partition of the source policies (W splits PolicyGuard’s process-level class; P+W equals it).
DomainAPWTotal% P+W% W
Airline142724367.4%4.7%
Retail027128∼100%3.6%
Telecom (main)12172996.6%24.1%
Telecom (manual)012021100%95.2%
Telecom (both)122275098.0%54.0%
Table 7: Hand-classified atomic requirements of the τ2-bench Retail policy document (28 requirements, 0 A / 27 P / 1 W; subtypes D-only 13, T-only 14, D+T 1). Line refers to retail/policy.md as released with τ2-bench; Type A = argument-level, P = process-level (flat), W = workflow-level (order-bound; Appendix B.1), with D = dialogue-dependent, T = requires a prior read-only tool call.
IDLineRequirement (paraphrased)Type
Global rules
G110Authenticate identity by locating the user id via email or name+zip—even when the user already provides the idP (D+T)
G214One user per conversation; deny any request about another userP (D)
G316List action details + obtain explicit “yes” before any DB-updating actionP (D)
G418No fabricated information/knowledge/procedures; no subjective recommendationsP (D)
G520At most one tool call per turn (not paired with a user-facing reply)P (D)
G622Deny user requests that are against the policyP (D)
G724Transfer iff unhandleable: call transfer_to_human_agents, then the literal handoff messageW (D)
Generic action rules
N182Act only on orders with status pending or deliveredP (T)
N284Exchange / modify-items tools callable only once per orderP (T)
N384Collect all items to change into one list before making the callP (D)
Cancel pending order
C188Order status must be pending; check it before taking the actionP (T)
C290User confirms order id + reason ∈ {‘no longer needed’, ‘ordered by mistake’}; no other reasonP (D)
Modify pending order
M196Order status must be pending; check it before taking the actionP (T)
M298Only shipping address, payment method, or item options may be modified—nothing elseP (D)
M3102New payment = a single method, different from the originalP (T)
M4104If the new payment is a gift card, its balance must cover the total amountP (T)
M5110Modify-items is one-shot (order becomes unmodifiable): remind + confirm all items firstP (D)
M6112Each new item must be availableP (T)
M7112New item = same product, different option (no product-type change)P (T)
M8114User provides a payment method for the price differenceP (D)
M9114If that payment is a gift card, its balance must cover the price differenceP (T)
Return delivered order
R1118Order status must be delivered; check it before taking the actionP (T)
R2120User confirms order id + the list of items to be returnedP (D)
R3122–124Refund method provided; must be the original payment method or an existing gift cardP (T)
Exchange delivered order
Table 8: Hand-classified atomic requirements of the τ2-bench Telecom main_policy.md (29 requirements, 1 A / 21 P / 7 W). Line refers to the document as released with τ2-bench; \raisebox{-0.4pt}{\scriptsize$n$}⃝ marks a step in an ordered procedure (“To do so you need to follow these steps”). Types as in Table 7.
IDLineRequirement (paraphrased)Type
Global rules
G17No fabricated information/knowledge/procedures; no subjective recommendationsP (D)
G29At most one tool call per turn (not paired with a user-facing reply)P (D)
G311Deny user requests that are against the policyP (D)
G413Transfer iff unhandleable: call transfer_to_human_agents, then the literal handoff messageW (D)
G515Try your best to resolve the issue before transferringW (D)
Customer lookup
L194–97Identify the customer via phone number, customer ID, or full name + date of birthP (D+T)
L299For name lookup, date of birth is required for verificationP (D)
Overdue bill payment (ordered procedure)
O1105, 117\raisebox{-0.4pt}{\scriptsize1}⃝Check the bill status is Overdue before acting (the API does not check it)P (T)
O2106\raisebox{-0.4pt}{\scriptsize2}⃝Check the bill amount dueP (T)
O3107–108\raisebox{-0.4pt}{\scriptsize3}⃝Send the payment request (→ AWAITING PAYMENT); gated on O1P (T)
O4109–110\raisebox{-0.4pt}{\scriptsize4}⃝Inform the user to check their payment requestsW (D)
O5111\raisebox{-0.4pt}{\scriptsize5}⃝Only after the user accepts, call make_paymentW (D+T)
O6113\raisebox{-0.4pt}{\scriptsize6}⃝Always verify the bill became PAID before telling the userW (T)
O7116At most one bill in AWAITING PAYMENT at a timeP (T)
Line suspension
S1125Lift a suspension only after all overdue bills are paidW (T)
S2126Do not lift if the contract end date is past—even if all bills are paidP (T)
S3128After resuming, instruct the user to reboot the deviceW (D)
Data refueling (ordered procedure)
F1134Refuel amount ≤2 GBA
F2136\raisebox{-0.4pt}{\scriptsize1}⃝Ask how much data the user wants to refuelP (D)
F3137\raisebox{-0.4pt}{\scriptsize2}⃝Confirm the priceP (D)
F4138\raisebox{-0.4pt}{\scriptsize3}⃝Apply the refuel to the line associated with the user’s phone numberP (D+T)
Change plan (ordered procedure)
P1144\raisebox{-0.4pt}{\scriptsize1}⃝Establish which line the plan change is forP (D)
P2145\raisebox{-0.4pt}{\scriptsize2}⃝Gather the available plansP (T)
P3146\raisebox{-0.4pt}{\scriptsize3}⃝Ask the user to select oneP (D)
Table 9: Hand-classified atomic requirements of the τ2-bench Telecom tech_support_manual.md (21 requirements, 1 P / 20 W). Line refers to the document as released with τ2-bench. Every rule is a diagnostic-gated (T) user-guidance (D) step; the three chapters form the prerequisite chain Service ⊂ Data ⊂ MMS; every row except TSS1 (the entry diagnostic) is workflow-level.
IDLineRequirement (diagnose → conditional fix → verify)Type
Cellular service (ll. 55–99)
TSS169–72Diagnose service via check_status_barP (T)
TSS274–78If Airplane Mode ON → guide toggle_airplane_mode OFFW (D+T)
TSS379–87Check SIM: Missing → reseat; Locked → escalate; Active → ok (three-way branch)W (D+T)
TSS488–92If APN incorrect → guide reset_apn_settings, then reboot_deviceW (D+T)
TSS593–99If line suspended → handle per main policy, then verify service restoredW (T)
Mobile data (ll. 100–163)
TSD0106–108Prerequisite: the user must first have cellular serviceW (T)
TSD1122–127Diagnose via run_speed_testW (T)
TSD2129–131Airplane Mode (as in the Service chapter)W (D+T)
TSD3132–135If mobile data disabled → guide toggle_data ONW (D+T)
TSD4136–141If roaming abroad & data off → guide toggle_roaming + verify the line is roaming-enabledW (D+T)
TSD5142–145If Data Saver ON → guide toggle_data_saver_mode OFFW (D+T)
TSD6146–150If VPN ON & performance poor → guide disconnect_vpnW (D+T)
TSD7151–158If usage exceeds the plan limit → offer change-plan or refuelW (T)
TSD8159–163If network mode 2G/3G → guide set_network_mode_preferenceW (D+T)
MMS (ll. 164–205)
TSM0170–173Prerequisite: the user must have cellular service and mobile dataW (T)
TSM1181–183Diagnose via can_send_mmsW (T)
TSM2185–188Ensure basic service + data connectivity firstW (T)
TSM3189–193If on 2G → guide set_network_mode_preference to 3G+W (D+T)
TSM4194–199If MMSC URL unset → guide reset_apn_settings, then reboot_deviceW (D+T)
TSM5200–203If Wi-Fi Calling ON → guide toggle_wifi_calling OFFW (D+T)
TSM6204–205If the messaging app lacks storage/SMS permissions → guide grant_app_permissionW (D+T)
Table 10: Passk breakdown for the base-split results in Table 1 and Figure 4 (GPT 5.4, n=4). P4/P1 is the consistency ratio.
DomainSystemP1P2P3P4P4/P1
AirlineReAct0.6400.5300.4850.4600.72
ToolGuard0.5750.5530.5350.5200.90
PolicyGuard0.7100.6300.5950.5800.82
PolicyGuide0.7750.7070.6600.6200.80
RetailReAct0.8000.7000.6380.5960.75
PolicyGuard0.6450.5060.4210.3600.56
PolicyGuide0.8090.7150.6540.6140.76
TelecomReAct0.3840.2730.2260.1930.50
PolicyGuard0.4060.2920.2370.2020.50
PolicyGuide0.8660.7630.6820.6140.71
Table 11: Pass1 in each of the four trials on the base splits. pstd is the population standard deviation across trial-level values.
DomainSystemT1T2T3T4pstd
AirlineReAct0.6200.6200.6400.6800.024
ToolGuard0.5600.5800.5800.5800.009
PolicyGuard0.7000.7400.7000.7000.017
PolicyGuide0.8000.7200.8200.7600.038
RetailReAct0.8070.7460.8420.8070.035
PolicyGuard0.6490.6230.6320.6750.020
PolicyGuide0.8160.7980.7890.8330.017
TelecomReAct0.3420.3770.4040.4120.027
PolicyGuard0.4650.3860.3600.4120.039
PolicyGuide0.8600.8600.8420.9040.023
Table 12: Pooled stratified McNemar tests on per-task Pass4. D is the number of domain strata; a counts PolicyGuide-only passes and b the reverse, summed across strata.
OpponentD∑a∑bndiscZp
ReAct3771996+5.92<10−8
PolicyGuard39719116+7.24<10−12
Table 13: Per-domain paired-bootstrap differences in Pass4 on the base splits (10,000 task-level resamples). Positive values favor PolicyGuide.
DomainOpponentnΔ​P4 [95% CI]
AirlineReAct50+0.160 [+0.020, +0.300]
ToolGuard50+0.100 [−0.040, +0.260]
PolicyGuard50+0.040 [−0.080, +0.160]
RetailReAct114+0.018 [−0.070, +0.105]
PolicyGuard114+0.254 [+0.149, +0.360]
TelecomReAct114+0.421 [+0.316, +0.526]
PolicyGuard114+0.412 [+0.298, +0.526]
Table 14: Guide-side model usage for the GPT 5.4 configuration (50 Airline and 40 Retail/Telecom tasks). Costs exclude the actor and user simulator.
DomainCalls/ taskPrompt tok./callCached inputOutput tok./callGuide total $Guide $/task
Airline7.5632,36088.1%2,47820.100.40
Retail7.4222,80385.8%2,17913.670.34
Telecom11.4728,51886.5%2,18622.290.56
Table 15: Mean end-to-end wall-clock time per task.
DomainReAct (s/task)PolicyGuide (s/task)Ratio
Airline36.4210.15.78×
Retail34.6193.65.60×
Telecom45.5247.65.45×
Table 16: Programmatic validation rerun on the frozen workflow graphs.
DomainNodesAuth. nodesValidator flags
Airline158110
Retail10470
Telecom12751
Table 17: Call-NMR on passing Mut trajectories (n=4): percentage of successfully executed agent mutations missing a frozen guard-derived read prerequisite. †Telecom is an adapted, agent-side diagnostic whose read oracle saturates; its zeros do not establish equal procedural quality.
Call-NMR (%; ↓)AirlineRetailTelecom†
ReAct25.447.60.0
PolicyGuard32.534.80.0
PolicyGuide15.634.70.0

为什么重要

要把LLM坐席真正用于航空、零售、电信等实际客服场景,仅仅拦截单个错误动作是不够的,还必须完整走完身份核实、确认等程序。这项工作提供了一种不需要重新训练模型、可外部叠加的合规监督方法,对提升此类AI客服部署的可信度具有实际意义。

本文术语

  • Pass4 · 同一任务连续尝试4次全部成功的比例,用来衡量结果的一致可靠性
  • 工作流图 · 用节点和连线表示政策文档中谁该在什么时候做什么的流程图
  • 验证器(verifier) · 独立监督坐席对话和动作、判断是否合规并告知下一步该做什么的AI
  • τ2-bench · 用于测试客服AI坐席在航空、零售、电信领域是否遵循政策的基准测试集
  • 攻击成功率(ASR) · 用户用虚假信息诱骗坐席执行被禁止操作的成功比例

论文原文摘要(英文)

Customer-service LLM agents must follow organizational policy when acting on a user's behalf. Compliance failures arise from either forbidden actions, such as granting an ineligible change, or omitted procedural requirements, such as identification or confirmation. Runtime safeguards can intervene on risky actions, but action-local checks do not guide an agent through a multi-step procedure. Workflow-following systems support prescribed process execution, but primarily target workflow completion rather than safeguarding agent behavior. PolicyGuide instead compiles each domain policy into a workflow graph and invokes a proactive verifier at user-turn boundaries. From persisted graph state, the verifier reconciles open requests and returns step-specific remediation along a policy-compliant path. Across the $\tau^2$-bench airline, retail, and telecom domains with a GPT-5.4 agent and verifier, PolicyGuide raises mean $\mathrm{Pass}^4$ from $0.42$ to $0.62$, with the largest gain on telecom ($0.19$ to $0.61$), the most workflow-structured domain. The same workflows transfer to Claude Sonnet 4.6 and Gemini 2.5 Pro agents. Complementary evaluations find the lowest observed attack-success rate under adversarial users and the strongest procedural compliance in an author-designed workflow-level validation.

作者 · Seongjae Kang, Taehyung Yu, Sung Ju Hwang

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道