Invention Grant
- Patent Title: Systems and methods for a k-nearest neighbor based mechanism of natural language processing models
-
Application No.: US17090553Application Date: 2020-11-05
-
Publication No.: US12265909B2Publication Date: 2025-04-01
- Inventor: Nazneen Rajani , Tong Niu , Wenpeng Yin
- Applicant: Salesforce, Inc.
- Applicant Address: US CA San Francisco
- Assignee: Salesforce, Inc.
- Current Assignee: Salesforce, Inc.
- Current Assignee Address: US CA San Francisco
- Agency: Haynes and Boone, LLP
- Main IPC: G06N3/08
- IPC: G06N3/08 ; G06F18/10 ; G06F18/214 ; G06F18/2413 ; G06F18/2415 ; G06N3/063

Abstract:
Embodiments described herein adopts a k nearest neighbor (kNN) mechanism over a model's hidden representations to identify training examples closest to a given test example. Specifically, a training set of sequences and a test sequence are received, each of which is mapped to a respective hidden representation vector using a base model. A set of indices for each sequence index that minimizes a distance between the respective hidden state vector and a test hidden state vector is then determined A weighted k-nearest neighbor probability score can then be computed from the set of indices to generate a probability distribution over labels for the test sequence.
Public/Granted literature
- US20210374488A1 SYSTEMS AND METHODS FOR A K-NEAREST NEIGHBOR BASED MECHANISM OF NATURAL LANGUAGE PROCESSING MODELS Public/Granted day:2021-12-02
Information query