Inferensys

Glossary

Obligation Graph

A directed knowledge graph representing mandatory duties imposed by law, where nodes are actors and edges are actions they are obligated to perform.
Knowledge manager reviewing enterprise knowledge management system on laptop, document library visible, casual office.
COMPUTATIONAL LEGAL REASONING

What is an Obligation Graph?

An obligation graph is a directed knowledge graph that formally models mandatory duties imposed by law, where nodes represent legal actors and directed edges represent the specific actions they are legally obligated to perform.

An obligation graph is a directed knowledge graph representing mandatory duties imposed by law, where nodes are legal actors (e.g., 'employer,' 'administrator') and edges are actions they are obligated to perform (e.g., 'file,' 'disclose'). Unlike a permission graph or prohibition graph, it exclusively models deontic modalities of obligation derived from statutory text. This structure computationally instantiates the output of normative parsing, transforming unstructured legal language into a machine-readable, queryable format for automated compliance reasoning.

The graph's directed edges encode the subject-verb-object structure of a legal duty, often annotated with temporal constraints, triggering conditions, and statutory citations for provenance. Obligation graphs serve as the foundational knowledge layer for legal syllogism engines, enabling rule-to-fact binding where a system verifies whether a specific actor has discharged all mandatory duties. They are critical for detecting normative conflict detection scenarios, such as when one statute obligates an action another prohibits, ensuring coherent reasoning in complex regulatory environments.

OBLIGATION GRAPH

Key Characteristics

An Obligation Graph is a directed knowledge graph that computationally models mandatory duties imposed by law. It serves as the foundational data structure for automated compliance checking and normative reasoning.

01

Directed Graph Structure

The graph is composed of nodes representing legal actors (e.g., 'Employer,' 'Taxpayer,' 'Administrator') and directed edges representing mandatory actions one actor must perform for another.

  • Source Node: The bearer of the duty (the obligor)
  • Target Node: The beneficiary of the duty (the obligee)
  • Edge Label: The specific action mandated (e.g., 'file,' 'pay,' 'disclose')

This structure directly mirrors the Hohfeldian legal relations framework, transforming jural correlatives into queryable graph patterns.

02

Deontic Logic Foundation

Obligation Graphs are grounded in deontic logic, a branch of modal logic that formalizes normative concepts. Each edge is annotated with a deontic modality, primarily O (obligation).

  • O(A, B, φ): Actor A is obligated to Actor B to perform action φ
  • Edges can carry activation conditions (predicates that must be true for the duty to arise)
  • Supports contrary-to-duty reasoning for modeling violations and remedial obligations

This formal semantics enables deterministic traversal and automated conflict detection against Permission Graphs and Prohibition Graphs.

03

Conditional Activation Logic

Not all obligations are absolute. Edges in the graph are often gated by conditional predicates extracted from statutory text.

  • IF-THEN rules: 'IF an employer has 50+ employees, THEN the employer MUST file Form EEO-1'
  • Predicates are modeled as Boolean expressions over a fact base
  • Supports temporal conditions: effective dates, deadlines, and sunset provisions

This allows the graph to dynamically activate or deactivate duties based on a changing factual context, enabling real-time compliance assessment.

04

Relationship to Normative Parsing

Obligation Graphs are populated through normative parsing, a specialized NLP task that extracts deontic structures from unstructured legal text.

  • Identifies the actor (subject), action (verb phrase), and modality (must, shall, may, may not)
  • Resolves definitional cross-references to normalize entity names
  • Handles exception handling logic by creating negative conditions on obligation edges

The extraction pipeline typically uses fine-tuned legal language models trained on annotated statutes and regulations.

05

Conflict and Gap Analysis

Once constructed, the Obligation Graph enables automated normative conflict detection and regulatory gap analysis.

  • Conflict Detection: Identifies when an action is simultaneously labeled as obligatory and prohibited for the same actor
  • Gap Analysis: Surfaces factual scenarios where no explicit obligation, permission, or prohibition exists
  • Hierarchy Resolution: Uses statutory hierarchy modeling to resolve conflicts between overlapping obligations from different sources of authority

These capabilities are critical for building coherent, contradiction-free compliance reasoning systems.

06

Computational Traversal and Querying

The graph supports complex graph traversal queries to answer legal compliance questions.

  • Forward traversal: 'Given Actor X, what are all of their obligations?'
  • Backward traversal: 'What conditions trigger a duty to file Form 10-K?'
  • Path queries: 'What chain of obligations links a manufacturer to an end-consumer reporting duty?'

Implemented using graph databases like Neo4j with Cypher or RDF triplestores with SPARQL, these queries power downstream Legal Syllogism Engines that bind rules to facts.

COMPARATIVE ANALYSIS

Obligation Graph vs. Related Deontic Structures

A structural comparison of the Obligation Graph against its sibling deontic knowledge structures, distinguishing mandatory duties from permissions, prohibitions, and the formal logical systems that underpin them.

FeatureObligation GraphPermission GraphProhibition GraphDeontic Logic

Core Modality

Mandatory Duty (Must)

Discretionary Right (May)

Forbidden Action (Must Not)

Formal Calculus (All Modalities)

Edge Semantics

Actor MUST perform Action

Actor MAY perform Action

Actor MUST NOT perform Action

Logical operators (O, P, F) on propositions

Primary Use Case

Compliance automation, duty extraction

Rights management, authorization systems

Risk detection, regulatory violation flagging

Normative consistency verification, theorem proving

Violation Consequence

Legal penalty, breach of contract

No penalty, but right is unexercised

Legal penalty, criminal liability

Logical contradiction detected

Graph Directionality

Directed (Subject -> Object of duty)

Directed (Subject -> Object of permission)

Directed (Subject -> Object of prohibition)

Not inherently graphical; propositional

Temporal Constraints

Exception Handling

Explicit override edges required

Scope limitation edges

Safe harbor carve-out edges

Defeasibility operators in formal logic

Computational Complexity

O(n) for traversal, NP-hard for conflict resolution

O(n) for traversal

O(n) for traversal

PSPACE-complete for full modal logic

OBLIGATION GRAPH

Frequently Asked Questions

Explore the core concepts behind obligation graphs, the directed knowledge structures used to computationally model mandatory legal duties for automated compliance and reasoning systems.

An obligation graph is a directed knowledge graph that formally represents mandatory duties imposed by law, regulation, or contract. In this computational model, nodes represent legal actors (e.g., 'Employer,' 'Taxpayer,' 'Administrative Agency') and directed edges represent specific actions one actor is obligated to perform for or toward another. The graph is constructed by applying normative parsing and legal rule extraction techniques to unstructured legal text, identifying deontic modalities of obligation. The resulting structure enables a legal syllogism engine to traverse the graph and algorithmically verify whether a set of facts triggers a specific duty, forming the backbone of automated regulatory compliance checking.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.