A Deontic Graph Neural Network (GNN) is a neural architecture that predicts normative outcomes by propagating information across a graph where nodes represent legal entities, clauses, or facts, and edges encode deontic relations such as obligation, permission, and prohibition. Unlike standard GNNs that learn structural patterns, a deontic GNN explicitly models the logical constraints of normative reasoning—ensuring that message passing respects the formal semantics of duties and their exceptions.
Glossary
Deontic Graph Neural Network (GNN)

What is Deontic Graph Neural Network (GNN)?
A specialized neural architecture that learns to predict normative outcomes by propagating information across a graph where nodes represent legal entities and edges represent deontic relations like obligation or authority.
The architecture typically employs a message-passing scheme where node states are updated based on the deontic type of incoming edges, allowing the network to learn that an obligation from a higher authority overrides a conflicting permission from a subordinate source. This enables the model to resolve normative conflicts and predict compliance outcomes by learning latent representations of legal hierarchies and defeasible rules directly from structured legal knowledge graphs.
Key Architectural Features
The Deontic Graph Neural Network represents a fundamental shift from sequential text processing to structured relational reasoning, enabling the precise propagation of normative force across legal knowledge graphs.
Heterogeneous Node Typing
The graph explicitly models distinct entity classes—parties, statutes, contracts, and jurisdictions—as separate node types with unique feature spaces. Each node type carries domain-specific attributes: a 'Party' node encodes capacity and role, while a 'Statute' node encodes jurisdictional scope and enactment date. This heterogeneity prevents the semantic conflation that plagues flat text models, ensuring that a corporation and a regulation are processed through type-appropriate encoders before any relational computation begins.
Deontic Edge Relations
Edges are not generic associations but typed normative relations drawn from Hohfeldian analysis and deontic logic:
- Obligation (duty-to): Connects a party to a required action
- Permission (may-perform): Connects a party to an allowed action
- Prohibition (must-not): Connects a party to a forbidden action
- Authority (empowers): Connects a statute to an enforcing body
- Liability (subject-to): Connects a party to a normative power
Each edge type uses a distinct message-passing function, allowing the network to learn that obligations propagate differently than permissions.
Relational Graph Convolution
The core computation uses Relational Graph Convolutional Networks (R-GCNs) adapted for deontic semantics. At each layer, a node's representation is updated by aggregating messages from its neighbors, with a separate weight matrix for each edge type. This means the message a 'Party' node receives from an 'Obligation' edge is computed with different parameters than a message from a 'Permission' edge. The update rule follows:
h_i^(l+1) = σ( Σ_r Σ_j∈N_r(i) (1/c_i,r) * W_r^(l) * h_j^(l) + W_0^(l) * h_i^(l) )
where r indexes the deontic relation type, enabling the network to learn distinct propagation dynamics for duties versus authorizations.
Normative Conflict Detection Head
A specialized output module identifies normative conflicts—situations where a party is simultaneously obligated and prohibited from the same action, or where two applicable norms prescribe incompatible outcomes. This head computes pairwise compatibility scores between all active deontic constraints using a bilinear scorer, then applies a threshold to flag conflicts. The system can also invoke resolution heuristics:
- Lex Superior: Higher authority prevails
- Lex Specialis: More specific rule prevails
- Lex Posterior: Later enactment prevails
This transforms the GNN from a passive classifier into an active reasoning engine capable of surfacing legal inconsistencies.
Temporal Deontic Encoding
Obligations are not static; they activate, suspend, and expire over time. The GNN incorporates temporal edge features that encode the lifecycle of each normative relation:
- Effective date: When the obligation becomes active
- Expiration date: When the obligation ceases
- Conditional trigger: Events that activate or suspend the duty
These temporal signals are encoded as continuous vectors and concatenated with edge features during message passing. A gating mechanism allows the network to learn when a deontic relation is 'active' in the current temporal context, preventing the propagation of expired obligations and enabling accurate modeling of contrary-to-duty scenarios where secondary obligations activate upon violation.
Explainable Attention Attribution
To meet the auditability requirements of legal AI, the GNN employs graph attention mechanisms with explicit attribution. Each message-passing step computes attention weights that quantify how much each source node and edge type contributed to a target node's updated representation. These weights are extracted post-inference to generate human-readable explanations:
- 'Defendant is obligated to pay damages because Statute §12-3 (attention: 0.47) imposes a duty-to-compensate on breaching parties, and Defendant was classified as a breaching party (attention: 0.31).'
This attention tracing provides a verifiable reasoning path from input facts to normative conclusion, satisfying the right to explanation requirements in regulated domains.
Frequently Asked Questions
Core technical questions about how graph neural networks are adapted to model and predict normative legal outcomes by learning from the structure of obligations, permissions, and authority relationships.
A Deontic Graph Neural Network (GNN) is a neural architecture that learns to predict normative outcomes by propagating information across a graph where nodes represent legal entities and edges represent deontic relations like obligation or authority. Unlike standard GNNs that model generic relationships, a Deontic GNN explicitly encodes the modal logic of norms—obligation, permission, and prohibition—into its message-passing framework. The network operates by iteratively updating node representations based on the deontic states of neighboring nodes. For example, if a contract clause (node A) imposes an obligation on a party (node B), the edge carries a typed deontic relation that constrains how information flows. The aggregation function is often modified to respect normative hierarchies, ensuring that higher-authority norms override lower ones during inference. The final node embeddings can then be used for downstream tasks such as violation detection, compliance classification, or normative conflict resolution.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Deontic Graph Neural Networks exist within a broader ecosystem of formal logic, computational argumentation, and normative NLP. These related concepts form the theoretical and engineering foundation for building graph-based legal reasoning systems.
Hohfeldian Analysis
A fundamental analytical framework decomposing legal relations into eight jural correlatives that disambiguate normative positions before graph construction. The pairs are:
- Right/Duty: A claim-right correlates to a duty
- Privilege/No-Right: Freedom from obligation
- Power/Liability: Capacity to alter legal relations
- Immunity/Disability: Freedom from having relations altered
In a Deontic GNN, Hohfeldian positions define node types and constrain the semantic meaning of directed edges between legal entities.
Contrary-to-Duty (CTD) Obligations
Conditional obligations that activate when a primary duty has been violated. These represent the normative fallback rules governing non-ideal compliance scenarios. Deontic GNNs must model CTD structures explicitly through:
- Conditional edge weights that strengthen when violation nodes are activated
- Secondary obligation subgraphs triggered by breach detection
- Temporal ordering constraints ensuring remedial duties follow primary violations
Chisholm's Paradox demonstrates why naive logical encodings fail here—GNNs avoid this by learning latent representations of normative context.
Defeasible Logic Programming (DeLP)
A computational argumentation framework combining logic programming with defeasible reasoning to resolve conflicting normative conclusions through dialectical analysis. DeLP provides the theoretical backbone for conflict resolution layers in Deontic GNNs:
- Arguments are constructed from a knowledge base of strict and defeasible rules
- Defeaters block or rebut arguments when exceptions apply
- A dialectical tree determines warranted conclusions
GNN architectures can learn to approximate DeLP-style warrant procedures by propagating defeat status through graph attention mechanisms.
Normative Conflict Resolution
The algorithmic detection and reconciliation of contradictory legal rules within a normative graph. When two norms prescribe incompatible actions, resolution strategies determine precedence:
- Lex Superior: Higher authority prevails
- Lex Specialis: More specific rule overrides general
- Lex Posterior: Later enactment supersedes earlier
Deontic GNNs encode these meta-principles as edge attributes on hierarchical authority edges, enabling the network to learn conflict resolution patterns from annotated case law rather than relying on hard-coded precedence rules.
Deontic Annotation Schema
A structured labeling framework used to tag legal text corpora with deontic categories and their attributes to create gold-standard training data for normative NLP models. Annotation layers include:
- Deontic type: Obligation, Permission, Prohibition
- Bearer: The entity subject to the norm
- Counterparty: The entity owed performance
- Condition: Triggering circumstances
- CTD chain: Linked remedial obligations
These schemas produce the supervised training signals that teach Deontic GNNs to correctly classify nodes and predict edge types in legal knowledge graphs.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us