跳到正文
arXiv cs.CL· Arnon Mazza, Elad Levi·· 13 小时前AI 评分38

SCOPE:将自然语言策略编译为神经符号谓词程序

SCOPE: Compiling Natural-Language Policies into Neurosymbolic Predicate Programs

AI 导读

SCOPE 将自然语言策略编译为可执行程序,由小型模型、确定性提取器和代码组合神经谓词输出,并用针对程序偏离策略之处的对抗性反例生成与训练数据联合优化。在真实策略任务基准上,其平均准确率高于提示优化、任务分解和工作流生成方法;用最弱执行器优化的程序可免优化迁移到其他模型,在低成本模型上达到接近前沿推理模型的准确率,且预测更稳定、每个判定可经谓词输出解释。

正文 · 原文

View PDF HTML (experimental)

Abstract:Policy enforcement for LLM agents has shifted from single-turn content moderation to compound, application-specific policies evaluated over multi-turn transcripts and tool-call trajectories. Fine-tuned guardrail models are efficient but degrade on compound policies, and while LLM-as-a-judge approaches achieve higher accuracy, they incur high inference cost and tend to produce unstable predictions. Neurosymbolic methods offer a natural alternative, decomposing the policy into narrow neural decisions composed under explicit logic. However, existing symbolic layers lack the required expressiveness and are optimized against fixed data rather than the policy itself. To address this, we introduce SCOPE, which compiles a policy into an executable program of neural predicates executed by small models, deterministic extractors, and code that composes their outputs. The program is optimized jointly with its training data, using adversarial generation of counterexamples that target where the program deviates from the policy. We evaluate SCOPE on a benchmark of real-world policy tasks against prompt optimization, task decomposition, and workflow generation methods, achieving the highest average accuracy across tasks and models. Programs optimized with the weakest executor transfer to other models without further optimization. This allows them to be deployed in production on inexpensive models, where they reach accuracy comparable to frontier reasoning models. Unlike these monolithic models, SCOPE produces substantially more stable predictions, and each verdict is interpretable through the predicate outputs that produced it. Additionally, we validate the key components of our method through an ablation study. SCOPE thus enables reliable, interpretable, and efficient policy enforcement at production scale.
Subjects: Artificial Intelligence (cs.AI); Computation and Language (cs.CL)
Cite as: arXiv:2610.31062 [cs.AI]
  (or arXiv:2610.31062v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.31062

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Elad Levi [view email]
[v1] Thu, 22 Oct 2026 10:41:13 UTC (5,463 KB)

来源:arXiv cs.CL · arxiv.org