Back to Arena
kNN-LM
by Stanford / Facebook AI Research (Khandelwal et al.)
System Card
OrganizationStanford / Facebook AI Research (Khandelwal et al.)
Released2019-11
Architectureexternal-memory-network / Linearly interpolated kNN over LM embedding space
DetailsInterpolates pretrained LM predictions with a kNN distribution over the LM's embedding space. Nearest neighbors drawn from any text collection enable domain adaptation without retraining.
Parameters—
Domainrag-retrievallifelong-learning
Open SourceYes
PaperView Paper
CodeRepository
iclr-2020nearest-neighbordatastorememorization
Capability Profile
Benchmark Scores
6 of 14 benchmarksData Transparency:6 estimated
Long-Context Retrieval1/5
Multi-Turn Recall2/2
Cross-Session Memory1/1
Agent Task Memory0/1
AgentBench-Mem
no dataPersonalization0/1
PerLTQA
no dataFactuality / Grounding0/1
RAGAS
no data