Context-Specific Word Vectors for NLP Transfer Learning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Natural language processing (NLP) models often struggle to understand context, which is crucial for tasks like translation, summarization, and sentiment analysis, as they lack the ability to effectively relate words and consider how context influences a word's meaning.

Innovation Solution

Pre-training a neural network on a context-specific task such as machine translation, generating context-specific word vectors (CoVe) that can be reused in other NLP tasks like classification, question answering, and sentiment analysis, improving their performance by providing contextual understanding.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If pre-trained context-specific word vectors are used, then NLP model performance is improved, but computational complexity and training time increase

Engineering Contradiction:
ImproveNLP model performanceVSAvoidcomputational complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-training the encoder on machine translation tasks before using it for other NLP tasks. The encoder is trained in advance to learn contextual word representations, and these pre-learned parameters are then transferred to downstream tasks such as sentiment analysis and question answering, eliminating the need to train from scratch and improving performance while managing computational complexity.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements universality by designing a single encoder that can perform multiple NLP tasks through transfer learning. The same pre-trained encoder used for machine translation is reused across different tasks including sentiment analysis, question answering, and text classification, making the computational model multi-functional and reducing overall system complexity.

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

2Loss of information

If pre-training on machine translation is performed, then contextual understanding is improved, but training time and data processing requirements increase

Engineering Contradiction:
Improvecontextual understandingVSAvoidtraining time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The encoder is pre-trained in advance on machine translation corpora to learn contextual relationships between words. This preliminary training phase captures rich contextual information that is then transferred to downstream tasks, reducing the time needed for task-specific training while maintaining high contextual understanding.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent copies the pre-trained encoder parameters from the machine translation task to downstream NLP tasks. Instead of re-learning contextual representations from scratch for each task, the system copies the already-learned contextual knowledge encoded in the encoder weights, significantly reducing training time while preserving contextual understanding.

Inventive Principle:
Principle #26Copying

3Reliability

If context-specific word vectors are generated for multiple tasks, then task performance is improved, but system complexity and resource requirements increase

Engineering Contradiction:
Improvetask performanceVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent creates a universal encoder that serves multiple NLP tasks through transfer learning. The same pre-trained encoder model is applied across different tasks including sentiment analysis, question answering, and text classification, eliminating the need for separate context-specific models for each task and reducing overall system complexity while maintaining high performance.

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

Solution Approach 2:

The system performs preliminary training on a source task (machine translation) to learn general contextual representations, then reuses this pre-trained model for multiple downstream tasks. This approach avoids the complexity of training separate models for each task while achieving high performance through transfer learning.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11409945B2Natural language processing using context-specific word vectors
Publication Date: 2022.08.09 SALESFORCE INC
  • US11409945B2 patent drawing
  • US11409945B2 patent drawing
  • US11409945B2 patent drawing

AI summary

A system is provided for natural language processing. In some embodiments, the system includes an encoder for generating context-specific word vectors for at least one input sequence of words. The encoder is pre-trained using training data for performing a first natural language processing task. A neural network performs a second natural language processing task on the at least one input sequence of words using the context-specific word vectors. The first natural language process task is different from the second natural language processing task and the neural network is separately trained from the encoder. In some embodiments, the first natural processing task can be machine translation, and the second natural processing task can be one of sentiment analysis, question classification, entailment classification, and question answering.