Nested Neural Network Sub-models for Computational Resource Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep Neural Networks (DNNs) require significant computational resources for training and inference, which can be a challenge when computational budgets change or are reduced.

Innovation Solution

The use of a nested architecture for Neural Network models, comprising smaller 'sub-models' or 'sub-networks' that are shallower and/or narrower than the main model, along with a scalable methodology combining sub-model sampling and gradient accumulation to reduce computational costs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a large pre-trained language model is used, then performance on downstream tasks is improved, but computational resources and training costs increase significantly

Engineering Contradiction:
ImproveperformanceVSAvoidcomputational resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent divides a large pre-trained language model into multiple smaller sub-models with different depths or configurations. Each sub-model can be independently trained and deployed, allowing the system to select appropriate model sizes based on available computational resources and performance requirements, thus resolving the contradiction between model performance and computational cost.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent employs techniques to dynamically adjust model parameters such as depth, width, or number of layers during training and inference. By varying these parameters, the system can optimize the balance between model capacity and computational resource consumption, achieving high performance when resources are abundant while maintaining functionality when resources are constrained.

Inventive Principle:
Principle #35Parameter changes

2Use of energy by moving object

If model size is reduced to decrease computational cost, then training resources are reduced, but model performance deteriorates

Engineering Contradiction:
Improvetraining costVSAvoidmodel performance
Core Design Contradiction:
Use of energy by moving objectVSReliability

Solution Approach 1:

The patent performs preliminary training on a large model to learn rich representations, then uses this pre-trained knowledge to initialize and train multiple smaller sub-models. This preliminary action allows smaller models to achieve better performance with less training cost, as they inherit knowledge from the larger model rather than learning from scratch.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates a nested architecture where smaller sub-models are embedded within or derived from a larger model structure. The smaller models share parameters or architectural components with the larger model, allowing them to maintain performance while requiring fewer computational resources for training and inference.

Inventive Principle:
Principle #7Nested doll (Nesting)

3Adaptability or versatility

If multiple sub-models are trained to handle different computational budgets, then adaptability is improved, but training complexity increases

Engineering Contradiction:
Improvecomputational budget adaptabilityVSAvoidtraining complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent designs sub-models with universal architectures that can serve multiple functions across different computational budgets. The same base architecture is reused across different model sizes, allowing the system to handle various deployment scenarios while maintaining consistent training procedures and reducing overall training complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20250053778A1Methods and processors for training a neural network
Publication Date: 2025.02.13 HUAWEI TECH CO LTD
  • US20250053778A1 patent drawing
  • US20250053778A1 patent drawing
  • US20250053778A1 patent drawing

AI summary

Methods and processors for using a Neural Network (NN) are disclosed. The method includes, during a first iteration, determining a first sub-network of the NN and training the first sub-network. The method includes during a second iteration a second sub-network of the NN and training the second sub-network. The method includes during an inference iteration of the NN, selecting a target sub-network amongst the first sub-network and the second sub-network, and generating an inference output by employing only the target sub-network of the NN on inference data for reducing computational resources of the processor for generating the inference output.