paper-with-me

홈 › Papers

Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generation

2024-04-10 · Thomas Merth, Qichen Fu, Mohammad Rastegari, Mahyar Najibi

Despite the successes of large language models (LLMs), they exhibit significant drawbacks, particularly when processing long contexts. Their inference cost scales quadratically with respect to sequence length, making it expensive for deployment in some real-world text processing applications, such as retrieval-augmented generation (RAG). Additionally, LLMs also exhibit the "distraction phenomenon", where irrelevant context in the prompt degrades output quality. To address these drawbacks, we propose a novel RAG prompting methodology, *superposition prompting*, which can be directly applied to pre-trained transformer-based LLMs *without the need for fine-tuning*. At a high level, superposition prompting allows the LLM to process input documents in parallel *prompt paths*, discarding paths once they are deemed irrelevant. We demonstrate the capability of our method to simultaneously enhance time efficiency across a variety of question-answering benchmarks using multiple pre-trained LLMs. Furthermore, our technique significantly improves accuracy when the retrieved context is large relative the context the model was trained on. For example, our approach facilitates a 93x reduction in compute time while *improving* accuracy by 43% on the NaturalQuestions-Open dataset with the MPT-7B instruction-tuned model over naive RAG.

📄 PDF Abstract BibTeX arXiv:2404.06910

Code (1)

apple/ml-superposition-prompting 공식 구현 pytorch

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 설명 없음
WordPiece 설명 없음
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 Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Weight Decay 설명 없음
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…

Similar Papers 제목 키워드 기반

Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection

2024-05-25 · Yun Zhu, Jia-Chen Gu, Caitlin Sikora, Ho Ko 외

Large language models (LLMs) augmented with retrieval exhibit robust performance and extensive versatility by incorporating external contexts. However, the input length grows linearly in the number of retrieved documents…

Computational EfficiencyRAGRetrievalRetrieval-augmented Generation

Meta-prompting Optimized Retrieval-augmented Generation

2024-07-04 · João Rodrigues, António Branco

Retrieval-augmented generation resorts to content retrieved from external sources in order to leverage the performance of large language models in downstream tasks. The excessive volume of retrieved content, the possible…

Multi-hop Question AnsweringQuestion AnsweringRetrievalRetrieval-augmented Generation+1

Derivation Prompting: A Logic-Based Method for Improving Retrieval-Augmented Generation

2026-05-13 · Ignacio Sastre, Guillermo Moncecchi, Aiala Rosá arxiv

The application of Large Language Models to Question Answering has shown great promise, but important challenges such as hallucinations and erroneous reasoning arise when using these models, particularly in knowledge-int…

Question Answering

Conflict-Aware Soft Prompting for Retrieval-Augmented Generation

2025-08-21 · Eunseong Choi, June Park, Hyeri Lee, Jongwuk Lee arxiv

Retrieval-augmented generation (RAG) enhances the capabilities of large language models (LLMs) by incorporating external knowledge into their input prompts. However, when the retrieved context contradicts the LLM's param…

Expert-Guided Prompting and Retrieval-Augmented Generation for Emergency Medical Service Question Answering

2025-11-14 · Xueren Ge, Sahil Murtaza, Anthony Cortez, Homa Alemzadeh arxiv

Large language models (LLMs) have shown promise in medical question answering, yet they often overlook the domain-specific expertise that professionals depend on, such as the clinical subject areas (e.g., trauma, airway)…

Question Answering