Message passing is the iterative process where each node in a graph computes a new hidden state by aggregating transformed feature vectors—called messages—received from its immediate neighbors. A node's updated representation becomes a function of its previous state and the pooled incoming messages, enabling the capture of local structural dependencies.
Glossary
Message Passing

What is Message Passing?
Message passing is the core computational mechanism enabling graph neural networks to learn relational representations by iteratively exchanging and aggregating vectorized information between connected nodes.
This paradigm generalizes convolution to non-Euclidean domains: a message function computes edge-specific transmissions, a permutation-invariant aggregation function (e.g., sum, mean, or max) pools them, and an update function integrates the result. Stacking multiple message-passing layers allows nodes to indirectly receive information from distant, multi-hop neighbors, building increasingly global contextual awareness.
Key Properties of Message Passing
The fundamental computational paradigm enabling graph neural networks to capture relational dependencies through iterative neighborhood communication.
Neighborhood Aggregation
The core operation where a node collects vectorized information from its immediate neighbors. An aggregation function—such as mean, sum, or max pooling—combines these incoming messages into a single vector. This ensures the model is permutation invariant, meaning the aggregation result is independent of the order in which neighbors are processed. The aggregated vector summarizes the local graph structure around each node.
Message Function
Defines the computation applied to a neighboring node's hidden state before it is sent. A message function typically involves a linear transformation parameterized by a learnable weight matrix, often conditioned on the edge type in heterogeneous graphs. For example, in a financial transaction graph, the message from a 'Merchant' node to an 'Account' node may be transformed differently than a 'Peer-to-Peer Transfer' edge, preserving relational semantics.
Update Function
Combines the node's previous hidden state with the aggregated neighborhood message to produce its new state. This is often implemented using a recurrent neural network (RNN) cell like a GRU or a simple multi-layer perceptron (MLP) with a residual connection. The update function allows a node to retain its own historical information while integrating new contextual signals from its surroundings, enabling iterative refinement of representations.
Iterative Propagation Layers
Message passing is executed in discrete layers or time steps. In a single layer, a node receives information only from its direct, 1-hop neighbors. Stacking K layers allows information to propagate across K hops in the graph. After two layers, a node has effectively received information from its neighbors' neighbors. This iterative process builds increasingly abstract and global representations, capturing multi-hop relational patterns like layering in money laundering.
Edge Feature Integration
Edges in financial graphs carry critical metadata—such as transaction amount, currency code, or timestamp—that must be incorporated into the message. Edge features are typically concatenated with the sender node's hidden state before the message function is applied, or they gate the message via an attention mechanism. This allows the model to weigh transactions differently; a $1 transfer and a $10,000 transfer will generate distinct messages.
Global Readout Phase
After the final message-passing layer, a readout function (or global pooling operation) aggregates all node embeddings into a single, fixed-size graph-level vector. Common operations include global mean, sum, or max pooling, as well as more sophisticated set2seq methods. This graph-level representation is then fed into a standard classifier to predict properties of the entire transaction network, such as whether it constitutes a fraud ring.
Frequently Asked Questions
Clear, technical answers to the most common questions about the message passing paradigm—the core computational mechanism that enables graph neural networks to learn from relational structure.
Message passing is the fundamental computational paradigm in graph neural networks where nodes iteratively exchange vectorized information with their immediate neighbors to update their own hidden representations. In each layer, every node computes a message from each neighbor, aggregates all incoming messages using a permutation-invariant function (such as sum, mean, or max), and then updates its own state by combining the aggregated message with its previous representation. This process is repeated for K layers, allowing each node to incorporate information from its K-hop neighborhood. The three core functions—message function, aggregation function, and update function—are typically parameterized as differentiable neural networks, enabling end-to-end gradient-based learning. The paradigm was formalized by Gilmer et al. (2017) as the Message Passing Neural Network (MPNN) framework, unifying earlier architectures including Graph Convolutional Networks and GraphSAGE under a single abstraction.
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
Master the core mechanisms and architectural patterns that make graph-based fraud detection possible. Each concept builds on the message passing paradigm to expose hidden financial relationships.

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