When a small company uses a language model to check whether a data flow or an AI system complies with the GDPR or the EU AI Act, it gets two things back: a verdict and a written chain of reasoning that looks like an audit trail. This proposal asks whether that reasoning actually produces the verdict. Chain-of-thought prompting means asking the model to write out intermediate steps before answering. Its steps can be post-hoc: plausible text that has no causal effect on the answer. In compliance work, such a trail reproduces in software the failure that governance research calls ceremonial compliance. Abdullah's studies of Malaysian audit committees show firms creating oversight structures as window-dressing that satisfy the form of a rule without doing its substance. Firms that cannot afford lawyers are the ones most likely to rely on cheap automated checks. If those checks produce ceremonial rationales, the regulatory moat, meaning the fixed compliance cost that favours incumbents, is not reduced. It is hidden.
We propose to measure this directly and then try to repair it. The measurement is a counterfactual step-intervention test. We take the model's own scratchpad, edit one legally decisive finding (for example, "an exception applies" becomes "no exception applies"), let the model continue from that point, and check whether the verdict changes the way the statute says it must. The repair is a set of in-context demonstrations that lay out the scratchpad in fixed slots following the shape of defeasible legal logic: general rule, then exception, then carve-out from the exception. Paired with that, the final verdict is computed by a trivial program over the slots rather than written freely by the model. The central empirical question is whether this structure makes the reasoning load-bearing on 7–8B open models. A second question is whether compressed steering methods, such as learned chain-of-thought vectors, raise accuracy while making the reasoning more ceremonial.
Core Claim
We make two claims. First, on statute-to-case compliance checks, the accuracy that small open models gain from chain-of-thought prompting is a poor proxy for audit value. A substantial fraction of their rationales will be decoupled from their verdicts, and the fraction can be measured against ground-truth legal decision trees. Second, in-context demonstrations that force a rule, exception and carve-out slot structure, combined with a deterministic aggregator, reduce decoupling by construction on the combination step. They also keep or improve accuracy relative to free-form chain of thought, and they do so at a fraction of the prompt length of full worked examples.
What is new is not "chain of thought for law." PrivaCI-Bench already tested chain-of-thought and retrieval prompting on GDPR, HIPAA and EU AI Act cases. What is new is treating faithfulness of the compliance rationale as the target quantity, with legally grounded counterfactuals.
Where This Sits
Three bodies of work motivate the gap. PrivaCI-Bench converts legal rules into hierarchical decision trees and finds two things: reinforcement-learned reasoning models such as QwQ-32B lead on hard questions, and naive retrieval hurts on GDPR and AI Act cases. It reports only accuracy, never whether the reasoning drives the answer. GraphCompliance parses GDPR into policy graphs and names failure modes of plain LLMs: missed cross-references, broken decision-tree logic, and checklist conflation. That diagnosis suggests verdicts are not composed from sub-findings. Its remedy, however, moves reasoning into externally built graphs, which is exactly the upfront cost small organisations cannot pay. LegalBench shows that few-shot prompting on legal tasks swings by over 20 points with exemplar choice, and that multi-step tasks sit near or below 50%. Structure alone, without faithfulness checks, is therefore unreliable.
Two lines constrain the design. CI-RL trains a 7B model with a structured contextual-integrity scratchpad and reinforcement learning, reducing privacy leakage by up to 40% on PrivacyLens. It needs weight updates and keyword rewards, and it does not test whether the scratchpad is causal. The Curse of CoT and the ICL-theoretic analysis of CoT warn that intermediate steps inside in-context prompts can hurt as well as help. We therefore expect gains only on genuinely multi-step items, and we stratify results by tree depth.
Two lines supply method. In-Context Learning Creates Task Vectors shows that demonstrations are compressed into an internal vector that recovers 80–90% of in-context accuracy, but only on single-token tasks. CoT Vectors learns roughly 4K-parameter activation vectors that push a frozen model into multi-step reasoning, beating LoRA on math (+4.6 vs +2.9 points). Nobody has asked whether such compression keeps the structure of the reasoning or only its verdict tendency. Our intervention test answers that for legal reasoning, where structure is the whole point.
Research Program
Counterfactual labels. We build the intervention test from the decision trees that PrivaCI-Bench derives for GDPR and the EU AI Act, and from the defeasible exception structure of GCS-300. For each case, the tree tells us which node values are decisive, so that flipping them must flip the verdict. It also tells us which are inert, so that flipping them must not. Legal annotators verify a sample of 200 generated counterfactuals so that we know the tree-derived labels are sound.
Scoring a rationale. We parse each rationale into node findings with a separate extractor model, validated against human parsing on a held-out subset. We then apply the edits and resume generation. Two numbers summarise each rationale. The decoupling rate is the fraction of decisive edits that fail to flip the verdict. The over-sensitivity rate is the fraction of inert edits that do flip it. A faithful reasoner scores near zero on both.
The repair. The repair uses three to four demonstrations. Each shows a case, its slot-filled scratchpad (rule triggered: yes or no, with the quoted clause; exception applies: yes or no, with evidence; carve-out applies: yes or no), and the verdict. The model fills slots for a new case in its own words and makes the qualitative calls, such as whether safeguards are "appropriate." A ten-line program then combines the slots into the verdict. Under this design, faithfulness of the combination step holds by construction. The empirical question moves to whether slot judgments themselves are accurate and whether the model can fill slots stably across exemplar sets. We also report the variant in which the model writes its own verdict after the slots. That variant lets us see whether the structure alone, without the program, already makes verdicts follow findings.
The compression question. We train CoT Vectors on the same 100-example support set, drawn from slot-structured demonstrations. We measure both accuracy and decoupling. If the vector matches accuracy but raises decoupling, that is a concrete answer to the open question in the task-vector work: compact steering can carry the verdict habit without the reasoning.
Baselines
The naive reference is direct prompting of Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct with the case and the relevant statutory text and no reasoning. It fixes the floor for accuracy and shows what a firm gets by doing nothing more.
Four prompting baselines share the same base models, the same statute excerpts, and a matched budget for selecting demonstrations: 20 random exemplar sets per method, with the mean and spread reported.
- Zero-shot chain of thought is the cheapest reasoning baseline.
- Few-shot free-form chain of thought isolates the effect of demonstrations without imposed structure.
- Zero-shot structured checklist prompt gives the same slot headings with no demonstrations. It mirrors the contextual-integrity-parameter prompting that PrivaCI-Bench reports "improved dramatically" (no exact overall figure given there). This is the most dangerous simple competitor and is discussed below.
- Retrieval-augmented generation follows the hybrid dense-lexical and reranker pipeline of Umar et al., which reports a RePASS score of 0.41 with LLaMA-3.1-8B-Instruct on ObliQA.
The strongest structured method is GraphCompliance. On GCS-300 it reports a 4.1–7.2 point micro-F1 gain and a 12–20 point F2 gain over plain LLM and retrieval baselines. The file gives no absolute micro-F1 value, so we re-run it on the same models and treat its re-run score as the target. Beating it means matching its micro-F1 within one point, or exceeding it, while also reporting a lower decoupling rate. We additionally report the preprocessing hours saved: we track annotator time spent building graphs against time spent writing demonstrations.
The weight-update competitors are LoRA fine-tuning and CoT Vectors. Both are trained on the same 100 slot-structured examples, and LoRA is tuned with the same search budget. As a scale reference we run QwQ-32B. PrivaCI-Bench reports 78.22% accuracy for it on the EU AI Act subset, the best on that subset. We measure its decoupling too, since a large reasoning model could be accurate yet ceremonial.
Three ablations isolate the key ingredient. The first uses slot demonstrations with a model-written verdict. The second applies the deterministic aggregator to slots extracted from free-form chain of thought. The third uses slot demonstrations whose slot contents are shuffled across exemplars, which tests whether the model learns the structure or copies the content.
Why not just…?
Why not just use a large reasoning model like QwQ-32B? It is the accuracy leader on PrivaCI-Bench's AI Act subset, and it may well stay more accurate. Two things argue against making it the answer. Running a 32B reasoning model with long traces per check is exactly the recurring cost the moat literature flags (Busch et al.; Franke et al.). More importantly, its faithfulness is untested. We report tokens per case and decoupling for it. If QwQ-32B is both far more accurate and faithful, that is an honest finding that the moat is compute-shaped, and we will state it.
Why not just give the model a structured checklist with no demonstrations? This is the real threat. The slot headings may carry nearly all the benefit, and zero-shot prompting avoids the exemplar sensitivity LegalBench documents. The zero-shot checklist baseline, combined with the same aggregator, settles it. If it matches the demonstration version on accuracy and slot-level correctness, we drop the demonstrations from the method. The contribution then reduces to the intervention protocol plus aggregator, which remains useful. We expect demonstrations to matter mainly for carve-out slots, where models must see what counts as evidence. The depth-stratified results will show whether that is true.
Why not just build the policy graph, as GraphCompliance does? Graphs give strong structure but require formalising each regulation up front. Every regulatory update, such as new harmonised standards or the uneven national regimes left by the AI Liability Directive withdrawal, repeats that cost. Our comparison reports accuracy and faithfulness alongside authoring hours. If GraphCompliance wins decisively per hour of effort, the case for in-context structure fails.
Why not just fine-tune with LoRA or CI-RL? Fine-tuning fixes the model at one regulatory snapshot and needs training infrastructure. CoT Vectors already shows LoRA underperforming a 4K-parameter vector on math, though that result may not transfer to law. We run LoRA on identical data and include it in the decoupling analysis. Fine-tuned models may learn verdict shortcuts and appear more ceremonial, not less.
Proposed Experiments
The data comes from three sources: the PrivaCI-Bench GDPR and EU AI Act subsets, restricted to items with decision trees; GCS-300; and LegalBench rule-application and multi-step tasks such as Successor Liability, for transfer. We use 7–8B open models throughout, with QwQ-32B as reference. The metrics are accuracy or micro-F1 and F2, decoupling rate, over-sensitivity rate, slot-level accuracy against tree nodes, spread across 20 exemplar sets, and prompt plus generated tokens per case.
Three results would be decisive. The first test is whether free-form chain of thought on small models shows a decoupling rate well above zero on decisive nodes, say above 20%, on deep trees. If not, the ceremonial-reasoning premise fails and we report that small models are more faithful than feared. The second test is whether slot demonstrations with the aggregator reach GraphCompliance's re-run micro-F1 on GCS-300 within one point, with lower decoupling and with the spread across exemplar sets well under LegalBench's 20-point swings. The third test concerns compression: whether CoT Vectors match slot-prompt accuracy while showing higher decoupling. That would be evidence that compact steering compresses the verdict and not the reasoning. It would also be a warning for anyone distributing such vectors as cheap compliance tools.
References
- Audit commitee establishment in Malaysia: some insight prior to the Asian 1997 financial crisis
- PrivaCI-Bench: Evaluating Privacy with Contextual Integrity and Legal Compliance
- GraphCompliance: Aligning Policy and Context Graphs for LLM-Based Regulatory Compliance
- LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Models
- Contextual Integrity in LLMs via Reasoning and Reinforcement Learning
- The Curse of CoT: On the Limitations of Chain-of-Thought in In-Context Learning
- An In-Context Learning Theoretic Analysis of Chain-of-Thought
- In-Context Learning Creates Task Vectors
- CoT Vectors: Transferring and Probing the Reasoning Mechanisms of LLMs
- Enhancing Regulatory Compliance Through Automated Retrieval, Reranking, and Answer Generation
- Navigating the European Union Artificial Intelligence Act for Healthcare
- A First Look at the General Data Protection Regulation (GDPR) in Open-Source Software
- When Less Regulation Means More Complexity: The EU AI Liability Directive Withdrawal and Its Impact on European Technological Competitiveness