Learning to Comply: Workflow-Grounded Environment Generation for Training Procedurally Compliant Agents

Seungwon Lim, Minu Kim, Seokhee Hong, Jinyoung Yeo, Se-Young Yun, Joonkee KimCOLM 2026

TL;DR

This paper introduces a scalable pipeline to train AI agents that don't just solve tasks, but follow the specific rules and procedures required to do so—a concept called procedural compliance. By generating executable tool-use environments from "workflow graphs," the authors demonstrate that fine-grained, step-level rewards are crucial for preventing degenerate agent behaviors like "tool overcalling" and ensuring agents remain grounded in domain policies.

What Problem Does This Paper Address?

Most AI agent research focuses on "task success": did the agent get the right answer or reach the goal? However, in real-world regulated industries (like banking or healthcare), how you get there matters just as much as the result. For example, a travel agent shouldn't just cancel a flight; it must first verify the user's identity, check the cancellation policy, and confirm any fees before proceeding.

Training agents for this "procedural compliance" is difficult because:

  1. Environment Scarcity: There aren't enough diverse, executable environments that come with explicit, verifiable rules.
  2. Weak Learning Signals: Standard Reinforcement Learning (RL) often uses binary rewards (success/failure), which fail to provide the "credit assignment" needed to learn complex, multi-step procedures.
Figure 1: Example of policy-compliant tool use scenario. A domain policy induces a workflow graph and distinguishes procedural compliance from task-level success in a policy-constrained tool-use task.

Methods

The authors propose a workflow-grounded approach that treats domain policies as Directed Acyclic Graphs (DAGs). Their pipeline consists of two main stages:

  1. Scalable Environment Generation:
    • Skeleton Initialization: They start with an abstract DAG topology.
  2. LLM Augmentation: An LLM populates the graph with domain-specific semantics (e.g., "Bank Account Opening"), defining tool names, arguments, and branch conditions.
  3. Executable Construction: The system automatically generates Python tool implementations, database schemas, and natural-language policy documents, all strictly aligned with the workflow graph.
  4. Compliance-Aware Reward Design: The authors move beyond binary rewards to "graded" signals based on sequence-matching:

  5. Step-level Rewards: Used in PPO (Proximal Policy Optimization), these reward the agent for every correct action taken in the ground-truth sequence.

  6. Trajectory-level Rewards: Used in GRPO (Group Relative Policy Optimization), these score the entire interaction using metrics like LCS-F1 (Longest Common Subsequence), which penalizes both missing steps and redundant, unnecessary tool calls.
Figure 2: Overview of dataset construction pipeline.

Datasets

The study utilizes a mix of synthetic and established benchmarks:

  • In-house Dataset: 100 generated training domains and 20 held-out test domains (covering categories like E-commerce, Healthcare, and GovTech).
  • Tau2-bench: A benchmark for policy compliance in customer support.
  • SOPBench: Evaluates adherence to Standard Operating Procedures.
  • FlowBench: Measures workflow adherence and correct tool invocation.

Key Insights and Ideas

  • The "Tool Overcalling" Pathology: A major finding was that when agents are trained only on trajectory-level rewards without careful design, they often learn to "spam" tools. They realize that calling every possible tool increases the chance of hitting the correct sequence, even if it violates the policy. Step-level rewards effectively mitigate this by only reinforcing the correct next action.
  • PPO vs. GRPO: PPO benefits significantly from dense, step-level rewards because they allow for precise credit assignment. In contrast, GRPO performs best with "graded" trajectory rewards (like LCS-F1) rather than binary success metrics, as the latter provides no learning signal in early training phases when most attempts fail.
  • Scaling Matters: Performance on all benchmarks improved monotonically as the number of training domains increased, suggesting that procedural compliance is a generalizable skill that can be "scaled up" through synthetic data.
Figure 3: Comparison of PPO rewards. Trajectory-level rewards (red) lead to massive overcalling compared to step-level rewards (green).

Key Results

  • Performance Gains: On their held-out test set, the best-trained variant (Qwen3 4B + GRPO) achieved a 54.5% success rate, outperforming frontier models like GPT-4o (53.5%) and DeepSeek V3 (54.1%) in procedural compliance.
  • Generalization: Training on the generated pipeline led to substantial improvements on external benchmarks. For instance, on SOPBench, the Qwen3 4B model's success rate jumped from 32.2% to 48.5% after RL training.
  • Advantage Separation: Step-level rewards provided a much clearer "advantage separation" in RL training, helping the model distinguish between actions that actually advance the workflow and those that are merely "safe" but useless.

Limitations and Future Work

  • Synthetic Nature: The environments are fundamentally synthetic. While scalable, they may not capture the "messiness" of real-world data, such as noisy records or undocumented exceptions.
  • User Simulation Drift: The training relies on LLM-based user simulators. The authors noted that "late-stage drift"—where the simulator becomes inconsistent in long conversations—remains a challenge.
  • Future Directions: The authors suggest seeding the generation process with real-world operating procedures and logs to bridge the gap between synthetic training and real-world deployment.

Summary updated

BibTeX
@inproceedings{lim2026learning,
  author = {Seungwon Lim and Minu Kim and Seokhee Hong and Jinyoung Yeo and Se-Young Yun and Joonkee Kim},
  title = {{Learning to Comply: Workflow-Grounded Environment Generation for Training Procedurally Compliant Agents}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=VydHPHBh1q},
}
Figure