Parallel Model Processing With Matrix Partitioning Under Memory Limits

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Ultra-large-scale deep learning models face challenges with memory limitations and training speed due to the constraints of a single computing device, necessitating efficient utilization of limited memory for larger model training.

Innovation Solution

A method for parallel processing of models across multiple computing devices, involving data matrix partitioning and matrix multiplication operations, where data submatrices are distributed and processed in parallel, with overlapping computing and communication to enhance efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If data matrices are partitioned and processed in parallel across multiple computing devices, then computing efficiency and training speed are improved, but system complexity and communication overhead increase

Engineering Contradiction:
Improvecomputing efficiencyVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent partitions large data matrices into multiple submatrices (first data submatrices and second data submatrices) that are distributed across N computing devices. Each device processes a specific partition, enabling parallel computation of matrix multiplication operations. This segmentation allows the system to handle ultra-large-scale models that exceed the memory capacity of a single device while maintaining efficient parallel processing.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a coordinate mapping mechanism that acts as an intermediary to manage data distribution and communication between computing devices. The mapping relationship between global coordinates and local coordinates enables each device to efficiently access and process the required submatrices without complex point-to-point communication, thereby reducing communication overhead while maintaining parallel processing efficiency.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If matrix multiplication operations are performed on large data matrices, then model training accuracy is improved, but memory requirements exceed single-device capacity

Engineering Contradiction:
Improvemodel training accuracyVSAvoidmemory capacity
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent divides large data matrices that exceed single-device memory capacity into multiple smaller submatrices that can be stored and processed on individual computing devices. Each device holds only the submatrices required for its computation, dramatically reducing per-device memory requirements while enabling the processing of ultra-large-scale models through coordinated parallel computation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent transitions from a single-device memory constraint to a distributed multi-device architecture, adding the dimension of spatial distribution across multiple computing devices. This dimensional change allows the system to handle datasets that would be impossible to store on a single device by distributing the data across the memory resources of N devices, effectively multiplying the available memory capacity.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Speed

If data is copied in parallel during matrix multiplication, then processing speed is improved, but communication bandwidth consumption increases

Engineering Contradiction:
Improveprocessing speedVSAvoidcommunication bandwidth
Core Design Contradiction:
SpeedVSUse of energy by moving object

Solution Approach 1:

The patent performs preliminary coordinate mapping and data distribution setup before the actual matrix multiplication operations begin. By pre-establishing the mapping relationships between global and local coordinates and pre-distributing the required submatrices to appropriate computing devices, the system minimizes communication overhead during the computation phase, allowing parallel processing to proceed with reduced bandwidth consumption.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent enables each computing device to process only the local submatrices relevant to its computation, rather than requiring all devices to access or process the entire dataset. This local quality approach reduces the communication bandwidth required, as each device communicates only the specific data portions it needs, minimizing redundant data transmission while maintaining high processing speed through parallel operations.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS20250298865A1Method and apparatus for parallel processing of model, electronic device and readable storage medium
Publication Date: 2025.09.25 BEIJING BAIDU NETCOM SCI & TECH CO LTD
  • US20250298865A1 patent drawing
  • US20250298865A1 patent drawing
  • US20250298865A1 patent drawing

AI summary

A method for parallel processing of model is suggested, which relates to the field of artificial intelligence technologies such as deep learning, natural language processing, image processing, and large language models. The method is applied to a first computing device among N computing devices, which includes: obtaining a target first data submatrix in N first data submatrices and a target second data submatrix in N second data submatrices; initiating a matrix multiplication operation process to process the target first data submatrix and the target second data submatrix, and in parallel with the processing, copy a first candidate data submatrix in the other N-1 computing devices; in response to obtaining a first processing result between the target first data submatrix and the target second data submatrix, processing the copied first candidate data submatrix and a target data submatrix corresponding to the first candidate data submatrix; in response to obtaining a second processing result between the first candidate data submatrix and the target data submatrix corresponding to the first candidate data submatrix, obtaining a target processing result of the first computing device based on the first processing result and the second processing result.