US 11657233
Systems and methods for unifying question answering and text classification via span extraction
Granted 2023-05-23 · Filed 2022-02-16 · Application 17/673,709 · Utility · Kind B2 · Prior publication US 2022/0171943 A1, 2022-06-02
- Assignee as printed
- salesforce.com, inc., San Francisco, CA (US) · PatentsView label: Salesforce.com, Inc.
- Inventors
- Nitish Shirish Keskar, San Bruno, CA (US); Bryan McCann, Palo Alto, CA (US); Richard Socher, Menlo Park, CA (US); Caiming Xiong, Menlo Park, CA (US)
- CPC, current
- G06F40/30; G06F40/284; G06N3/045; G06N3/0499; G06N3/084; G06N3/09; G06N3/096; G06F16/3329; G06N3/08
Abstract
Systems and methods for unifying question answering and text classification via span extraction include a preprocessor for preparing a source text and an auxiliary text based on a task type of a natural language processing task, an encoder for receiving the source text and the auxiliary text from the preprocessor and generating an encoded representation of a combination of the source text and the auxiliary text, and a span-extractive decoder for receiving the encoded representation and identifying a span of text within the source text that is a result of the NLP task. The task type is one of entailment, classification, or regression. In some embodiments, the source text includes one or more of text received as input when the task type is entailment, a list of classifications when the task type is entailment or classification, or a list of similarity options when the task type is regression.
The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.
Claim 1
Independent claim.
1. A system for performing a natural language processing (NLP) task comprising:
- Claim 1, element e1a communication interface receiving an input text for an NLP task; 80–145
- Claim 1, element e2a memory storing a plurality of processor-executable instructions; and 147–212
- Claim 1, element e3a processor executing the instructions to: 218–259
- Claim 1, element e4prepare a source text and an auxiliary text from the input text by appending one or more option outputs of the NLP task to the source text based on a task type of the NLP task, 261–436
- Claim 1, element e5wherein the preparing comprises including a list of similarity options in the source text when the task type is regression; 438–560
- Claim 1, element e6concatenating the appended source text including the one or more option outputs and the auxiliary text into a vector input; 562–684
- Claim 1, element e7encoding, via an encoder, the vector input into an encoded representation; and 686–759
- Claim 1, element e8identifying, by a span-extractive decoder from the encoded representation, a span of text within the appended source text including the one or more option outputs as a result of the NLP task.765–955
8 dependent claims: 2 to 9 (2, 3, 4, 6, 9 on claim 1; 5 on 4; 7, 8 on 6)
Claim 2
Depends on claim 1.
2. The system of claim 1, wherein
- Claim 2, element e1the encoder is a multi-layer attention-based encoder.34–86
Claim 3
Depends on claim 1.
3. The system of claim 1, wherein
- Claim 3, element e1the span-extractive decoder comprises: 34–71
- Claim 3, element e2a first softmax for combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the source text and generating a distribution of possible start tokens for the span of text; 73–342
- Claim 3, element e3a first argument maximum module for selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; 344–496
- Claim 3, element e4a second softmax for combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the source text and generating a distribution of possible end tokens for the span of text; and 498–766
- Claim 3, element e5a second argument maximum module for selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.772–922
Claim 4
Depends on claim 1.
4. The system of claim 1, wherein
- Claim 4, element e1the span of text is identified by: 34–67
- Claim 4, element e2combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the first text string to generate a distribution of possible start tokens for the span of text; 69–321
- Claim 4, element e3selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; 323–439
- Claim 4, element e4combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the first text string and generating a distribution of possible end tokens for the span of text; and 441–694
- Claim 4, element e5selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.700–813
Claim 5
Depends on claim 4.
5. The system of claim 4, wherein
- Claim 5, element e1the processor further executes instructions to use another of the one or more text inputs as part of the source text when the task type is entailment or regression.34–197
Claim 6
Depends on claim 1.
6. The system of claim 1, wherein
- Claim 6, element e1the processor further executes instructions to include a list of classifications in the source text when the task type is entailment or classification.34–184
Claim 7
Depends on claim 6.
7. The system of claim 6, wherein
- Claim 7, element e1the list of classifications is included in one of the one or more text inputs.34–111
Claim 8
Depends on claim 6.
8. The system of claim 6, wherein
- Claim 8, element e1the list of classifications is looked-up based on the task type.34–97
Claim 9
Depends on claim 1.
9. The system of claim 1, wherein
- Claim 9, element e1the processor further executes instructions to generate an embedding for the combination of the start text and the auxiliary text, the embedding including information as to whether an embedded token corresponds to a token in the start text or a token in the auxiliary text.34–306
Claim 10
Independent claim.
10. A method for performing a natural language processing (NLP) task comprising:
- Claim 10, element e1receiving, via a communication interface, an input text for an NLP task; 81–152
- Claim 10, element e2preparing, by a processor, a source text and an auxiliary text from the input text by appending one or more option outputs of the NLP task to the source text based on a task type of the NLP task, 154–348
- Claim 10, element e3wherein the preparing comprises including a list of similarity options in the source text when the task type is regression; 350–472
- Claim 10, element e4concatenating, by the processor, the appended source text including the one or more option outputs and the auxiliary text into a vector input; 474–615
- Claim 10, element e5encoding, via an encoder, the vector input into an encoded representation; and 617–690
- Claim 10, element e6identifying, by a span-extractive decoder from the encoded representation, a span of text within the appended source text including the one or more option outputs as a result of the NLP task.696–886
6 dependent claims: 11 to 16 (11, 12, 13, 14, 15, 16 on claim 10)
Claim 11
Depends on claim 10.
11. The method of claim 10, wherein
- Claim 11, element e1generating the encoded representation comprises using a plurality of attention-based encoding layers.36–136
Claim 12
Depends on claim 10.
12. The method of claim 10, wherein
- Claim 12, element e1identifying the span of text comprises: 36–74
- Claim 12, element e2combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the source text to generate a distribution of possible start tokens for the span of text; 76–322
- Claim 12, element e3selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; 324–440
- Claim 12, element e4combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the source text and generating a distribution of possible end tokens for the span of text; and 442–689
- Claim 12, element e5selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.695–808
Claim 13
Depends on claim 10.
13. The method of claim 10, wherein
- Claim 13, element e1the auxiliary text is prepared by receiving the auxiliary text as an input.36–110
Claim 14
Depends on claim 10.
14. The method of claim 10, wherein
- Claim 14, element e1preparing the source text comprises receiving a portion of the source text as an input when the task type is entailment or regression.36–169
Claim 15
Depends on claim 10.
15. The method of claim 10, wherein
- Claim 15, element e1preparing the source text comprises including a list of classifications in the source text when the task type is entailment or classification, the list of classifications being received as an input or being looked-up based on the task type.36–275
Claim 16
Depends on claim 10.
16. The method of claim 10, further comprising
- Claim 16, element e1generating an embedding for the combination of the start text and the auxiliary text, the embedding including information as to whether an embedded token corresponds to a token in the start text or a token in the auxiliary text.47–274
Claim 17
Independent claim.
17. A non-transitory machine-readable medium comprising executable code which when executed by one or more processors associated with a computing device are adapted to cause the one or more processors to perform a method comprising:
- Claim 17, element e1receiving, via a communication interface, an input text for an NLP task; 233–304
- Claim 17, element e2preparing, by a processor, a source text and an auxiliary text from the input text by appending one or more option outputs of the NLP task to the source text based on a task type of the NLP task, 306–500
- Claim 17, element e3wherein the preparing comprises including a list of similarity options in the source text when the task type is regression; 502–624
- Claim 17, element e4concatenating, by the processor, the appended source text including the one or more option outputs and the auxiliary text into a vector input; 626–767
- Claim 17, element e5encoding, via an encoder, the vector input into an encoded representation; and 769–842
- Claim 17, element e6identifying, by a span-extractive decoder from the encoded representation, a span of text within the appended source text including the one or more option outputs as a result of the NLP task.848–1038
1 dependent claim: 18 (18 on claim 17)
Claim 18
Depends on claim 17.
18. The non-transitory machine-readable medium of claim 17, wherein
- Claim 18, element e1the span of text is identified by: 68–101
- Claim 18, element e2combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the first text string to generate a distribution of possible start tokens for the span of text; 103–355
- Claim 18, element e3selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; 357–473
- Claim 18, element e4combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the first text string and generating a distribution of possible end tokens for the span of text; and 475–728
- Claim 18, element e5selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.734–847
1. A system for performing a natural language processing (NLP) task comprising: a communication interface receiving an input text for an NLP task; a memory storing a plurality of processor-executable instructions; and a processor executing the instructions to: prepare a source text and an auxiliary text from the input text by appending one or more option outputs of the NLP task to the source text based on a task type of the NLP task, wherein the preparing comprises including a list of similarity options in the source text when the task type is regression; concatenating the appended source text including the one or more option outputs and the auxiliary text into a vector input; encoding, via an encoder, the vector input into an encoded representation; and identifying, by a span-extractive decoder from the encoded representation, a span of text within the appended source text including the one or more option outputs as a result of the NLP task.
2. The system of claim 1, wherein the encoder is a multi-layer attention-based encoder.
3. The system of claim 1, wherein the span-extractive decoder comprises: a first softmax for combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the source text and generating a distribution of possible start tokens for the span of text; a first argument maximum module for selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; a second softmax for combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the source text and generating a distribution of possible end tokens for the span of text; and a second argument maximum module for selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.
4. The system of claim 1, wherein the span of text is identified by: combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the first text string to generate a distribution of possible start tokens for the span of text; selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the first text string and generating a distribution of possible end tokens for the span of text; and selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.
5. The system of claim 4, wherein the processor further executes instructions to use another of the one or more text inputs as part of the source text when the task type is entailment or regression.
6. The system of claim 1, wherein the processor further executes instructions to include a list of classifications in the source text when the task type is entailment or classification.
7. The system of claim 6, wherein the list of classifications is included in one of the one or more text inputs.
8. The system of claim 6, wherein the list of classifications is looked-up based on the task type.
9. The system of claim 1, wherein the processor further executes instructions to generate an embedding for the combination of the start text and the auxiliary text, the embedding including information as to whether an embedded token corresponds to a token in the start text or a token in the auxiliary text.
10. A method for performing a natural language processing (NLP) task comprising: receiving, via a communication interface, an input text for an NLP task; preparing, by a processor, a source text and an auxiliary text from the input text by appending one or more option outputs of the NLP task to the source text based on a task type of the NLP task, wherein the preparing comprises including a list of similarity options in the source text when the task type is regression; concatenating, by the processor, the appended source text including the one or more option outputs and the auxiliary text into a vector input; encoding, via an encoder, the vector input into an encoded representation; and identifying, by a span-extractive decoder from the encoded representation, a span of text within the appended source text including the one or more option outputs as a result of the NLP task.
11. The method of claim 10, wherein generating the encoded representation comprises using a plurality of attention-based encoding layers.
12. The method of claim 10, wherein identifying the span of text comprises: combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the source text to generate a distribution of possible start tokens for the span of text; selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the source text and generating a distribution of possible end tokens for the span of text; and selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.
13. The method of claim 10, wherein the auxiliary text is prepared by receiving the auxiliary text as an input.
14. The method of claim 10, wherein preparing the source text comprises receiving a portion of the source text as an input when the task type is entailment or regression.
15. The method of claim 10, wherein preparing the source text comprises including a list of classifications in the source text when the task type is entailment or classification, the list of classifications being received as an input or being looked-up based on the task type.
16. The method of claim 10, further comprising generating an embedding for the combination of the start text and the auxiliary text, the embedding including information as to whether an embedded token corresponds to a token in the start text or a token in the auxiliary text.
17. A non-transitory machine-readable medium comprising executable code which when executed by one or more processors associated with a computing device are adapted to cause the one or more processors to perform a method comprising: receiving, via a communication interface, an input text for an NLP task; preparing, by a processor, a source text and an auxiliary text from the input text by appending one or more option outputs of the NLP task to the source text based on a task type of the NLP task, wherein the preparing comprises including a list of similarity options in the source text when the task type is regression; concatenating, by the processor, the appended source text including the one or more option outputs and the auxiliary text into a vector input; encoding, via an encoder, the vector input into an encoded representation; and identifying, by a span-extractive decoder from the encoded representation, a span of text within the appended source text including the one or more option outputs as a result of the NLP task.
18. The non-transitory machine-readable medium of claim 17, wherein the span of text is identified by: combining a trainable parameter vector associated with start token positions of the span of text and a portion of the encoded representation corresponding to the first text string to generate a distribution of possible start tokens for the span of text; selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; combining a trainable parameter vector associated with end token positions of the span of text and the portion of the encoded representation corresponding to the first text string and generating a distribution of possible end tokens for the span of text; and selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.
The text of each claim as printed, for pasting a claim word for word. The links in the tree view name the same claims and elements.
Status
active
As of 2026-11-17, the USPTO record for US 11657233 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record, leaving out a terminal disclaimer it shows without a date, is 2039-07-22 (20 years from the filing of a parent application on 2019-07-22), a date not yet passed; that disclaimer can only make the term end earlier (data version 20261117.2).
- Basis
- term_20y · terminal_disclaimer (20 years from the filing of a parent application on 2019-07-22, a terminal disclaimer on record without a date, which can only make the term end earlier than the date computed from the other dates)
- Term end
- 2039-07-22 Computed from the dates in the USPTO recordThis date leaves out a terminal disclaimer on record that has no date; that disclaimer can only make the term end earlier.
- Fee lapse
- none on record
- Reinstatement
- none on record; reinstatement_possible: false, not lapsed
- As of
- 2026-11-17
- Data version
- 20261117.2
A fact about the record with its basis and its as-of date, not legal advice.
Citations
References cited on the grant: 2 US patent documents · Cited by: 65 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/11657233/ (needs a free key, as the links under Get this as data)
Family outside the US
Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).
This patent's family on USPTO Global Dossier
Family data from Google Patents Public Datasets, used under CC BY 4.0.
Record JSON
{
"patent_id": "11657233",
"status": "active",
"basis": [
"term_20y",
"terminal_disclaimer"
],
"reinstatement_possible": false,
"reinstatement_basis": "not lapsed",
"expiry_date_estimated": "2039-07-22",
"lapse_date": null,
"reinstated_date": null,
"as_of": "2026-11-17",
"data_version": "20261117.2",
"catalog_data_version": "20261117.2",
"permalink": "https://patentref.io/p/11657233?v=20261117.2",
"next_steps": [
{
"kind": "record",
"url": "https://patentref.io/p/11657233?v=20261117.2",
"audience": "human"
},
{
"kind": "patent",
"url": "https://patentref.io/api/v1/patent/11657233/",
"audience": "agent"
},
{
"kind": "fee_events",
"tool": "uspto_patent_center",
"url": "https://patentcenter.uspto.gov/applications?patentNumber=11657233",
"audience": "agent"
}
]
}
Get this as data
- Full record
/api/v1/patent/11657233/ - Status record
/api/v1/lapse/status/11657233/ - Claim tree
/api/v1/structure/claims/11657233/ - Brief
/api/v1/structure/brief/11657233/
These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.