ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
22
Citations
0
Influential Citations
International Conference on Learning Representations
Venue
2024
Year
Recent studies have shown that Large Language Models (LLMs) struggle to accurately retrieve information and maintain reasoning capabilities when processing long-context inputs. To address these limitations, we propose a finetuning approach utilizing a carefully designed synthetic dataset comprising numerical key-value retrieval tasks. Our experiments on models like GPT-3.5 Turbo and Mistral 7B demonstrate that finetuning LLMs on this dataset significantly improves LLMs' information retrieval and reasoning capabilities in longer-context settings. We present an analysis of the finetuned models, illustrating the transfer of skills from synthetic to real task evaluations (e.g., $10.5\%$ improvement on $20$ documents MDQA at position $10$ for GPT-3.5 Turbo). We also find that finetuned LLMs' performance on general benchmarks remains almost constant while LLMs finetuned on other baseline long-context augmentation data can encourage hallucination (e.g., on TriviaQA, Mistral 7B finetuned on our synthetic data cause no performance drop while other baseline data can cause a drop that ranges from $2.33\%$ to $6.19\%$). Our study highlights the potential of finetuning on synthetic data for improving the performance of LLMs on longer-context tasks.
Large Language Models (LLMs) have become central to AI applications, yet they notoriously struggle with long-context inputs—a critical limitation for tasks like document analysis, multi-hop reasoning, and retrieval-augmented generation. This paper addresses a pressing need: improving LLMs' ability to accurately retrieve and reason over extended contexts without degrading their general capabilities. The authors propose a surprisingly simple but effective solution—finetuning on synthetic numerical key-value retrieval tasks. This approach is significant because it offers a scalable, low-cost method to enhance a fundamental weakness of LLMs, potentially unlocking better performance in real-world long-context scenarios such as legal document review, scientific literature synthesis, and customer support.
The work is particularly timely given the growing deployment of LLMs in production systems where context windows are expanding (e.g., GPT-4 Turbo with 128K tokens). The finding that synthetic data can transfer to real tasks, while avoiding the hallucination pitfalls of other long-context augmentation data, provides a practical path forward for AI practitioners. It also underscores the value of careful data design over brute-force scaling.
This paper has broad implications for AI practitioners deploying LLMs in long-context applications. It provides a cost-effective, reproducible method to enhance retrieval without sacrificing general performance—a common trade-off in finetuning. The use of synthetic data also reduces reliance on expensive human-annotated datasets. Future work could extend this approach to other task types (e.g., multi-hop reasoning, temporal reasoning) and explore scaling to larger models. The findings also caution against naive long-context augmentation, which can introduce hallucination, and advocate for careful data design. Overall, this work advances the practical utility of LLMs in real-world, long-context scenarios.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba