paper-with-me

홈 › Papers

Reproducibility Report: Test-Time Training on Nearest Neighbors for Large Language Models

2025-11-16 · Boyang Zhou, Johan Lindqvist, Lindsey Li arxiv

We reproduce the central claims of Test-Time Training on Nearest Neighbors for Large Language Models (Hardt and Sun, 2024), which proposes adapting a language model at inference time by fine-tuning on retrieved nearest-neighbor sequences. Using pretrained RoBERTa embeddings indexed with Faiss, we retrieve 20 neighbors per test input and apply one gradient update per neighbor across GPT-2 (117M, 774M), GPT-Neo (1.3B), and R1-Distilled-Qwen2.5-1.5B. Our experiments confirm that test-time training significantly reduces perplexity and bits-per-byte metrics across diverse domains from The Pile, with the largest improvements in structured or specialized datasets such as GitHub and EuroParl. We further validate that models not pretrained on The Pile benefit more from this adaptation than models already trained on similar data, allowing smaller models to approach the performance of larger ones. Due to infrastructure limitations, we introduce a memory-efficient retrieval implementation that loads only required line offsets rather than entire files, reducing RAM requirements from over 128 GB per server to 32 GB. We also extend the original study by evaluating R1-Distilled-Qwen2.5-1.5B, showing that test-time training yields consistent gains even for modern reasoning-optimized architectures. Overall, our results support the robustness and generality of nearest-neighbor test-time training while highlighting practical considerations for reproducing large-scale retrieval-augmented adaptation.

📄 PDF Abstract BibTeX arXiv:2511.16691

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Revisiting RaBitQ and TurboQuant: A Symmetric Comparison of Methods, Theory, and Experiments

2026-04-21 · Jianyang Gao, Yutong Gou, Yuexuan Xu, Jifan Shi 외 arxiv

This technical note revisits the relationship between RaBitQ and TurboQuant under a unified comparison framework. We compare the two methods in terms of methodology, theoretical guarantees, and empirical performance, usi…

A Revisit of Hashing Algorithms for Approximate Nearest Neighbor Search

2016-12-22 · Deng Cai

Approximate Nearest Neighbor Search (ANNS) is a fundamental problem in many areas of machine learning and data mining. During the past decade, numerous hashing algorithms are proposed to solve this problem. Every propose…

Reproducibility Study of ”Label-Free Explainability for Unsupervised Models”

2023-09-21 · NeurIPS 2023 11

In this work, we present our reproducibility study of "Label-Free Explainability for Unsupervised Models", a paper that introduces two post‐hoc explanation techniques for neural networks: (1) label‐free feature importanc…

On the Replicability and Reproducibility of Deep Learning in Software Engineering

2020-06-25 · Chao Liu, Cuiyun Gao, Xin Xia, David Lo 외

Deep learning (DL) techniques have gained significant popularity among software engineering (SE) researchers in recent years. This is because they can often solve many SE challenges without enormous manual feature engine…

Feature Engineering

Adaptive $k$ Nearest Neighbors Classifier via Granular Ball Computing

2026-08-13 · Xiaoyu Lian, Shuyin Xia, Hongxuan He, Lifeng Shen 외 arxiv

The $k$-Nearest Neighbor~(KNN) algorithm is widely used across various tasks. The selection of the $k$ value is a key issue because it significantly impacts performance. In this paper, an adaptive and efficient KNN appro…