GNN Quantization via Vector Segmentation and Clustering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Graph neural networks (GNNs) face challenges in scaling to large graphs due to the enormous amount of data that needs to be stored, transferred, and processed, leading to inefficiencies and performance bottlenecks in computation.

Innovation Solution

The method involves segmenting feature vectors into sub-vectors, grouping them, performing vector clustering to generate centroids, and encoding these into index maps, which occupy less memory space, allowing for efficient quantization and representation of nodes in GNN computation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If feature vectors are stored in full precision for GNN computation, then computation accuracy is maintained, but memory usage and bandwidth requirements become enormous

Engineering Contradiction:
Improvecomputation accuracyVSAvoidmemory usage
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The feature vectors are segmented into multiple sub-vectors, each of which is independently quantized using product quantization. This segmentation allows the system to reduce precision requirements while maintaining overall computation accuracy through the collective representation of multiple quantized sub-vectors.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the precision parameter of feature vectors by applying quantization techniques that transform high-precision floating-point values into lower-precision representations. This parameter change reduces memory usage while the product quantization methodology preserves sufficient accuracy for GNN computations.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If full-precision feature vectors are transferred during GNN computation, then computation accuracy is preserved, but bandwidth requirements and transfer time increase

Engineering Contradiction:
Improvecomputation accuracyVSAvoidtransfer time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

By segmenting feature vectors into sub-vectors and applying product quantization, the patent enables more efficient data transfer. The quantized representations require less bandwidth and transfer time while maintaining the computational accuracy needed for GNN operations.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the data format parameter from high-precision floating-point to lower-precision quantized representations, reducing the amount of data that needs to be transferred during GNN computation while preserving sufficient accuracy through the product quantization approach.

Inventive Principle:
Principle #35Parameter changes

3Quantity of substance

If quantization is applied to reduce memory usage, then memory efficiency improves, but computation precision may deteriorate

Engineering Contradiction:
Improvememory usageVSAvoidcomputation precision
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent segments feature vectors into multiple sub-vectors and applies product quantization across these segments. This segmentation strategy allows the system to achieve better compression ratios while maintaining computation precision, as the combined representation of multiple quantized sub-vectors preserves more information than single-vector quantization.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent uses product quantization which combines multiple quantized sub-vectors to form a composite representation. This composite approach maintains computation precision by leveraging the collective information from multiple quantized components, rather than relying on a single quantized vector.

Inventive Principle:
Principle #40Composite materials

4Productivity

If large volumes of graph data are processed, then GNN performance on large graphs improves, but system resource requirements and computation time increase

Engineering Contradiction:
ImproveGNN performanceVSAvoiddata volume
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent segments both the graph data and feature vectors into manageable units that can be processed more efficiently. This segmentation reduces the memory footprint of large graphs while maintaining the ability to process them effectively, improving productivity without proportionally increasing resource requirements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

By changing the precision parameter through quantization, the patent reduces the amount of data that needs to be stored and processed for large graphs. This parameter change enables the system to handle large-scale graph data with reduced memory requirements while maintaining GNN performance.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20240005133A1Hardware acceleration framework for graph neural network quantization
Publication Date: 2024.01.04 ALIBABA (CHINA) CO LTD
  • US20240005133A1 patent drawing
  • US20240005133A1 patent drawing
  • US20240005133A1 patent drawing

AI summary

This application describes an hardware and a software design for quantization in GNN computation. An exemplary method may include: receiving a graph comprising a plurality of nodes respectively represented by a plurality of feature vectors; segmenting the plurality of feature vectors into a plurality of sub-vectors and grouping the plurality of sub-vectors into a plurality of groups of sub-vectors; performing vector clustering on each of the plurality of groups of sub-vectors to generate a plurality of centroids as a codebook; encoding each of the plurality of feature vectors to obtain a plurality of index maps by quantizing sub-vectors within the each feature vector based on the codebook, wherein each index map occupies a smaller storage space than the each feature vector does; and storing the plurality of index maps as an assignment table instead of the plurality of feature vectors to represent the plurality of nodes for GNN computation.