Distributed Word Vector Training via Asynchronous Gradient Updates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing natural language processing solutions face inefficiencies in large-scale word vector training, as current algorithms typically run on single computers and lack effective distributed processing capabilities.

Innovation Solution

A cluster-based word vector processing method utilizing multiple worker computers and a server, where each worker computer asynchronously calculates and updates gradients, allowing for distributed training without waiting for other computers, and the server updates word vectors accordingly.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If synchronous gradient updating is used in distributed word vector training, then consistency of updates is improved, but training efficiency deteriorates due to waiting for all worker computers

Engineering Contradiction:
Improveconsistency of updatesVSAvoidtraining efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent transitions from static synchronous updating to dynamic asynchronous updating, where worker computers send gradients immediately without waiting for others. This dynamic approach allows the system to adapt to varying computation speeds of different workers, improving overall training efficiency while maintaining acceptable consistency through the server's accumulation and periodic aggregation of gradients.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The server performs preliminary actions by maintaining a local copy of word vectors and preparing to accumulate gradients from multiple workers. This preliminary preparation enables the server to process gradients as they arrive asynchronously, rather than waiting for all workers to complete their computations first, thus eliminating the waiting bottleneck.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If distributed processing is implemented across multiple worker computers, then training speed is improved, but system complexity increases

Engineering Contradiction:
Improvetraining speedVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the word vector training task across multiple worker computers, each handling portions of the corpus. This segmentation enables parallel processing and improves training speed. The server acts as a coordinator that manages the distributed workers, maintaining the overall training process without requiring complex inter-worker communication.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The server serves as an intermediary between multiple worker computers, receiving gradients from workers and updating the central word vector model. This intermediary role simplifies the system architecture by centralizing coordination functions, avoiding the need for complex peer-to-peer communication protocols between workers, and managing the distributed processing overhead.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Loss of time

If asynchronous gradient sending is used, then waiting time is reduced, but gradient synchronization accuracy deteriorates

Engineering Contradiction:
Improvewaiting timeVSAvoidgradient synchronization accuracy
Core Design Contradiction:
Loss of timeVSMeasurement precision

Solution Approach 1:

The server implements a feedback mechanism by accumulating gradients from multiple workers and periodically performing aggregated updates to the word vectors. This feedback loop ensures that despite asynchronous submission, the system maintains synchronization accuracy through regular consolidation of all gradient contributions, balancing speed and precision.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10846483B2Method, device, and apparatus for word vector processing based on clusters
Publication Date: 2020.11.24 ADVANCED NEW TECHNOLOGIES CO LTD
  • US10846483B2 patent drawing
  • US10846483B2 patent drawing
  • US10846483B2 patent drawing

AI summary

A cluster includes a server cluster and a worker computer cluster. Each worker computer included in the worker computer cluster separately obtains a word and at least one context word of the word that are extracted from a corpus. The worker computer obtains word vectors for the word and the at least one context word. The worker computer calculates a gradient according to the word, the at least one context word, and the word vectors. The worker computer asynchronously updates the gradient to a server included in the server cluster. The server updates the word vectors for the word and the at least one context word of the word according to the gradient.