Inferensys

Glossary

Deontic Graph Neural Network (GNN)

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.
Architect reviewing LLM integration architecture on laptop, system diagrams visible, modern technical office setup.
Normative Reasoning Architecture

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.

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.

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.

DEONTIC GNN

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.

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

DEONTIC GNN ARCHITECTURE

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.

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.