SkillCDG improves compliance checking by graph retrieval on long SOPs

Constraint Dependency Graph Retrieval for Compliance Detection on Long SKILL Documents

Artificial Intelligence

Summary

Large businesses use long documents called SKILLs to explain rules for how things should be done. These documents are often too long and complicated for smaller checking tools to handle all at once. The authors created SkillCDG, a method that turns these rule documents into graphs where each rule is connected to the rules it depends on. This helps the system find just the right rules to check without missing important details or adding irrelevant ones. Their approach helps improve accuracy in deciding if business operations follow all required rules.

What this means in practice

  • For enterprise compliance teams: Improve automated detection of rule violations by efficiently retrieving all relevant conditions from long operational documents.
  • For legal technology providers: Build tools that ensure business processes comply with complex rule sets using graph-based retrieval for better accuracy.$Commercial implications: Enables development of compliance auditing software for enterprises needing accurate verification of long procedural documents.

Authors

Shuaitao Zhao, Feng Ni, Lichao Ma, Yuchen Wei, Shuaike Li, Jiaye Lin, Fei Han, Yang Wei, Lu Pan

Abstract

Large Language Model (LLM) agents carry out business operations under enterprise documents we refer to as SKILL documents, which take the form of standard operating procedures (SOPs) that state the conditions to verify and the actions to take before an operation proceeds. Long, densely cross-referenced SKILL documents exceed the context budget of small deployed auditors. Similarity-based retrieval then brings in irrelevant rules while omitting mandatory prerequisites, and the two-stage audit policy provides no trainable signal for the retrieval stage. We present SkillCDG, a compliance detection framework that reformulates each SKILL document as a constraint dependency graph, shifting rule retrieval from similarity-based matching to closure-based selection under the deployment's context budget. Each atomic rule is anchored to its source text span as a graph node, and mandatory prerequisite relations form the sole edge type. Policy-generated retrieval keywords activate seed rules, whose dependency closure yields a compact and conditionally complete rule context within that budget. The same graph also supports a joint optimization scheme. The retrieval stage is trained with group-relative policy optimization using a verifiable reward that combines output-format validity with downstream verdict correctness, with closure non-emptiness serving as a validity gate, while selective on-policy distillation concentrates teacher supervision on high-entropy reasoning tokens, with verdict and termination tokens always included, to improve verdict accuracy. Experiments on three enterprise datasets and two public benchmarks show that SkillCDG improves accuracy and F1 over the full-document and retrieval-based baselines.