LOGIGEN: Logic-Driven Generation of Verifiable Agentic Tasks
Organizations: Baidu Inc. · Tsinghua University
Abstract
The evolution of Large Language Models (LLMs) from static instruction-followers to autonomous agents necessitates operating within complex, stateful environments to achieve precise state-transition objectives. However, this paradigm is bottlenecked by data scarcity, as existing tool-centric reverse-synthesis pipelines fail to capture the rigorous logic of real-world applications. We introduce LOGIGEN, a logic-driven framework that synthesizes verifiable training data based on three core pillars: Hard-Compiled Policy Grounding, Logic-Driven Forward Synthesis, and Deterministic State Verification. Specifically, a Triple-Agent Orchestration is employed: the Architect compiles natural-language policy into database constraints to enforce hard rules; the Set Designer initializes boundary-adjacent states to trigger critical policy conflicts; and the Explorer searches this environment to discover causal solution paths. This framework yields a dataset of 20,000 complex tasks across 8 domains, where validity is strictly guaranteed by checking exact state equivalence. Furthermore, we propose a verification-based training protocol where Supervised Fine-Tuning (SFT) on verifiable trajectories establishes compliance with hard-compiled policy, while Reinforcement Learning (RL) guided by dense state-rewards refines long-horizon goal achievement. On -Bench, LOGIGEN-32B(RL) achieves a 79.5% success rate, substantially outperforming the base model (40.7%). These results demonstrate that logic-driven synthesis combined with verification-based training effectively constructs the causally valid trajectories needed for next-generation agents.
Figures & tables
| Dataset | Policy Encoding | Env. Grounding | Init. Sampling | Task Synthesis | Verification |
|---|---|---|---|---|---|
| API-Bank ToolACE TOUCAN | Tool/API/MCP specs (no explicit policy) | Mocked or external tool execution (no released local stateful env) | N/A (Stateless) | Spec-conditioned LLM task synthesis (tool-first / reverse) (Training Data) | Rule / metric checks (Parsers / regex) (no state-diff) |
| EnvScaler AgentScaler | Programmatic logic a | Executable simulator | Programmatic (state synthesis) | Tool-graph / scenario-driven (tool-first / reverse) (Training Data) | State-based checks (validators / alignment) b |
| -Bench -Bench | Soft (NL guidelines + env rules) | Executable env w/ stateful backend | Curated task-provided init state | Human-authored tasks (Benchmark) | Deterministic state check |
| LOGIGEN (Ours) | Hard-Compiled Policy | Executable DB-backed env | Boundary-adjacent initial states | Automated logic-driven (Training Data) | Deterministic state check |
| Core Domain | Sub-domains & Scenarios |
|---|---|
| Travel & Hospitality | Travel Agent, Hotel Concierge, Corporate Travel Booking, Hospitality & Travel Services, Event Ticketing |
| Retail & Supply Chain | Order Assistant, After-Sales Support, Shopping Assistant, Membership Support, Logistics Support, Supply Chain & Logistics |
| Healthcare & Life Sci. | Medical Receptionist, Medical Triage & Booking, Healthcare & Life Sciences Services |
| Finance & Insurance | Bank Teller Bot, Insurance Claims, Insurance Services, Finance & Account Steward |
| Education & Knowledge | University Registrar, Course Enrollment, Librarian, Skill Development |
| Enterprise Ops & HR | HR Assistant, HR Team Management, Public & Admin Clerk, Collaboration Creation, Compliance Process, Planning & Strategy |
| Model | User Simulator | -Bench | |||
|---|---|---|---|---|---|
| Retail | Airline | Telecom | Overall | ||
| Closed-Source Large Language Models | |||||
| Gemini-3-pro | Gemini-3-pro | 85.3 | 73.0 | 98.0 | 85.4 |
| Claude-Sonnet-4.5 | - | 86.2 | 70.0 | 98.0 | 84.7 |
| GPT-5 | GPT-4.1-2025-04-14 | 81.6 | 62.5 | 95.8 | 80.0 |
| Qwen3-Max-Thinking | GPT-4.1-2025-04-14 | 79.4 | 69.0 | 98.2 | 82.2 |
| Model | -Bench | |||
|---|---|---|---|---|
| Retail | Airline | Telecom | Overall | |
| Qwen3-8B | 38.6 | 30.5 | 23.3 | 30.8 |
| + Cold Start | 59.1 ( 20.5) | 44.0 ( 13.5) | 59.1 ( 35.8) | 53.5 ( 22.7) |
| + TA-GRPO RL | 79.5 ( 40.9) | 54.7 ( 24.2) | 81.3 ( 58.0) | 71.8 ( 41.0) |
| Qwen3-32B | 53.3 | 42.0 | 26.9 | 40.7 |
| + Cold Start | 65.3 ( 12.0) | 50.8 ( 8.8) | 71.9 ( 45.0) | 62.7 ( 22.0) |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Module / Agent | Success | Model | Avg. | Avg. Tokens | Avg. | |
|---|---|---|---|---|---|---|
| Rate (%) | Turn | Prompt | Compl. | Cost (¥) | ||
| The Architect | 68.5 | – | – | – | – | 1.22 |
| Design Wiki Policy | – | DS-V3.2-Think | 2.7 | 37,410 | 6,255 | 0.09 |
| Design Tables | – | DS-V3.2-Think | 7.1 | 157,048 | 15,906 | 0.36 |
| Design Triggers | – | DS-V3.2-Think | 10.0 | 327,096 | 38,654 | 0.77 |
| The Set Designer | 72.8 | DS-V3.2 | 41.4 | 795,374 | 5,941 | 1.61 |