English

Evaluating Implicit Regulatory Compliance in LLM Tool Invocation via Logic-Guided Synthesis

Computation and Language 2026-01-14 v1 Artificial Intelligence Cryptography and Security Logic in Computer Science Software Engineering

Abstract

The integration of large language models (LLMs) into autonomous agents has enabled complex tool use, yet in high-stakes domains, these systems must strictly adhere to regulatory standards beyond simple functional correctness. However, existing benchmarks often overlook implicit regulatory compliance, thus failing to evaluate whether LLMs can autonomously enforce mandatory safety constraints. To fill this gap, we introduce LogiSafetyGen, a framework that converts unstructured regulations into Linear Temporal Logic oracles and employs logic-guided fuzzing to synthesize valid, safety-critical traces. Building on this framework, we construct LogiSafetyBench, a benchmark comprising 240 human-verified tasks that require LLMs to generate Python programs that satisfy both functional objectives and latent compliance rules. Evaluations of 13 state-of-the-art (SOTA) LLMs reveal that larger models, despite achieving better functional correctness, frequently prioritize task completion over safety, which results in non-compliant behavior.

Keywords

Cite

@article{arxiv.2601.08196,
  title  = {Evaluating Implicit Regulatory Compliance in LLM Tool Invocation via Logic-Guided Synthesis},
  author = {Da Song and Yuheng Huang and Boqi Chen and Tianshuo Cong and Randy Goebel and Lei Ma and Foutse Khomh},
  journal= {arXiv preprint arXiv:2601.08196},
  year   = {2026}
}

Comments

11 pages, 3 figures

R2 v1 2026-07-01T09:02:05.347Z