Systems and methods for text classification using label modular prompts
AssigneeSalesforce, Inc.
InventorsHailin CHEN, Amrita SAHA, Shafiq Rayhan JOTY, Chu Hong HOI
Life of this patent
Estimating the term…
Loading patent…
AssigneeSalesforce, Inc.
InventorsHailin CHEN, Amrita SAHA, Shafiq Rayhan JOTY, Chu Hong HOI
Estimating the term…
Embodiments described herein provide label modular prompts for a text classification task. A label modular prompt generator may determine a set of class labels of interest from a set of possible class labels associated with an input text sequence. The label modular prompt generator may generate a plurality of label prompts based on the set of class labels of interest. A first class label and a sequence of soft tokens that are generated based on representations associated with the first class label are concatenated into a first label prompt. The soft tokens are tunable using a plurality of parameters of the label modular prompt generator. The label modular prompt generator may provide an input of the input text sequence prepended with the plurality of label prompts to a pretrained language model. The pretrained language model may generate a task output in response to the input text sequence.
A method of providing label modular prompts for a text classification task, the method comprising:
A non-transitory machine-readable medium comprising a plurality of machine-readable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform a method comprising:
A system, comprising:
Dependencies are inferred from the claim text.