IP Library › Granted Patent US 11,409,945
Granted Patent B2
US 11,409,945 · App. 17/027,130 · Granted Aug 9, 2022

Natural language processing using context-specific word vectors

Inventors: Bryan McCann (Menlo Park, CA); Caiming Xiong (Mountain View, CA); Richard Socher (Menlo Park, CA)
Assignee: SALESFORCE.COM, INC.
G06F40/126G06F40/205G06F40/289G06F40/30G06F40/47G06N3/0445G06N3/0454G06N3/08G06F40/44G06F40/58
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,409,945
App. No.
17/027,130
Granted
Aug 9, 2022
Kind
B2
Abstract

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.

Claims (42)

1. A system comprising:

a neural network for performing a first natural language processing task, the neural network comprising:

a plurality of activation function units adapted to respectively apply a feedforward network with a rectified linear function on a plurality of input vector sequences to produce respective activation sequences;

a plurality of encoders adapted to receive the activation sequences and respectively generate a first task specific representation relating to a first input vector sequence of the plurality of input vector sequences and a second task specific representation relating to a second input vector sequence of the plurality of input vector sequences; and

a biattention mechanism adapted to generate conditioning information that indicates interdependent representations relating to the first task specific representation and the second task specific representation.

2. The system of claim 1 , wherein the first input vector sequence comprises a first concatenated word vector and its corresponding context-specific word vector generated from a first word sequence and the second input vector sequence comprises a second concatenated word vector and its corresponding context-specific word vector generated from a second word sequence.

3. The system of claim 1 , wherein the first natural language processing task performed by the neural network is one of sentiment classification and entailment classification.

4. The system of claim 1 , wherein the neural network is trained using a dataset for one of sentiment analysis, question classification, entailment classification, and question answering.

5. The system of claim 2 , further comprising an encoder that is pre-trained on a second natural language processing task, the encoder capable of generating a context-specific word vector for one of the first and second word sequences, the context-specific word vector forming at least a part of one of the first and second input vector sequences.

6. The system of claim 5 , wherein the second natural language processing task is machine-translation.

7. The system of claim 5 , wherein the first natural language processing task is different from the second natural language processing task.

8. The system of claim 1 , wherein adapting by the biattention mechanism comprises:

computing an affinity matrix based on the first and second task specific representations;

extracting, based on the affinity matrix, a first attention weight relating to the first task specific representation and a second attention weight relating to the second task specific representation; and

generating, based on the first and second attention weights, a first context summary and a second context summary to condition the first and second task specific representations.

9. The system of claim 8 , wherein the neural network further comprises:

a first integrator capable of integrating the first context summary to generate a first integrated output; and

a second integrator capable of integrating the second context summary to generate a second integrated output.

10. The system of claim 9 , wherein the neural network further comprises:

a first pool mechanism capable of aggregating the first integrated output to generate a first pooled representation relating to the first task specific representation; and

a second pool mechanism capable of aggregating the second integrated output to generate a second pooled representation relating to the second task specific representation.

11. The system of claim 10 , wherein the neural network further comprises a maxout layer capable of combining the first and second pooled representations to generate a result for the first natural language processing task.

12. A method for performing a first natural language processing task, the method comprising:

executing a plurality of activation function units adapted to respectively apply a feedforward network with a rectified linear function on a plurality of input vector sequences to produce respective activation sequences;

generating, based on the execution of the plurality of activation function units on the plurality of input vector sequences, a first task specific representation relating to a first input vector sequence of the plurality of input vector sequences and a second task specific representation relating to a second input vector sequence of the plurality of input vector sequences; and

computing, based on the first and second task specific representations, an interdependent representation related to the first task specific representation and the second task specific representation.

13. The method of claim 12 , wherein the first input vector sequence comprises a first concatenated word vector and its corresponding context-specific word vector generated from a first word sequence and the second input vector sequence comprises a second concatenated word vector and its corresponding context-specific word vector generated from a second word sequence.

14. The method of claim 12 , wherein the first natural language processing task is one of sentiment classification and entailment classification.

15. The method of claim 13 , further comprising generating, using an encoder that is pre-trained on a second natural language processing task, a context-specific word vector for one of the first and second word sequences, the context-specific word vector forming at least a part of one of the first and second input vector sequences.

16. The method of claim 15 , wherein the first natural language processing task is different from the second natural language processing task.

17. The method of claim 12 , wherein computing the interdependent representation comprises:

computing an affinity matrix based on the first and second task specific representations;

extracting, based on the affinity matrix, a first attention weight relating to the first task specific representation and a second attention weight relating to the second task specific representation; and

generating, based on the first and second attention weights, a first context summary and a second context summary to condition the first and second task specific representations.

18. The method of claim 12 , further comprising:

integrating a first context summary to generate a first integrated output; and

integrating a second context summary to generate a second integrated output.

19. The method of claim 18 , further comprising:

aggregating the first integrated output to generate a first pooled representation relating to the first task specific representation; and

aggregating the second integrated output to generate a second pooled representation relating to the second task specific representation.

20. The method of claim 19 , further comprising:

combining the first and second pooled representations to generate a result for the first natural language processing task.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 10, 2021
From: MCCANN, BRYAN; XIONG, CAIMING; SOCHER, RICHARD
To: SALESFORCE.COM, INC.
Reel/Frame 055213/0071 →
Continuity (4)
Continuation 15982841 · May 17, 2018
Provisional Application 62536959 · Jul 25, 2017
Provisional Application 62508977 · May 19, 2017
Related Publication 20210073459A1 · Mar 11, 2021
Cited By (1)
US 12,694,235