SOPBench: Evaluating Language Agents at Following Standard Operating Procedures and Constraints

Zekun Li, Shinda Huang, Jiangtian Wang, Nathan Zhang, Antonis Antoniades +6 more
3/11/2025
cs.CLcs.AI

Official code: Leezekun/SOPBench (16 stars, last commit 2025-11-17).

Abstract

As language agents increasingly automate critical tasks, their ability to follow domain-specific standard operating procedures (SOPs), policies, and constraints when taking actions and making tool calls becomes essential yet remains underexplored. To address this gap, we develop an automated evaluation pipeline SOPBench with: (1) executable environments containing 167 tools/functions across seven customer service domains with service-specific SOPs and rule-based verifiers, (2) an automated test generation framework producing over 900 verified test cases, and (3) an automated evaluation framework to rigorously assess agent adherence from multiple dimensions. Our approach transforms each service-specific SOP code program into a directed graph of executable functions and requires agents to call these functions based on natural language SOP descriptions. The original code serves as oracle rule-based verifiers to assess compliance, reducing reliance on manual annotations and LLM-based evaluations. We evaluate 18 leading models, and results show the task is challenging even for top-tier models (like GPT-4o, Claude-3.7-Sonnet), with variances across domains. Reasoning models like o4-mini-high show superiority while other powerful models perform less effectively (pass rates of 30%-50%), and small models (7B, 8B) perform significantly worse. Additionally, language agents can be easily jailbroken to overlook SOPs and constraints. Code, data, and over 24k agent trajectories are released at https://github.com/Leezekun/SOPBench.

View on arXivView PDF

Code Implementations(1)

Leezekun/SOPBenchOfficial100%

The data and code for paper: "SOPBench: Evaluating Language Agents at Following Standard Operating Procedures and Constraints"

163Shell, PythonMay 16, 202511 months ago

Similar Papers

Cite this paper

@article{li2025sopbench,
  title  = {SOPBench: Evaluating Language Agents at Following Standard Operating Procedures and Constraints},
  author = {Zekun Li and Shinda Huang and Jiangtian Wang and Nathan Zhang and Antonis Antoniades and Wenyue Hua and Kaijie Zhu and Sirui Zeng and Chi Wang and William Yang Wang and Xifeng Yan},
  year   = {2025},
  eprint = {2503.08669},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08669v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08669.svg)](https://codeofpaper.com/paper/2503.08669)

Discussion