Code-as-Auditor: Executable Compliance Reasoning via Regulation-to-Code
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Large Language Models (LLMs) are increasingly adopted for compliance and legal reasoning tasks, yet their outputs often lack explicit grounding in legal logic and evidence. We present Code-as-Auditor, an LLM-based framework that extends the model's reasoning capability toward structured and evidence-grounded compliance assessment. The framework translates regulatory information into (1) formalized checklists and executable decision trees, encoding regulations and conditions as interpretable code structures. During inference, each checklist item is (2) dynamically expanded into factual and counterfactual questions, guiding the model to reason over case-specific evidence and potential violations. This process establishes a reasoning pipeline that proceeds from evidence identification, through rule application, to final decision-making, while a self-verification loop improves the logical consistency of the generated code and the traceability of outcomes. Experiments on privacy and data protection scenarios demonstrate that Code-as-Auditor delivers more accurate and evidence-backed evaluations, enabling automated compliance regulation checking grounded in explicit regulatory criteria.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 11 of its 62 references that are in the map. First posted on arXiv 16 Sep 2026.
Builds on
11 of 62 references.
Closest ancestors · 1
Same direction, newest first
Other references · 10
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
- 2023DISC-LawLLM: Fine-tuning Large Language Models for Intelligent Legal Servicescited by 117
- 2024LegiLM: A Fine-Tuned Legal Language Model for Data Compliancecited by 6
- 2024PolicyLR: A Logic Representation For Privacy Policiescited by 3
- 2025Toward Robust Legal Text Formalization into Defeasible Deontic Logic using LLMscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Explainable Compliance Detection with Multi-Hop Natural Language Inference on Assurance Case Structure
- 2025Compliance-to-Code: Enhancing Financial Compliance Checking via Code Generation
- 2026ARCCS: An Automated Regulatory Compliance Checking System
- 2026Know Your Limits : On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoning
- 2025LLM-based HSE Compliance Assessment: Benchmark, Performance, and Advancements
- 2025Scaling Policy Compliance Assessment in Language Models with Policy Reasoning Traces
- 2024Rethinking Legal Compliance Automation: Opportunities with Large Language Models
- 2026CTRAG: An In-Context Retrieval-based Framework for Automated Compliance Checking using LLMs