UCVE:面向合规验证的图结构化检索
摘要
Capital One 的 AI Foundations 团队提出了 UCVE——一个领域无关的框架,将合规需求空间建模为上下文需求图(Contextual Requirement Graph, CRG),并基于强化学习加权的拉普拉斯矩阵执行谱重排序(spectral reranking)以完成检索。在三个合规领域的评估中,UCVE 在 matched-K 召回率上较平坦余弦检索提升 4.3%,表现优于多种强检索基线和基于图的基线方法。
查看缓存全文
缓存时间: 2026/10/28 08:21
# UCVE: Graph Structured Retrieval for Compliance Validation
Source: [https://arxiv.org/html/2610.37323](https://arxiv.org/html/2610.37323)
Michelle MenacheryRahul NenavathHimanshu KumarAffiliation:Amirfarrokh IranitalabAffiliation:Capital One, AI FoundationsAffiliation:\{emily\.chen2, michelle\.menachery, rahul\.nenavath, himanshu\.kumar2,Email:[amirfarrokh\.iranitalab\}@capitalone\.com](mailto:)
###### Abstract
Structured compliance validation requires determining whether every obligation in a predefined requirement space is satisfied, violated, or unaddressed by a given document\. This can be described as a coverage problem that existing retrieval and classification systems, by treating requirements as independent, are not designed to solve\. We introduceUCVE\(UCVE\), a domain\-agnostic framework that represents compliance requirement spaces as aCRG\(CRG\) and performs retrieval via spectral reranking over its reinforcement learning\-weighted Laplacian\. Edges between requirement nodes are learned via reinforcement learning with a traversal reward grounded in violation detection, reshaping the graph’s community structure such that low\-pass spectral filtering distinguishes relevant from irrelevant obligation clusters\. Evaluating across three compliance domains,UCVEaverages 4\.3% matched\-KKrecall lift over flat cosine retrieval and consistently outperforms strong retrieval and graph\-based baselines\.
## 1Introduction
Legal compliance review requires verifying that a document satisfies, or avoids breaching, a structured set of legal obligations\. Privacy policies must disclose the data practices mandated by regimes such as the GDPR and CCPA, consumer contracts must avoid terms that are potentially unfair under the EU Unfair Contract Terms Directive \(93/13/EEC\)[Lippi et al\. \(2019\)](https://arxiv.org/html/2610.37323#bib.bib1), and Environmental, Social, and Governance \(ESG\) reports must address disclosure criteria set by frameworks such as the EU Corporate Sustainability Reporting Directive\. As regulatory volume outpaces manual review by lawyers, compliance officers, and consumer protection authorities, automated systems that can handle the nuance of legal language are increasingly necessary[Chalkidis et al\. \(2022\)](https://arxiv.org/html/2610.37323#bib.bib19)\. We study this problem through theUniversal Content Validation Engine\(UCVE\), a framework that utilizes a Contextual Requirement Graph \(CRG\) for structured retrieval over a predefined space of legal obligations\. The costs of error in this setting are asymmetric: an overlooked unfair term or missing mandatory disclosure can expose an organization to regulatory sanctions, litigation, or reputational harm, whereas a false alarm costs only additional human review\. High recall over the obligation space is therefore the central requirement for practical legal validation systems\.
Existing legal NLP approaches to compliance typically treat obligations as independent units during inference\. Classification models predict clause labels in isolation, and standard retrieval methods extract evidence for individual requirements without propagating information across related obligations\. Legal obligations, however, are rarely independent\. Statutes and contract taxonomies are hierarchically organized, provisions cross reference one another, and the same obligation is often satisfied through varied drafting and paraphrase\. Local retrieval fails to capture these semantic and hierarchical interdependencies[Edge et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib20)\. For example, a data retention clause in a privacy policy frequently bears on storage limitation and third party sharing obligations, and a jurisdiction clause in terms of service commonly co\-occurs with a choice of law clause\. Because traditional strategies do not systematically exploit these dependencies, they often miss violations that lack direct lexical overlap with the statutory or regulatory requirement text\. Furthermore, many systems are tightly coupled to a single jurisdiction or annotation schema, making them difficult to adapt as laws are amended or new regulatory regimes emerge without exhaustive reannotation[Zhong et al\. \(2020\)](https://arxiv.org/html/2610.37323#bib.bib21)\.
To address these limitations,UCVEmodels legal validation as inference over a CRG where nodes represent obligations and edges encode the semantic and hierarchical relationships between them\. Following initial retrieval, the system propagates relevance signals across the graph using spectral reranking to smooth similarity scores across community structures\. Edge weights are optimized via a reinforcement learning objective that rewards the recovery of violations during traversal, allowing the system to identify obligations supported by indirect or distributed evidence across clauses\. Each node carries a natural language validation question grounded in its requirement text, so every verdict is traceable to a specific obligation, supporting the auditability that legal practitioners require\. Because the graph is built from explicit requirement definitions rather than task specific outputs, the architecture is portable across heterogeneous legal compliance domains\.
Figure 1:Universal content validation engine architecture\.We evaluate the framework on three legal compliance benchmarks covering privacy policies[Wilson et al\. \(2016\)](https://arxiv.org/html/2610.37323#bib.bib2), consumer contract fairness[Lippi et al\. \(2019\)](https://arxiv.org/html/2610.37323#bib.bib1), and sustainability disclosures\. Focusing on document level recall, the approach consistently outperforms strong retrieval and graph based baselines, particularly for obligations whose evidence spans multiple clauses\. Our contributions are threefold: we formulate legal compliance validation as structured inference over an interconnected obligation graph under asymmetric legal risk; we introduce the CRG, with RL\-learned edge weights combined with spectral reranking to propagate relevance through graph structure; and we show the architecture generalizes across structurally distinct legal domains with only lightweight per\-domain adaptation\.
## 2Related Work
### 2\.1Legal NLP and Compliance Checking
Early compliance automation checked extracted obligations against target documents[Breaux et al\. \(2006\)](https://arxiv.org/html/2610.37323#bib.bib40);[Cejas et al\. \(2023\)](https://arxiv.org/html/2610.37323#bib.bib24)with subsequent systems introducing explicit graph representations for verification[Tauqeer et al\. \(2022\)](https://arxiv.org/html/2610.37323#bib.bib41)\. Recent graph\-based compliance systems differ in their graph provenance\. PrivComp\-KG[Garza et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib17)pairs LLM retrieval with a regulatory knowledge graph for privacy\-policy compliance verification, whereas GraphCompliance[Chung et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib18)aligns a regulatory Policy Graph with an input\-specific Context Graph built per document\. Similarly, ComplianceNLP[Guo et al\. \(2026\)](https://arxiv.org/html/2610.37323#bib.bib28)grounds obligation extraction and policy\-gap analysis in a reusablable regulatory knowledge graph\. SAT\-Graph RAG[de Martim \(2025\)](https://arxiv.org/html/2610.37323#bib.bib31)retrieves deterministically over an LRMoo\-inspired temporal legal graph\. Obligation Logic Graphs[Servantez et al\. \(2023\)](https://arxiv.org/html/2610.37323#bib.bib26)model contractual obligation dependencies for computable contract execution\. UCVE instead treats the obligation space itself as a document\-independent requirement graph, learning inter\-requirement edge importance from validation outcomes\.
ContractNLI[Koreeda and Manning \(2021\)](https://arxiv.org/html/2610.37323#bib.bib32)checks a fixed hypothesis set checked against each document, the closest structural analogue to our task, but classifies each hypothesis independently\.[Cejas et al\. \(2023\)](https://arxiv.org/html/2610.37323#bib.bib24)and[Abualhaija et al\. \(2022\)](https://arxiv.org/html/2610.37323#bib.bib25)share this closed\-set framing over curated GDPR requirements, but model no dependencies across the requirement space\.
Adjacent Legal NLP benchmarks target clause identification \(CUAD[Hendrycks et al\. \(2021\)](https://arxiv.org/html/2610.37323#bib.bib33)\), statutory and case retrieval \(BSARD[Louis and Spanakis \(2022\)](https://arxiv.org/html/2610.37323#bib.bib34); COLIEE[Rabelo et al\. \(2022\)](https://arxiv.org/html/2610.37323#bib.bib38)\), general legal reasoning \(LegalBench[Guha et al\. \(2023\)](https://arxiv.org/html/2610.37323#bib.bib39)\), excerpt\-level regulatory judgments \(AIReg\-Bench[Marino et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib35)\), and violation identification in unstructured text \(LegalLens[Bernsohn et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib36)\), query\-to\-corpus or per excerpt tasks distinct from UCVE’s closed\-set, per\-obligation coverage\.
### 2\.2Graph\-based RAG and Knowledge Graph Approaches
Recent Graph\-RAG advancements couple LLMs with Knowledge Graphs \(KGs\) for complex reasoning via agentic beam search[Sun et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib8)or explicit relation planning[Luo et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib10)\. Surveyed Graph\-RAG methods[Peng et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib44)overcome isolated semantic retrieval through hierarchical communities[Edge et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib20), Maximum Spanning Trees[Zhu et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib9), textual subgraph retrieval[Hu et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib45), and lexical proposition–entity graphs[Ghassel et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib46)\. To operationalize traversal, approaches use Personalized PageRank[Bernal Gutiérrez et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib7), document\-graph reranking[Dong et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib27), graph neural message passing over KG entities[Mavromatis and Karypis \(2024\)](https://arxiv.org/html/2610.37323#bib.bib42), or map unstructured text to deterministic policy graphs[Chung et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib18)\. However, these rely heavily on static semantic connectivity, pre\-existing schemas, or heuristic traversals\. UCVE diverges by optimizing structural metadata edges via RL, enabling the policy to explicitly learn domain\-specific co\-relevance patterns for high\-recall obligation recovery\.
### 2\.3Reinforcement Learned Edges
RL is widely used in multi\-hop KG reasoning to learn traversal policies, often framed as sequential decision\-making[Xiong et al\. \(2017\)](https://arxiv.org/html/2610.37323#bib.bib11)[Das et al\. \(2018\)](https://arxiv.org/html/2610.37323#bib.bib12)\. To address incomplete KGs and spurious trajectories, subsequent walk\-based models employ knowledge\-based reward shaping and action dropout[Lin et al\. \(2018\)](https://arxiv.org/html/2610.37323#bib.bib13)\. At the structural level, methods like Iterative Deep Graph Learning continuously optimize both the adjacency matrix and GNN parameters[Chen et al\. \(2020\)](https://arxiv.org/html/2610.37323#bib.bib14)\. Closer still, several systems use RL to shape graph structure directly: Goal\-Directed Graph Construction learns graph\-construction and improvement policies with RL and GNNs[Darvariu et al\. \(2021\)](https://arxiv.org/html/2610.37323#bib.bib47), AutoGraph\-R1 trains an LLM graph constructor from task\-derived rewards[Tsang et al\. \(2026\)](https://arxiv.org/html/2610.37323#bib.bib30), and GraphRAG\-R1 applies process\-constrained RL to refine multi\-hop graph retrieval[Yu et al\. \(2026\)](https://arxiv.org/html/2610.37323#bib.bib29)\. Rather than learning navigational pathways or regenerating entire graph topologies from continuous embeddings, UCVE uses RL strictly to weight discrete, domain\-specific structural metadata \(e\.g\., hierarchical links\)\. By rewarding the recovery of missed obligations duringϵ\\epsilon\-greedy traversal, UCVE dynamically discovers the structural relationships that genuinely encode co\-relevance\.
### 2\.4Spectral Graph Theory
Spectral graph theory formally propagates signals across networks, capturing global node importance via the dominant eigenvector of transition matrices[Page et al\. \(1999\)](https://arxiv.org/html/2610.37323#bib.bib15)\. Graph Signal Processing extends this by framing retrieval as linear filtering over a spectral domain; projecting queries onto a low\-rank Laplacian eigenbasis allows low\-pass filters to smooth relevance signals and accelerate manifold traversal[Ortega et al\. \(2018\)](https://arxiv.org/html/2610.37323#bib.bib37)\. Within spectral ranking, Iterated Graph Laplacians cast manifold ranking as Laplacian regularization[Zhou et al\. \(2011\)](https://arxiv.org/html/2610.37323#bib.bib49), Fast Spectral Ranking recasts manifold retrieval as frequency\-domain linear filtering[Iscen et al\. \(2018\)](https://arxiv.org/html/2610.37323#bib.bib16), and Query\-Aware Flow Diffusion adapts propagation via query\-aligned edge flows[Zhou et al\. \(2026\)](https://arxiv.org/html/2610.37323#bib.bib48)\. Rather than flat similarities or sequential random walks, UCVE projects traversal scores onto the bottom eigenvectors of an RL\-weighted, sparsified graph Laplacian\. This low\-pass filter smooths signals across learned requirement communities and suppresses high\-frequency noise, lifting lexically dissimilar but structurally relevant obligations to maximize recall\.
## 3Methods
UCVEis a two\-stage framework for requirement validation over arbitrary document collections with a given domain\. The high level pipeline architecture is shown in Figure[1](https://arxiv.org/html/2610.37323#S1.F1)\.
### 3\.1Context Requirement Graph
We introduce aCRG, a weighted, undirected graphG=\(V,E,w\)G=\(V,E,w\)over a domain’s requirement space\. TheCRGis created separately for each domain, as these graphs are anticipated to be used independently\. The graph is created independent of any target document and encodes domain specific metadata explicitly in the graph structure\. Each nodev∈Vv\\in Vrepresents a single requirement drawn from a domain specific requirement set\. Each edgee∈Ee\\in Eencodes a relationship between two requirements \(semantic similarity of requirement descriptions or structural metadata\) with a composite weightw\(e\)w\(e\)aggregating across multiple typed edge contributions\. The graph is constructed once per dataset, independent of any target documents\.
#### 3\.1\.1Node Definition
Each nodev∈Vv\\in Vstores a unique identifier, domain indicator, requirement category label and a natural languagerequirementtext\. To ensure that validation decisions are interpretable and auditable, each node also contains a natural\-language validation question derived from its stored requirement and description\. Nodes also include positive and negative class definitions that are instantiated programmatically: a positive label indicates that the document text contains language exhibiting, satisfying, or relating to the requirement, while a negative label indicates the absence of such language\. This framing converts the per\-node classification task into a grounded binary judgment that requires no dataset\-specific prompt engineering, where the same template applies uniformly across all domains and requirement types\.
#### 3\.1\.2Embedding
Node embeddings contribute to edge construction and query\-node similarity scoring during traversal\. We evaluated node requirement texts under two encoders,all\-mpnet\-base\-v2[Reimers and Gurevych \(2019\)](https://arxiv.org/html/2610.37323#bib.bib3), a widely used domain\-general sentence encoder, andbge\-large\-en\-v1\.5[Xiao et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib43), a more recent encoder from a different training lineage\. We deliberately prefer a domain\-general encoder rather than a domain adapted model to ensure that theCRGhas the ability to capture relationships that stem from requirement semantics and graph structure rather than a pattern specific to the wording of a given domain\. We adaptall\-mpnet\-base\-v2for the main results, as it achieves higher or comparable recall across all three domains in our evaluation \(Appendix[E](https://arxiv.org/html/2610.37323#A5)\)\.
#### 3\.1\.3Semantic Edge Construction
The graph is initialized by connecting nodes whose requirement texts are semantically similar, establishing a backbone that reflects the latent structure of the requirement space\. For every pair of nodes \(vi,vjv\_\{i\},v\_\{j\}\), we compute cosine similarity over their L2\-normalized embeddings\.
sim\(vi,vj\)=ei⋅ejsim\(v\_\{i\},v\_\{j\}\)=e\_\{i\}\\cdot e\_\{j\}\(1\)
whereeie\_\{i\}is the unit\-length embedding of nodeviv\_\{i\}\. An undirected edge is created ifsim\(vi,vj\)≥τsim\(v\_\{i\},v\_\{j\}\)\\geq\\tau, with thresholdτ=0\.5\\tau=0\.5, and edge weight equal to cosine similarity value\. This threshold admits semantically related requirements while excluding illegitimate connections between unrelated obligation categories\.
#### 3\.1\.4Structural Edge Enrichment
Semantic similarity alone cannot encode relational structure that domain experts encode in the datasets themselves such as hierarchical requirement structures\. We augment the graph with six additional edge types derived from dataset ingrained metadata, producing a multi\-relational graph with seven edge types in total\.
Each edge holds an array of typed values, where each value is a tuple\(type, raw weight, learned weight\)\. Theraw weightencodes the intrinsic strength of the relationship: for a cosine similarity typed value, this would be a value∈\[0\.5,1\.0\]\\in\[0\.5,1\.0\]\. For the rest of the metadata types, it is a binary indicator \(1\.0 if both nodes share that property\)\. Thelearned weightis a scalar multiplier that get computed per type throughRL\(RL\) \(Section[3\.2](https://arxiv.org/html/2610.37323#S3.SS2)\), initialized to 1\.0 for cosine similarity and 0\.0 for all metadata types\. The composite edge weight aggregated across all active types:
w\(e\)=∑t∈type\(e\)raw\_wghtt×learned\_wghttw\(e\)=\\sum\_\{t\\in type\(e\)\}raw\\\_wght\_\{t\}\\times learned\\\_wght\_\{t\}\(2\)
Metadata edges can only increase the total weight, encoding the intuition that nodes related on multiple dimensions are more likely to co\-occur as relevant requirements for the same document\. The structural edge types instantiated for a given domain are determined entirely by the metadata fields present in that domain’s dataset, requirement no changes to the framework’s core architecture\.
### 3\.2RL Edge Weight Learning
The structural edge types introduced in Section[3\.1\.4](https://arxiv.org/html/2610.37323#S3.SS1.SSS4)augment the graph with domain\-specific relational signals whose relative importance varies across domains\. Rather than hand\-tuning edge type weights per domain, we learn a weight vectorλ=\[λ1,…,λ6\]\\lambda=\[\\lambda\_\{1\},\\ldots,\\lambda\_\{6\}\]over the six learnable metadata edge types via reinforcement learning, with the cosine similarity weight fixed at 1\.0 throughout\. The objective is to maximize retrieval recall over the training split — the fraction of ground truth requirement nodes recovered within a fixed traversal budget\.
##### Traversal and credit assignment\.
Training uses anϵ\\epsilon\-greedy breadth\-first traversal over the domain graph\. For each training document, traversal begins at the node with highest query similarity and proceeds forB=15B\{=\}15steps, scoring unvisited neighbors by a weighted combination of query similarity and current edge weight \(Equation[4](https://arxiv.org/html/2610.37323#A4.E4)\)\. At each step, credit is assigned to the traversed edge based on the destination node’s ground\-truth status: edges leading to a true violation receive credit that decays with step indexkk\(rewarding earlier discovery over later discovery\), edges leading to a node within three hops of a violation receive a small positive credit, and all other edges receive a small negative credit\. This credit is distributed across a traversed edge’s active metadata types in proportion to their relative contribution to that edge’s composite weight, and each type’s weight is updated via gradient ascent, clamped to\[0\.0,3\.0\]\[0\.0,3\.0\]to prevent runaway growth while preserving the constraint that metadata edges only ever increase relative importance over the cosine\-similarity backbone\. Training runs forT=30T\{=\}30epochs with learning rateα=0\.05\\alpha\{=\}0\.05andϵ\\epsilondecaying from0\.150\.15to0\.020\.02\. Full credit assignment and update equations are given in Appendix[C](https://arxiv.org/html/2610.37323#A3)and Algorithm[1](https://arxiv.org/html/2610.37323#alg1)\.
##### ϵ\\epsilon\-greedy BFS\.
UCVE uses RL only to weight a small, fixed set of typed metadata edges rather than learn a navigational policy\. This is a substantially simpler credit\-assignment problem than multi\-hop knowledge graph reasoning\.ϵ\\epsilon\-greedy suits this setting: obligation graphs are small and bounded \(24\-82 nodes\), making policy\-gradient machinery unnecessary\. Breadth\-first expansion naturally promotes the coverage our recall\-centric objective rewards[4\.1\.2](https://arxiv.org/html/2610.37323#S4.SS1.SSS2)andϵ\\epsilon\-greedy expansion guarantees credit reaches every edge type, which purely greedy traversal would not\. Policy\-gradient traversal becomes the natural choice only at substantially larger obligation spaces where exhaustive BFS is intractable \(Limitations\)\.
### 3\.3Requirement Retrieval Engine
At inference time, theCRGis applied to a given document through a three\-step procedure\. First, entry point selection identifies the most structurally promising nodes from which to initialize traversal\. Next, traversal explores the graph from the entry points to retrieve a set of requirement nodes\. Lastly, spectral re\-ranking refines the candidate set using the community structure encoded in theRL\-weighted graph\. Together, these steps produce a ranked set of requirement nodes representing the obligations most relevant to the document\.
#### 3\.3\.1Traversal
Given a query documentqq,UCVEscores all same\-domain requirement nodes in theCRGusing spectral reranking over theRL\-weighted graph\. Rather than sequentially traversing the graph from entry points, spectral reranking operates globally: it smooths cosine similarity scores across the graph’s community structure, lifting nodes whose wording diverges from the query but whose spectral neighborhood is relevant, and suppressing nodes with high surface similarity that sit in irrelevant clusters\. Alternative traversal strategies including entry\-point selection viaGSAEPS\(GSAEPS\), adaptiveBFS\(BFS\), and simultaneous graph scoring are evaluated in Appendix[D](https://arxiv.org/html/2610.37323#A4)\.
#### 3\.3\.2Spectral Reranking
Sparsification\.TheRL\-weighted graph is fully dense by construction: every node pair carries a non\-zero composite weight\. Standard graph propagation methods such as heat diffusion, personalized PageRank, embedding propagation, degenerate toward flat cosine similarity ranking, as every node is a neighbor of nearly every other, leaving no discriminative community signal\. We address this throughkk\-NN sparsification, retaining only thekkstrongest edges per node\. The choice ofkktrades off two failure modes: too small akkrisks disconnecting the graph, while too large akkapproaches the dense graph and reintroduces the degeneracy sparsification is meant to avoid; we selectkkper domain via sensitivity analysis on validation data \(Section[4\.4](https://arxiv.org/html/2610.37323#S4.SS4), Figure[3](https://arxiv.org/html/2610.37323#A3.F3)\)\.
Spectral Decomposition\.Over the sparsified graph, we compute the unnormalized graph LaplacianL=D−WL=D\-W, whereDDis the degree matrix andWWis the adjacency matrix ofRL\-weighted edge weights\. Eigenvectors corresponding to small eigenvalues vary slowly across the graph and capture large\-scale community structure, while those corresponding to large eigenvalues capture fine\-grained within\-cluster variation[von Luxburg \(2007\)](https://arxiv.org/html/2610.37323#bib.bib4);[Chung \(1997\)](https://arxiv.org/html/2610.37323#bib.bib5)\. We retain the bottomnneigenvectorsVn∈ℝN×nV\_\{n\}\\in\\mathbb\{R\}^\{N\\times n\}as a smoothness basis for reranking, wherennand the sparsification parameterkkare selected per domain on validation data to reflect differences in the natural community structure of each requirement graph\. Settingnntoo large risks overfitting to fine\-grained topology; setting it too small discards useful inter\-community signal\.
Projection and Reranking\.Given the vector of cosine similaritiess∈ℝNs\\in\\mathbb\{R\}^\{N\}over all same\-domain nodes, we project into the subspace spanned byVnV\_\{n\}:
s^=α⋅VnVn⊤s\+\(1−α\)⋅s,α=0\.8\\hat\{s\}=\\alpha\\cdot V\_\{n\}V\_\{n\}^\{\\top\}s\+\(1\-\\alpha\)\\cdot s,\\quad\\alpha=0\.8\(3\)The projectionVnVn⊤sV\_\{n\}V\_\{n\}^\{\\top\}sis a low\-pass filter in the graph frequency domain, retaining community\-level similarity signal and attenuating high\-frequency within\-cluster noise[von Luxburg \(2007\)](https://arxiv.org/html/2610.37323#bib.bib4)\. This has two complementary effects: \(1\) it lifts requirement nodes with low cosine similarity when their spectral neighbors score highly, recovering obligations whose wording does not closely match the query but whose community is relevant; \(2\) it suppresses false positives with high cosine similarity that sit in spectral clusters where most nodes score low\. The blend weightα=0\.8\\alpha\{=\}0\.8prioritizes spectral community structure while retaining direct semantic signal; settingα=1\.0\\alpha\{=\}1\.0discards raw similarity entirely and was found to slightly degrade performance on queries where a single node is distinctly relevant\. Nodes are reranked bys^\\hat\{s\}and returned up to an adaptive budget controlled by a similarity threshold of 0\.75\.
RLEdge Weights\.The utility of spectral projection depends on whether the sparse graph’s community structure encodes ground\-truth co\-relevance patterns\. On a cosine similarity graph, communities reflect embedding similarity clusters, which may not align with how requirements co\-occur in documents\. On theRL\-weighted graph, edges trained to predict co\-relevance reshape the Laplacian’s community structure such that spectral clusters correspond more closely to sets of requirements that genuinely co\-occur — the key mechanism underlying the conditional dependence betweenRLedge learning and spectral reranking demonstrated empirically in Section[4](https://arxiv.org/html/2610.37323#S4)\.
## 4Results
Table 1:Retrieval results at matched\-KK\(OPP\-115K=14K\{=\}14, CLAUDETTEK=16K\{=\}16, ESRSK=17K\{=\}17\)\. PPR = Personalized PageRank; Leiden = GraphRAG community detection\.### 4\.1Experimental Design
#### 4\.1\.1Datasets
We instantiate theCRGover three domains in the evaluation: privacy policy compliance, using OPP\-115opp115\-paperand consumer fairness detection using CLAUDETTE[Lippi et al\. \(2019\)](https://arxiv.org/html/2610.37323#bib.bib1), and sustainability reports using ESRS[Ahmed et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib22)\. The OPP\-115 dataset contains a two\-tiered hierarchy of requirements with 10 category level requirements representing top\-level data practice categories \(i\.e\. First Party Collection/Use, Data Retention\) and 14 sub\-attribute requirements presenting more granular aspects of the top level categories \(i\.e\. personal information type cookies is under the top level First Party Collection/Use node\)\. The CLAUDETTE dataset contains 53 requirements\. Each CLAUDETTE node also contains dataset specific metadata: afairness tierwhich marks if the requirement is clearly or potentially unfair and akb tagfield which groups semantically related requirements\. Nodes are filtered to those appearing in at least 5 training documents to ensure sufficient annotation coverage\. ESRS contains 82 sustainability disclosure requirement nodes drawn from the European Sustainability Reporting Standards subset of the ESRS\-CID retrieval benchmark, covering disclosure requirements across environmental, social, and governance topics\. This resulting base graphs contains 577 edges connecting CLAUDETTE nodes and 148 connecting OPP\-115 nodes and 595 connecting ESRS\-CID \(ESRS\) nodes\.
All three graphs are dense \(53\.6%, 99\.8% and 100% edge density for OPP\-115, CLAUDETTE and ESRS respectively\)\.
#### 4\.1\.2Metrics
We report recall as our primary metric: the fraction of ground truth requirement nodes recovered by the system\. In compliance validation, error costs are asymmetric\. A requirement missed at retrieval is never passed to the validator, so a violated obligation is silently treated as addressed, a false assurance that can carry regulatory or legal consequences\. An irrelevant requirement retrieved by mistake, by contrast, is cheaply rejected at the validation stage\. Retrieval recall therefore sets the ceiling on end\-to\-end violation detection \(Table[3](https://arxiv.org/html/2610.37323#S4.T3)\)\. We additionally report Precision@KK, the fraction of retrieved nodes that are ground truth violations, capturing retrieval quality within the visit budget\.
The input granularity per dataset varies, reflecting the natural unit of each corpus\. For OPP\-115, the input is a full privacy policy document\. For CLAUDETTE, the input is a single Terms of Service clause and for ESRS, the input is a single page from a sustainability report\. In all cases, the system receives the input text and must recover which requirement nodes are violated\.
All graph\-based methods are evaluated at their natural stopping criterion\. Because methods differ in how many requirements they return per input, raw recall would conflate ranking quality with retrieval budget: a method can raise recall simply by returning more candidates\. We therefore evaluate baselines at matched\-KK, where each baseline retrieves exactlyKKnodes andKKequals the average number of nodes retrieved by the fullUCVEsystem on that dataset \(K=14K\{=\}14for OPP\-115,K=16K\{=\}16for CLAUDETTE,K=17K\{=\}17for ESRS\)\. Recall differences thus reflect how well each method orders the requirement space rather than how many nodes it returns\.
We adopt document level recall rather than clause level classification metrics reported by prior work on CLAUDETTE\. We compare against six retrieval baselines at matched\-KK\. BM25[Robertson and Zaragoza \(2009\)](https://arxiv.org/html/2610.37323#bib.bib6)ranks requirement nodes by lexical overlap with the query document\. Flat cosine ranks nodes by cosine similarity between the query and node embeddings\. Cross\-encoder reranks nodes usingms\-marco\-MiniLM\-L\-6\-v2[Reimers and Gurevych \(2019\)](https://arxiv.org/html/2610.37323#bib.bib3), a pairwise relevance model that jointly encodes the query document and candidate requirement text\.PPR\(PPR\) runs random walks on theRL\-weighted graph seeded from the highest cosine similarity node, following HippoRAG[Bernal Gutiérrez et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib7)\. Heat Kernel Diffusion propagates query\-weighted scores over theRL\-weighted graph using the unnormalized Laplacian with diffusion timet=0\.5t\{=\}0\.5\. Community Retrieval adapts the community\-detection component of GraphRAG[Edge et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib20)to the node retrieval setting via Louvain clustering, returning all nodes in the most query\-relevant community\.
As a robustness check on the matched\-K protocol, we additionally compare each baseline under its own independently tuned adaptive stopping behavior rather than a fixed retrieval budget \(Appendix[D\.4](https://arxiv.org/html/2610.37323#A4.SS4)\)\. CRG \+ Spectral significantly outperforms flat cosine, heat\-kernel diffusion, and a cross\-encoder reranker on OPP\-115, is statistically comparable to all three on CLAUDETTE, and outperforms flat cosine and the cross\-encoder by a wide margin on ESRS, with a small and unconfirmed gap to heat\-kernel diffusion\. The cross\-encoder’s advantage narrows sharply with graph size, requiring2\.6×2\.6\\timesits matched\-K budget on ESRS to reach CRG \+ Spectral’s recall\.
### 4\.2Retrieval Performance
CRG \+ Spectral achieves the highest recall across all three domains \(Table[1](https://arxiv.org/html/2610.37323#S4.T1)\), outperforming the strongest non\-spectral baseline \(Leiden\) by\+2\.6%\+2\.6\\%on OPP\-115 and\+1\.9%\+1\.9\\%on CLAUDETTE, and outperforming flat cosine by\+3\.2−5\.4%\+3\.2\-5\.4\\%on all three domains\. This demonstrates that the graph structure encodes retrieval\-relevant information that embedding similarity alone cannot capture\. A document derived alternative to CRG’s pre\-built obligation graph, evaluated in Appendix[D\.3](https://arxiv.org/html/2610.37323#A4.SS3), shows that document\-extraction\-based graph construction is unstable across domains, alternating between severe precision and recall collapse\.
ESRS, the largest and most structurally distinct domain \(82 nodes, 1818 queries\), demonstrates thatCRG\+ Spectral generalizes beyond the two primary evaluation domains even where RL edge learning does not converge \(Section[4\.3](https://arxiv.org/html/2610.37323#S4.SS3)\)\. Notably, Community Retrieval \(Leiden\), one of the strongest non\-spectral baselines on OPP\-115 and CLAUDETTE, fell behind withCRG\+ Spectral on ESRS \(0\.675 vs 0\.755, Table[1](https://arxiv.org/html/2610.37323#S4.T1)\)\. This suggests that discrete community assignments become less reliable as the requirement space grows\. Spectral reranking is robust to this degredation because it operates at node level rather than assuming nodes are fixed to clusters, smoothing score continuously across the graph Laplacian eigenbasis\.
### 4\.3Graph Structure
The recall gains over flat cosine reflect better ranking rather than visiting more nodes\. Table[5](https://arxiv.org/html/2610.37323#A1.T5)isolates the contribution ofRLedge weight learning and spectral reranking as independent components, revealing a conditional dependency between the two\.
The final learned weights \(Table[2](https://arxiv.org/html/2610.37323#S4.T2)\) reveal a structural asymmetry across domains\. OPP\-115 assigns meaningful weight to hierarchical metadata,same\_category\(0\.549\) andsame\_sub\_attribute\(0\.556\), reflecting that sub\-attribute nodes nested under the same parent category commonly co\-occur as relevant in the same documents\. In CLAUDETTE, metadata weights are near\-zero across all types \(0\.037–0\.041\), reflecting that at high edge density the metadata structure adds minimal information beyond cosine similarity\. In ESRS, category is weighted highest metadata weight \(0\.500\) assigned as a fixed boost rather than RL\-learned due to near\-zero training signal, suggesting that requirements within the same ESG pillar frequently co\-occur as relevant\.
Table 2:Learned edge weights per dataset\.Spectral reranking on theRL\-weighted graph is the only condition that improves recall on a matched\-KKbasis, achieving\+3\.4%\+3\.4\\%lift on OPP\-115,\+4\.1%\+4\.1\\%on CLAUDETTE and3\.2%3\.2\\%on ESRS\. Neither component alone is sufficient: spectral reranking on the cosine\-only graph yields modest matched\-KKlift on OPP\-115 and only\+3\.5%\+3\.5\\%on CLAUDETTE, whileBFSon theRL\-weighted graph improves over flat cosine \(0\.710 OPP\-115, 0\.806 CLAUDETTE\) but underperforms spectral reranking by−8\.2%\-8\.2\\%and−5\.4%\-5\.4\\%respectively at matched\-KK\.
This interaction is most evident on OPP\-115, where zeroingRLmetadata weights changes 8 edges in thekk\-NN \(k=3k\{=\}3\) sparsified graph — sufficient to disrupt the spectral community structure that enables the low\-pass filter to distinguish relevant from irrelevant requirement clusters\. On CLAUDETTE, metadata weights are individually small but collectively meaningful: removing all metadata produces 54 topology differences and a consistent−1\.2%\-1\.2\\%recall loss\. On ESRS, removing all metadata collectively costs2\.6%2\.6\\%recall \(Table[4](https://arxiv.org/html/2610.37323#A1.T4)\)\. Together, these results confirm thatRLedge weight learning and spectral reranking are load\-bearing components whose value is conditional on each other:RLedges create the community structure that spectral projection exploits, and spectral projection is the mechanism by which that structure translates into retrieval gains\.
### 4\.4Robustness
CRG produces consistent gains across structurally distinct domains using hyperparameters selected per domain on validation data\. OPP\-115 and CLAUDETTE share a common configuration \(k=3k\{=\}3,n=5n\{=\}5,α=0\.8\\alpha\{=\}0\.8\), reflecting their smaller requirement spaces \(24 and 53 nodes respectively\) and well\-separated community structure \(Appendix[B](https://arxiv.org/html/2610.37323#A2)\)\. ESRS, with 82 nodes and a denser graph, requires a wider neighborhood and richer spectral basis \(k=5k\{=\}5,n=12n\{=\}12,α=0\.5\\alpha\{=\}0\.5\) \(Figure[3](https://arxiv.org/html/2610.37323#A3.F3)\)\. The lower blend weight on ESRS reflects a greater reliance on raw cosine similarity, consistent with the observation that spectral smoothing risks over\-aggregating signal in denser graphs\. All three domains are well\-served by the same framework with only different local hyperparameter adjustments needed\.
Sensitivity analysis overkk\-NN sparsification \(k∈\[1,10\]k\\in\[1,10\]\), eigenvector count \(n∈\[2,15\]n\\in\[2,15\]\), and spectral blend weight \(α∈\[0,1\]\\alpha\\in\[0,1\]\) confirms that the chosen configurations are stable \(Figure[3](https://arxiv.org/html/2610.37323#A3.F3)\)\. For OPP\-115 and CLAUDETTE,k=3k\{=\}3sparsification is optimal with sharp degradation atk=1k\{=\}1and gradual degradation beyondk=3k\{=\}3\. The blend weightα=0\.8\\alpha\{=\}0\.8falls within a stable plateau spanning 0\.7 to 0\.9 on both datasets\. For ESRS, the widerk=5k\{=\}5neighborhood is optimal, consistent with the larger and denser node set requiring more structural context per node\.
### 4\.5Full Pipeline Validation
To evaluate the fullUCVEpipeline, we pass retrieved requirement nodes to an LLM validator that produces binary compliance verdicts\. Non\-retrieved nodes are treated as negative, coupling retrieval and validation quality into a single end\-to\-end recall metric\. We evaluateLlama\-3\.3\-70B[Dubey et al\. \(2024\)](https://arxiv.org/html/2610.37323#bib.bib23)under two validation strategies: a baseline prompt providing only the requirement text and document and a persona\-calibrated prompt enriched with traversal metadata and spectral cluster membership derived from theCRG\. Results for Llama\-3\.1\-8B are reported in Table[14](https://arxiv.org/html/2610.37323#A6.T14)\.
Table[3](https://arxiv.org/html/2610.37323#S4.T3)reports end\-to\-end precision, recall, and gap from retrieval ceiling\. The difference between retrieval recall and recall of the full pipeline varies across domains: about 25% on OPP\-115, 4\-5% on CLAUDETTE and 23% on ESRS\. This pattern reflects a structural difference in validation difficulty across domains\. CLAUDETTE’s short, self\-contained clauses are easily classified once retrieved because the task involves a shorter, more straightforward passage\. OPP\-115 and ESRS involve longer documents where evidence may be distributed throughout, making this a more difficult validation task\. On ESRS, precision collapses to 0\.204, attributable to class imbalance \(∼\\sim3% positive rate\), that causes the validator to default towards positive prediction\. This aggregate figure masks substantial variation across the thirteen ESRS pillars \(Table[15](https://arxiv.org/html/2610.37323#A6.T15)\)\. Pillars with concrete, bounded disclosure language, such as business\_conduct and pollution, achieve precision usable in practical compliance workflows, while collapse concentrates in conceptually broad pillars whose requirements span diffuse evidence, such as affected\_communities and strategy\. This indicates ESRS precision collapse is a validation difficulty correlated with requirement breadth rather than a uniform failure; pillar\-specific threshold calibration or abstention is a natural mitigation we leave to future work\.
†Δ\\DeltaRec↑\\uparrowis the gap between strategy recall and the retrieval ceiling\. Negative values indicate recall below the ceiling; closer to zero is better\. The gap reflects*validation errors*on retrieved nodes rather than*retrieval failure*\.
Table 3:End\-to\-end validation performance with graph\-derived context from theCRGusing Llama\-3\.3\-70B\.
## 5Conclusion
Compliance validation requires retrieving relevant evidence across a structured requirement space without treating obligations as independent\. We introduced UCVE, which reframes this as structured retrieval over a Contextual Requirement Graph \(CRG\) whose edges encode RL\-learned co\-relevance among obligations\. Our central finding is that RL edge weight learning and spectral reranking are conditionally dependent: RL edges reshape the graph Laplacian’s community structure so that low\-pass spectral filtering distinguishes relevant from irrelevant requirement clusters, and neither component alone achieves the same gains\. Spectral reranking generalizes across all three domains without architectural changes, and outperforms retrieval and graph\-based baselines under a document\-level recall protocol that, to our knowledge, no prior compliance validation system has adopted\. More broadly, this suggests spectral graph methods’ retrieval utility is a function of how well edge weights encode task\-relevant co\-occurrence structure, not graph topology alone — a principle applicable wherever requirements, concepts, or entities exhibit learnable co\-relevance that surface\-level similarity cannot capture\. Extending to multi\-document settings, where obligations must be satisfied across a corpus rather than a single document, is a natural next step\.
## Limitations
CRG exhibits poor path efficiency on dense requirement graphs\. Spectral reranking, by projecting node scores through the graph Laplacian eigenbasis, considers a large portion of the node set during scoring — on OPP\-115, CLAUDETTE and ESRS this yields path efficiency scores of approximately 0\.18, 0\.12 and 0\.10 respectively\. However, recall\_positive remains substantially above flat cosine retrieval on these domains, and spectral reranking performance is sensitive to hyperparameter configuration \(kk\-NN neighborhood size, eigenvector count, and reranking weight\), with tuned configurations yielding up to 4\.37% additional lift\. We interpret poor path efficiency on dense graphs as a meaningful signal about domain difficulty, and note that systematic hyperparameter search represents a direct path to further recall gains\.
The three evaluation domains span 24 to 82 requirement nodes, which are relatively small requirement spaces\. Our results already reveal a scalability signal: ESRS, the largest and densest graph, has a spectral signal that has a lower significance \(λ2=0\.04\\lambda\_\{2\}=0\.04\) than OPP\-115 \(λ2=0\.19\\lambda\_\{2\}=0\.19\), and spectral reranking yields correspondingly smaller gains\. This degradation has a compounding cause: larger requirement spaces require more training signal forRLedge weight learning to converge, but larger compliance corpora tend to have sparser positive labels per node: the same class imbalance that challenges the validation stage also weakens theRLreward signal during graph construction\. On ESRS, this manifests as near\-zero signal during graph construction, requiring a fixed category boost in place of data\-driven edge learning\. In practice, many compliance settings such as internal policy validation, model governance documentation, and privacy policy auditing operate over requirement spaces of roughly 50–150 nodes, within or near the range we evaluate; scaling beyond this range is the setting where the policy\-gradient traversal discussed in Section[3\.2](https://arxiv.org/html/2610.37323#S3.SS2)would become the more natural choice over exhaustiveϵ\\epsilon\-greedy BFS\. The current CRG relies on domain experts and dataset\-provided metadata schemas to define the requirement space; automating obligation graph construction directly from regulatory text, rather than from curated metadata, is an important direction for extending UCVE to domains lacking such structured schemas\. Addressing the compounding challenge of sparse rewards in large obligation spaces through reward shaping, curriculum learning or semi\-supervised edge initialization represents an important direction for future work\.
We do not evaluate LLM\-based query expansion as a baseline\. While expanding input queries with generated paraphrases or hypothesized obligations may improve flat retrieval, it is orthogonal toUCVE’s graph\-based reranking and could be composed with it; we leave this comparison to future work\. Under an independently tuned adaptive stopping rule rather than the matched\-K protocol, performance differences on CLAUDETTE are not statistically significant, and a heat\-kernel diffusion baseline marginally exceeds CRG \+ Spectral’s recall on OPP\-115 under an unmodified stopping rule \(Appendix[D\.4](https://arxiv.org/html/2610.37323#A4.SS4)\)\.
## References
- Abualhaijaet al\.\(2022\)S\. Abualhaija, C\. Arora, A\. Sleimi, and L\. C\. BriandAutomated question answering for improved understanding of compliance requirements: a multi\-document study\.InProceedings of the 2022 IEEE 30th International Requirements Engineering Conference \(RE\),pp\. 39–50\.External Links:[Document](https://dx.doi.org/10.1109/RE54965.2022.00011)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p2.1)\.
- Ahmedet al\.\(2025\)S\. R\. Ahmed, A\. P\. Shah, Q\. H\. Tran, V\. Khetan, S\. Kang, A\. Mehta, Y\. Bao, and W\. WeiEnhancing retrieval for ESGLLM via ESG\-CID – A disclosure content index finetuning dataset for mapping GRI and ESRS\.External Links:2503\.10674,[Link](https://arxiv.org/abs/2503.10674)Cited by:[§4\.1\.1](https://arxiv.org/html/2610.37323#S4.SS1.SSS1.p1.1)\.
- Bernal Gutiérrezet al\.\(2024\)B\. Bernal Gutiérrez, M\. McInerney, Y\. Shu, J\. Wang, H\. Peng, D\. Chen, and Y\. ZhangHippoRAG: neurobiologically inspired long\-term memory for large language models\.arXiv preprint arXiv:2405\.14831\.External Links:[Link](https://arxiv.org/abs/2405.14831)Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1),[§4\.1\.2](https://arxiv.org/html/2610.37323#S4.SS1.SSS2.p4.1)\.
- Bernsohnet al\.\(2024\)D\. Bernsohn, G\. Semo, A\. Yaron, L\. Harpaz, P\. Vaezipoor, R\. Saha, and K\. TruskovskyiLegalLens: leveraging LLMs for legal violation identification in unstructured text\.arXiv preprint arXiv:2402\.04335\.External Links:2402\.04335,[Document](https://dx.doi.org/10.48550/arXiv.2402.04335)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p3.1)\.
- Breauxet al\.\(2006\)T\. D\. Breaux, M\. W\. Vail, and A\. I\. AntonTowards regulatory compliance: extracting rights and obligations to align requirements with regulations\.In14th IEEE International Requirements Engineering Conference \(RE’06\),pp\. 49–58\.Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1)\.
- Cejaset al\.\(2023\)O\. A\. Cejas, M\. I\. Azeem, S\. Abualhaija, and L\. C\. BriandNLP\-based automated compliance checking of data processing agreements against gdpr\.IEEE Transactions on Software Engineering49\(9\),pp\. 4282–4303\.External Links:[Document](https://dx.doi.org/10.1109/TSE.2023.3288901)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1),[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p2.1)\.
- Chalkidiset al\.\(2022\)I\. Chalkidis, A\. Jana, D\. Hartung, M\. Bommarito, I\. Androutsopoulos, D\. Katz, and N\. AletrasLexGLUE: a benchmark dataset for legal language understanding in English\.InProceedings of the 60th Annual Meeting of the Association for Computational Linguistics,pp\. 4310–4330\.External Links:[Document](https://dx.doi.org/10.18653/v1/2022.acl-long.297)Cited by:[§1](https://arxiv.org/html/2610.37323#S1.p1.1)\.
- Chenet al\.\(2020\)Y\. Chen, L\. Wu, and M\. J\. ZakiIterative deep graph learning for graph neural networks: better and robust node embeddings\.InAdvances in Neural Information Processing Systems,Vol\.33,pp\. 19314–19326\.External Links:[Link](https://arxiv.org/abs/2006.13009)Cited by:[§2\.3](https://arxiv.org/html/2610.37323#S2.SS3.p1.1)\.
- Chung \(1997\)F\. R\. K\. ChungSpectral graph theory\.Vol\.92,American Mathematical Society,Providence, RI\.External Links:ISBN 978\-0\-8218\-0315\-8Cited by:[§3\.3\.2](https://arxiv.org/html/2610.37323#S3.SS3.SSS2.p2.1)\.
- Chunget al\.\(2025\)J\. Chung, R\. Ko, W\. Yoo, M\. Onizuka, S\. Kim, T\. Kim, and W\. ShinGraphCompliance: aligning policy and context graphs for llm\-based regulatory compliance\.arXiv preprint arXiv:2510\.26309\.External Links:[Link](https://arxiv.org/abs/2510.26309)Cited by:[§D\.3](https://arxiv.org/html/2610.37323#A4.SS3.p1.1),[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1),[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Darvariuet al\.\(2021\)V\. Darvariu, S\. Hailes, and M\. MusolesiGoal\-directed graph construction using reinforcement learning\.Proceedings: Mathematical, Physical and Engineering Sciences477\(2254\),pp\. 1–18\.Cited by:[§2\.3](https://arxiv.org/html/2610.37323#S2.SS3.p1.1)\.
- Daset al\.\(2018\)R\. Das, S\. Dhuliawala, M\. Zaheer, L\. Vilnis, I\. Durugkar, A\. Krishnamurthy, A\. Smola, and A\. McCallumGo for a walk and arrive at the answer: reasoning over paths in knowledge bases using reinforcement learning\.InInternational Conference on Learning Representations \(ICLR\),External Links:[Link](https://arxiv.org/abs/1711.05851)Cited by:[§2\.3](https://arxiv.org/html/2610.37323#S2.SS3.p1.1)\.
- de Martim \(2025\)H\. de MartimAn ontology\-driven graph RAG for legal norms: a hierarchical, temporal, and deterministic approach\.InProceedings of the International Conference on Artificial Intelligence and Law \(ICAIL\),Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1)\.
- Donget al\.\(2024\)J\. Dong, B\. Fatemi, B\. Perozzi, L\. F\. Yang, and A\. TsitsulinDon’t forget to connect\! improving rag with graph\-based reranking\.arXiv preprint arXiv:2405\.18414\.Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Dubeyet al\.\(2024\)A\. Dubey, A\. Grattafiori, A\. Jauhri, A\. Pandey, A\. Kadian, A\. Al\-Dahle, A\. Letman, A\. Mathur, A\. Schelten, A\. Vaughan, A\. Yang, A\. Fan, A\. Goyal, A\. Hartshorn, A\. Yang, A\. Mitra, A\. Sravankumar, A\. Korenev, A\. Hinsvark, A\. Rao, A\. Zhang, A\. Rodriguez, A\. Gregerson, A\. Spataru, B\. Roziere,et al\.The llama 3 herd of models\.arXiv preprint arXiv:2407\.21783\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2407.21783)Cited by:[§4\.5](https://arxiv.org/html/2610.37323#S4.SS5.p1.1)\.
- Edgeet al\.\(2024\)D\. Edge, H\. Trinh, N\. Cheng, J\. Bradley, A\. Chao, A\. Mody, S\. Truitt, D\. Metropolitansky, R\. O\. Ness, and J\. LarsonFrom local to global: a graph rag approach to query\-focused summarization\.arXiv preprint arXiv:2404\.16130\.Cited by:[§1](https://arxiv.org/html/2610.37323#S1.p2.1),[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1),[§4\.1\.2](https://arxiv.org/html/2610.37323#S4.SS1.SSS2.p4.1)\.
- Garzaet al\.\(2024\)L\. Garza, L\. Elluri, A\. Piplai, A\. Kotal, D\. Gupta, and A\. JoshiPrivcomp\-kg: leveraging kg and llm for compliance verification\.In2024 IEEE 6th International Conference on Trust, Privacy and Security in Intelligent Systems, and Applications \(TPS\-ISA\),pp\. 97–106\.Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1)\.
- Ghasselet al\.\(2025\)A\. Ghassel, I\. Robinson, G\. Tanase, H\. Cooper, B\. Thompson, Z\. Han, V\. Ioannidis, S\. Adeshina, and H\. RangwalaHierarchical lexical graph for enhanced multi\-hop retrieval\.InProceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V\. 2,pp\. 4457–4466\.Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Guhaet al\.\(2023\)N\. Guha, J\. Nyarko, D\. Ho, C\. Ré, A\. Chilton, A\. Chohlas\-Wood, A\. Peters, B\. Waldon, D\. Rockmore, D\. Zambrano,et al\.Legalbench: a collaboratively built benchmark for measuring legal reasoning in large language models\.Advances in neural information processing systems36,pp\. 44123–44279\.Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p3.1)\.
- Guoet al\.\(2026\)D\. Guo, J\. Wu, and S\. YiuComplianceNLP: knowledge\-graph\-augmented rag for multi\-framework regulatory gap detection\.arXiv preprint arXiv:2604\.23585\.Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1)\.
- Hendryckset al\.\(2021\)D\. Hendrycks, C\. Burns, A\. Chen, and S\. BallCUAD: an expert\-annotated NLP dataset for legal contract review\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Vol\.34,pp\. 13408–13421\.External Links:[Link](https://proceedings.neurips.cc/paper/2021/hash/6f536c929a56c4d7e97d41f71e51381b-Abstract.html)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p3.1)\.
- Huet al\.\(2025\)Y\. Hu, Z\. Lei, Z\. Zhang, B\. Pan, C\. Ling, and L\. ZhaoGrag: graph retrieval\-augmented generation\.InFindings of the association for computational linguistics: NAACL 2025,pp\. 4145–4157\.Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Iscenet al\.\(2018\)A\. Iscen, G\. Tolias, Y\. Avrithis, and O\. ChumFast spectral ranking\.InProceedings of the IEEE Conference on Computer Vision and Pattern Recognition \(CVPR\),pp\. 7579–7588\.External Links:[Link](https://openaccess.thecvf.com/content_cvpr_2018/papers/Iscen_Fast_Spectral_Ranking_CVPR_2018_paper.pdf)Cited by:[§2\.4](https://arxiv.org/html/2610.37323#S2.SS4.p1.1)\.
- Koreeda and Manning \(2021\)Y\. Koreeda and C\. D\. ManningContractNLI: a dataset for document\-level natural language inference for contracts\.InFindings of the Association for Computational Linguistics: EMNLP 2021,pp\. 1907–1919\.External Links:[Document](https://dx.doi.org/10.18653/v1/2021.findings-emnlp.164),[Link](https://aclanthology.org/2021.findings-emnlp.164)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p2.1)\.
- Linet al\.\(2018\)X\. V\. Lin, R\. Socher, and C\. XiongMulti\-hop knowledge graph reasoning with reward shaping\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,pp\. 3243–3253\.External Links:[Link](https://arxiv.org/abs/1808.10568)Cited by:[§2\.3](https://arxiv.org/html/2610.37323#S2.SS3.p1.1)\.
- Lippiet al\.\(2019\)M\. Lippi, P\. Pałka, G\. Contissa, F\. Lagioia, H\. Micklitz, G\. Sartor, and P\. TorroniCLAUDETTE: an automated detector of potentially unfair clauses in online terms of service\.Artificial Intelligence and Law27\(2\),pp\. 117–139\.External Links:[Document](https://dx.doi.org/10.1007/s10506-019-09243-2)Cited by:[§1](https://arxiv.org/html/2610.37323#S1.p1.1),[§1](https://arxiv.org/html/2610.37323#S1.p4.1),[§4\.1\.1](https://arxiv.org/html/2610.37323#S4.SS1.SSS1.p1.1)\.
- Louis and Spanakis \(2022\)A\. Louis and G\. SpanakisA statutory article retrieval dataset in French\.InProceedings of the 60th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),Dublin, Ireland,pp\. 6789–6803\.External Links:[Document](https://dx.doi.org/10.18653/v1/2022.acl-long.468),[Link](https://aclanthology.org/2022.acl-long.468)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p3.1)\.
- Luoet al\.\(2024\)L\. Luo, J\. Li, G\. Haffari, and S\. PanRoG: bridging agentic planning and knowledge graph reasoning\.InInternational Conference on Learning Representations \(ICLR\),External Links:[Link](https://openreview.net/forum?id=ZGNWW7xZ6Q)Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Marinoet al\.\(2025\)B\. Marino, R\. Hunter, Z\. Jamali, M\. E\. Kalpakos, M\. Kashyap, I\. Hinton, A\. Hanson, M\. Nazir, C\. Schnabl, F\. Steffek, H\. Wen, and N\. D\. LaneAIReg\-Bench: benchmarking language models that assess AI regulation compliance\.arXiv preprint arXiv:2510\.01474\.External Links:2510\.01474,[Document](https://dx.doi.org/10.48550/arXiv.2510.01474)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p3.1)\.
- Mavromatis and Karypis \(2024\)C\. Mavromatis and G\. KarypisGnn\-rag: graph neural retrieval for large language model reasoning\.arXiv preprint arXiv:2405\.20139\.Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Ortegaet al\.\(2018\)A\. Ortega, P\. Frossard, J\. Kovačević, J\. M\. Moura, and P\. VandergheynstGraph signal processing: overview, challenges, and applications\.Proceedings of the IEEE106\(5\),pp\. 808–828\.Cited by:[§2\.4](https://arxiv.org/html/2610.37323#S2.SS4.p1.1)\.
- Pageet al\.\(1999\)L\. Page, S\. Brin, R\. Motwani, and T\. WinogradThe pagerank citation ranking: bringing order to the web\.Technical reportTechnical Report1999\-66,Stanford InfoLab\.External Links:[Link](http://ilpubs.stanford.edu:8090/422/1/1999-66.pdf)Cited by:[§2\.4](https://arxiv.org/html/2610.37323#S2.SS4.p1.1)\.
- Penget al\.\(2025\)B\. Peng, Y\. Zhu, Y\. Liu, X\. Bo, H\. Shi, C\. Hong, Y\. Zhang, and S\. TangGraph retrieval\-augmented generation: a survey\.ACM Transactions on Information Systems44\(2\),pp\. 1–52\.Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Rabeloet al\.\(2022\)J\. Rabelo, R\. Goebel, M\. Kim, Y\. Kano, M\. Yoshioka, and K\. SatohOverview and discussion of the competition on legal information extraction/entailment \(COLIEE\) 2021\.The Review of Socionetwork Strategies16\(1\),pp\. 111–133\.External Links:[Document](https://dx.doi.org/10.1007/s12626-022-00105-z)Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p3.1)\.
- Reimers and Gurevych \(2019\)N\. Reimers and I\. GurevychSentence\-bert: sentence embeddings using siamese bert\-networks\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing,External Links:[Link](https://arxiv.org/abs/1908.10084)Cited by:[§3\.1\.2](https://arxiv.org/html/2610.37323#S3.SS1.SSS2.p1.1),[§4\.1\.2](https://arxiv.org/html/2610.37323#S4.SS1.SSS2.p4.1)\.
- Robertson and Zaragoza \(2009\)S\. Robertson and H\. ZaragozaThe probabilistic relevance framework: bm25 and beyond\.Foundations and Trends® in Information Retrieval3\(4\),pp\. 333–380\.External Links:[Document](https://dx.doi.org/10.1561/1500000019)Cited by:[§4\.1\.2](https://arxiv.org/html/2610.37323#S4.SS1.SSS2.p4.1)\.
- Servantezet al\.\(2023\)S\. Servantez, N\. Lipka, A\. Siu, M\. Aggarwal, B\. Krishnamurthy, A\. Garimella, K\. Hammond, and R\. JainComputable contracts by extracting obligation logic graphs\.InProceedings of the Nineteenth International Conference on Artificial Intelligence and Law,pp\. 267–276\.Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1)\.
- Sunet al\.\(2024\)J\. Sun, C\. Xu, L\. Tang, S\. Wang, C\. Lin, Y\. Gong, H\. Shum, and J\. GuoThink\-on\-graph: deep and responsible reasoning of large language model with knowledge graph\.InInternational Conference on Learning Representations \(ICLR\),External Links:[Link](https://arxiv.org/abs/2307.07697)Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
- Tauqeeret al\.\(2022\)A\. Tauqeer, A\. Kurteva, T\. R\. Chhetri, A\. Ahmeti, and A\. FenselAutomated gdpr contract compliance verification using knowledge graphs\.Information13\(10\),pp\. 447\.Cited by:[§2\.1](https://arxiv.org/html/2610.37323#S2.SS1.p1.1)\.
- Tsanget al\.\(2026\)H\. T\. Tsang, J\. Bai, H\. Huang, Q\. Xiao, T\. Zheng, B\. Xu, S\. Liu, and Y\. SongAutograph\-r1: end\-to\-end reinforcement learning for knowledge graph construction\.InProceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 23351–23374\.Cited by:[§2\.3](https://arxiv.org/html/2610.37323#S2.SS3.p1.1)\.
- von Luxburg \(2007\)U\. von LuxburgA tutorial on spectral clustering\.Statistics and Computing17\(4\),pp\. 395–416\.External Links:[Link](https://doi.org/10.1007/s11222-007-9033-z)Cited by:[§3\.3\.2](https://arxiv.org/html/2610.37323#S3.SS3.SSS2.p2.1),[§3\.3\.2](https://arxiv.org/html/2610.37323#S3.SS3.SSS2.p3.2)\.
- Wilsonet al\.\(2016\)S\. Wilson, F\. Schaub, A\. A\. Dara, F\. Liu, S\. Cherivirala, P\. Giovanni Leon, M\. Schaarup Andersen, S\. Zimmeck, K\. M\. Sathyendra, N\. C\. Russell, T\. B\. Norton, E\. Hovy, J\. Reidenberg, and N\. SadehThe creation and analysis of a website privacy policy corpus\.InProceedings of the 54th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),Berlin, Germany,pp\. 1330–1340\.External Links:[Document](https://dx.doi.org/10.18653/v1/P16-1126)Cited by:[§1](https://arxiv.org/html/2610.37323#S1.p4.1)\.
- Xiaoet al\.\(2024\)S\. Xiao, Z\. Liu, P\. Zhang, N\. Muennighoff, D\. Lian, and J\. NieC\-pack: packed resources for general chinese embeddings\.InProceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval \(SIGIR ’24\),pp\. 641–648\.External Links:[Document](https://dx.doi.org/10.1145/3626772.3657877),2309\.07597Cited by:[§3\.1\.2](https://arxiv.org/html/2610.37323#S3.SS1.SSS2.p1.1)\.
- Xionget al\.\(2017\)W\. Xiong, T\. Hoang, and W\. Y\. WangDeepPath: a reinforcement learning method for knowledge graph reasoning\.InProceedings of the 2017 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),External Links:[Link](https://arxiv.org/abs/1707.06690)Cited by:[§2\.3](https://arxiv.org/html/2610.37323#S2.SS3.p1.1)\.
- Yuet al\.\(2026\)C\. Yu, K\. Zhao, Y\. Li, H\. Chang, M\. Feng, X\. Jiang, Y\. Sun, J\. Li, Y\. Zhang, Q\. Sun,et al\.Graphrag\-r1: graph retrieval\-augmented generation with process\-constrained reinforcement learning\.InProceedings of the ACM Web Conference 2026,pp\. 1398–1409\.Cited by:[§2\.3](https://arxiv.org/html/2610.37323#S2.SS3.p1.1)\.
- Zhonget al\.\(2020\)H\. Zhong, C\. Xiao, C\. Tu, T\. Zhang, Z\. Liu, and M\. SunHow does NLP benefit legal system: a summary of legal artificial intelligence\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics,pp\. 5218–5230\.External Links:[Document](https://dx.doi.org/10.18653/v1/2020.acl-main.466)Cited by:[§1](https://arxiv.org/html/2610.37323#S1.p2.1)\.
- Zhouet al\.\(2011\)X\. Zhou, M\. Belkin, and N\. SrebroAn iterated graph laplacian approach for ranking on manifolds\.InProceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining,pp\. 877–885\.Cited by:[§2\.4](https://arxiv.org/html/2610.37323#S2.SS4.p1.1)\.
- Zhouet al\.\(2026\)Z\. Zhou, D\. Ataee Tarzanagh, S\. Didari, W\. Hu, B\. Gutow, O\. Verkholyak, M\. Faraki, H\. Hao, H\. Moon, and S\. MinQuery\-aware flow diffusion for graph\-based rag with retrieval guarantees\.InInternational Conference on Learning Representations,Vol\.2026,pp\. 53808–53845\.Cited by:[§2\.4](https://arxiv.org/html/2610.37323#S2.SS4.p1.1)\.
- Zhuet al\.\(2025\)X\. Zhu, Y\. Xie, Y\. Liu, Y\. Li, and W\. HuKnowledge graph\-guided retrieval augmented generation\.InProceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 1: Long Papers\),L\. Chiruzzo, A\. Ritter, and L\. Wang \(Eds\.\),Albuquerque, New Mexico,pp\. 8912–8924\.External Links:[Link](https://aclanthology.org/2025.naacl-long.449),[Document](https://dx.doi.org/10.18653/v1/2025.naacl-long.449)Cited by:[§2\.2](https://arxiv.org/html/2610.37323#S2.SS2.p1.1)\.
## Appendix AGraph Construction
Table 4:Recall change when removing individual metadata edge types\.Table 5:Component analysis of graph type×\\timesretrieval method\. Each condition uses matched\-KKwhile spectral conditions use natural stopping\.TheCRGis initialized using pairwise cosine similarities betweenall\-mpnet\-base\-v2node embeddings, retaining edges with similarity≥0\.5\\geq 0\.5\. This yields dense base graphs—148 edges for OPP\-115, 577 for CLAUDETTE, and 595 for ESRS—reflecting high semantic overlap within same\-domain requirements\.Table[5](https://arxiv.org/html/2610.37323#A1.T5)decomposes the contributions of graph type and retrieval method\. While spectral reranking on the cosine\-only graph yields modest gains, andBFSon theRL\-weighted graph produces inconsistent results, their combination achieves the strongest, most consistent performance\. This confirms their conditional dependence:RLedge weights reshape the Laplacian’s community structure into a form that spectral projection can exploit, whereas neither component succeeds independently\. Full edge distributions are reported in Table[4](https://arxiv.org/html/2610.37323#A1.T4)\.
## Appendix BSpectral Community Analysis
Table 6:OPP\-115 Spectral Communities \(k=5,k\-NN=3,n=24k=5,k\\text\{\-NN\}=3,n=24\)\.Table 7:CLAUDETTE Spectral Communities \(k=5,k\-NN=3,n=53k=5,k\\text\{\-NN\}=3,n=53\)\.Table 8:ESRS\-82 Spectral Communities \(k=8,k\-NN=5,n=82k=8,k\\text\{\-NN\}=5,n=82\)\.Figure 2:Community structure of the Contextual Requirement Graph across three compliance domains\. \(a–c\) Dense cosine\-similarity graphs \(57–100% edge density\) where near\-complete connectivity obscures meaningful topology\. \(d–f\) After edge weight learning and k\-NN sparsification, distinct spectral communities emerge \(dashed hulls; 5 eigenvectors for OPP\-115/CLAUDETTE, 12 for ESRS\-82\)\. Node colors indicate requirement categories\. This learned sparse structure is the signal spectral reranking exploits for \+3\.4–4\.5% recall lift over flat cosine retrieval\.The spectral communities reveal the qualitative differences in graph structure across each dataset\. In CLAUDETTE, community membership aligned perfectly with ground\-truth categories, where each of the five unfair clause types — arbitration, unilateral change, content removal, limitation of liability, and unilateral termination — forms its own spectral cluster \([7](https://arxiv.org/html/2610.37323#A2.T7)\. This can be seen by the cleanly separated clusters by category in Figure[2](https://arxiv.org/html/2610.37323#A2.F2)\. This clean and direct alignment explains why the spectral reranking achieves its largest recall lift\. This lift suggests projecting cosine scores onto the Laplacian eigenvectors effectively propagates relevance signal within category boundaries\.
The spectral communities in OPP\-115 are affected by the hierarchical structure of the dataset rather than the clean separation present in CLAUDETTE, which is flat\. The spectral communities that formed had overlapping datasets \(Figure[2](https://arxiv.org/html/2610.37323#A2.F2)\), but upon further analysis, it became apparent each community has specific themes\. The largest community \(C1\) groups together all broad\-scope data practice categories \(retention, security, collection, sharing, access, and choice\) which occur in virtually every privacy policy \([6](https://arxiv.org/html/2610.37323#A2.T6)\. These nodes share high embedding similarity \(mean cosine 0\.635 vs\. 0\.469 across communities\) because their requirement descriptions all follow the pattern "Does the text describe \[user data practice\]?" The remaining communities \(C2–C5\) capture more specialized sub\-attribute nodes and rare topics \(international audiences, policy changes\) that are genuinely discriminative\. Spectral reranking exploits this by treating C1 as a co\-activation group: if one core data practice is relevant, the others likely are too\.
ESRS communities partition cleanly along ESG boundaries\. The largest cluster \(C4\) unifies all environmental topics while social requirements are split into three distinct subclusters: general workforce standards \(C6\), specific labor issues \(C2\), and external stakeholder impacts \(C7\)\. Governance nodes fragment across C1, C3 and C5\. This pillar aligned structure enables spectral reranking to boost recall by 3\.2% despite the ESRS subgraph’s weaker spectral gap \(λ2=0\.04\\lambda\_\{2\}=0\.04vs 0\.19 for OPP\-115\)m as the eigenvectors still capture meaningful boundaries\.
### B\.1Structural Signal
EachCRG’s edge types contribute differently across domains, reflecting the structural properties of each dataset\. On OPP\-115, removingsame\_categoryedges costs−2\.7%\-2\.7\\%recall and removingsame\_sub\_attributeedges costs an additional−0\.6%\-0\.6\\%\. On CLAUDETTE, the three dataset\-specific edge types individually contribute negligible recall lift, but removing all three collectively costs−1\.2%\-1\.2\\%recall, suggesting that structural signal in CLAUDETTE is distributed rather than localized to any single edge type\. On ESRS, onlysame\_categorycontributes meaningfully \(−2\.6%\-2\.6\\%recall when removed\), with all other edge types contributing zero individually and−2\.6%\-2\.6\\%collectively, mirroring the pattern of OPP\-115 but with a single active edge rather than two\. The near\-additivity of OPP\-115’s two active edge types indicates they capture largely independent structural signals; the collective dependence on CLAUDETTE reflects its denser, flatter schema\. Full edge type results are reported in Table[4](https://arxiv.org/html/2610.37323#A1.T4)\.
## Appendix CRL Edge Weight Learning Details
We learn a weight vectorλ=\[λ1,…,λ6\]\\lambda=\[\\lambda\_\{1\},\\ldots,\\lambda\_\{6\}\]over six metadata edge types via epsilon\-greedy BFS traversal over the domain graphGG\. The cosine similarity weight is fixed at 1\.0 throughout\. Training runs for 30 epochs with learning rateα=0\.05\\alpha=0\.05andϵ\\epsilondecaying from 0\.15 to 0\.02\. Please see Algorithm[1](https://arxiv.org/html/2610.37323#alg1)for more details regarding theRLprocess\.
Algorithm 1RL Edge Weight Learning0:Graph
GG, docs
𝒟\\mathcal\{D\}, budget
B=15B=15, epochs
T=30T=30, LR
α\\alpha
0:Learned weight vector
λ\\lambda
1:Initialize
λt←0\.0\\lambda\_\{t\}\\leftarrow 0\.0for all metadata types
tt;
λcos←1\.0\\lambda\_\{\\text\{cos\}\}\\leftarrow 1\.0
2:forepoch
1…T1\\ldots Tdo
3:foreach document
d∈𝒟d\\in\\mathcal\{D\}do
4:
eq←Embed\(d\)e\_\{q\}\\leftarrow\\text\{Embed\}\(d\)
5:Entry node
v0←argmaxv∈𝒢sim\(eq,ev\)v\_\{0\}\\leftarrow\\arg\\max\_\{v\\in\\mathcal\{G\}\}\\text\{sim\}\(e\_\{q\},e\_\{v\}\)
6:Perform
ϵ\\epsilon\-greedy BFS for
BBsteps, scoring neighbors
vvby:
7:
score\(v\)=0\.3⋅sim\(eq,ev\)\+0\.5⋅w\(ecurr→v\)\\text\{score\}\(v\)=0\.3\\cdot\\text\{sim\}\(e\_\{q\},e\_\{v\}\)\+0\.5\\cdot w\(e\_\{\\text\{curr\}\\to v\}\)
8:foreach traversed edge
eke\_\{k\}at step
kkdo
9:Assign credit
c\(ek\)=\{1\.0−0\.5⋅kBif dest is GT\+0\.1if GT within 3 hops−0\.05otherwisec\(e\_\{k\}\)=\\begin\{cases\}1\.0\-0\.5\\cdot\\frac\{k\}\{B\}&\\text\{if dest is GT\}\\\\ \+0\.1&\\text\{if GT within 3 hops\}\\\\ \-0\.05&\\text\{otherwise\}\\end\{cases\}
10:endfor
11:foreach metadata type
ttdo
12:
Δλt←1\|Evisited\|∑e∈Evisitedc\(e\)⋅weightt\(e\)∑t′weightt′\(e\)\\Delta\\lambda\_\{t\}\\leftarrow\\frac\{1\}\{\|E\_\{\\text\{visited\}\}\|\}\\sum\_\{e\\in E\_\{\\text\{visited\}\}\}c\(e\)\\cdot\\frac\{\\text\{weight\}\_\{t\}\(e\)\}\{\\sum\_\{t^\{\\prime\}\}\\text\{weight\}\_\{t^\{\\prime\}\}\(e\)\}
13:
λt←clamp\(λt\+α⋅Δλt,\[0\.0,3\.0\]\)\\lambda\_\{t\}\\leftarrow\\text\{clamp\}\(\\lambda\_\{t\}\+\\alpha\\cdot\\Delta\\lambda\_\{t\},\[0\.0,3\.0\]\)
14:endfor
15:endfor
16:endfor
17:return
λ\\lambda
Figure 3:Spectral reranking hyperparameter sensitivity\. Each panel sweeps one parameter while holding the others fixed at their chosen values \(kNN=3k\_\{\\text\{NN\}\}=3,keig=5k\_\{\\text\{eig\}\}=5,α=0\.8\\alpha=0\.8\)\. Stars mark chosen values; dotted lines show flat cosine baselines\. Performance is stable across wide ranges forkeigk\_\{\\text\{eig\}\}andα\\alpha, but degrades sharply atkNN=1k\_\{\\text\{NN\}\}=1where over\-sparsification disconnects the graph\.
## Appendix DGraph Traversal
### D\.1GSAEPS
Traversal begins from one or more entry nodes selected by theGSAEPSprocedure\. Rather than simply starting from the node with highest cosine similarity to the query — which may be locally optimal but structurally isolated —GSAEPSscores candidates using a linear combination of features that jointly capture direct relevance, statistical standing within the node set, and structural position in the graph\.
Note:Random entry achieves highest recall by setting a low sweep threshold, effectively degenerating to flat cosine retrieval\. At matched visit budgets \(∼18\{\\sim\}18nodes\), GSAEPS outperforms cosine\-only entry by \+1\.7pp recall on OPP\-115\.
Table 9:Effect of entry point strategy on downstream traversal recall\.
### D\.2Traversal Strategies
Adaptive GraphBFSperforms adaptive\-thresholdBFSfrom one or more entry nodes, using edge weights to guide neighbor selection at each step\. From the current node, all unvisited same\-domain neighbors are scored by:
score\(v\)=0\.3⋅sim\(eq,ev\)\+0\.5⋅w\(ecurrent→v\)score\(v\)=0\.3\\cdot sim\(e\_\{q\},e\_\{v\}\)\+0\.5\\cdot w\(e\_\{current\\rightarrow v\}\)\(4\)
where \(ecurrent→ve\_\{current\\rightarrow v\}\) is the compositeRL\-weighted edge weight from the current node to candidatevv\. This scoring intentionally weighs edge structure more heavily than direct query similarity, encoding the intuition that nodes strongly connected to already\-visited relevant nodes are more likely to be relevant than nodes that merely resemble the query text via cosine similarity\. Traversal continues as long as the best candidate’s similarity exceeds an adaptive stopping threshold:
threshold=max\(0\.60×median\(entrysims\),0\.35\)threshold=max\(0\.60\\times median\(entry\_\{s\}ims\),0\.35\)\(5\)
whereentry\_simsentry\\\_simsis the set of query similarities for all entry nodes\. When no remaining candidate exceeds this threshold, traversal halts\. This adaptive stopping allows traversal to continue longer when entry nodes are highly similar to the query — indicating a well\-matched document — and terminate earlier when the match is weaker, naturally scaling the visited set size to document relevance rather than imposing a fixed budget\.
Simultaneous Graph Scoringscores all same\-domain nodes simultaneously using a seven dimensional feature vector that combine query similarity and graph structure\. For each nodeviv\_\{i\}, the score is:
s\(vi\)=wgs⋅f\(vi\)s\(v\_\{i\}\)=w\_\{gs\}\\cdot f\(v\_\{i\}\)\(6\)
wheref\(vi\)f\(v\_\{i\}\)is a seven dimensional feature vector\. The features can be found in[10](https://arxiv.org/html/2610.37323#A4.T10)\.
Table 10:Features used in graph\-enhanced node scoring\.All nodes whos score exceeds a fraction of the maximum score is retrieved:
retrieved=\{vi:s\(v1\)≥τ×maxs\(vj\)\}retrieved=\\\{v\_\{i\}:s\(v\_\{1\}\)\\geq\\tau\\times maxs\(v\_\{j\}\)\\\}\(7\)
withτ=0\.6\\tau=0\.6\. Simultaneous Graph Scoring does not require sequential traversal decisions or a similarity sweep — all nodes are scored and filtered in a single pass\. Hence, this method is more suited for smaller, more dense graphs where structural signals are informative across the full node set\.
Table 11:Model Performance Evaluation Across Encoders
### D\.3Graph\-Document Alignment
We evaluate a graph\-document alignment baseline inspired by GraphCompliance[Chung et al\. \(2025\)](https://arxiv.org/html/2610.37323#bib.bib18), adapted to our evaluation protocol\. The baseline operates in three stages: \(1\) the document is sentence\-segmented and a context graph is constructed by linking sentences sharing key terms above a Jaccard similarity threshold of 0\.5; \(2\) each obligation node’svalidation\_questionis embedded and used to retrieve the top\-kkmost similar sentence nodes from the context graph; \(3\) anLLM\(LLM\) alignment gate receives the retrieved sentences and produces a binary compliance verdict per node\. UnlikeCRG, this baseline derives its graph structure from the document rather than from a pre\-built obligation space\. We note this implementation is an adaptation rather than a faithful reimplementation of GraphCompliance; results should be interpreted accordingly\.
Table 12:Graph\-document alignment baseline\.Y\-PandY\-Rdenote precision/recall over the positive class\.The results in Table[12](https://arxiv.org/html/2610.37323#A4.T12)reveal a precision\-recall collapse on CLAUDETTE and ESRS: Yes\-recall is high \(0\.974 and 0\.604 respectively\) but Yes\-precision collapses to 0\.121–0\.130, indicating that the alignment gate defaults to flagging nearly all nodes as violated\. OPP\-115 exhibits the inverse pattern, high Yes\-precision \(0\.948\) with low Yes\-recall \(0\.288\), suggesting that the context graph structure is over\-selective in that domain, failing to surface relevant passages for most violated nodes\. In both failure modes, the document\-derived context graph does not provide sufficient discriminative signal to distinguish violated from satisfied requirements\. The failure mode differs by domain: on CLAUDETTE, the alignment gate over\-predicts violations, trading recall for near\-total loss of precision\. On OPP\-115, it under\-predicts, the inverse trade\.CRG’s pre\-built obligation space and learned edge structure avoids this instability, achieving competitive precision alongside high recall across all three domains without the alignment gate’s precision collapse\.
### D\.4Adaptive Stopping Robustness Check
MethodRec\.@KKmatchK\_\{\\text\{match\}\}ClampTunedΔ\\DeltaOPP\-115 \(targetKK=14\.19\)Flat cosine\.74915\.63\.696\.746−\.037\-\.037\[−\-\.057,−\-\.016\]Heat kernel\.75415\.41\.795\.749−\.058\-\.058\[−\-\.073,−\-\.042\]Cross\-encoder\.78014\.48\.714\.774−\.024\-\.024\[−\-\.046,−\-\.004\]CRG \+ Spectral\.791–\.791\.756–CLAUDETTE \(targetKK=16\.42\)Flat cosine\.83717\.54\.786\.827−\.027\-\.027\[−\-\.072,\+\+\.014\]Heat kernel\.85516\.82\.848\.838−\.011\-\.011\[−\-\.040,\+\+\.020\]Cross\-encoder\.81420\.59\.773\.816−\.044\-\.044\[−\-\.101,\+\+\.019\]CRG \+ Spectral\.860–\.860\.859–ESRS \(targetKK=16\.95, 5\-fold mean\)Flat cosine\.69220\.16\.686\.697−\.053\-\.053Heat kernel\.71818\.47\.729\.718−\.016\-\.016Cross\-encoder\.44744\.87\.396\.435−\.287\-\.287CRG \+ Spectral\.737–\.737\.719–
Table 13:Adaptive stopping robustness check\. Rec\.@K: recall at CRG \+ Spectral’s matched\-K budget\.KmatchK\_\{\\text\{match\}\}: average K the baseline needs to reach CRG \+ Spectral’s own recall\. Clamp: recall under the unmodified production stopping rule, no calibration\. Tuned: recall at the independently calibrated operating point\.Δ\\Delta: bootstrap 95% CI \(OPP\-115, CLAUDETTE\) or mean difference across folds \(ESRS\), baseline minus CRG \+ Spectral at matched K\.The matched\-K protocol in Table[1](https://arxiv.org/html/2610.37323#S4.T1)requires all methods to retrieve the same number of nodes as CRG \+ Spectral’s own adaptive budget\. To assess whether a baseline given its own independently tuned stopping behavior could match CRG \+ Spectral, we compare flat cosine, heat\-kernel diffusion, and a cross\-encoder reranker \(ms\-marco\-MiniLM\-L\-6\-v2\) under the production adaptive stopping rule \(Section[3\.3\.2](https://arxiv.org/html/2610.37323#S3.SS3.SSS2)\), with each baseline’s operating point independently calibrated on a disjoint split to match CRG \+ Spectral’s own average retrieval budget\. For ESRS, whose released development split covers only GRI\-standard queries and is therefore not representative of the ESRS\-CID evaluation distribution, we instead calibrate and evaluate via 5\-fold cross\-validation over source reports\.
Table[13](https://arxiv.org/html/2610.37323#A4.T13)reports, for each baseline: recall at CRG \+ Spectral’s matched K, the average K the baseline requires to reach CRG \+ Spectral’s own recall, recall under the unmodified production stopping rule with no independent calibration \(“clamp\-only”\), and recall at the tuned operating point\. For OPP\-115 and CLAUDETTE we additionally report a paired bootstrap 95% confidence interval \(2,000 resamples over documents\) on the recall difference at matched K; for ESRS we report the mean difference across folds without a confidence interval\.
On OPP\-115, CRG \+ Spectral significantly outperforms all three baselines at matched K \(all bootstrap CIs exclude zero\)\. Under the unmodified production rule with no calibration, however, heat\-kernel diffusion attains marginally higher recall than CRG \+ Spectral’s own production point \(0\.795 vs\. 0\.791\); we report this exception directly, since it uses an identical rule and no tuning of either method\. On CLAUDETTE, differences at matched K are not significant \(all CIs cross zero\), indicating comparable performance between CRG \+ Spectral and the baselines under this protocol\. On ESRS, CRG \+ Spectral outperforms flat cosine \(meanΔ=−0\.053\\Delta=\-0\.053\) and the cross\-encoder \(meanΔ=−0\.287\\Delta=\-0\.287\) by a wide margin; the gap to heat\-kernel diffusion is small \(meanΔ=−0\.016\\Delta=\-0\.016\), and without per\-fold confidence intervals we report this as a numerical rather than statistically confirmed difference\.
The clearest pattern is the cross\-encoder’s degradation with graph size: it is the strongest baseline on OPP\-115 \(24 nodes\) but requires 44\.9 retrieved nodes on ESRS \(82 nodes\) to match CRG \+ Spectral’s recall atK=17K\{=\}17, consistent with a pairwise reranker’s inability to exploit co\-relevance structure lacking direct lexical overlap\.
## Appendix EEncoder Sensitivity
CRG \+ Spectral achieves the strongest or tied\-strongest recall on OPP\-115 and ESRS\-82 under both encoders \(Table[11](https://arxiv.org/html/2610.37323#A4.T11)\)\. CLAUDETTE shows higher cross\-method variance under both encoders, consistent with its dense graph structure \(99\.8% edge density\) making spectral community separation less stable, a pattern present in the main results as well\. The relative gains of CRG \+ Spectral over flat cosine are consistent across encoders, confirming that the method’s contribution is not specific to all\-mpnet\-base\-v2\.
## Appendix FValidation
### F\.1LLM Prompt Templates
Listing 1:Baseline Prompt \(graph\_context="none"\)Youareadocumentanalyst\.Youaregivenadocumentandarequirementthathasbeenretrievedasacandidatematch\.Therequirementisassumedtobeatleastsomewhatrelevanttothedocument\.YourtaskistoclassifywhetherthedocumentisPOSITIVEorNEGATIVEforthisrequirement\.
\-Positivemeansthedocumenttextcontainslanguagethatexhibits,satisfies,orviolatesthisrequirement\.
\-NegativemeansthedocumenttextdoesNOTcontainlanguagethatexhibitsthisrequirement,ORtherequirementisnotapplicabletothisdocument\.
\#\#Requirement
\*\*Requirement\*\*:Doesthereportdescribethesustainabilitymattersaddressedbythegoverningbodiesandtheinformationprovidedtothemforoversight?
\*\*Category\*\*:governance
\[\.\.\.\]
Listing 2:Persona Prompt \(graph\_context="persona"\)\[\.\.\.\]
\#\#ContextfromGraphTraversal
Thetraversal\(5nodesvisited\)wasconnectedbysamecategory\(100%
Visitedrequirementtopics:"governance","general"\.
Thisrequirementwasreachedbecauseitisconnectedto"governance"viaembeddingsimilarity\(weight0\.91\)\.
\[\.\.\.\]
### F\.2Full Pipeline Results \- Llama 3\.1 8B
†Δ\\DeltaRec↑\\uparrowis the gap between strategy recall and the retrieval ceiling\. Negative values indicate recall below the ceiling; closer to zero is better\. The gap reflects*validation errors*on retrieved nodes rather than*retrieval failure*\.
Table 14:End\-to\-end validation performance with graph\-derived context from theCRGusing Llama\-3\.1\-8B\.
### F\.3ESRS Per\-Pillar Breakdown
Table 15:Per\-pillar end\-to\-end precision \(P\) and recall \(R\) on ESRS under the baseline validation strategy, forLlama\-3\.3\-70BandLlama\-3\.1\-8B\. Support is the approximate number of positive instances per pillar\. E/S/G indicates the ESRS pillar category \(Environmental, Social, Governance\)\.相似文章
从场景到元素:可验证多模态RAG的多粒度证据检索
本文介绍了GranuVistaVQA,一个带有元素级注释的多模态基准,以及GranuRAG,一个将视觉元素视为可验证多模态RAG的一等检索单元的框架,相较于基线实现了高达29.2%的提升。
超越语义相似度:面向企业信用承保的两阶段非参数检索工作流
提出了一种面向企业信用承保的两阶段非参数检索工作流,将高召回率检索与效用排序分离,并采用本地部署的开源模型以符合合规要求。该系统解决了金融文档分析中标准RAG管道的相似性-效用差距问题。
跨实体金融情绪分析的图增强检索:一项比较研究
本文对图增强检索(Graph-RAG)与标准纯向量RAG在跨实体金融情绪分析中的表现进行了比较研究,发现图增强检索在实体召回率和答案相关性方面有统计显著的提升,而延迟成本增加不大。
上下文感知与关系感知的图检索增强生成的统一框架
本文提出了HyGRAG,一种层次化图RAG框架,整合了上下文与关系信息以支持多跳推理,在现有方法基础上实现了平均准确率提升9.7%。
GraphCert:以经认证的证据评分标准引导智能体图推理的自助式训练
GraphCert 提出在后训练阶段利用经认证的证据评分标准来引导智能体图推理:通过 Bootstrapped Graph Quizzer 和执行认证的问答对,在 GRPO 中对证据一致性进行奖励。该方法在 GRBENCH 的五个图推理领域上表现优于规模更大的 LLM 智能体。