Bipartite Graph Construction for Deep Neural Network Visualization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for visualizing large deep neural networks during parallel training are inadequate, as tools like TensorBoard fail to clearly display the structure, making it difficult to locate and understand the communication nodes, which are crucial for optimizing parallel policy design and reducing training duration.

Innovation Solution

A method and apparatus for constructing and displaying a bipartite graph that extracts communication nodes to a top layer, allowing for clear visualization and quick location of communication nodes, by cutting cross-communication edges and aggregating computation nodes, thereby facilitating optimal parallel policy design and reducing training duration.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional computational graph visualization tools are used to display large model structures, then the complete graph structure can be shown, but the communication nodes cannot be clearly located and the model structure cannot be clearly displayed

Engineering Contradiction:
Improvelocation accuracy of communication nodesVSAvoidgraph structure complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the computational graph into two distinct parts: communication nodes and computation nodes. By separating these elements and displaying them in different visual layers, the patent enables clear location of communication nodes while maintaining the overall graph structure. This segmentation resolves the contradiction by making communication nodes easily identifiable without losing the completeness of the model structure.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent extracts communication nodes from the complex computational graph and places them in a separate top layer for prominent display. This extraction allows users to quickly locate and analyze communication nodes without being overwhelmed by the entire graph structure, while the underlying computation nodes remain visible for context.

Inventive Principle:
Principle #2Taking out (Extraction)

2Productivity

If parallel policy is designed without clear communication node identification, then the model can be trained in parallel, but redundant communication nodes are introduced causing performance bottlenecks

Engineering Contradiction:
Improveparallel training efficiencyVSAvoidtraining duration
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent provides visual feedback about communication node locations and connections through the bipartite graph display. This feedback enables researchers to identify redundant communication patterns and optimize parallel policies accordingly, preventing the introduction of unnecessary communication overhead that would slow down training.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent enables preliminary analysis of communication nodes before parallel training execution. By visualizing the computational graph structure and identifying communication nodes in advance, researchers can design optimized parallel policies that minimize communication overhead, preventing performance bottlenecks before they occur during training.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If layer-by-layer expansion is used to locate communication nodes, then all nodes can be examined, but the process becomes complex and cumbersome

Engineering Contradiction:
Improvecommunication node detection accuracyVSAvoidnode location complexity
Core Design Contradiction:
Measurement precisionVSEase of operation

Solution Approach 1:

The patent introduces a new visual dimension by placing communication nodes in a top layer separate from the main computational graph. This dimensional change allows communication nodes to be displayed prominently without requiring layer-by-layer expansion, making them easily locatable while maintaining the ability to examine all nodes if needed.

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

Data Source

PatentUS20240303470A1Construction method and apparatus for bipartite graph, and display method and apparatus for bipartite graph
Publication Date: 2024.09.12 HUAWEI TECH CO LTD
  • US20240303470A1 patent drawing
  • US20240303470A1 patent drawing
  • US20240303470A1 patent drawing

AI summary

This application discloses a construction method and apparatus for a bipartite graph, and a display method and apparatus for a bipartite graph. The construction method includes: searching a computational graph for at least one cross-communication edge corresponding to a first communication node, where the first communication node is one of M communication nodes included in the computational graph, the first communication node corresponds to P predecessor nodes and Q successor nodes, each of the at least one cross-communication edge indicates a communication path between one of the P predecessor nodes and one of the Q successor nodes, and no cross-communication edge passes through the M communication nodes; and cutting cross-communication edges respectively corresponding to the M communication nodes, and performing an aggregation operation to obtain the bipartite graph, where any two of the M communication nodes are connected without an edge in the bipartite graph.