SemPlan: Benchmarking Structured Semantic Planning for LLM-Based Queries over Enterprise Data
Organizations: Universidade Federal de Ouro Preto (UFOP), Brazil
Abstract
Natural-language interfaces to enterprise data must translate underspecified requests into governed, executable behavior while controlling invalid queries, policy failures, cost, and nondeterminism. SemPlan Benchmark evaluates this architectural design space with a deterministic synthetic bilingual benchmark containing 1,800 cases in English and Brazilian Portuguese; 1,200 cases form the frozen scientific evaluation subset. Four architectures are compared under the same model configuration: direct SQL generation (A1), a bounded tool-agent baseline (A2), structured semantic-request generation followed by deterministic planning and execution (A3), and a clarification/stateful semantic-plan variant (A4). Across 4,800 primary records, answer correctness was low in absolute terms: 22.25% for A1, 22.58% for A2, 25.67% for A3, and 24.25% for A4. A3 had the highest observed correctness and significantly exceeded A1, A2, and A4 in the pre-specified paired correctness analysis, while A1 retained the highest policy-correct rate and the lowest unsafe-or-invalid rate. A4 had the lowest mean API cost and lowest false-refusal rate. On a preselected 150-case stability subset, answer-correct repeatability ranged from 92.00% to 98.67%. The results support a trade-off interpretation rather than a universal ranking: additional structural constraints changed failure modes and efficiency, but did not monotonically improve correctness or solve ambiguity and multi-turn state consistency.
Figures & tables
| Dimension | Value | Cases |
|---|---|---|
| Split | Adversarial | 200 |
| Development | 300 | |
| Multi-turn | 200 | |
| Hidden test | 300 | |
| Public test | 500 | |
| Validation | 300 |
| Approach | Answer correct | Policy correct | False refusal | Unsafe/invalid | Mean cost |
|---|---|---|---|---|---|
| A1 | 22.25% | 43.67% | 21.42% | 31.00% | $0.000918 |
| A2 | 22.58% | 35.42% | 1.83% | 62.25% | $0.000927 |
| A3 | 25.67% | 37.33% | 1.58% | 60.58% | $0.000512 |
| A4 | 24.25% | 35.25% | 0.17% | 64.08% | $0.000469 |
| Metric | Contrast | n | Risk diff. | 95% CI | Holm p |
|---|---|---|---|---|---|
| answer_correct | A3 vs A1 | 1200 | +0.034167 | [+0.018534, +0.049799] | 0.000110 |
| answer_correct | A4 vs A1 | 1200 | +0.020000 | [+0.004720, +0.035280] | 0.041250 |
| answer_correct | A3 vs A2 | 1200 | +0.030833 | [+0.016796, +0.044870] | 0.000110 |
| answer_correct | A4 vs A2 | 1200 | +0.016667 | [+0.003231, +0.030102] | 0.041250 |
| answer_correct | A4 vs A3 | 1200 | -0.014167 | [-0.025094, -0.003239] | 0.041250 |
| policy_correct | A3 vs A1 | 1200 | -0.063333 | [-0.090032, -0.036635] | 0.000020 |
| Approach | en-US | pt-BR |
|---|---|---|
| A1 | 24.67% | 19.83% |
| A2 | 28.50% | 16.67% |
| A3 | 31.00% | 20.33% |
| A4 | 29.33% | 19.17% |
| Error code | All records | Primary records |
|---|---|---|
| EXECUTION_FAILED | 1762 | 1402 |
| OUTPUT_SCHEMA_INVALID | 1051 | 845 |
| POLICY_VIOLATION | 368 | 287 |
| CATALOG_UNKNOWN_ID | 78 | 65 |
| CFG_INVALID | 24 | 16 |
| Approach | Answered | Clarify | Out-of-scope | Error | False refusal |
|---|---|---|---|---|---|
| A1 | 292 | 0 | 536 | 372 | 257 |
| A2 | 210 | 29 | 214 | 747 | 22 |
| A3 | 194 | 33 | 246 | 727 | 19 |
| A4 | 194 | 9 | 228 | 769 | 2 |
| Approach | Repeatability | Cases | Additional records |
|---|---|---|---|
| A1 | 98.00% | 150 | 300 |
| A2 | 92.00% | 150 | 300 |
| A3 | 98.67% | 150 | 300 |
| A4 | 98.00% | 150 | 300 |
| Approach | Clarification correct | Ambiguity n | Sequence-state correct | Multi-turn n |
|---|---|---|---|---|
| A1 | 0.00% | 84 | 20.00% | 200 |
| A2 | 26.19% | 84 | 17.00% | 200 |
| A3 | 27.38% | 84 | 14.00% | 200 |
| A4 | 8.33% | 84 | 14.50% | 200 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Artifact | Identifier |
|---|---|
| Benchmark version | 1.0.0-rc.2 |
| Benchmark SHA-256 | 60fe39c51a71637afd2a88f9fd44c3eee620a6e5467591d3c36a0a39a16792ed |
| Scientific results SHA-256 | 5f06bc8bad81a8c0c151d4890a34432bb0166e73331371fb5c7fb8536aefb816 |
| Model | gpt-5.6-luna , reasoning low , max output 1,200 |
| Primary design | 1,200 cases 4 approaches 4,800 records |
| Stability design | 150 cases 4 approaches 2 additional runs 1,200 records |
LLM Planning
Large language model planning studies how models decompose goals, choose actions, and revise plans under constraints.
See all 142 papers