US 11281863
Systems and methods for unifying question answering and text classification via span extraction
Granted 2022-03-22 · Filed 2019-07-22 · Application 16/518,905 · Utility · Kind B2 · Prior publication US 2020/0334334 A1, 2020-10-22
- 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 preprocessor for preparing a source text and an auxiliary text based on a task type of the NLP task, the task type being entailment, classification, or regression, and including a list of classifications in the source text when the task type is entailment or classification; 80–355
- Claim 1, element e2an 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 357–542
- Claim 1, element e3a 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.548–701
8 dependent claims: 2 to 9 (2, 3, 4, 6, 7, 8, 9 on claim 1; 5 on 4)
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.35–87
Claim 3
Depends on claim 1.
3. The system of claim 1 , wherein
- Claim 3, element e1the span-extractive decoder comprises: 35–72
- 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; 74–343
- 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; 345–497
- 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 499–767
- 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.773–923
Claim 4
Depends on claim 1.
4. The system of claim 1 , wherein
- Claim 4, element e1the preprocessor further: 35–59
- Claim 4, element e2receives one or more text inputs; and 61–93
- Claim 4, element e3uses one of the one or more text inputs as the auxiliary text.99–160
Claim 5
Depends on claim 4.
5. The system of claim 4 , wherein
- Claim 5, element e1the preprocessor further uses another of the one or more text inputs as part of the source text when the task type is entailment or regression.35–177
Claim 6
Depends on claim 1.
6. The system of claim 1 , wherein
- Claim 6, element e1the list of classifications is included in one of the one or more text inputs.35–112
Claim 7
Depends on claim 1.
7. The system of claim 1 , wherein
- Claim 7, element e1the list of classifications is looked-up based on the task type.35–98
Claim 8
Depends on claim 1.
8. The system of claim 1 , wherein
- Claim 8, element e1the preprocessor further includes a list of similarity options in the source text when the task type is regression.35–149
Claim 9
Depends on claim 1.
9. The system of claim 1 , wherein
- Claim 9, element e1the preprocessor further generates 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.35–286
Claim 10
Independent claim.
10. A method for performing an natural language processing (NLP) task comprising:
- Claim 10, element e1preparing, using a preprocessing module, a source text and an auxiliary text based on a task type of the NLP task, the task type being entailment, classification, or regression by including a list of similarity options in the source text when the task type is regression; 82–352
- Claim 10, element e2generating, using an encoding module, an encoded representation of a combination of the source text and the auxiliary text; and 354–476
- Claim 10, element e3identifying, using a span-extractive decoding module, a span of text within the source text that is a result of the NLP task.482–606
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.37–137
Claim 12
Depends on claim 10.
12. The method of claim 10 , wherein
- Claim 12, element e1identifying the span of text comprises: 37–75
- 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; 77–323
- 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; 325–441
- 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 443–690
- 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.696–809
Claim 13
Depends on claim 10.
13. The method of claim 10 , wherein
- Claim 13, element e1preparing the auxiliary text comprises receiving the auxiliary text as an input.37–116
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.37–170
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.37–276
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.48–275
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 e1preparing a first text string and a second text string based on a task type of an NLP task, the task type being entailment, classification, or regression; 233–386
- Claim 17, element e2generating an encoded representation of a combination of the first text string and the second text string; 388–493
- Claim 17, element e3identifying a span of text within the first text string that is a result of the NLP task by: 495–586
- Claim 17, element e4combining 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; 588–840
- Claim 17, element e5selecting a start token for the span of text based on the distribution of possible start tokens for the span of text; 842–958
- Claim 17, element e6combining 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 960–1213
- Claim 17, element e7selecting an end token for the span of text based on the distribution of possible end tokens for the span of text.1219–1332
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 e1preparing the first text string comprises one or more of: 69–125
- Claim 18, element e2receiving a portion of the first text string as an input when the task type is entailment or regression; 127–230
- Claim 18, element e3including a list of classifications in the first text string 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; or 232–441
- Claim 18, element e4including a list of similarity options in the first text string when the task type is regression.446–542
1. A system for performing a natural language processing (NLP) task comprising: a preprocessor for preparing a source text and an auxiliary text based on a task type of the NLP task, the task type being entailment, classification, or regression, and including a list of classifications in the source text when the task type is entailment or classification; 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.
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 preprocessor further: receives one or more text inputs; and uses one of the one or more text inputs as the auxiliary text.
5. The system of claim 4 , wherein the preprocessor further uses 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 list of classifications is included in one of the one or more text inputs.
7. The system of claim 1 , wherein the list of classifications is looked-up based on the task type.
8. The system of claim 1 , wherein the preprocessor further includes a list of similarity options in the source text when the task type is regression.
9. The system of claim 1 , wherein the preprocessor further generates 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 an natural language processing (NLP) task comprising: preparing, using a preprocessing module, a source text and an auxiliary text based on a task type of the NLP task, the task type being entailment, classification, or regression by including a list of similarity options in the source text when the task type is regression; generating, using an encoding module, an encoded representation of a combination of the source text and the auxiliary text; and identifying, using a span-extractive decoding module, a span of text within the source text that is 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 preparing the auxiliary text comprises 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: preparing a first text string and a second text string based on a task type of an NLP task, the task type being entailment, classification, or regression; generating an encoded representation of a combination of the first text string and the second text string; identifying a span of text within the first text string that is a result of the NLP task 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.
18. The non-transitory machine-readable medium of claim 17 , wherein preparing the first text string comprises one or more of: receiving a portion of the first text string as an input when the task type is entailment or regression; including a list of classifications in the first text string 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; or including a list of similarity options in the first text string when the task type is regression.
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 11281863 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2040-04-02 (20 years from filing, plus 255 days of patent term adjustment), a date not yet passed (data version 20261117.2).
- Basis
- term_20y · pta_days:255 (20 years from filing, plus 255 days of patent term adjustment)
- Term end
- 2040-04-02 Computed from the dates in the USPTO record
- 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: 68 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/11281863/ (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": "11281863",
"status": "active",
"basis": [
"term_20y",
"pta_days:255"
],
"reinstatement_possible": false,
"reinstatement_basis": "not lapsed",
"expiry_date_estimated": "2040-04-02",
"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/11281863?v=20261117.2",
"next_steps": [
{
"kind": "record",
"url": "https://patentref.io/p/11281863?v=20261117.2",
"audience": "human"
},
{
"kind": "patent",
"url": "https://patentref.io/api/v1/patent/11281863/",
"audience": "agent"
},
{
"kind": "fee_events",
"tool": "uspto_patent_center",
"url": "https://patentcenter.uspto.gov/applications?patentNumber=11281863",
"audience": "agent"
}
]
}
Get this as data
- Full record
/api/v1/patent/11281863/ - Status record
/api/v1/lapse/status/11281863/ - Claim tree
/api/v1/structure/claims/11281863/ - Brief
/api/v1/structure/brief/11281863/
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.