Research map / Large language models / Language, safety and interpretability
kNN-CM: A Non-parametric Inference-Phase Adaptation of Parametric Text Classifiers
Rishabh Bhardwaj, Yingting Li, Navonil Majumder, Bo Cheng, Soujanya Poria
Singapore University of Technology and Design · Beijing University of Posts and Telecommunications
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
5improved
4no clear effect
4hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add kNN search over training representations at inference | RoBERTa-base adapter classifier · SuperGLUE COPA | accuracy: 56.00 -> 64.00 | Improved |
| add kNN search at inference | RoBERTa-base adapter classifier · SuperGLUE WiC | accuracy: 69.12 -> 69.28 | No clear effect |
| add kNN search at inference | RoBERTa-base adapter classifier · SuperGLUE WSC | accuracy: 63.46 -> 63.46 | No clear effect |
| add kNN search at inference | RoBERTa-base adapter classifier · ANLI test | accuracy: 41.84 -> 44.72 | Improved |
| add kNN search at inference | DeBERTa-large classifier · QA datasets, instance accuracy | accuracy: e.g. CQA-2 57.97 -> 60.84 | Improved |
| add kNN search at inference | DeBERTa-large classifier · QASC binary accuracy | accuracy: 91.27 -> 91.10 | Hurt |
| add kNN search at inference | RoBERTa-base adapter classifier · Restaurant | accuracy: 88.01 -> 88.19 | No clear effect |
| add kNN search at inference | RoBERTa-base adapter classifier · AXg out-of-domain | accuracy: 50.84 -> 50.28 (F1 37.80 -> 39.37) | Hurt |
| add kNN search at inference | ANLI classifier · AXb out-of-domain | F1: 49.30 -> 55.58 | Improved |
| add kNN search at inference | RoBERTa-base adapter classifier · ANLI low-resource 20% data | accuracy: 33.37 -> 35.38 | Improved |
| merge ANLI datastore with CB datastore | kNN-CM ANLI to CB adaptation · CB | accuracy | Hurt |
| weight neighbors by exp(-distance) instead of simple frequency (ablation) | kNN-CM · QASC validation | instance accuracy: 75.92 -> 75.81 (beta=2) | Hurt |
Closest papers by meaning
- Efficient Nearest Neighbor Language Models (EMNLP 2021 · similarity 0.89)
- Nearest Neighbor Zero-Shot Inference (EMNLP 2022 · similarity 0.88)
- Why do Nearest Neighbor Language Models Work? (ICML 2023 · similarity 0.87)
- Generalization through Memorization: Nearest Neighbor Language Models (ICLR 2020 · similarity 0.86)
- Latent-Variable Generative Models for Data-Efficient Text Classification (EMNLP 2019 · similarity 0.84)
- Nearest Neighbor Speculative Decoding for LLM Generation and Attribution (NeurIPS 2024 · similarity 0.83)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
