Certified Speculative Execution for Untrusted AI Agents
Abstract
Hard-constrained sequential decision systems have no certified way to spend the test-time compute of modern AI: executing the multi-step drafts of a learned policy or a frozen LLM forfeits the feasibility guarantee a trusted solver provides, while invoking the solver at every step forfeits the speed the AI offers. Certificate-Gated Prefix Acceptance (CGPA) closes this gap with a certified speculative-execution contract for untrusted AI agents: a trusted verifier rejects constraint-violating transitions exactly, a conformally calibrated value boundary gates the longest low-cost prefix within a per-segment regret budget, and the rest defers to the solver, so safety, regret, and speed decouple by construction. The contract drives every untrusted proposal source - adversarial drafters and six heterogeneous frozen LLMs (including a 12B model that violates constraints in 98% of direct rollouts) - to zero applied violations; a certificate-aware learned boundary, conformally calibrated, drives mean regret three orders of magnitude below unguarded acceptance, to within sampling noise of the stepwise oracle (95% CI spanning zero), and under calendar shift a learned proposal source overtakes it on 15 of 18 held-out days. On a deployment-scale unit-commitment instance it turns a frozen 8B LLM into a 2.96x per-episode wall-clock speedup at 2.1% regret, outpacing the domain heuristic (1.79x) and a safe receding-horizon baseline (1.07x): the more capable the untrusted source, the faster the certified system, at guarantees that never change.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG
- Comments
- 15 pages, 2 figures, 24 tables. Includes a technical appendix (full proofs and all supplementary tables)
Related papers
ParseGap: Testing What Coding Agents Authorize and What Shells Execute
Shared title terminologycs.CRJieyu Li
Untrusted Content Masking for Web Agents with Security Guarantees
Shared title terminologycs.CRKristina Nikolić, Egor Zverev, Javier Rando et al.
Hardening x402: PII-Safe Agentic Payments via Pre-Execution Metadata Filtering
Shared title terminologycs.CRVladimir Stantchev
From Agent Traces to Trust: A Survey of Evidence Tracing and Execution Provenance in LLM Agents
Shared title terminologycs.CRYiqi Wang, Jiaqi Zhang, Zhangkai Wu et al.
From Tool Connection to Execution Control: Benchmarking Security Invariants in MCP-Style Agent Runtimes
Shared title terminologycs.CRTing Liu
NPUFHE: An Efficient CKKS Execution System for Ascend NPUs
Shared title terminologycs.CRKe Changke, Jian Wang, Xuan Xu et al.