paper-with-me

Papers

Long Context vs. RAG for LLMs: An Evaluation and Revisits

2024-12-27 · Xinze Li, Yixin Cao, Yubo Ma, Aixin Sun

Extending context windows (i.e., Long Context, LC) and using retrievers to selectively access relevant information (i.e., Retrieval-Augmented Generation, RAG) are the two main strategies to enable LLMs to incorporate extremely long external contexts. This paper revisits recent studies on this topic, highlighting their key insights and discrepancies. We then provide a more comprehensive evaluation by filtering out questions answerable without external context, identifying the most effective retrieval methods, and expanding the datasets. We show that LC generally outperforms RAG in question-answering benchmarks, especially for Wikipedia-based questions. Summarization-based retrieval performs comparably to LC, while chunk-based retrieval lags behind. However, RAG has advantages in dialogue-based and general question queries. These insights underscore the trade-offs between RAG and LC strategies, offering guidance for future optimization of LLMs with external knowledge sources. We also provide an in-depth discussion on this topic, highlighting the overlooked importance of context relevance in existing studies.

📄 PDF Abstract BibTeX arXiv:2501.01880

Code (1)

lixinze777/lc_vs_rag 공식 구현

Tasks

Question AnsweringRAGRetrievalRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.

Similar Papers 제목 키워드 기반

In Defense of RAG in the Era of Long-Context Language Models

2024-09-03 · Tan Yu, Anbang Xu, Rama Akkiraju

Overcoming the limited context limitations in early-generation LLMs, retrieval-augmented generation (RAG) has been a reliable solution for context-based answer generation in the past. Recently, the emergence of long-cont…

Answer GenerationRAGRetrievalRetrieval-augmented Generation

Retrieval-Augmented Perception: High-Resolution Image Perception Meets Visual RAG

2025-03-03 · Wenbin Wang, Yongcheng Jing, Liang Ding, Yingjie Wang 외

High-resolution (HR) image perception remains a key challenge in multimodal large language models (MLLMs). To overcome the limitations of existing methods, this paper shifts away from prior dedicated heuristic approaches…

RAGRetrievalRetrieval-augmented Generation

Salute the Classic: Revisiting Challenges of Machine Translation in the Age of Large Language Models

2024-01-16 · Jianhui Pang, Fanghua Ye, Longyue Wang, Dian Yu 외

The evolution of Neural Machine Translation (NMT) has been significantly influenced by six core challenges (Koehn and Knowles, 2017), which have acted as benchmarks for progress in this field. This study revisits these c…

Machine TranslationNMTTranslationWord Alignment

Video World Models with Long-term Spatial Memory

2025-06-05 · Tong Wu, Shuai Yang, Ryan Po, Yinghao Xu 외

Emerging world models autoregressively generate video frames in response to actions, such as camera movements and text prompts, among other control signals. Due to limited temporal context window sizes, these models ofte…

LongIns: A Challenging Long-context Instruction-based Exam for LLMs

2024-06-25 · Shawn Gavin, Tuney Zheng, Jiaheng Liu, Quehry Que 외

The long-context capabilities of large language models (LLMs) have been a hot topic in recent years. To evaluate the performance of LLMs in different scenarios, various assessment benchmarks have emerged. However, as mos…

16k4k