Inferensys

Glossary

Link Prediction

A graph learning task focused on predicting the existence or likelihood of a future connection between two nodes, commonly used to forecast hidden relationships or potential collusion in financial networks.
Product manager reviewing autonomous task execution dashboard on laptop, completed tasks visible, casual work session.
GRAPH LEARNING

What is Link Prediction?

Link prediction is a core graph learning task that estimates the likelihood of a future or unobserved connection forming between two nodes, enabling the discovery of hidden relationships in financial networks.

Link prediction is a fundamental graph learning task that computes the probability of an edge existing or forming between two distinct nodes in a network. By analyzing the graph's structural topology and node attributes, the model scores unconnected node pairs to forecast future transactions, identify missing relationships, or uncover deliberately obscured collusion within a transaction graph.

In financial fraud detection, link prediction is critical for surfacing hidden connections between seemingly unrelated accounts that form a fraud ring. The technique leverages node embedding similarity, heuristic proximity measures, or Graph Neural Network (GNN) encoders to generate edge likelihoods, enabling investigators to preemptively identify synthetic identity clusters and money laundering layering paths before they fully materialize.

FORECASTING HIDDEN RELATIONSHIPS

Core Link Prediction Techniques

Link prediction is the graph learning task of estimating the probability of a future or unobserved connection between two nodes. In financial fraud detection, it is used to forecast hidden collusion, anticipate the formation of fraud rings, and identify missing links in money laundering networks.

01

Heuristic Similarity Scores

Classical methods that compute a similarity metric between node pairs based on graph topology, serving as a fast, interpretable baseline for link likelihood.

  • Common Neighbors: Counts shared neighbors; high overlap suggests a future link.
  • Jaccard Coefficient: Normalizes common neighbors by total unique neighbors to penalize high-degree nodes.
  • Adamic-Adar Index: Weighs common neighbors inversely by their degree, prioritizing rare, specific connections.
  • Preferential Attachment: Scores node pairs by the product of their degrees, capturing the rich-get-richer effect in network growth.
< 1 ms
Inference per pair
02

Node Embedding-Based Prediction

Learns a low-dimensional vector representation for each node such that structural proximity is preserved in the embedding space. Link probability is computed as a similarity operation on the learned vectors.

  • Node2Vec: Uses biased random walks to balance homophily and structural equivalence before training a Skip-gram model.
  • DeepWalk: Performs uniform random walks to generate node sequences, treating them as sentences for word2vec-style training.
  • Scoring Functions: Apply cosine similarity or a learned binary classifier to the Hadamard product of the two node embeddings to produce a link probability.
03

Graph Autoencoder (GAE) Decoding

An unsupervised deep learning architecture where a GNN encoder compresses nodes into latent vectors, and a decoder reconstructs the adjacency matrix. Links with high reconstruction probability are predicted.

  • Encoder: Typically a 2-layer GCN that generates node embeddings from features and topology.
  • Decoder: Computes the inner product of two node embeddings followed by a sigmoid activation to output a link probability.
  • Training Objective: Minimizes binary cross-entropy between the reconstructed and original adjacency matrices, treating observed edges as positive samples and randomly sampled non-edges as negatives.
04

SEAL: Subgraph-Based Learning

A framework that frames link prediction as a binary subgraph classification problem, learning heuristics directly from the local enclosing graph around a target node pair.

  • Enclosing Subgraph Extraction: Extracts the k-hop neighborhood surrounding the two target nodes.
  • Node Labeling: Applies a Double-Radius Node Labeling (DRNL) function to tag nodes by their distance to the source and target, providing structural roles.
  • GNN Classifier: Feeds the labeled subgraph into a GNN that outputs a probability score, enabling the model to learn complex structural heuristics beyond fixed similarity metrics.
05

Temporal Link Prediction

Extends link prediction to dynamic graphs where edges are timestamped, forecasting future interactions based on historical temporal patterns.

  • Temporal Graph Networks (TGN): Maintains a compressed memory state for each node that updates continuously as new events occur, enabling the model to predict the next interaction partner.
  • Time-Encoding Functions: Uses sinusoidal or learnable Fourier features to encode continuous timestamps, allowing the model to reason about periodicity and recency.
  • Application: Predicts which merchant an account will transact with next, flagging deviations from predicted behavior as anomalous.
06

Knowledge Graph Completion

Link prediction applied to heterogeneous knowledge graphs with typed edges, predicting missing relationship triples (head, relation, tail).

  • TransE: Models relationships as translations in the embedding space: h + r ≈ t.
  • RotatE: Models relations as rotations in complex vector space, capturing symmetry, inversion, and composition patterns.
  • Financial KG Application: Predicts hidden beneficial ownership links or undisclosed relationships between shell companies and sanctioned entities by completing the graph of corporate registries and transaction flows.
LINK PREDICTION CLARIFIED

Frequently Asked Questions

Concise, technically precise answers to the most common questions about applying link prediction to financial fraud detection, graph neural networks, and relational anomaly scoring.

Link prediction is a graph learning task that estimates the probability of a missing or future connection between two nodes. In a financial graph, it works by learning a scoring function ( f(u, v) \rightarrow [0,1] ) from the existing topology and node features. A Graph Neural Network (GNN) generates low-dimensional node embeddings for entities like accounts or merchants. The model then computes a similarity metric—such as the dot product or a neural classifier—on the embeddings of a candidate node pair. During training, the model is exposed to positive edges (real transactions) and negative samples (non-existent links). The optimized function learns structural heuristics like preferential attachment and triadic closure, enabling it to forecast hidden collusion, predict the next hop in a money laundering chain, or infer undisclosed beneficial ownership relationships that violate compliance rules.

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.