Binary Compositional Code Matrix for Graph Neural Network Memory Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Graph neural networks (GNNs) face memory constraints when training node embeddings for large-scale graph data, as the memory cost of the embedding matrix grows linearly with the number of nodes, exceeding the capabilities of many graphics processing units (GPUs).

Innovation Solution

A method is introduced that generates a binary compositional code matrix from input data, converts it into an integer code matrix, and uses a decoder to produce summed vectors, which are then input into a downstream machine learning model, reducing memory requirements by using a random projection-based algorithm and decoding process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If GNNs train input node embeddings for large-scale graph data, then prediction performance is improved, but memory cost grows linearly with the number of nodes exceeding GPU capabilities

Engineering Contradiction:
Improveprediction performanceVSAvoidmemory cost
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent segments the embedding representation into a two-component structure: a low-dimensional base embedding vector and a binary compositional code matrix. This segmentation allows the system to represent node embeddings using significantly fewer memory resources while maintaining predictive performance, as the base embedding captures the majority of semantic information and the compositional codes provide additional granularity only when needed.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a nested representation where the binary compositional code matrix is organized with codebooks at multiple levels. The codebooks are arranged such that inner codebooks refine the representation built from outer codebooks, creating a nested structure that efficiently packs information. This nesting allows the system to achieve high-dimensional embedding representations using a compact hierarchical structure that fits within GPU memory constraints.

Inventive Principle:
Principle #7Nested doll (Nesting)

2Quantity of substance

If the embedding matrix size is reduced to fit in GPU memory, then memory cost is reduced, but the representation capacity and prediction accuracy deteriorate

Engineering Contradiction:
Improvememory costVSAvoidprediction accuracy
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent changes the parameter representation from a single large-dimensional floating-point embedding vector to a combination of a small base embedding vector and a binary compositional code matrix. This parameter transformation allows the system to maintain high representation capacity while using significantly less memory, as the binary codes provide efficient compression with minimal information loss when combined with the base embedding.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent creates a composite embedding representation by combining the base embedding vector with the binary compositional code matrix. This composite structure leverages the strengths of both components: the base embedding provides a robust foundation with low memory cost, while the compositional codes add fine-grained detail. The combination achieves high prediction accuracy without requiring a single large embedding matrix.

Inventive Principle:
Principle #40Composite materials

3Quantity of substance

If simple graph-based node features are used instead of learned embeddings, then memory cost is reduced, but prediction performance deteriorates

Engineering Contradiction:
Improvememory costVSAvoidprediction performance
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent performs preliminary action by pre-computing and storing the base embedding vector and binary compositional code matrix in a compact format. This preliminary preparation allows the system to generate rich node representations on-demand during prediction without requiring the full embedding matrix to be loaded into GPU memory simultaneously, thus maintaining both low memory cost and high prediction performance.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces the binary compositional code matrix as an intermediary between the simple graph features and the final node representation. This intermediary component enriches the simple graph-based features by adding compositional information from the codebooks, thereby improving prediction performance while keeping the overall memory footprint small due to the efficient binary encoding.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20240378414A1Embedding compression for efficient representation learning in graph
Publication Date: 2024.11.14 VISA INTERNATIONAL SERVICE ASSOCIATION
  • US20240378414A1 patent drawing
  • US20240378414A1 patent drawing
  • US20240378414A1 patent drawing

AI summary

A method performed by a server computer is disclosed. The method comprises generating a binary compositional code matrix from an input matrix. The binary compositional code matrix is then converted into an integer code matrix. Each row of the integer code matrix is input into a decoder, including plurality of codebooks, to output a summed vector for each row. The method then includes inputting a derivative of each summed vector into a downstream machine learning model to output a prediction.