{ "pdf_info": [ { "para_blocks": [ { "bbox": [ 89, 72, 505, 106 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 89, 72, 505, 106 ], "spans": [ { "bbox": [ 89, 72, 505, 106 ], "type": "text", "content": "Accelerating Adaptive Retrieval Augmented Generation via Instruction-Driven Representation Reduction of Retrieval Overlaps" } ] } ], "index": 0 }, { "bbox": [ 148, 114, 449, 143 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 148, 114, 449, 143 ], "spans": [ { "bbox": [ 148, 114, 449, 143 ], "type": "text", "content": "Jie Ou" }, { "bbox": [ 148, 114, 449, 143 ], "type": "inline_equation", "content": "^{1}" }, { "bbox": [ 148, 114, 449, 143 ], "type": "text", "content": ", Jinyu Guo" }, { "bbox": [ 148, 114, 449, 143 ], "type": "inline_equation", "content": "^{1*}" }, { "bbox": [ 148, 114, 449, 143 ], "type": "text", "content": ", Shuaihong Jiang" }, { "bbox": [ 148, 114, 449, 143 ], "type": "inline_equation", "content": "^{1}" }, { "bbox": [ 148, 114, 449, 143 ], "type": "text", "content": ", Zhaokun Wang" }, { "bbox": [ 148, 114, 449, 143 ], "type": "inline_equation", "content": "^{1}" }, { "bbox": [ 148, 114, 449, 143 ], "type": "text", "content": ", Libo Qin" }, { "bbox": [ 148, 114, 449, 143 ], "type": "inline_equation", "content": "^{2}" }, { "bbox": [ 148, 114, 449, 143 ], "type": "text", "content": ", Shunyu Yao" }, { "bbox": [ 148, 114, 449, 143 ], "type": "inline_equation", "content": "^{3}" }, { "bbox": [ 148, 114, 449, 143 ], "type": "text", "content": ", Wenhong Tian" }, { "bbox": [ 148, 114, 449, 143 ], "type": "inline_equation", "content": "^{1}" } ] } ], "index": 1 }, { "bbox": [ 174, 143, 422, 185 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 174, 143, 422, 185 ], "spans": [ { "bbox": [ 174, 143, 422, 185 ], "type": "text", "content": "1 School of Information and Software Engineering, University of Electronic Science and Technology of China 2 Central South University" } ] } ], "index": 2 }, { "bbox": [ 110, 185, 485, 200 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 110, 185, 485, 200 ], "spans": [ { "bbox": [ 110, 185, 485, 200 ], "type": "text", "content": "3 Big data and artificial intelligent institute, China Telecom Research Institute" } ] } ], "index": 3 }, { "bbox": [ 155, 219, 202, 232 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 155, 219, 202, 232 ], "spans": [ { "bbox": [ 155, 219, 202, 232 ], "type": "text", "content": "Abstract" } ] } ], "index": 4 }, { "bbox": [ 84, 241, 274, 650 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 241, 274, 650 ], "spans": [ { "bbox": [ 84, 241, 274, 650 ], "type": "text", "content": "Retrieval-augmented generation (RAG) has emerged as a pivotal method for expanding the knowledge of large language models. To handle complex queries more effectively, researchers developed Adaptive-RAG (A-RAG) to enhance the generated quality through multiple interactions with external knowledge bases. Despite its effectiveness, A-RAG exacerbates the pre-existing efficiency challenges inherent in RAG, which are attributable to its reliance on multiple iterations of generation. Existing A-RAG approaches process all retrieved contents from scratch. However, they ignore the situation where there is a significant overlap in the content of the retrieval results across rounds. The overlapping content is redundantly represented, which leads to a large proportion of repeated computations, thus affecting the overall efficiency. To address this issue, this paper introduces a model-agnostic approach that can be generally applied to A-RAG methods, which is dedicated to reducing the redundant representation process caused by the overlapping of retrieval results. Specifically, we use cache access and parallel generation to speed up the prefetching and decoding stages respectively. Additionally, we also propose an instruction-driven module to further guide the model to more effectively attend to each part of the content in a more suitable way for LLMs. Experiments show that our approach achieves 2.79 and 2.33 times significant acceleration on average for prefetching and decoding respectively while maintaining equal generation quality." } ] } ], "index": 5 }, { "bbox": [ 68, 657, 155, 670 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 657, 155, 670 ], "spans": [ { "bbox": [ 68, 657, 155, 670 ], "type": "text", "content": "1 Introduction" } ] } ], "index": 6 }, { "bbox": [ 68, 679, 181, 690 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 68, 679, 181, 690 ], "spans": [ { "bbox": [ 68, 679, 181, 690 ], "type": "text", "content": "Work smarter, not harder." } ] } ], "index": 7 }, { "bbox": [ 173, 694, 289, 707 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 173, 694, 289, 707 ], "spans": [ { "bbox": [ 173, 694, 289, 707 ], "type": "text", "content": "Allan F. Mogensen, 1930s" } ] } ], "index": 8 }, { "bbox": [ 67, 720, 291, 747 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 720, 291, 747 ], "spans": [ { "bbox": [ 67, 720, 291, 747 ], "type": "text", "content": "Large Language Models (LLMs) (e.g., LLaMA2, PaLM, and GPT-4 (Touvron et al., 2023; Anil" } ] } ], "index": 9 }, { "bbox": [ 67, 753, 281, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 753, 281, 775 ], "spans": [ { "bbox": [ 67, 753, 281, 775 ], "type": "text", "content": "*Corresponding author, Email: guojinyu@uestc.edu.cn \nOur code: https://github.com/oujieww/idrfast" } ] } ], "index": 10 }, { "type": "image", "bbox": [ 334, 217, 509, 302 ], "blocks": [ { "bbox": [ 317, 261, 332, 272 ], "lines": [ { "bbox": [ 317, 261, 332, 272 ], "spans": [ { "bbox": [ 317, 261, 332, 272 ], "type": "text", "content": "(a)" } ] } ], "index": 11, "angle": 0, "type": "image_caption" }, { "bbox": [ 334, 217, 509, 302 ], "lines": [ { "bbox": [ 334, 217, 509, 302 ], "spans": [ { "bbox": [ 334, 217, 509, 302 ], "type": "image", "image_path": "390f0ae80858cd2fab12a3bc1bf9bdb2741f46548b9df0f67530e2f667c9f27f.jpg" } ] } ], "index": 12, "angle": 0, "type": "image_body" } ], "index": 12 }, { "type": "image", "bbox": [ 336, 305, 508, 343 ], "blocks": [ { "bbox": [ 336, 305, 508, 343 ], "lines": [ { "bbox": [ 336, 305, 508, 343 ], "spans": [ { "bbox": [ 336, 305, 508, 343 ], "type": "image", "image_path": "da63956288b7350a601b9546f34ae5fdbe9843c21da359bd1ac9351bbff84740.jpg" } ] } ], "index": 14, "angle": 0, "type": "image_body" } ], "index": 14 }, { "type": "image", "bbox": [ 336, 343, 507, 380 ], "blocks": [ { "bbox": [ 320, 361, 332, 372 ], "lines": [ { "bbox": [ 320, 361, 332, 372 ], "spans": [ { "bbox": [ 320, 361, 332, 372 ], "type": "text", "content": "(b)" } ] } ], "index": 13, "angle": 0, "type": "image_caption" }, { "bbox": [ 336, 343, 507, 380 ], "lines": [ { "bbox": [ 336, 343, 507, 380 ], "spans": [ { "bbox": [ 336, 343, 507, 380 ], "type": "image", "image_path": "c29597be856482c2e1e83a05a0d318f8f6cf16890eaefaab160a8923a24dc950.jpg" } ] } ], "index": 15, "angle": 0, "type": "image_body" } ], "index": 15 }, { "type": "image", "bbox": [ 336, 380, 508, 428 ], "blocks": [ { "bbox": [ 336, 380, 508, 428 ], "lines": [ { "bbox": [ 336, 380, 508, 428 ], "spans": [ { "bbox": [ 336, 380, 508, 428 ], "type": "image", "image_path": "1dd10a71ca2292d40ed8e8a247d21f1826910670a1cbc10f2538dbb8b504bc1b.jpg" } ] } ], "index": 16, "angle": 0, "type": "image_body" }, { "bbox": [ 302, 439, 526, 500 ], "lines": [ { "bbox": [ 302, 439, 526, 500 ], "spans": [ { "bbox": [ 302, 439, 526, 500 ], "type": "text", "content": "Figure 1: (a) The pipeline of A-RAG. (b) Analysis of document overlap between first and later retrievals (rounds 2-3) using 1000 2WikiMultihopQA samples, where Q1, Median, and Q3 represent the 25th, 50th, and 75th percentiles of document overlap ratios respectively." } ] } ], "index": 17, "angle": 0, "type": "image_caption" } ], "index": 16 }, { "bbox": [ 302, 528, 526, 704 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 528, 526, 704 ], "spans": [ { "bbox": [ 302, 528, 526, 704 ], "type": "text", "content": "et al., 2023; Achiam et al., 2023)) have demonstrated remarkable capabilities across various natural language processing tasks. To address the growing demand for knowledge-intensive and factually grounded responses, Retrieval-Augmented Generation (RAG) has emerged as a promising paradigm to mitigate the inherent knowledge limitations of LLMs (Lewis et al., 2020; Borgeaud et al., 2022; Ram et al., 2023; Jiang et al., 2023; Asai et al.; Gao et al., 2023; Gupta et al., 2024). It enhances the performance by retrieving relevant information from external knowledge base to generate contextually appropriate and evidence-based responses." } ] } ], "index": 18 }, { "bbox": [ 302, 708, 526, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 708, 526, 775 ], "spans": [ { "bbox": [ 302, 708, 526, 775 ], "type": "text", "content": "Conventional RAG interacts with the external knowledge bases once and combines the retrieved documents with the query as input to LLMs, this can also be called single-round RAG. Nevertheless, single-round RAG encounters challenges in han" } ] } ], "index": 19 } ], "discarded_blocks": [ { "bbox": [ 282, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 282, 780, 312, 791 ], "spans": [ { "bbox": [ 282, 780, 312, 791 ], "type": "text", "content": "26983" } ] } ], "index": 20 }, { "bbox": [ 131, 795, 463, 819 ], "type": "footer", "angle": 0, "lines": [ { "bbox": [ 131, 795, 463, 819 ], "spans": [ { "bbox": [ 131, 795, 463, 819 ], "type": "text", "content": "Findings of the Association for Computational Linguistics: ACL 2025, pages 26983-27000 July 27 - August 1, 2025 ©2025 Association for Computational Linguistics" } ] } ], "index": 21 } ], "page_size": [ 595, 841 ], "page_idx": 0 }, { "para_blocks": [ { "bbox": [ 69, 71, 291, 300 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 69, 71, 291, 300 ], "spans": [ { "bbox": [ 69, 71, 291, 300 ], "type": "text", "content": "dling complex user inquiries, as it is difficult to extract sufficient information by a single interaction. Consequently, an increasing number of researchers have begun to focus on and propose Adaptive-RAG (A-RAG) (Borgeaud et al., 2022; Ram et al., 2023; Mallen et al., 2023; Asai et al.; Trivedi et al., 2023; Jiang et al., 2023; Zhao et al., 2023; Yang et al., 2023b; Su et al., 2024; Zhang et al., 2024; Li et al.; Yao et al., 2024; Jeong et al., 2024; Wang et al., 2024a). Figure 1(a) illustrates the process of A-RAG, which dynamically determines whether to continue retrieval and adjusts the retrieval content based on the quality of the generated responses. Through iterative interactions with external knowledge bases, A-RAG obtains more comprehensive and valuable information to generate accurate and comprehensive answers." } ] } ], "index": 0 }, { "bbox": [ 69, 301, 291, 530 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 69, 301, 291, 530 ], "spans": [ { "bbox": [ 69, 301, 291, 530 ], "type": "text", "content": "Although A-RAG enhances the performance, it further exacerbates the inherent efficiency problems of the RAG due to external interactions and increased computation. Within its post-retrieval generation phase, existing methods process all retrieved contents from scratch. However, they overlooked a situation where, during a single A-RAG process, the high similarity among multiple rounds of queries results in significant overlap in the content of the retrieved results across these rounds, especially between adjacent rounds. Figure 1(b) shows the overlap ratio of documents between rounds with different settings for the number of retrieved documents. These overlapping contents are redundantly represented in each round, which leads to a large proportion of repeated computations, thereby affecting the overall efficiency." } ] } ], "index": 1 }, { "bbox": [ 69, 532, 291, 774 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 69, 532, 291, 774 ], "spans": [ { "bbox": [ 69, 532, 291, 774 ], "type": "text", "content": "To tackle this issue, we propose Instruction-Driven Representation Reduction " }, { "bbox": [ 69, 532, 291, 774 ], "type": "inline_equation", "content": "(\\mathbf{IDR}_2)" }, { "bbox": [ 69, 532, 291, 774 ], "type": "text", "content": ", a model-agnostic approach widely applicable to the A-RAG methods. It aims to improve the efficiency of A-RAG by eliminating repetitive representations of overlapping content and redundant autoregressive representation rounds. Concretely, we leverage representation reduction techniques in both the prefilling and decoding processes of the generation phase. During prefilling, we propose the Cross-Iteration Cache Sharing (CICS) module, which establishes a shared memory repository for document representations. It enables subsequent processing iterations to bypass repetitive computations through cached intermediate results, thereby reducing computational overhead for overlapping content. In addition, to further direct the model to more effectively attend to the various parts of the content" } ] } ], "index": 2 }, { "bbox": [ 305, 71, 526, 273 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 305, 71, 526, 273 ], "spans": [ { "bbox": [ 305, 71, 526, 273 ], "type": "text", "content": "after prefilling, we introduce the Instruction-driven Dedduplication Guidance Reinforcement (IDGR) module. It leverages the instruction-following capabilities of LLMs to implement context-aware filtration, prioritizing semantically relevant cached information while suppressing redundant content through explicit linguistic guidance in a more suitable way for LLMs. In the decoding process, we propose a novel Information-Guided Parallel Generation (IGPG) module, which leverages the correlation between retrieved documents and the generated results. By integrating phrasal fragments as inputs at each autoregressive step, IGPG enables parallel generation. It reduces the autoregressive representation rounds to achieve acceleration." } ] } ], "index": 3 }, { "bbox": [ 305, 275, 526, 408 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 305, 275, 526, 408 ], "spans": [ { "bbox": [ 305, 275, 526, 408 ], "type": "text", "content": "We extensively evaluate our proposed method on multiple datasets. The experimental results show that our " }, { "bbox": [ 305, 275, 526, 408 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 305, 275, 526, 408 ], "type": "text", "content": " significantly reduces the representation process, which achieves 2.79 and 2.33 times acceleration for prefilling and decoding, consequently accelerating the entire A-RAG workflow by 2.0 times on average across various A-RAG approaches while maintaining the performance of generation. In summary, our contributions are mainly three-fold:" } ] } ], "index": 4 }, { "bbox": [ 312, 415, 526, 699 ], "type": "list", "angle": 0, "index": 8, "blocks": [ { "bbox": [ 312, 415, 526, 522 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 312, 415, 526, 522 ], "spans": [ { "bbox": [ 312, 415, 526, 522 ], "type": "text", "content": "1. We propose " }, { "bbox": [ 312, 415, 526, 522 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 312, 415, 526, 522 ], "type": "text", "content": ", an acceleration approach for A-RAG based on representation reduction techniques. It eliminates repetitive representations during the prefilling process and reduces autoregressive representation redundancy in the decoding phase, thereby speeding up the entire A-RAG workflow almost without performance loss." } ] } ], "index": 5 }, { "bbox": [ 312, 531, 526, 624 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 312, 531, 526, 624 ], "spans": [ { "bbox": [ 312, 531, 526, 624 ], "type": "text", "content": "2. We develop the Instruction-driven Dedduplication Guidance Reinforcement module, which leverages the instruction-following capabilities of LLMs to further direct the model to more effectively attend to the various parts of the content after prefilling in a more suitable way for LLMs." } ] } ], "index": 6 }, { "bbox": [ 312, 633, 526, 699 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 312, 633, 526, 699 ], "spans": [ { "bbox": [ 312, 633, 526, 699 ], "type": "text", "content": "3. Experimental results demonstrate that our approach significantly enhances the efficiency of various A-RAG methods while exhibiting robust adaptability across diverse scenarios and various LLM scales." } ] } ], "index": 7 } ], "sub_type": "text" }, { "bbox": [ 305, 710, 400, 723 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 305, 710, 400, 723 ], "spans": [ { "bbox": [ 305, 710, 400, 723 ], "type": "text", "content": "2 Related Works" } ] } ], "index": 9 }, { "bbox": [ 305, 731, 400, 743 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 305, 731, 400, 743 ], "spans": [ { "bbox": [ 305, 731, 400, 743 ], "type": "text", "content": "2.1 Adaptive-RAG" } ] } ], "index": 10 }, { "bbox": [ 305, 749, 524, 774 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 305, 749, 524, 774 ], "spans": [ { "bbox": [ 305, 749, 524, 774 ], "type": "text", "content": "Generating satisfactory answers by single-round RAG remains challenging (Komeili, 2021; Zhu" } ] } ], "index": 11 } ], "discarded_blocks": [ { "bbox": [ 284, 781, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 284, 781, 312, 791 ], "spans": [ { "bbox": [ 284, 781, 312, 791 ], "type": "text", "content": "26984" } ] } ], "index": 12 } ], "page_size": [ 595, 841 ], "page_idx": 1 }, { "para_blocks": [ { "bbox": [ 67, 71, 293, 370 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 71, 293, 370 ], "spans": [ { "bbox": [ 67, 71, 293, 370 ], "type": "text", "content": "et al., 2021; Liu et al., 2024; Jiang et al., 2023; Yang et al., 2023b; Ni et al., 2024). A-RAG was developed to address this limitation by enabling iterative interactions with external knowledge bases, leading to more accurate and complete answers through multiple retrieval rounds (Jiang et al., 2023; Yang et al., 2023b; Ni et al., 2024). Current A-RAG approaches can be classified into two categories: 1) Rule-based strategies, such as per-sentence iteration (Trivedi et al., 2023), sliding window tokens (Borgeaud et al., 2022; Ram et al., 2023), and contextual learning (Zhao et al., 2023; Zhang et al., 2024; Li et al.). 2) Self-perception strategies evaluate output confidence through internal states (Yao et al., 2024), LLM output layer (Jiang et al., 2023; Yang et al., 2023b; Su et al., 2024), or explicit language-level feedback (Asai et al.). In contrast to existing works that primarily focus on performance enhancement, to the best of our knowledge, we are the first to investigate the multi-turn document overlapping problem in A-RAG and improve efficiency through its resolution." } ] } ], "index": 0 }, { "bbox": [ 67, 379, 202, 391 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 379, 202, 391 ], "spans": [ { "bbox": [ 67, 379, 202, 391 ], "type": "text", "content": "2.2 Inference Acceleration" } ] } ], "index": 1 }, { "bbox": [ 67, 395, 291, 652 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 395, 291, 652 ], "spans": [ { "bbox": [ 67, 395, 291, 652 ], "type": "text", "content": "Efficiency of LLM. Research on improving LLM efficiency can generally be classified into two categories: traditional optimization techniques (such as quantization, pruning, knowledge distillation, etc.) and LLM-specific optimizations which include: 1) Early Exiting (Teerapittayanon et al., 2016; Xin et al., 2020; Zhou et al., 2020; Kong et al., 2022; Yang et al.; Bae et al., 2023), uses prediction heads at different layers to enable early token exit when confidence thresholds are met. 2) Token Pruning (Goyal et al., 2020; Kim and Cho, 2021; Wang et al., 2021; Kim et al., 2022; Hou et al., 2022; Zhang et al., 2023b), retains only critical tokens based on importance ranking.3) Speculative Decoding (Chen et al., 2023; Leviathan et al., 2023; Spector and Re; Yang et al., 2023a; Zhang et al., 2023a; Kim et al., 2024; Miao et al., 2024), uses efficient smaller models to generate candidate tokens for batch verification by LLM." } ] } ], "index": 2 }, { "bbox": [ 67, 653, 291, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 653, 291, 775 ], "spans": [ { "bbox": [ 67, 653, 291, 775 ], "type": "text", "content": "Efficiency of RAG. Speculative retrieval (Zhang et al.) reduces retrieval overhead through local retrieval and verification mechanisms. Parallel document processing (Merth et al.) mitigates attention complexity by processing multiple documents independently rather than concatenating them. Document preprocessing (Lu et al., 2024) improves prefilling efficiency by preprocessing and storing document representation for the whole knowledge" } ] } ], "index": 3 }, { "bbox": [ 302, 71, 526, 152 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 71, 526, 152 ], "spans": [ { "bbox": [ 302, 71, 526, 152 ], "type": "text", "content": "base. Small expert LMs generate initial document-specific drafts for LLM verification (Wang et al., 2024b). In contrast to prior work, our " }, { "bbox": [ 302, 71, 526, 152 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 71, 526, 152 ], "type": "text", "content": " is a general framework. It enhances A-RAG efficiency by representation reduction with instruction-guided information extraction." } ] } ], "index": 4 }, { "bbox": [ 303, 171, 370, 185 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 303, 171, 370, 185 ], "spans": [ { "bbox": [ 303, 171, 370, 185 ], "type": "text", "content": "3 Methods" } ] } ], "index": 5 }, { "bbox": [ 302, 199, 527, 401 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 199, 527, 401 ], "spans": [ { "bbox": [ 302, 199, 527, 401 ], "type": "text", "content": "Figure 2 details the workflow of " }, { "bbox": [ 302, 199, 527, 401 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 199, 527, 401 ], "type": "text", "content": ", and we divide the internal process of each iteration round in A-RAG into three phases: retrieval, prefetching, and decoding. When processing a query, cached document representations in the CICS module are first verified. These representations are loaded and combined with uncached documents for prefetching, where the IDGR module guides LLMs to prioritize relevant content while filtering noise. Before each autoregressive step, matching subsequent phrase fragments are queried in the IGPG module to enable parallel generation. Ultimately, these approaches enhance the overall efficiency of A-RAG. Details of each module are given respectively in the remainder of this section." } ] } ], "index": 6 }, { "bbox": [ 302, 420, 508, 433 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 420, 508, 433 ], "spans": [ { "bbox": [ 302, 420, 508, 433 ], "type": "text", "content": "3.1 Cross-Iterative Cache Sharing (CICS)" } ] } ], "index": 7 }, { "bbox": [ 302, 442, 526, 550 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 442, 526, 550 ], "spans": [ { "bbox": [ 302, 442, 526, 550 ], "type": "text", "content": "A-RAG (Zhao et al., 2023; Jiang et al., 2023; Yang et al., 2023b; Su et al., 2024; Zhang et al., 2024) relies on multiple rounds of retrieval-generation interactions to generate answers. We observe substantial document overlap between adjacent retrieval rounds. In light of this, duplicate representation for overlapping documents introduces computational redundancy, hampering the efficiency of A-RAG." } ] } ], "index": 8 }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 554, 527, 745 ], "spans": [ { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": "In order to avoid duplicate representation for overlapping documents, we propose the cross-iterative cache sharing (CICS) module. CICS initializes a cache space " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "\\mathbb{C}" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": " to store Key-Value pairs corresponding to the documents retrieved in each round for each query " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "q" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": ". Because A-RAG may modify the query at the end of each iteration, we denote the initial user query as " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "q_{0}" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": ". At round " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "t" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": ", the retrieval operation " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "D_{t} = \\mathbf{Retriieve}(q_{t})" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": " returns a set of " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "n" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": " documents " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "D_{t} = \\{d_{1}^{t}, d_{2}^{t}, \\ldots, d_{n}^{t}\\}" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": " from the external knowledge base. " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "n" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": " denotes the maximum number of documents that can be retrieved in each round. At round " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "t" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": ", the LLM generates a sequence of tokens " }, { "bbox": [ 302, 554, 527, 745 ], "type": "inline_equation", "content": "A_{t} = \\{a_{t}^{1}, a_{t}^{2}, \\ldots, a_{t}^{m}\\}" }, { "bbox": [ 302, 554, 527, 745 ], "type": "text", "content": " by:" } ] } ], "index": 9 }, { "bbox": [ 339, 760, 525, 776 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 339, 760, 525, 776 ], "spans": [ { "bbox": [ 339, 760, 525, 776 ], "type": "interline_equation", "content": "a _ {t} ^ {1}, K _ {t}, V _ {t} = \\mathbf {L L M} _ {P} \\left(q _ {t}, D _ {t}, A _ {< t}\\right) \\tag {1}", "image_path": "2f27f50c6e66d95c74eba1b192fbf2053474bf57d59a6eb4518592c5b417cdb4.jpg" } ] } ], "index": 10 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26985" } ] } ], "index": 11 } ], "page_size": [ 595, 841 ], "page_idx": 2 }, { "para_blocks": [ { "type": "image", "bbox": [ 91, 68, 505, 253 ], "blocks": [ { "bbox": [ 91, 68, 505, 253 ], "lines": [ { "bbox": [ 91, 68, 505, 253 ], "spans": [ { "bbox": [ 91, 68, 505, 253 ], "type": "image", "image_path": "b819733d2bbfe3513c854d6603e0fecb552d37668664ac7fe5a60b082484123b.jpg" } ] } ], "index": 0, "angle": 0, "type": "image_body" }, { "bbox": [ 92, 260, 499, 273 ], "lines": [ { "bbox": [ 92, 260, 499, 273 ], "spans": [ { "bbox": [ 92, 260, 499, 273 ], "type": "text", "content": "Figure 2: The pipeline of our " }, { "bbox": [ 92, 260, 499, 273 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 92, 260, 499, 273 ], "type": "text", "content": ". The same color indicates the same document and representation." } ] } ], "index": 1, "angle": 0, "type": "image_caption" } ], "index": 0 }, { "bbox": [ 73, 290, 271, 306 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 73, 290, 271, 306 ], "spans": [ { "bbox": [ 73, 290, 271, 306 ], "type": "interline_equation", "content": "a _ {t} ^ {i}, k _ {t} ^ {i}, v _ {t} ^ {i} = \\mathbf {L L M} _ {D} \\left(q _ {t}, D _ {t}, A _ {< t}, a _ {t} ^ {< i}, K _ {t}, V _ {t}\\right)", "image_path": "fc2e30a9dba60bf522cdc06b8231d5b80fdbece05ec7d8a78319358b863ba87f.jpg" } ] } ], "index": 2 }, { "bbox": [ 99, 310, 289, 324 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 99, 310, 289, 324 ], "spans": [ { "bbox": [ 99, 310, 289, 324 ], "type": "interline_equation", "content": "K _ {t} = \\operatorname {C o n c a t} \\left(K _ {t}, k _ {t} ^ {i}\\right) \\tag {2}", "image_path": "08b484562bd80e1f7df33b84827cf22e921c12dbe9e87439529255bc97da4b20.jpg" } ] } ], "index": 3 }, { "bbox": [ 101, 327, 194, 343 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 101, 327, 194, 343 ], "spans": [ { "bbox": [ 101, 327, 194, 343 ], "type": "interline_equation", "content": "V _ {t} = \\operatorname {C o n c a t} \\left(V _ {t}, v _ {t} ^ {i}\\right)", "image_path": "c146278a67417afc5a8b08bf945d370e391284b9b22982aff233971905795653.jpg" } ] } ], "index": 4 }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 344, 290, 493 ], "spans": [ { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": "where the inference process of LLM is divided into two stages: prefilling and decoding, represented with " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "\\mathbf{LLM}_P" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " and " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "\\mathbf{LLM}_D" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " respectively. The " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "K_{t}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " and " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "V_{t}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " represent the Key-Value pairs for " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " and " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "A_{t}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": ". The " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "a_{t}^{i}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " denotes the " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "i^{th}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " generated token and " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "m" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " represents the number of generated tokens. The Eq.(2) denoted the autoregression process, which can only generate one token at each step. It needs to be executed through multiple steps to obtain the complete " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "A_{t}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": ". CICS stores the " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "K_{t}, V_{t}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " from Eq.(1), which is the representation for " }, { "bbox": [ 67, 344, 290, 493 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 344, 290, 493 ], "type": "text", "content": " as shown in Figure 2." } ] } ], "index": 5 }, { "bbox": [ 67, 494, 290, 601 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 494, 290, 601 ], "spans": [ { "bbox": [ 67, 494, 290, 601 ], "type": "text", "content": "After receiving retrieved results " }, { "bbox": [ 67, 494, 290, 601 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 494, 290, 601 ], "type": "text", "content": ", CICS extracts existing representation from the cache to avoid duplicate representation. Specifically, as the example shown in Figure 2, CICS directly loads the representation of documents #5881721 and #12415199, then integrates them with the text of document #12368478 for generation. This process can be formalized as:" } ] } ], "index": 6 }, { "bbox": [ 73, 603, 202, 618 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 73, 603, 202, 618 ], "spans": [ { "bbox": [ 73, 603, 202, 618 ], "type": "interline_equation", "content": "K _ {t} ^ {o}, V _ {t} ^ {o}, D _ {t} ^ {o} = \\operatorname {F i l t e r} (D _ {t}, \\mathbb {C})", "image_path": "d724a68f2c111180df567e8c1a2f0378b33b46aa5e32ba3e0d5c4845688251b8.jpg" } ] } ], "index": 7 }, { "bbox": [ 83, 614, 289, 636 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 83, 614, 289, 636 ], "spans": [ { "bbox": [ 83, 614, 289, 636 ], "type": "interline_equation", "content": "a _ {t} ^ {1}, K _ {t}, V _ {t} = \\mathbf {L L M} _ {P} \\left(q _ {t}, D _ {t} ^ {n}, A _ {< t}, K _ {t} ^ {o}, V _ {t} ^ {o}\\right) \\tag {3}", "image_path": "0d6c6c62353af06c230ba63a60732e51c6c8c02879c279cc6889de8bd2248cb2.jpg" } ] } ], "index": 8 }, { "bbox": [ 67, 640, 290, 734 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 640, 290, 734 ], "spans": [ { "bbox": [ 67, 640, 290, 734 ], "type": "text", "content": "where " }, { "bbox": [ 67, 640, 290, 734 ], "type": "inline_equation", "content": "D_{t}^{o}" }, { "bbox": [ 67, 640, 290, 734 ], "type": "text", "content": " is the document set that has been processed in the previous round and appears again at the current round " }, { "bbox": [ 67, 640, 290, 734 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 640, 290, 734 ], "type": "text", "content": ". We can directly obtain its corresponding representation " }, { "bbox": [ 67, 640, 290, 734 ], "type": "inline_equation", "content": "K_{t}^{o}" }, { "bbox": [ 67, 640, 290, 734 ], "type": "text", "content": " and " }, { "bbox": [ 67, 640, 290, 734 ], "type": "inline_equation", "content": "V_{t}^{o}" }, { "bbox": [ 67, 640, 290, 734 ], "type": "text", "content": " from " }, { "bbox": [ 67, 640, 290, 734 ], "type": "inline_equation", "content": "\\mathbb{C}" }, { "bbox": [ 67, 640, 290, 734 ], "type": "text", "content": " without re-processing. For the new document set " }, { "bbox": [ 67, 640, 290, 734 ], "type": "inline_equation", "content": "D_{t}^{n} = D_{t} \\setminus D_{t}^{o}" }, { "bbox": [ 67, 640, 290, 734 ], "type": "text", "content": " at the current round, the prefilling is still required." } ] } ], "index": 9 }, { "bbox": [ 67, 735, 290, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 735, 290, 775 ], "spans": [ { "bbox": [ 67, 735, 290, 775 ], "type": "text", "content": "Eq.(3) optimizes the prefilling phase by reusing the cached representation of overlapping documents in CICS, avoiding redundant computation." } ] } ], "index": 10 }, { "bbox": [ 302, 294, 486, 321 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 294, 486, 321 ], "spans": [ { "bbox": [ 302, 294, 486, 321 ], "type": "text", "content": "3.2 Instruction-driven Dedduplication Guidance Reinforcement (IDGR)" } ] } ], "index": 11 }, { "bbox": [ 301, 324, 525, 444 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 301, 324, 525, 444 ], "spans": [ { "bbox": [ 301, 324, 525, 444 ], "type": "text", "content": "The CICS provides efficient representation reuse across rounds. Notably, the Key-Value representation of each document " }, { "bbox": [ 301, 324, 525, 444 ], "type": "inline_equation", "content": "d_{i}^{t}" }, { "bbox": [ 301, 324, 525, 444 ], "type": "text", "content": " incorporates information from previously processed documents through self-attention. As an example illustrated in Figure 2, at round 1, the representation of document #12415199 contains information from documents #5881721 and #10028469 due to the self-attention mechanism." } ] } ], "index": 12 }, { "bbox": [ 302, 447, 525, 555 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 447, 525, 555 ], "spans": [ { "bbox": [ 302, 447, 525, 555 ], "type": "text", "content": "The IDGR employs natural language instructions " }, { "bbox": [ 302, 447, 525, 555 ], "type": "inline_equation", "content": "I_{t}" }, { "bbox": [ 302, 447, 525, 555 ], "type": "text", "content": " in the prompt to guide the LLM in filtering redundant cached information. This module helps the model focus on relevant content for the current round, thereby ensuring high-quality generation. At each iteration, the instruction " }, { "bbox": [ 302, 447, 525, 555 ], "type": "inline_equation", "content": "I_{t}" }, { "bbox": [ 302, 447, 525, 555 ], "type": "text", "content": " is automatically generated based on two rules and is subsequently utilized during the prefilling phase, as:" } ] } ], "index": 13 }, { "bbox": [ 315, 562, 525, 577 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 315, 562, 525, 577 ], "spans": [ { "bbox": [ 315, 562, 525, 577 ], "type": "interline_equation", "content": "a _ {t} ^ {1}, K _ {t}, V _ {t} = \\mathbf {L L M} _ {P} \\left(q _ {t}, D _ {t} ^ {n}, A _ {< t}, R _ {t} ^ {o}, I _ {t}\\right) \\tag {4}", "image_path": "b928eeea658810c1102431953e418e2c5d17a68264b1f3a2548180a7cc521d2a.jpg" } ] } ], "index": 14 }, { "bbox": [ 302, 586, 525, 665 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 586, 525, 665 ], "spans": [ { "bbox": [ 302, 586, 525, 665 ], "type": "text", "content": "where " }, { "bbox": [ 302, 586, 525, 665 ], "type": "inline_equation", "content": "R_{t}^{o}" }, { "bbox": [ 302, 586, 525, 665 ], "type": "text", "content": " is the " }, { "bbox": [ 302, 586, 525, 665 ], "type": "inline_equation", "content": "K_{t}^{o}, V_{t}^{o}" }, { "bbox": [ 302, 586, 525, 665 ], "type": "text", "content": ". As shown in Figure 2, the representation of document #10028469 is excluded from the computation. Furthermore, explicit instructions guide the LLM to ignore the information contained in the representation of document #12415199." } ] } ], "index": 15 }, { "bbox": [ 302, 667, 525, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 667, 525, 775 ], "spans": [ { "bbox": [ 302, 667, 525, 775 ], "type": "text", "content": "The instruction " }, { "bbox": [ 302, 667, 525, 775 ], "type": "inline_equation", "content": "I_{t}" }, { "bbox": [ 302, 667, 525, 775 ], "type": "text", "content": " is generated according to two rules: First, we use document identifiers to explicitly tell the LLM which documents are relevant and which are irrelevant for the current generation. This helps the LLM focus on pertinent context while filtering out redundant information. Second, we provide document relevance rankings to the LLM. In cases where we cannot directly adjust the input" } ] } ], "index": 16 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26986" } ] } ], "index": 17 } ], "page_size": [ 595, 841 ], "page_idx": 3 }, { "para_blocks": [ { "bbox": [ 67, 71, 291, 111 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 71, 291, 111 ], "spans": [ { "bbox": [ 67, 71, 291, 111 ], "type": "text", "content": "order of documents based on their importance, explicit instructions guide the LLM to prioritize more relevant documents." } ] } ], "index": 0 }, { "bbox": [ 67, 111, 291, 260 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 111, 291, 260 ], "spans": [ { "bbox": [ 67, 111, 291, 260 ], "type": "text", "content": "In practice, " }, { "bbox": [ 67, 111, 291, 260 ], "type": "inline_equation", "content": "I_{t}" }, { "bbox": [ 67, 111, 291, 260 ], "type": "text", "content": " can be implemented with simple natural language directives, leveraging the strong semantic understanding capabilities of LLMs. For instance, in the second round shown in Figure 2, the instruction is formulated as: “#5881721 ... are related docs. #10028469 is unrelated. The relevance scores are ...”. The relevance scores can be obtained through either retriever rankings1 or model-based scoring methods2. While scoring methods are not the focus of our study, they can be seamlessly integrated into our approach." } ] } ], "index": 1 }, { "bbox": [ 67, 269, 286, 295 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 269, 286, 295 ], "spans": [ { "bbox": [ 67, 269, 286, 295 ], "type": "text", "content": "3.3 Information-Guided Parallel Generation (IGPG)" } ] } ], "index": 2 }, { "type": "image", "bbox": [ 79, 312, 280, 430 ], "blocks": [ { "bbox": [ 79, 312, 280, 430 ], "lines": [ { "bbox": [ 79, 312, 280, 430 ], "spans": [ { "bbox": [ 79, 312, 280, 430 ], "type": "image", "image_path": "b23e3299e3e0c7b44d67d1a844b6d6fc8fa6d60ffc54532e5f7cb334932dedcf.jpg" } ] } ], "index": 3, "angle": 0, "type": "image_body" }, { "bbox": [ 67, 442, 291, 503 ], "lines": [ { "bbox": [ 67, 442, 291, 503 ], "spans": [ { "bbox": [ 67, 442, 291, 503 ], "type": "text", "content": "Figure 3: The x-axis represents the length of consecutive token combinations in the generated results. The y-axis represents the proportion of all combinations in the generated results that appear in the retrieved results. (LLaMA2-7B, 2WikiMultihopQA)." } ] } ], "index": 4, "angle": 0, "type": "image_caption" } ], "index": 3 }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 515, 291, 745 ], "spans": [ { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": "RAG differs from standard LLM applications in its access to extensive external context. For a given query " }, { "bbox": [ 67, 515, 291, 745 ], "type": "inline_equation", "content": "q" }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": ", standard LLM inference can only utilize " }, { "bbox": [ 67, 515, 291, 745 ], "type": "inline_equation", "content": "q" }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": " itself, whereas RAG leverages both " }, { "bbox": [ 67, 515, 291, 745 ], "type": "inline_equation", "content": "q" }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": " and retrieved documents " }, { "bbox": [ 67, 515, 291, 745 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": ". Furthermore, in different iterations of A-RAG, the LLM-generated content maintains high relevance to the retrieved documents " }, { "bbox": [ 67, 515, 291, 745 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": ", as illustrated in Figure 3. This relevance plays a crucial role in determining the current round's output. The LLM generates a significant amount of existing content. The autoregressive process of token-by-token generation primarily contributes to the low efficiency. In contrast to standard LLM generation, we have the information of " }, { "bbox": [ 67, 515, 291, 745 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": ", which contains a substantial portion of the content that LLM must generate. Consequently, we can utilize the information from " }, { "bbox": [ 67, 515, 291, 745 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 67, 515, 291, 745 ], "type": "text", "content": " to guide LLM in avoiding the inde" } ] } ], "index": 5 }, { "bbox": [ 302, 71, 526, 125 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 71, 526, 125 ], "spans": [ { "bbox": [ 302, 71, 526, 125 ], "type": "text", "content": "pendent autoregressive representation process for existing content. By constructing phrase fragments and verifying multiple tokens during autoregression, parallel generation can be achieved." } ] } ], "index": 6 }, { "bbox": [ 302, 126, 526, 219 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 126, 526, 219 ], "spans": [ { "bbox": [ 302, 126, 526, 219 ], "type": "text", "content": "Different with traditional speculative decoding approaches, IGPG requires neither the construction of small language models nor training. During each RAG iteration, IGPG uses " }, { "bbox": [ 302, 126, 526, 219 ], "type": "inline_equation", "content": "D_{t}" }, { "bbox": [ 302, 126, 526, 219 ], "type": "text", "content": " to construct a approximate probabilistic language model " }, { "bbox": [ 302, 126, 526, 219 ], "type": "inline_equation", "content": "P(x_{t}|x_{1},\\dots,x_{t - 1})\\approx P(x_{t}|x_{t - N + 1},\\dots,x_{t - 1}),N" }, { "bbox": [ 302, 126, 526, 219 ], "type": "text", "content": " is the number of recent tokens." } ] } ], "index": 7 }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 220, 526, 410 ], "spans": [ { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": "Our IGPG has two steps as speculative decoding approaches: draft generation and LLM parallel generation. In the draft generation, by iterating " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "M" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": " steps, the module constructs a " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "M" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": "-length draft token sequence " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "\\hat{A}_{t,k} = \\{\\hat{a}_{t,k}^{1}, \\hat{a}_{t,k}^{2}, \\dots, \\hat{a}_{t,k}^{M}\\}" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": ", " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "k" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": " denotes the " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "k" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": "-th autoregression step. During LLM parallel generation, the LLM validates the draft token sequence through a forward pass by " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "P(\\bar{a}_{t,k}^{i + M + 1}|a_{t,k - 1}^{\\leq i}, \\hat{a}_{t,k}^{1}, \\dots, \\hat{a}_{t,k}^{M})" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": ". The LLM examines whether each draft token aligns with the current output, as Eq.(5). When a draft token " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "\\hat{a}_{t,k}^{j}" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": " fails validation, it is substituted with the LLM's prediction " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "\\bar{a}_{t,k}^{j - 1}" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": ", and draft generation resumes from this point until the complete sequence " }, { "bbox": [ 302, 220, 526, 410 ], "type": "inline_equation", "content": "A_{t}" }, { "bbox": [ 302, 220, 526, 410 ], "type": "text", "content": " is produced." } ] } ], "index": 8 }, { "bbox": [ 330, 413, 525, 449 ], "type": "interline_equation", "angle": 0, "lines": [ { "bbox": [ 330, 413, 525, 449 ], "spans": [ { "bbox": [ 330, 413, 525, 449 ], "type": "interline_equation", "content": "a _ {t, k} ^ {j} = \\left\\{ \\begin{array}{l l} \\hat {a} _ {t} ^ {j}, & \\text {i f} \\hat {a} _ {t, k} ^ {j} = \\bar {a} _ {t, k} ^ {j - 1}, j \\geq 1 \\\\ \\bar {a} _ {t, k} ^ {j - 1} & \\text {o t h e r w i s e} \\& \\text {s t o p} \\end{array} \\right. \\tag {5}", "image_path": "5336189854a95f13f20f228b02a8031a3a72dc48f17b625427e73064fc4e688e.jpg" } ] } ], "index": 9 }, { "bbox": [ 302, 453, 525, 485 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 453, 525, 485 ], "spans": [ { "bbox": [ 302, 453, 525, 485 ], "type": "text", "content": "where " }, { "bbox": [ 302, 453, 525, 485 ], "type": "inline_equation", "content": "\\{\\bar{a}_{t,k}^0,\\dots,\\bar{a}_{t,k}^{i+M+1}\\} = \\mathbf{LLM}_D(a_{t,k-1}^{\\leq i},\\hat{A}_{t,k})," }, { "bbox": [ 302, 453, 525, 485 ], "type": "inline_equation", "content": "\\bar{a}_{t,k}^0" }, { "bbox": [ 302, 453, 525, 485 ], "type": "text", "content": " corresponds to " }, { "bbox": [ 302, 453, 525, 485 ], "type": "inline_equation", "content": "a_{t,k-1}^i" }, { "bbox": [ 302, 453, 525, 485 ], "type": "text", "content": " autoregressive." } ] } ], "index": 10 }, { "bbox": [ 302, 486, 525, 541 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 486, 525, 541 ], "spans": [ { "bbox": [ 302, 486, 525, 541 ], "type": "text", "content": "If at least one token in the " }, { "bbox": [ 302, 486, 525, 541 ], "type": "inline_equation", "content": "\\hat{A}_{t,k}" }, { "bbox": [ 302, 486, 525, 541 ], "type": "text", "content": " is validated by the LLM, combined with the token generated by the LLM itself, the total number of generated tokens is at least two, achieving a least " }, { "bbox": [ 302, 486, 525, 541 ], "type": "inline_equation", "content": "2\\times" }, { "bbox": [ 302, 486, 525, 541 ], "type": "text", "content": " speedup." } ] } ], "index": 11 }, { "bbox": [ 302, 549, 390, 563 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 549, 390, 563 ], "spans": [ { "bbox": [ 302, 549, 390, 563 ], "type": "text", "content": "4 Experiments" } ] } ], "index": 12 }, { "bbox": [ 302, 570, 414, 583 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 570, 414, 583 ], "spans": [ { "bbox": [ 302, 570, 414, 583 ], "type": "text", "content": "4.1 Language Models" } ] } ], "index": 13 }, { "bbox": [ 302, 587, 526, 668 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 587, 526, 668 ], "spans": [ { "bbox": [ 302, 587, 526, 668 ], "type": "text", "content": "We employed the LLaMA2-7B/13B (Touvron et al., 2023) (L2-7B/13B) and the Vicuna-7B/13B (Chiang et al., 2023) (V-7B/13B). The Vicuna model is a chatbot fine-tuned on ShareGPT conversation data. It contains different knowledge from LLaMA and has an impact on A-RAG inference." } ] } ], "index": 14 }, { "bbox": [ 302, 677, 458, 688 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 677, 458, 688 ], "spans": [ { "bbox": [ 302, 677, 458, 688 ], "type": "text", "content": "4.2 Downstream Task Datasets" } ] } ], "index": 15 }, { "bbox": [ 302, 693, 525, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 693, 525, 775 ], "spans": [ { "bbox": [ 302, 693, 525, 775 ], "type": "text", "content": "We use the 2WikiMultihopQA (Ho et al., 2020), HotpotQA (Yang et al., 2018), StrategyQA (Geva et al., 2021) and IIRC (Ferguson et al., 2020) as DRAGIN (Su et al., 2024). The datasets span multi-hop question answering, common sense reasoning, and reading comprehension, covering different" } ] } ], "index": 16 } ], "discarded_blocks": [ { "bbox": [ 80, 751, 220, 763 ], "type": "page_footnote", "angle": 0, "lines": [ { "bbox": [ 80, 751, 220, 763 ], "spans": [ { "bbox": [ 80, 751, 220, 763 ], "type": "inline_equation", "content": "^{1}" }, { "bbox": [ 80, 751, 220, 763 ], "type": "text", "content": "https://github.com/Muennighoff/sgpt" } ] } ], "index": 17 }, { "bbox": [ 80, 763, 258, 774 ], "type": "page_footnote", "angle": 0, "lines": [ { "bbox": [ 80, 763, 258, 774 ], "spans": [ { "bbox": [ 80, 763, 258, 774 ], "type": "inline_equation", "content": "^{2}" }, { "bbox": [ 80, 763, 258, 774 ], "type": "text", "content": "https://huggingface.co/BAAI/bge-eranker-base" } ] } ], "index": 18 }, { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26987" } ] } ], "index": 20 } ], "page_size": [ 595, 841 ], "page_idx": 4 }, { "para_blocks": [ { "type": "table", "bbox": [ 71, 69, 523, 226 ], "blocks": [ { "bbox": [ 71, 69, 523, 226 ], "lines": [ { "bbox": [ 71, 69, 523, 226 ], "spans": [ { "bbox": [ 71, 69, 523, 226 ], "type": "table", "html": "
MethodsLLMs2WikiMultihopQAHotpotQAStrategyQAIIRC
Pref. ↑Deco. ↑E2E ↑Pref. ↑Deco. ↑E2E ↑Pref. ↑Deco. ↑E2E ↑Pref. ↑Deco. ↑E2E ↑
FLRAG+IDR2L2-7B2.23×2.37×1.75×2.27×1.85×1.53×1.75×1.49×1.40×3.08×2.76×2.10×
L2-13B2.12×2.36×1.64×2.29×2.00×1.54×1.76×1.62×1.40×2.70×2.65×1.83×
V-13B2.05×2.25×1.60×2.22×1.97×1.51×1.65×1.55×1.31×2.66×2.72×1.82×
FSRAG+IDR2L2-7B2.04×2.64×2.32×2.41×1.88×1.69×2.36×1.97×1.79×2.92×2.88×2.20×
L2-13B2.11×2.47×1.79×2.16×2.05×1.59×1.74×1.59×1.44×2.16×2.65×1.74×
V-13B2.23×2.31×1.75×2.15×2.31×1.66×2.02×1.78×1.53×2.35×2.69×1.92×
FLARE+IDR2L2-7B2.81×2.74×2.60×3.12×2.61×2.31×2.71×2.27×1.77×3.54×2.97×2.89×
L2-13B1.98×2.24×2.16×2.42×1.87×1.80×2.45×1.71×1.69×3.58×3.15×3.01×
V-13B2.04×2.14×2.06×2.27×2.07×1.98×2.05×1.93×1.89×2.70×2.24×2.22×
DRAGIN+IDR2L2-7B3.34×2.77×2.52×4.09×2.08×2.09×3.39×1.98×1.95×4.49×2.58×2.58×
L2-13B3.25×3.21×2.61×3.97×2.15×2.01×3.15×1.98×1.87×4.25×2.86×2.65×
V-13B3.57×2.81×2.55×4.14×2.29×2.15×3.25×1.88×1.82×4.72×4.00×3.53×
", "image_path": "8fd02a7ea0280e1524df80361ab8c7ff94cc85e7281ec042770f09fc23ebf00d.jpg" } ] } ], "index": 0, "angle": 0, "type": "table_body" } ], "index": 0 }, { "type": "table", "bbox": [ 105, 281, 490, 407 ], "blocks": [ { "bbox": [ 67, 234, 525, 273 ], "lines": [ { "bbox": [ 67, 234, 525, 273 ], "spans": [ { "bbox": [ 67, 234, 525, 273 ], "type": "text", "content": "Table 1: The average speedup ratios of " }, { "bbox": [ 67, 234, 525, 273 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 67, 234, 525, 273 ], "type": "text", "content": " across different methods, models, and datasets. Pref. (prefilling) demonstrates acceleration achieved through CICS and IDGR. Deco. (decoding) shows speedup from IGPG. E2E (end-to-end) reflects the overall A-RAG acceleration, encompassing retrieval. (" }, { "bbox": [ 67, 234, 525, 273 ], "type": "inline_equation", "content": "n = 3" }, { "bbox": [ 67, 234, 525, 273 ], "type": "text", "content": ", " }, { "bbox": [ 67, 234, 525, 273 ], "type": "inline_equation", "content": "1 \\times =" }, { "bbox": [ 67, 234, 525, 273 ], "type": "text", "content": " baseline speed)" } ] } ], "index": 1, "angle": 0, "type": "table_caption" }, { "bbox": [ 105, 281, 490, 407 ], "lines": [ { "bbox": [ 105, 281, 490, 407 ], "spans": [ { "bbox": [ 105, 281, 490, 407 ], "type": "table", "html": "
LLMsMethods2WQAHQASQAIIRC
EM↑F1↑EM↑F1↑Acc.↑EM↑F1↑
Llama2-7BDRAGIN†22.528.6822.633.0265.1015.9320.24
DRAGIN+Ours25.433.1722.932.5962.5016.0420.24
Llama2-13BDRAGIN†30.439.9131.642.6066.1018.522.59
DRAGIN+Ours34.441.5029.941.0165.7718.5522.11
vicuna-13bDRAGIN†25.434.9030.142.5066.2023.9028.11
DRAGIN+Ours28.936.7731.742.5868.0021.5926.28
", "image_path": "6072b7ebf8dbfcbcbbcdc68c57a65c09a320f9255cfd3fdf4bd426605dc345f9.jpg" } ] } ], "index": 2, "angle": 0, "type": "table_body" } ], "index": 2 }, { "bbox": [ 67, 415, 524, 428 ], "lines": [ { "bbox": [ 67, 415, 524, 428 ], "spans": [ { "bbox": [ 67, 415, 524, 428 ], "type": "text", "content": "Table 2: The performance comparison on different datasets with different models. The " }, { "bbox": [ 67, 415, 524, 428 ], "type": "inline_equation", "content": "\\dagger" }, { "bbox": [ 67, 415, 524, 428 ], "type": "text", "content": " represents the reproduction." } ] } ], "index": 3, "angle": 0, "type": "text" }, { "bbox": [ 67, 449, 290, 476 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 449, 290, 476 ], "spans": [ { "bbox": [ 67, 449, 290, 476 ], "type": "text", "content": "types of reasoning tasks. For more detailed settings, please refer to the Appendix A.2." } ] } ], "index": 4 }, { "bbox": [ 67, 512, 139, 523 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 512, 139, 523 ], "spans": [ { "bbox": [ 67, 512, 139, 523 ], "type": "text", "content": "4.3 Baselines" } ] } ], "index": 5 }, { "bbox": [ 67, 544, 291, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 544, 291, 775 ], "spans": [ { "bbox": [ 67, 544, 291, 775 ], "type": "text", "content": "We selected four representative A-RAG methods as baselines. These methods are characterized by two key aspects: retrieval timing and query construction. Retrieval timing determines when to perform retrieval, while query construction decides what content to use for retrieval. These features directly impact both the quality and efficiency of A-RAG workflows. FL-RAG (Khandelwal et al., 2019; Borgeaud et al., 2022; Ram et al., 2023) retrieves every " }, { "bbox": [ 67, 544, 291, 775 ], "type": "inline_equation", "content": "z" }, { "bbox": [ 67, 544, 291, 775 ], "type": "text", "content": " tokens using previous tokens as queries, FS-RAG (Trivedi et al., 2023) performs retrieval after each sentence, FLARE (Jiang et al., 2023) triggers retrieval for uncertain tokens, using the last generated sentence as the query, and DRAGIN (Su et al., 2024) employs a dynamic approach based on content importance and uncertainty, utilizing attention distribution for query construction." } ] } ], "index": 6 }, { "bbox": [ 302, 449, 440, 462 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 449, 440, 462 ], "spans": [ { "bbox": [ 302, 449, 440, 462 ], "type": "text", "content": "4.4 Implementation Details" } ] } ], "index": 7 }, { "bbox": [ 302, 469, 526, 618 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 469, 526, 618 ], "spans": [ { "bbox": [ 302, 469, 526, 618 ], "type": "text", "content": "For the retrieval modules, we select BM25 and follow DRAGIN (Su et al., 2024). Additionally, we also investigate replacing BM25 with SGPT (Muennighoff, 2022), a dense retrieval method. Our external knowledge is based on Wikipedia articles, which are divided into passages containing 100 tokens each. For the 7B and 13B models, we use four Nvidia 3090 GPUs and four H800 GPUs, respectively. " }, { "bbox": [ 302, 469, 526, 618 ], "type": "inline_equation", "content": "n" }, { "bbox": [ 302, 469, 526, 618 ], "type": "text", "content": " is the number of retrieved documents. Our " }, { "bbox": [ 302, 469, 526, 618 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 469, 526, 618 ], "type": "text", "content": " based on the PyTorch (Paszke et al., 2019), details in the Appendix A.4." } ] } ], "index": 8 }, { "bbox": [ 302, 632, 393, 644 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 632, 393, 644 ], "spans": [ { "bbox": [ 302, 632, 393, 644 ], "type": "text", "content": "4.5 Main Results" } ] } ], "index": 9 }, { "bbox": [ 302, 651, 524, 705 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 651, 524, 705 ], "spans": [ { "bbox": [ 302, 651, 524, 705 ], "type": "text", "content": "Table 1 shows the results of our approach applied to the different A-RAG methods, different models with scales, and different scenarios. Table 1 shows the acceleration ratios over baseline methods." } ] } ], "index": 10 }, { "bbox": [ 302, 708, 525, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 708, 525, 775 ], "spans": [ { "bbox": [ 302, 708, 525, 775 ], "type": "text", "content": "Overall, our method demonstrates end-to-end speed improvements ranging from " }, { "bbox": [ 302, 708, 525, 775 ], "type": "inline_equation", "content": "1.31 \\times" }, { "bbox": [ 302, 708, 525, 775 ], "type": "text", "content": " to " }, { "bbox": [ 302, 708, 525, 775 ], "type": "inline_equation", "content": "3.53 \\times" }, { "bbox": [ 302, 708, 525, 775 ], "type": "text", "content": ". During the prefilling phase, we observe acceleration factors from " }, { "bbox": [ 302, 708, 525, 775 ], "type": "inline_equation", "content": "1.75 \\times" }, { "bbox": [ 302, 708, 525, 775 ], "type": "text", "content": " to " }, { "bbox": [ 302, 708, 525, 775 ], "type": "inline_equation", "content": "4.72 \\times" }, { "bbox": [ 302, 708, 525, 775 ], "type": "text", "content": ". These results substantiate the efficacy of our proposed CICS and" } ] } ], "index": 11 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26988" } ] } ], "index": 12 } ], "page_size": [ 595, 841 ], "page_idx": 5 }, { "para_blocks": [ { "type": "image", "bbox": [ 82, 72, 217, 169 ], "blocks": [ { "bbox": [ 82, 72, 217, 169 ], "lines": [ { "bbox": [ 82, 72, 217, 169 ], "spans": [ { "bbox": [ 82, 72, 217, 169 ], "type": "image", "image_path": "4d0a0cd23962a71175d4919af4bedbb78701ecf7d377b081af28da7276a2fd8a.jpg" } ] } ], "index": 0, "angle": 0, "type": "image_body" }, { "bbox": [ 91, 177, 205, 188 ], "lines": [ { "bbox": [ 91, 177, 205, 188 ], "spans": [ { "bbox": [ 91, 177, 205, 188 ], "type": "text", "content": "(a) LLaMA2-7B prefilling cost." } ] } ], "index": 1, "angle": 0, "type": "image_caption" } ], "index": 0 }, { "type": "image", "bbox": [ 230, 72, 363, 169 ], "blocks": [ { "bbox": [ 230, 72, 363, 169 ], "lines": [ { "bbox": [ 230, 72, 363, 169 ], "spans": [ { "bbox": [ 230, 72, 363, 169 ], "type": "image", "image_path": "02ac1f9baee82793ffc6f1e9d7264a0313e5d1deebf27881a0da781cc59fde74.jpg" } ] } ], "index": 2, "angle": 0, "type": "image_body" }, { "bbox": [ 238, 177, 353, 188 ], "lines": [ { "bbox": [ 238, 177, 353, 188 ], "spans": [ { "bbox": [ 238, 177, 353, 188 ], "type": "text", "content": "(b) LLaMA2-7B decoding cost." } ] } ], "index": 3, "angle": 0, "type": "image_caption" } ], "index": 2 }, { "type": "image", "bbox": [ 377, 72, 509, 169 ], "blocks": [ { "bbox": [ 377, 72, 509, 169 ], "lines": [ { "bbox": [ 377, 72, 509, 169 ], "spans": [ { "bbox": [ 377, 72, 509, 169 ], "type": "image", "image_path": "021198aa21108a5a5f6fdf45eb0cb83987595dad18a64cc1b74fa9843512b576.jpg" } ] } ], "index": 4, "angle": 0, "type": "image_body" }, { "bbox": [ 381, 177, 503, 187 ], "lines": [ { "bbox": [ 381, 177, 503, 187 ], "spans": [ { "bbox": [ 381, 177, 503, 187 ], "type": "text", "content": "(c) LLaMA2-7B end-to-end cost." } ] } ], "index": 5, "angle": 0, "type": "image_caption" } ], "index": 4 }, { "type": "image", "bbox": [ 83, 194, 216, 290 ], "blocks": [ { "bbox": [ 83, 194, 216, 290 ], "lines": [ { "bbox": [ 83, 194, 216, 290 ], "spans": [ { "bbox": [ 83, 194, 216, 290 ], "type": "image", "image_path": "831e8723ae1b310fbfcc747bf5b9d789924599d66d82b91759229fe6cc5f60f7.jpg" } ] } ], "index": 6, "angle": 0, "type": "image_body" }, { "bbox": [ 89, 299, 209, 311 ], "lines": [ { "bbox": [ 89, 299, 209, 311 ], "spans": [ { "bbox": [ 89, 299, 209, 311 ], "type": "text", "content": "(d) LLaMA2-13B prefilling cost." } ] } ], "index": 7, "angle": 0, "type": "image_caption" } ], "index": 6 }, { "type": "image", "bbox": [ 231, 195, 363, 290 ], "blocks": [ { "bbox": [ 231, 195, 363, 290 ], "lines": [ { "bbox": [ 231, 195, 363, 290 ], "spans": [ { "bbox": [ 231, 195, 363, 290 ], "type": "image", "image_path": "ed0dfa326d09407ba2c30bb7b02549336f83e0787fcaa9430375530df9d0b421.jpg" } ] } ], "index": 8, "angle": 0, "type": "image_body" }, { "bbox": [ 237, 299, 355, 311 ], "lines": [ { "bbox": [ 237, 299, 355, 311 ], "spans": [ { "bbox": [ 237, 299, 355, 311 ], "type": "text", "content": "(e) LLaMA2-13B decoding cost." } ] } ], "index": 9, "angle": 0, "type": "image_caption" } ], "index": 8 }, { "type": "image", "bbox": [ 379, 195, 509, 290 ], "blocks": [ { "bbox": [ 379, 195, 509, 290 ], "lines": [ { "bbox": [ 379, 195, 509, 290 ], "spans": [ { "bbox": [ 379, 195, 509, 290 ], "type": "image", "image_path": "503a0af43a367da9df9cbe1f2ead47ff1274a50564d16a77a2ed565fa3ee7bca.jpg" } ] } ], "index": 10, "angle": 0, "type": "image_body" }, { "bbox": [ 381, 299, 505, 310 ], "lines": [ { "bbox": [ 381, 299, 505, 310 ], "spans": [ { "bbox": [ 381, 299, 505, 310 ], "type": "text", "content": "(f) LLaMA2-13B end-to-end cost." } ] } ], "index": 11, "angle": 0, "type": "image_caption" }, { "bbox": [ 135, 319, 456, 331 ], "lines": [ { "bbox": [ 135, 319, 456, 331 ], "spans": [ { "bbox": [ 135, 319, 456, 331 ], "type": "text", "content": "Figure 4: The analysis of speedup for different numbers of retrieved documents." } ] } ], "index": 12, "angle": 0, "type": "image_caption" } ], "index": 10 }, { "bbox": [ 67, 353, 291, 583 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 353, 291, 583 ], "spans": [ { "bbox": [ 67, 353, 291, 583 ], "type": "text", "content": "IDGR mechanisms in effectively eliminating redundant representations. For the decoding phase, the IGPG technique achieves speedup ratios from " }, { "bbox": [ 67, 353, 291, 583 ], "type": "inline_equation", "content": "1.49 \\times" }, { "bbox": [ 67, 353, 291, 583 ], "type": "text", "content": " to " }, { "bbox": [ 67, 353, 291, 583 ], "type": "inline_equation", "content": "4.00 \\times" }, { "bbox": [ 67, 353, 291, 583 ], "type": "text", "content": " through the reduction of autoregressive inference iterations. A comparative analysis between the LLaMA2-7B and 13B architectures (underlining indicates better results) shows slightly better results for the 7B variant. We consider that this effect stems from the fact that smaller models require less additional overhead to store and load representations. Of the various A-RAG methods, the most significant performance improvement " }, { "bbox": [ 67, 353, 291, 583 ], "type": "inline_equation", "content": "(4.72 \\times" }, { "bbox": [ 67, 353, 291, 583 ], "type": "text", "content": " for prefilling) is achieved when applying " }, { "bbox": [ 67, 353, 291, 583 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 67, 353, 291, 583 ], "type": "text", "content": " to DRAGIN. We attribute this to the query refinement mechanism of DRAGIN which improves query similarity, a property that effectively synergizes with our representation reduction approach." } ] } ], "index": 13 }, { "type": "table", "bbox": [ 71, 597, 288, 698 ], "blocks": [ { "bbox": [ 71, 597, 288, 698 ], "lines": [ { "bbox": [ 71, 597, 288, 698 ], "spans": [ { "bbox": [ 71, 597, 288, 698 ], "type": "table", "html": "
ModelsMethodsPref. (s)↓Deco. (s)↓E2E (s)↓
L2-7BDR.3.7112.5519.31
DR.+Ours1.186.079.56
L2-13BDR.3.8419.2626.31
DR.+Ours1.248.0612.34
V-13bDR.4.3425.0333.47
DR.+Ours1.2910.4915.18
", "image_path": "7d0482112850c0a09e91669a906516a6cc0547749eee8582a2503fd3e3fe5665.jpg" } ] } ], "index": 14, "angle": 0, "type": "table_body" } ], "index": 14 }, { "bbox": [ 67, 705, 289, 729 ], "lines": [ { "bbox": [ 67, 705, 289, 729 ], "spans": [ { "bbox": [ 67, 705, 289, 729 ], "type": "text", "content": "Table 3: The runtime of " }, { "bbox": [ 67, 705, 289, 729 ], "type": "inline_equation", "content": "\\mathrm{{IDR}}2" }, { "bbox": [ 67, 705, 289, 729 ], "type": "text", "content": " on 2WikiMultihopQA dataset " }, { "bbox": [ 67, 705, 289, 729 ], "type": "inline_equation", "content": "\\left( {n = 3}\\right)" }, { "bbox": [ 67, 705, 289, 729 ], "type": "text", "content": " ,DR. denotes DRAGIN (Su et al., 2024)." } ] } ], "index": 15, "angle": 0, "type": "text" }, { "bbox": [ 67, 748, 290, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 748, 290, 775 ], "spans": [ { "bbox": [ 67, 748, 290, 775 ], "type": "text", "content": "The specific runtime of the different phases in the generation process are exhibited in Table 3. Our" } ] } ], "index": 16 }, { "bbox": [ 302, 353, 526, 447 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 353, 526, 447 ], "spans": [ { "bbox": [ 302, 353, 526, 447 ], "type": "text", "content": "experiments reveal that even on high-end NVIDIA H800 GPUs, 13B-parameter models require 26.31-33.47 seconds to process a single request. The proposed method significantly reduces the overall latency to 9.56-15.18 seconds, demonstrating substantial performance improvements and enhanced practicality for real-world deployment." } ] } ], "index": 17 }, { "bbox": [ 302, 448, 526, 570 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 448, 526, 570 ], "spans": [ { "bbox": [ 302, 448, 526, 570 ], "type": "text", "content": "Table 2 shows the performance of applying the " }, { "bbox": [ 302, 448, 526, 570 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 448, 526, 570 ], "type": "text", "content": " to the DRAGIN method. The experimental results show that our approach effectively preserves the original performance while exhibiting strong adaptability and generalization across different models and tasks. Notably, our method also carries some enhancements on 2WikiMultiHopQA. We also provide performance results applied to other methods, in the Appendix A.10." } ] } ], "index": 18 }, { "bbox": [ 302, 580, 407, 592 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 580, 407, 592 ], "spans": [ { "bbox": [ 302, 580, 407, 592 ], "type": "text", "content": "4.6 Ablation studies" } ] } ], "index": 19 }, { "bbox": [ 302, 598, 452, 611 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 598, 452, 611 ], "spans": [ { "bbox": [ 302, 598, 452, 611 ], "type": "text", "content": "4.6.1 Impact of Retrieval Size" } ] } ], "index": 20 }, { "bbox": [ 302, 614, 526, 709 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 614, 526, 709 ], "spans": [ { "bbox": [ 302, 614, 526, 709 ], "type": "text", "content": "We analyze the impact of varying numbers of retrieved documents on A-RAG, with results visualized in Figure 4. As the document count increases, the context length grows monotonically, resulting in progressively higher prefilling overhead proportion. Our approach maintains consistent speedup advantages across both prefilling and decoding." } ] } ], "index": 21 }, { "bbox": [ 302, 718, 480, 730 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 718, 480, 730 ], "spans": [ { "bbox": [ 302, 718, 480, 730 ], "type": "text", "content": "4.6.2 Impact of Different Retrievers" } ] } ], "index": 22 }, { "bbox": [ 302, 735, 525, 773 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 735, 525, 773 ], "spans": [ { "bbox": [ 302, 735, 525, 773 ], "type": "text", "content": "Table 4 demonstrates the effectiveness of " }, { "bbox": [ 302, 735, 525, 773 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 735, 525, 773 ], "type": "text", "content": " across different retrievers. Substituting the retriever with SGPT results in an EM score of 29.6 and a" } ] } ], "index": 23 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26989" } ] } ], "index": 24 } ], "page_size": [ 595, 841 ], "page_idx": 6 }, { "para_blocks": [ { "type": "image", "bbox": [ 83, 68, 508, 190 ], "blocks": [ { "bbox": [ 83, 68, 508, 190 ], "lines": [ { "bbox": [ 83, 68, 508, 190 ], "spans": [ { "bbox": [ 83, 68, 508, 190 ], "type": "image", "image_path": "58e9d61317dcc2de20e96cb8e1827ffcd13371fb0a06a688ff8c49588069296b.jpg" } ] } ], "index": 0, "angle": 0, "type": "image_body" }, { "bbox": [ 114, 197, 477, 210 ], "lines": [ { "bbox": [ 114, 197, 477, 210 ], "spans": [ { "bbox": [ 114, 197, 477, 210 ], "type": "text", "content": "Figure 5: The detailed process of A-RAG based on a specific example, with LLaMA-13B." } ] } ], "index": 1, "angle": 0, "type": "image_caption" } ], "index": 0 }, { "type": "table", "bbox": [ 69, 228, 289, 317 ], "blocks": [ { "bbox": [ 69, 228, 289, 317 ], "lines": [ { "bbox": [ 69, 228, 289, 317 ], "spans": [ { "bbox": [ 69, 228, 289, 317 ], "type": "table", "html": "
MethodRetrieverEM ↑E2E ↑
DRAGINBM2530.4
DRAGIN + IDR2BM2534.42.61×
DRAGINSGPT27.3
DRAGIN + IDR2SGPT29.62.73×
", "image_path": "065d4f670f9b24b2bb439cd4b8d91e0d962eb9ec6551b1d0317a0f50e6ba4a2c.jpg" } ] } ], "index": 2, "angle": 0, "type": "table_body" } ], "index": 2 }, { "bbox": [ 67, 371, 291, 425 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 371, 291, 425 ], "spans": [ { "bbox": [ 67, 371, 291, 425 ], "type": "text", "content": "speedup ratio of " }, { "bbox": [ 67, 371, 291, 425 ], "type": "inline_equation", "content": "2.73 \\times" }, { "bbox": [ 67, 371, 291, 425 ], "type": "text", "content": ". The consistent performance and acceleration above " }, { "bbox": [ 67, 371, 291, 425 ], "type": "inline_equation", "content": "2.6 \\times" }, { "bbox": [ 67, 371, 291, 425 ], "type": "text", "content": " across both frequency-based and semantic retrievers confirms the adaptability of " }, { "bbox": [ 67, 371, 291, 425 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 67, 371, 291, 425 ], "type": "text", "content": "." } ] } ], "index": 4 }, { "bbox": [ 67, 436, 133, 449 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 436, 133, 449 ], "spans": [ { "bbox": [ 67, 436, 133, 449 ], "type": "text", "content": "5 Analysis" } ] } ], "index": 5 }, { "bbox": [ 67, 458, 280, 471 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 458, 280, 471 ], "spans": [ { "bbox": [ 67, 458, 280, 471 ], "type": "text", "content": "5.1 Do these modules impact performance?" } ] } ], "index": 6 }, { "bbox": [ 67, 476, 291, 639 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 476, 291, 639 ], "spans": [ { "bbox": [ 67, 476, 291, 639 ], "type": "text", "content": "Table 5 shows how different modules affect the generation quality. The redundant information in the CICS module impacts the generation quality of LLM. This is evident in the performance of LLaMA2-7B, where EM dropped from 22.0 to 20.3, with LLaMA2-13B showing similar decreases. The introduction of IDGR not only alleviates the adverse effects of redundant information but also brings additional performance gains. The LLaMA2-7B achieves EM scores of 25.4, and LLaMA2-13B reaches 34.4. These results confirm that IDGR successfully maintains inference quality." } ] } ], "index": 7 }, { "bbox": [ 67, 649, 194, 661 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 649, 194, 661 ], "spans": [ { "bbox": [ 67, 649, 194, 661 ], "type": "text", "content": "5.2 Specific Case Studies" } ] } ], "index": 8 }, { "bbox": [ 67, 666, 291, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 666, 291, 775 ], "spans": [ { "bbox": [ 67, 666, 291, 775 ], "type": "text", "content": "Figure 5 shows three iterative rounds. In Round 1 (empty CICS), baseline prefilling takes 0.96s. IGPG reduces decoding time from 4.24s to 2.16s. After hallucination detection, the process enters Round 2. " }, { "bbox": [ 67, 666, 291, 775 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 67, 666, 291, 775 ], "type": "text", "content": " reuses the cached representations of #359518 in CICS, saving 0.53s (prefilling). During the decoding process, IGPG builds fragment models, saving 2.31 seconds. For example, Nicos" } ] } ], "index": 9 }, { "bbox": [ 302, 231, 526, 339 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 231, 526, 339 ], "spans": [ { "bbox": [ 302, 231, 526, 339 ], "type": "text", "content": "Poulantzas requires six token-level autoregression: " }, { "bbox": [ 302, 231, 526, 339 ], "type": "inline_equation", "content": "\\underline{N}" }, { "bbox": [ 302, 231, 526, 339 ], "type": "text", "content": ", icos, " }, { "bbox": [ 302, 231, 526, 339 ], "type": "inline_equation", "content": "\\underline{P}" }, { "bbox": [ 302, 231, 526, 339 ], "type": "text", "content": ", oul, ant,zas. After applying IGPG, only one autoregression is needed after the prefix \"Nicos,\" is generated, achieving " }, { "bbox": [ 302, 231, 526, 339 ], "type": "inline_equation", "content": "4 \\times" }, { "bbox": [ 302, 231, 526, 339 ], "type": "text", "content": " local acceleration. Similarly, dates like October 1979, September 1936, February 1568 achieve " }, { "bbox": [ 302, 231, 526, 339 ], "type": "inline_equation", "content": "4 \\times" }, { "bbox": [ 302, 231, 526, 339 ], "type": "text", "content": " acceleration by retrieving corresponding fragments from IGPG using month information. At Round 3, LLM further" } ] } ], "index": 10 }, { "type": "table", "bbox": [ 306, 348, 523, 443 ], "blocks": [ { "bbox": [ 67, 324, 291, 349 ], "lines": [ { "bbox": [ 67, 324, 291, 349 ], "spans": [ { "bbox": [ 67, 324, 291, 349 ], "type": "text", "content": "Table 4: Analysis of different retrievers on the 2Wiki-MultihopQA with LLaMA2-13B " }, { "bbox": [ 67, 324, 291, 349 ], "type": "inline_equation", "content": "(n = 3)" } ] } ], "index": 3, "angle": 0, "type": "table_caption" }, { "bbox": [ 306, 348, 523, 443 ], "lines": [ { "bbox": [ 306, 348, 523, 443 ], "spans": [ { "bbox": [ 306, 348, 523, 443 ], "type": "table", "html": "
CICSIGPGIDGRLLaMA2-7BLLaMA2-13B
EM↑F1↑EM↑F1↑
---22.528.6830.439.91
--20.326.8828.037.49
--22.428.5130.440.02
-20.226.7828.337.62
25.433.1734.441.50
", "image_path": "9b787501e1599af794f276fe5c122c09ab53174701369ccfa39b19f82fa0b33c.jpg" } ] } ], "index": 11, "angle": 0, "type": "table_body" } ], "index": 11 }, { "bbox": [ 302, 450, 524, 475 ], "lines": [ { "bbox": [ 302, 450, 524, 475 ], "spans": [ { "bbox": [ 302, 450, 524, 475 ], "type": "text", "content": "Table 5: Analysis of the impact of different modules on 2WikiMultihopQA based on DRAGIN." } ] } ], "index": 12, "angle": 0, "type": "text" }, { "bbox": [ 302, 487, 525, 610 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 487, 525, 610 ], "spans": [ { "bbox": [ 302, 487, 525, 610 ], "type": "text", "content": "confirms Giuseppe Cesari's lifespan and generates the right answer. With all representations already in CICS, the prefilling time reduces by 0.804 seconds (about " }, { "bbox": [ 302, 487, 525, 610 ], "type": "inline_equation", "content": "80\\%" }, { "bbox": [ 302, 487, 525, 610 ], "type": "text", "content": " of DRAGIN's original time), achieving " }, { "bbox": [ 302, 487, 525, 610 ], "type": "inline_equation", "content": "5 \\times" }, { "bbox": [ 302, 487, 525, 610 ], "type": "text", "content": " speedup. Total savings reach 1.334s (prefilling) and 6.16s (decoding), summing to 7.494s (" }, { "bbox": [ 302, 487, 525, 610 ], "type": "inline_equation", "content": "48.47\\%" }, { "bbox": [ 302, 487, 525, 610 ], "type": "text", "content": " reduction) over DRAGIN's 15.46s, achieving " }, { "bbox": [ 302, 487, 525, 610 ], "type": "inline_equation", "content": "1.95 \\times" }, { "bbox": [ 302, 487, 525, 610 ], "type": "text", "content": " end-to-end acceleration. A more detailed explanation can be viewed in the Appendix A.1." } ] } ], "index": 13 }, { "bbox": [ 302, 618, 381, 631 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 618, 381, 631 ], "spans": [ { "bbox": [ 302, 618, 381, 631 ], "type": "text", "content": "6 Conclusion" } ] } ], "index": 14 }, { "bbox": [ 302, 640, 526, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 640, 526, 775 ], "spans": [ { "bbox": [ 302, 640, 526, 775 ], "type": "text", "content": "This paper presents " }, { "bbox": [ 302, 640, 526, 775 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 640, 526, 775 ], "type": "text", "content": ", a model-agnostic approach that significantly improves the efficiency of A-RAG by addressing redundant representation processing across multiple iterations. To prevent redundant computation, this paper introduces the CICS module for caching document representations. The IDGR module then guides the generation process to focus on crucial information through the instruction-following capability of LLMs. Furthermore, the IGPG module leverages the corre" } ] } ], "index": 15 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26990" } ] } ], "index": 16 } ], "page_size": [ 595, 841 ], "page_idx": 7 }, { "para_blocks": [ { "bbox": [ 67, 71, 291, 195 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 71, 291, 195 ], "spans": [ { "bbox": [ 67, 71, 291, 195 ], "type": "text", "content": "lation between generated content and documents to enable parallel generation of existing content, reducing autoregressive rounds. Through extensive experiments, " }, { "bbox": [ 67, 71, 291, 195 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 67, 71, 291, 195 ], "type": "text", "content": " consistently demonstrates remarkable efficiency improvements, achieving up to " }, { "bbox": [ 67, 71, 291, 195 ], "type": "inline_equation", "content": "2.0\\times" }, { "bbox": [ 67, 71, 291, 195 ], "type": "text", "content": " acceleration while maintaining generation quality. Our future work aims to further compress the KV cache while preserving its representation capabilities." } ] } ], "index": 0 }, { "bbox": [ 67, 203, 149, 216 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 203, 149, 216 ], "spans": [ { "bbox": [ 67, 203, 149, 216 ], "type": "text", "content": "7 Limitations" } ] } ], "index": 1 }, { "bbox": [ 67, 224, 292, 348 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 224, 292, 348 ], "spans": [ { "bbox": [ 67, 224, 292, 348 ], "type": "text", "content": "We acknowledge the limitations of this paper. Although our method is a general approach, it requires the corresponding LLM to be open-source to apply the CICS and IGPG technologies in this paper. It should be noted that the method in this paper is not applicable to LLM APIs that only support text-based interfaces. Therefore, our future work also aims to develop more methods to overcome the limitations of similar scenarios." } ] } ], "index": 2 }, { "bbox": [ 67, 357, 183, 370 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 67, 357, 183, 370 ], "spans": [ { "bbox": [ 67, 357, 183, 370 ], "type": "text", "content": "8 Acknowledgments" } ] } ], "index": 3 }, { "bbox": [ 67, 379, 291, 472 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 379, 291, 472 ], "spans": [ { "bbox": [ 67, 379, 291, 472 ], "type": "text", "content": "This research is supported by the Sichuan International Science and Technology Innovation Cooperation Project with ID 2024YFHZ0317, the Chengdu Science and Technology Burcau Project with ID 2024-YF09-00041-SN, and the National Natural Science Foundation of China Project with ID W2433163." } ] } ], "index": 4 }, { "bbox": [ 68, 496, 127, 508 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 496, 127, 508 ], "spans": [ { "bbox": [ 68, 496, 127, 508 ], "type": "text", "content": "References" } ] } ], "index": 5 }, { "bbox": [ 69, 515, 291, 774 ], "type": "list", "angle": 0, "index": 10, "blocks": [ { "bbox": [ 69, 515, 291, 571 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 515, 291, 571 ], "spans": [ { "bbox": [ 69, 515, 291, 571 ], "type": "text", "content": "Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774." } ] } ], "index": 6 }, { "bbox": [ 69, 579, 291, 635 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 579, 291, 635 ], "spans": [ { "bbox": [ 69, 579, 291, 635 ], "type": "text", "content": "Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. 2023. Palm 2 technical report. arXiv preprint arXiv:2305.10403." } ] } ], "index": 7 }, { "bbox": [ 69, 644, 291, 698 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 644, 291, 698 ], "spans": [ { "bbox": [ 69, 644, 291, 698 ], "type": "text", "content": "Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. Self-rag: Learning to retrieve, generate, and critique through self-reflection. In The Twelfth International Conference on Learning Representations." } ] } ], "index": 8 }, { "bbox": [ 69, 708, 291, 774 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 708, 291, 774 ], "spans": [ { "bbox": [ 69, 708, 291, 774 ], "type": "text", "content": "Sangmin Bae, Jongwoo Ko, Hwanjun Song, and Se-Young Yun. 2023. Fast and robust early-exiting framework for autoregressive language models with synchronized parallel decoding. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 5910-5924." } ] } ], "index": 9 } ], "sub_type": "ref_text" }, { "bbox": [ 304, 72, 526, 774 ], "type": "list", "angle": 0, "index": 21, "blocks": [ { "bbox": [ 304, 72, 526, 150 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 72, 526, 150 ], "spans": [ { "bbox": [ 304, 72, 526, 150 ], "type": "text", "content": "Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, et al. 2022. Improving language models by retrieving from trillions of tokens. In International conference on machine learning, pages 2206-2240. PMLR." } ] } ], "index": 11 }, { "bbox": [ 304, 156, 526, 211 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 156, 526, 211 ], "spans": [ { "bbox": [ 304, 156, 526, 211 ], "type": "text", "content": "Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. 2023. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318." } ] } ], "index": 12 }, { "bbox": [ 304, 218, 526, 285 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 218, 526, 285 ], "spans": [ { "bbox": [ 304, 218, 526, 285 ], "type": "text", "content": "Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. 2023. Vicuna: An open-source chatbot impressing gpt-4 with " }, { "bbox": [ 304, 218, 526, 285 ], "type": "inline_equation", "content": "90\\%" }, { "bbox": [ 304, 218, 526, 285 ], "type": "text", "content": " * chatgpt quality. See https://vicuna.lmsys.org (accessed 14 April 2023), 2(3):6." } ] } ], "index": 13 }, { "bbox": [ 304, 291, 526, 358 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 291, 526, 358 ], "spans": [ { "bbox": [ 304, 291, 526, 358 ], "type": "text", "content": "James Ferguson, Matt Gardner, Hannaneh Hajishirzi, Tushar Khot, and Pradeep Dasigi. 2020. Iirc: A dataset of incomplete information reading comprehension questions. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1137-1147." } ] } ], "index": 14 }, { "bbox": [ 304, 364, 525, 419 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 364, 525, 419 ], "spans": [ { "bbox": [ 304, 364, 525, 419 ], "type": "text", "content": "Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, and Haofen Wang. 2023. Retrieval-augmented generation for large language models: A survey. arXiv preprint arXiv:2312.10997." } ] } ], "index": 15 }, { "bbox": [ 304, 427, 526, 491 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 427, 526, 491 ], "spans": [ { "bbox": [ 304, 427, 526, 491 ], "type": "text", "content": "Mor Geva, Daniel Khashabi, Elad Segal, Tushar Khot, Dan Roth, and Jonathan Berant. 2021. Did aristotle use a laptop? a question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics, 9:346-361." } ] } ], "index": 16 }, { "bbox": [ 304, 500, 526, 565 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 500, 526, 565 ], "spans": [ { "bbox": [ 304, 500, 526, 565 ], "type": "text", "content": "Saurabh Goyal, Anamitra Roy Choudhury, Saurabh Raje, Venkatesan Chakaravarthy, Yogish Sabharwal, and Ashish Verma. 2020. Power-bert: Accelerating bert inference via progressive word-vector elimination. In International Conference on Machine Learning, pages 3690-3699. PMLR." } ] } ], "index": 17 }, { "bbox": [ 304, 573, 526, 628 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 573, 526, 628 ], "spans": [ { "bbox": [ 304, 573, 526, 628 ], "type": "text", "content": "Shailja Gupta, Rajesh Ranjan, and Surya Narayan Singh. 2024. A comprehensive survey of retrieval-augmented generation (rag): Evolution, current landscape and future directions. arXiv preprint arXiv:2410.12837." } ] } ], "index": 18 }, { "bbox": [ 304, 634, 526, 700 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 634, 526, 700 ], "spans": [ { "bbox": [ 304, 634, 526, 700 ], "type": "text", "content": "Xanh Ho, Anh-Khoa Duong Nguyen, Saku Sugawara, and Akiko Aizawa. 2020. Constructing a multi-hop qa dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics, pages 6609-6625." } ] } ], "index": 19 }, { "bbox": [ 304, 708, 526, 774 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 708, 526, 774 ], "spans": [ { "bbox": [ 304, 708, 526, 774 ], "type": "text", "content": "Le Hou, Richard Yuanzhe Pang, Tianyi Zhou, Yuexin Wu, Xinying Song, Xiaodan Song, and Denny Zhou. 2022. Token dropping for efficient bert pretraining. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3774-3784." } ] } ], "index": 20 } ], "sub_type": "ref_text" } ], "discarded_blocks": [ { "bbox": [ 283, 780, 311, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 311, 791 ], "spans": [ { "bbox": [ 283, 780, 311, 791 ], "type": "text", "content": "26991" } ] } ], "index": 22 } ], "page_size": [ 595, 841 ], "page_idx": 8 }, { "para_blocks": [ { "bbox": [ 69, 72, 291, 773 ], "type": "list", "angle": 0, "index": 10, "blocks": [ { "bbox": [ 69, 72, 291, 161 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 72, 291, 161 ], "spans": [ { "bbox": [ 69, 72, 291, 161 ], "type": "text", "content": "Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Ju Hwang, and Jong C Park. 2024. Adaptive-rag: Learning to adapt retrieval-augmented large language models through question complexity. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 7029-7043." } ] } ], "index": 0 }, { "bbox": [ 69, 170, 290, 238 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 170, 290, 238 ], "spans": [ { "bbox": [ 69, 170, 290, 238 ], "type": "text", "content": "Zhengbao Jiang, Frank F Xu, Luyu Gao, Zhiqing Sun, Qian Liu, Jane Dwivedi-Yu, Yiming Yang, Jamie Callan, and Graham Neubig. 2023. Active retrieval augmented generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 7969-7992." } ] } ], "index": 1 }, { "bbox": [ 69, 248, 289, 302 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 248, 289, 302 ], "spans": [ { "bbox": [ 69, 248, 289, 302 ], "type": "text", "content": "Urvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer, and Mike Lewis. 2019. Generalization through memorization: Nearest neighbor language models. In International Conference on Learning Representations." } ] } ], "index": 2 }, { "bbox": [ 69, 313, 290, 401 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 313, 290, 401 ], "spans": [ { "bbox": [ 69, 313, 290, 401 ], "type": "text", "content": "Gyuwan Kim and Kyunghyun Cho. 2021. Length-adaptive transformer: Train once with length drop, use anytime with search. In Joint Conference of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL-IJCNLP 2021, pages 6501-6511. Association for Computational Linguistics (ACL)." } ] } ], "index": 3 }, { "bbox": [ 69, 412, 290, 467 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 412, 290, 467 ], "spans": [ { "bbox": [ 69, 412, 290, 467 ], "type": "text", "content": "Sehoon Kim, Karttikeya Mangalam, Suhong Moon, Jitendra Malik, Michael W Mahoney, Amir Gholami, and Kurt Keutzer. 2024. Speculative decoding with big little decoder. Advances in Neural Information Processing Systems, 36." } ] } ], "index": 4 }, { "bbox": [ 69, 477, 290, 544 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 477, 290, 544 ], "spans": [ { "bbox": [ 69, 477, 290, 544 ], "type": "text", "content": "Sehoon Kim, Sheng Shen, David Thorsley, Amir Gholami, Woosuk Kwon, Joseph Hassoun, and Kurt Keutzer. 2022. Learned token pruning for transformers. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 784-794." } ] } ], "index": 5 }, { "bbox": [ 69, 554, 290, 576 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 554, 290, 576 ], "spans": [ { "bbox": [ 69, 554, 290, 576 ], "type": "text", "content": "M Komeili. 2021. Internet-augmented dialogue generation. arXiv preprint arXiv:2107.07566." } ] } ], "index": 6 }, { "bbox": [ 69, 587, 290, 642 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 587, 290, 642 ], "spans": [ { "bbox": [ 69, 587, 290, 642 ], "type": "text", "content": "Jun Kong, Jin Wang, Liang-Chih Yu, and Xuejie Zhang. 2022. Accelerating inference for pretrained language models by unified multi-perspective early exiting. In Proceedings of the 29th International Conference on Computational Linguistics, pages 4677-4686." } ] } ], "index": 7 }, { "bbox": [ 69, 653, 290, 698 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 653, 290, 698 ], "spans": [ { "bbox": [ 69, 653, 290, 698 ], "type": "text", "content": "Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2023. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning, pages 19274-19286. PMLR." } ] } ], "index": 8 }, { "bbox": [ 69, 708, 290, 773 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 708, 290, 773 ], "spans": [ { "bbox": [ 69, 708, 290, 773 ], "type": "text", "content": "Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33:9459-9474." } ] } ], "index": 9 } ], "sub_type": "ref_text" }, { "bbox": [ 304, 72, 524, 774 ], "type": "list", "angle": 0, "index": 21, "blocks": [ { "bbox": [ 304, 72, 524, 139 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 72, 524, 139 ], "spans": [ { "bbox": [ 304, 72, 524, 139 ], "type": "text", "content": "Xingxuan Li, Ruochen Zhao, Yew Ken Chia, Bosheng Ding, Shafiq Joty, Soujanya Poria, and Lidong Bing. Chain-of-knowledge: Grounding large language models via dynamic knowledge adapting over heterogeneous sources. In The Twelfth International Conference on Learning Representations." } ] } ], "index": 11 }, { "bbox": [ 304, 149, 524, 215 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 149, 524, 215 ], "spans": [ { "bbox": [ 304, 149, 524, 215 ], "type": "text", "content": "Huanshuo Liu, Bo Chen, Menghui Zhu, Jianghao Lin, Jiarui Qin, Hao Zhang, Yang Yang, and Ruiming Tang. 2024. Retrieval-oriented knowledge for click-through rate prediction. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, pages 1441-1451." } ] } ], "index": 12 }, { "bbox": [ 304, 226, 524, 269 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 226, 524, 269 ], "spans": [ { "bbox": [ 304, 226, 524, 269 ], "type": "text", "content": "Songshuo Lu, Hua Wang, Yutian Rong, Zhi Chen, and Yaohua Tang. 2024. Turborag: Accelerating retrieval-augmented generation with precomputed kv caches for chunked text. arXiv preprint arXiv:2410.07590." } ] } ], "index": 13 }, { "bbox": [ 304, 280, 524, 358 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 280, 524, 358 ], "spans": [ { "bbox": [ 304, 280, 524, 358 ], "type": "text", "content": "Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. When not to trust language models: Investigating effectiveness of parametric and non-parametric memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9802-9822." } ] } ], "index": 14 }, { "bbox": [ 304, 368, 524, 423 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 368, 524, 423 ], "spans": [ { "bbox": [ 304, 368, 524, 423 ], "type": "text", "content": "Thomas Merth, Qichen Fu, Mohammad Rastegari, and Mahar Najibi. Superposition prompting: Improving and accelerating retrieval-augmented generation. In *Forty-first International Conference on Machine Learning*." } ] } ], "index": 15 }, { "bbox": [ 304, 433, 524, 533 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 433, 524, 533 ], "spans": [ { "bbox": [ 304, 433, 524, 533 ], "type": "text", "content": "Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, et al. 2024. Specinfer: Accelerating large language model serving with tree-based speculative inference and verification. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, pages 932-949." } ] } ], "index": 16 }, { "bbox": [ 304, 544, 524, 576 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 544, 524, 576 ], "spans": [ { "bbox": [ 304, 544, 524, 576 ], "type": "text", "content": "Niklas Muennighoff. 2022. Sgpt: Gpt sentence embeddings for semantic search. arXiv preprint arXiv:2202.08904." } ] } ], "index": 17 }, { "bbox": [ 304, 587, 524, 632 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 587, 524, 632 ], "spans": [ { "bbox": [ 304, 587, 524, 632 ], "type": "text", "content": "Shiyu Ni, Keping Bi, Jiafeng Guo, and Xueqi Cheng. 2024. When do llms need retrieval augmentation? mitigating llms' overconfidence helps retrieval augmentation. arXiv preprint arXiv:2402.11457." } ] } ], "index": 18 }, { "bbox": [ 304, 642, 524, 708 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 642, 524, 708 ], "spans": [ { "bbox": [ 304, 642, 524, 708 ], "type": "text", "content": "Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. 2019. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32." } ] } ], "index": 19 }, { "bbox": [ 304, 719, 524, 774 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 719, 524, 774 ], "spans": [ { "bbox": [ 304, 719, 524, 774 ], "type": "text", "content": "Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-context retrieval-augmented language models. Transactions of the Association for Computational Linguistics, 11:1316-1331." } ] } ], "index": 20 } ], "sub_type": "ref_text" } ], "discarded_blocks": [ { "bbox": [ 283, 781, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 781, 312, 791 ], "spans": [ { "bbox": [ 283, 781, 312, 791 ], "type": "text", "content": "26992" } ] } ], "index": 22 } ], "page_size": [ 595, 841 ], "page_idx": 9 }, { "para_blocks": [ { "bbox": [ 69, 72, 289, 772 ], "type": "list", "angle": 0, "index": 10, "blocks": [ { "bbox": [ 69, 72, 289, 116 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 72, 289, 116 ], "spans": [ { "bbox": [ 69, 72, 289, 116 ], "type": "text", "content": "Benjamin Frederick Spector and Christopher Re. Accelerating llm inference with staged speculative decoding. In Workshop on Efficient Systems for Foundation Models@ ICML2023." } ] } ], "index": 0 }, { "bbox": [ 69, 124, 289, 179 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 124, 289, 179 ], "spans": [ { "bbox": [ 69, 124, 289, 179 ], "type": "text", "content": "Weihang Su, Yichen Tang, Qingyao Ai, Zhijing Wu, and Yiqun Liu. 2024. Dragin: Dynamic retrieval augmented generation based on the real-time information needs of large language models. arXiv preprint arXiv:2403.10081." } ] } ], "index": 1 }, { "bbox": [ 69, 188, 289, 243 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 188, 289, 243 ], "spans": [ { "bbox": [ 69, 188, 289, 243 ], "type": "text", "content": "Surat Teerapittayanon, Bradley McDanel, and Hsiang-Tsung Kung. 2016. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd international conference on pattern recognition (ICPR), pages 2464-2469. IEEE." } ] } ], "index": 2 }, { "bbox": [ 69, 251, 289, 316 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 251, 289, 316 ], "spans": [ { "bbox": [ 69, 251, 289, 316 ], "type": "text", "content": "Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288." } ] } ], "index": 3 }, { "bbox": [ 69, 325, 289, 401 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 325, 289, 401 ], "spans": [ { "bbox": [ 69, 325, 289, 401 ], "type": "text", "content": "Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2023. Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10014-10037." } ] } ], "index": 4 }, { "bbox": [ 69, 411, 289, 465 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 411, 289, 465 ], "spans": [ { "bbox": [ 69, 411, 289, 465 ], "type": "text", "content": "Hanrui Wang, Zhekai Zhang, and Song Han. 2021. Spatten: Efficient sparse attention architecture with cascade token and head pruning. In 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA), pages 97-110. IEEE." } ] } ], "index": 5 }, { "bbox": [ 69, 474, 289, 539 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 474, 289, 539 ], "spans": [ { "bbox": [ 69, 474, 289, 539 ], "type": "text", "content": "Ruobing Wang, Daren Zha, Shi Yu, Qingfei Zhao, Yuxuan Chen, Yixuan Wang, Shuo Wang, Yukun Yan, Zhenghao Liu, Xu Han, et al. 2024a. Retriever-and-memory: Towards adaptive note-enhanced retrieval-augmented generation. arXiv preprint arXiv:2410.08821." } ] } ], "index": 6 }, { "bbox": [ 69, 548, 289, 614 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 548, 289, 614 ], "spans": [ { "bbox": [ 69, 548, 289, 614 ], "type": "text", "content": "Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. In The Eleventh International Conference on Learning Representations." } ] } ], "index": 7 }, { "bbox": [ 69, 623, 289, 688 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 623, 289, 688 ], "spans": [ { "bbox": [ 69, 623, 289, 688 ], "type": "text", "content": "Zilong Wang, Zifeng Wang, Long Le, Huaixiu Steven Zheng, Swaroop Mishra, Vincent Perot, Yuwei Zhang, Anush Mattapalli, Ankur Taly, Jingbo Shang, et al. 2024b. Speculative rag: Enhancing retrieval augmented generation through drafting. arXiv preprint arXiv:2407.08223." } ] } ], "index": 8 }, { "bbox": [ 69, 697, 289, 772 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 69, 697, 289, 772 ], "spans": [ { "bbox": [ 69, 697, 289, 772 ], "type": "text", "content": "Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H Chi, Quoc V Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems, pages 24824-24837." } ] } ], "index": 9 } ], "sub_type": "ref_text" }, { "bbox": [ 304, 72, 524, 773 ], "type": "list", "angle": 0, "index": 22, "blocks": [ { "bbox": [ 304, 72, 524, 127 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 72, 524, 127 ], "spans": [ { "bbox": [ 304, 72, 524, 127 ], "type": "text", "content": "Ji Xin, Raphael Tang, Jaejun Lee, Yaoliang Yu, and Jimmy Lin. 2020. Deebert: Dynamic early exiting for accelerating bert inference. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2246-2251." } ] } ], "index": 11 }, { "bbox": [ 304, 134, 524, 188 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 134, 524, 188 ], "spans": [ { "bbox": [ 304, 134, 524, 188 ], "type": "text", "content": "Nan Yang, Tao Ge, Liang Wang, Binxing Jiao, Daxin Jiang, Linjun Yang, Rangan Majumder, and Furu Wei. 2023a. Inference with reference: Lossless acceleration of large language models. arXiv preprint arXiv:2304.04487." } ] } ], "index": 12 }, { "bbox": [ 304, 197, 524, 252 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 197, 524, 252 ], "spans": [ { "bbox": [ 304, 197, 524, 252 ], "type": "text", "content": "Seongjun Yang, Gibbeum Lee, Jaewoong Cho, Dimitris Papailiopoulos, and Kangwook Lee. Predictive pipelined decoding: A compute-latency trade-off for exact llm decoding. Transactions on Machine Learning Research." } ] } ], "index": 13 }, { "bbox": [ 304, 259, 524, 303 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 259, 524, 303 ], "spans": [ { "bbox": [ 304, 259, 524, 303 ], "type": "text", "content": "Yuchen Yang, Houqiang Li, Yanfeng Wang, and Yu Wang. 2023b. Improving the reliability of large language models by leveraging uncertainty-aware in-context learning. arXiv preprint arXiv:2310.04782." } ] } ], "index": 14 }, { "bbox": [ 304, 311, 524, 388 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 311, 524, 388 ], "spans": [ { "bbox": [ 304, 311, 524, 388 ], "type": "text", "content": "Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov, and Christopher D Manning. 2018. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics." } ] } ], "index": 15 }, { "bbox": [ 304, 395, 524, 450 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 395, 524, 450 ], "spans": [ { "bbox": [ 304, 395, 524, 450 ], "type": "text", "content": "Zijun Yao, Weijian Qi, Liangming Pan, Shulin Cao, Linmei Hu, Weichuan Liu, Lei Hou, and Juanzi Li. 2024. Seakr: Self-aware knowledge retrieval for adaptive retrieval augmented generation. arXiv preprint arXiv:2406.19215." } ] } ], "index": 16 }, { "bbox": [ 304, 458, 524, 512 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 458, 524, 512 ], "spans": [ { "bbox": [ 304, 458, 524, 512 ], "type": "text", "content": "Jun Zhang, Jue Wang, Huan Li, Lidan Shou, Ke Chen, Gang Chen, and Sharad Mehrotra. 2023a. Draft & verify: Lossless large language model acceleration via self-speculative decoding. arXiv preprint arXiv:2309.08168." } ] } ], "index": 17 }, { "bbox": [ 304, 520, 524, 596 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 520, 524, 596 ], "spans": [ { "bbox": [ 304, 520, 524, 596 ], "type": "text", "content": "Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuan-dong Tian, Christopher Ré, Clark Barrett, et al. 2023b. H2o: Heavy-hitter oracle for efficient generative inference of large language models. Advances in Neural Information Processing Systems, 36:34661-34710." } ] } ], "index": 18 }, { "bbox": [ 304, 604, 524, 660 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 604, 524, 660 ], "spans": [ { "bbox": [ 304, 604, 524, 660 ], "type": "text", "content": "Zhihao Zhang, Alan Zhu, Lijie Yang, Yihua Xu, Lanting Li, Phitchaya Mangpo Phothilimthana, and Zhihao Jia. Accelerating iterative retrieval-augmented language model serving with speculation. In *Forty-first International Conference on Machine Learning*." } ] } ], "index": 19 }, { "bbox": [ 304, 666, 524, 711 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 666, 524, 711 ], "spans": [ { "bbox": [ 304, 666, 524, 711 ], "type": "text", "content": "Zihan Zhang, Meng Fang, and Ling Chen. 2024. Retrievalqa: Assessing adaptive retrieval-augmented generation for short-form open-domain question answering. arXiv preprint arXiv:2402.16457." } ] } ], "index": 20 }, { "bbox": [ 304, 719, 524, 773 ], "type": "ref_text", "angle": 0, "lines": [ { "bbox": [ 304, 719, 524, 773 ], "spans": [ { "bbox": [ 304, 719, 524, 773 ], "type": "text", "content": "Ruochen Zhao, Xingxuan Li, Shafiq Joty, Chengwei Qin, and Lidong Bing. 2023. Verify-and-edit: A knowledge-enhanced chain-of-thought framework. In The 61st Annual Meeting Of The Association For Computational Linguistics." } ] } ], "index": 21 } ], "sub_type": "ref_text" } ], "discarded_blocks": [ { "bbox": [ 283, 781, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 781, 312, 791 ], "spans": [ { "bbox": [ 283, 781, 312, 791 ], "type": "text", "content": "26993" } ] } ], "index": 23 } ], "page_size": [ 595, 841 ], "page_idx": 10 }, { "para_blocks": [ { "bbox": [ 69, 72, 290, 126 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 69, 72, 290, 126 ], "spans": [ { "bbox": [ 69, 72, 290, 126 ], "type": "text", "content": "Wangchunshu Zhou, Canwen Xu, Tao Ge, Julian McAuley, Ke Xu, and Furu Wei. 2020. Bert loses patience: Fast and robust inference with early exit. Advances in Neural Information Processing Systems, 33:18330-18341." } ] } ], "index": 0 }, { "bbox": [ 68, 137, 290, 192 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 68, 137, 290, 192 ], "spans": [ { "bbox": [ 68, 137, 290, 192 ], "type": "text", "content": "Fengbin Zhu, Wenqiang Lei, Chao Wang, Jianming Zheng, Soujanya Poria, and Tat-Seng Chua. 2021. Retrieving and reading: A comprehensive survey on open-domain question answering. arXiv preprint arXiv:2101.00774." } ] } ], "index": 1 }, { "bbox": [ 68, 206, 189, 219 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 206, 189, 219 ], "spans": [ { "bbox": [ 68, 206, 189, 219 ], "type": "text", "content": "A Example Appendix" } ] } ], "index": 2 }, { "bbox": [ 68, 228, 224, 240 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 228, 224, 240 ], "spans": [ { "bbox": [ 68, 228, 224, 240 ], "type": "text", "content": "A.1 More Detail for Case Study" } ] } ], "index": 3 }, { "bbox": [ 67, 246, 291, 435 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 246, 291, 435 ], "spans": [ { "bbox": [ 67, 246, 291, 435 ], "type": "text", "content": "Figure 6 demonstrates the detailed process of running the LLaMA2-13B model with both the original DRAGIN and our proposed IGIR-ARAG framework on the 2WikiMultihotQA dataset. Initially, the model receives the question Who lived longer, Giuseppe Cesari or Nicos Poulantas? Without accessing external knowledge, LLM generates the answer Giuseppe Cesari lived from 1566 to 1640. Nicos Poulantas lived from 1920 to 1979. Thus, Nicos Poulantas lived longer., shown in the Without RAG phase. After hallucination detection indicates low confidence, the process enters the RAG phase, retrieving three documents numbered #3596518, #3596521, and #10413313." } ] } ], "index": 4 }, { "bbox": [ 67, 437, 291, 679 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 437, 291, 679 ], "spans": [ { "bbox": [ 67, 437, 291, 679 ], "type": "text", "content": "In Round 1, with CICS initially empty, no prefilling acceleration occurs, taking 0.96 seconds. IGPG then models the three documents, reducing the Decoding time from 4.24 to 2.16 seconds through parallel decoding. After detecting hallucination in the generated answer, the process enters Round 2. Here, CICS reuses document #359518's representation, saving 0.53 seconds in prefilling. During decoding, IGPG builds fragment models for document reuse, saving 2.31 seconds through parallel decoding. For example, Nicos Poulantzas requires six token inferences: " }, { "bbox": [ 67, 437, 291, 679 ], "type": "inline_equation", "content": "N" }, { "bbox": [ 67, 437, 291, 679 ], "type": "text", "content": ", icos, " }, { "bbox": [ 67, 437, 291, 679 ], "type": "inline_equation", "content": "P" }, { "bbox": [ 67, 437, 291, 679 ], "type": "text", "content": ", oul, ant,zas. With IGPG modeling, only one inference is needed after the prefix \"Nicos,\" achieving " }, { "bbox": [ 67, 437, 291, 679 ], "type": "inline_equation", "content": "4 \\times" }, { "bbox": [ 67, 437, 291, 679 ], "type": "text", "content": " local acceleration. Similarly, dates like October 1979, September 1936, February 1568 achieve " }, { "bbox": [ 67, 437, 291, 679 ], "type": "inline_equation", "content": "4 \\times" }, { "bbox": [ 67, 437, 291, 679 ], "type": "text", "content": " acceleration by retrieving corresponding fragments from IGPG using month information." } ] } ], "index": 5 }, { "bbox": [ 67, 681, 291, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 681, 291, 775 ], "spans": [ { "bbox": [ 67, 681, 291, 775 ], "type": "text", "content": "In Round 2, despite accurately obtaining both individuals' lifespans, the comparison is incorrect, leading to Round 3. Here, LLM further confirms Giuseppe Cesari's lifespan and generates the right answer. With all documents already in CICS, the prefilling time reduces by 0.804 seconds (about " }, { "bbox": [ 67, 681, 291, 775 ], "type": "inline_equation", "content": "80\\%" }, { "bbox": [ 67, 681, 291, 775 ], "type": "text", "content": " of DRAGIN's original time), achieving " }, { "bbox": [ 67, 681, 291, 775 ], "type": "inline_equation", "content": "5 \\times" } ] } ], "index": 6 }, { "bbox": [ 302, 71, 524, 98 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 71, 524, 98 ], "spans": [ { "bbox": [ 302, 71, 524, 98 ], "type": "text", "content": "speedup. Finally, LLM correctly compares the information and provides the right answer." } ] } ], "index": 7 }, { "bbox": [ 302, 100, 525, 169 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 100, 525, 169 ], "spans": [ { "bbox": [ 302, 100, 525, 169 ], "type": "text", "content": "Throughout this case, the framework saves 1.334 seconds in prefilling and 6.16 seconds in Decoding, totaling 7.494 seconds saved. Compared to DRAGIN's original 15.46 seconds, this represents a " }, { "bbox": [ 302, 100, 525, 169 ], "type": "inline_equation", "content": "48.47\\%" }, { "bbox": [ 302, 100, 525, 169 ], "type": "text", "content": " time reduction, achieving " }, { "bbox": [ 302, 100, 525, 169 ], "type": "inline_equation", "content": "1.95 \\times" }, { "bbox": [ 302, 100, 525, 169 ], "type": "text", "content": " speedup." } ] } ], "index": 8 }, { "bbox": [ 303, 185, 405, 198 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 303, 185, 405, 198 ], "spans": [ { "bbox": [ 303, 185, 405, 198 ], "type": "text", "content": "A.2 Dataset Setting" } ] } ], "index": 9 }, { "bbox": [ 302, 206, 526, 450 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 206, 526, 450 ], "spans": [ { "bbox": [ 302, 206, 526, 450 ], "type": "text", "content": "For 2WikiMultihopQA, we followed Wang et al.'s approach for generating reasoning chains and answers, while incorporating prompt templates from Trivedi et al. (2023) and Jiang et al. (2023). The HotpotQA implementation followed Trivedi et al. (2023)'s settings and prompt templates. Both datasets employ Exact Matching at the answer level and F1 scores at the token level. For common sense reasoning evaluation, we adopted the StrategyQA dataset (Geva et al., 2021), implementing Wei et al. (2022)'s methodology and prompt templates, along with insights from Jiang et al. (2023). The evaluation uses Exact Matching to compare generated yes/no answers with standard answers. For reading comprehension capabilities, we adopted the IIRC dataset (Ferguson et al., 2020) following Trivedi et al. (2023)'s setup and evaluation metrics similar to 2WikiMultihopQA." } ] } ], "index": 10 }, { "bbox": [ 302, 454, 525, 534 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 454, 525, 534 ], "spans": [ { "bbox": [ 302, 454, 525, 534 ], "type": "text", "content": "For the prompt templates of different datasets, we use the configuration of the DRAGIN (Su et al., 2024). The number of test samples and the specific test sample ids used for each dataset are kept consistent with DRAGIN (Su et al., 2024). We use 8 shots for those datasets in prompt." } ] } ], "index": 11 }, { "bbox": [ 303, 551, 455, 565 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 303, 551, 455, 565 ], "spans": [ { "bbox": [ 303, 551, 455, 565 ], "type": "text", "content": "A.3 Impact of A-RAG Rounds" } ] } ], "index": 12 }, { "bbox": [ 302, 573, 525, 655 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 573, 525, 655 ], "spans": [ { "bbox": [ 302, 573, 525, 655 ], "type": "text", "content": "We analyzed the impact of our method on the rounds of A-RAG, as shown in Table 7. Our " }, { "bbox": [ 302, 573, 525, 655 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 573, 525, 655 ], "type": "text", "content": " maintains comparable round counts (Ours: 2.34-4.77 vs. DRAGIN: 2.68-5.33), demonstrating that our method adheres to the original design principles of DRAGIN." } ] } ], "index": 13 }, { "bbox": [ 302, 671, 511, 698 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 302, 671, 511, 698 ], "spans": [ { "bbox": [ 302, 671, 511, 698 ], "type": "text", "content": "A.4 Description of the libraries used in the implementation" } ] } ], "index": 14 }, { "bbox": [ 302, 708, 525, 773 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 708, 525, 773 ], "spans": [ { "bbox": [ 302, 708, 525, 773 ], "type": "text", "content": "Our code is developed based on PyTorch (Paszke et al., 2019), with the data loading module constructed on the open source code provided by DRAGIN (Su et al., 2024). We used Elasticsearch-7.17.9 for BM25." } ] } ], "index": 15 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26994" } ] } ], "index": 16 } ], "page_size": [ 595, 841 ], "page_idx": 11 }, { "para_blocks": [ { "type": "image", "bbox": [ 83, 68, 508, 190 ], "blocks": [ { "bbox": [ 83, 68, 508, 190 ], "lines": [ { "bbox": [ 83, 68, 508, 190 ], "spans": [ { "bbox": [ 83, 68, 508, 190 ], "type": "image", "image_path": "b5bc0f0578800595983e6adf5bebe3e767f412e42fac2d04f78f6b0bec68f157.jpg" } ] } ], "index": 0, "angle": 0, "type": "image_body" }, { "bbox": [ 114, 197, 478, 210 ], "lines": [ { "bbox": [ 114, 197, 478, 210 ], "spans": [ { "bbox": [ 114, 197, 478, 210 ], "type": "text", "content": "Figure 6: The detailed process of A-RAG based on a specific example, with LLaMA-13B." } ] } ], "index": 1, "angle": 0, "type": "image_caption" } ], "index": 0 }, { "type": "table", "bbox": [ 91, 221, 503, 280 ], "blocks": [ { "bbox": [ 91, 221, 503, 280 ], "lines": [ { "bbox": [ 91, 221, 503, 280 ], "spans": [ { "bbox": [ 91, 221, 503, 280 ], "type": "table", "html": "
Dataset statistics
2WikiMultihopQAHotpotQAIIRCStrategyQA
Taskmulti-hop QAmulti-hop QAreading comprehension QAcommonsense QA
#Examples100010009541000
", "image_path": "8b9ef16cce52fe36b9b5fe729edb4b0ae95b35701606e151a0d47df9781d04c5.jpg" } ] } ], "index": 2, "angle": 0, "type": "table_body" } ], "index": 2 }, { "type": "table", "bbox": [ 91, 310, 503, 360 ], "blocks": [ { "bbox": [ 91, 310, 503, 360 ], "lines": [ { "bbox": [ 91, 310, 503, 360 ], "spans": [ { "bbox": [ 91, 310, 503, 360 ], "type": "table", "html": "
Evaluation settings
2WikiMultihopQAHotpotQAIIRCStrategyQA
MetricsEM, F1, Prec., Rec.EM, F1, Prec., Rec.EM, F1, Prec., Rec.Accuracy
", "image_path": "bb77fe55031f61adec6af0da2080a4cbd0931dc7b9ec602bfb194943531534df.jpg" } ] } ], "index": 3, "angle": 0, "type": "table_body" } ], "index": 3 }, { "type": "table", "bbox": [ 71, 401, 287, 503 ], "blocks": [ { "bbox": [ 125, 370, 467, 382 ], "lines": [ { "bbox": [ 125, 370, 467, 382 ], "spans": [ { "bbox": [ 125, 370, 467, 382 ], "type": "text", "content": "Table 6: Dataset statistics and experimental settings from DRAGIN (Su et al., 2024)." } ] } ], "index": 4, "angle": 0, "type": "table_caption" }, { "bbox": [ 71, 401, 287, 503 ], "lines": [ { "bbox": [ 71, 401, 287, 503 ], "spans": [ { "bbox": [ 71, 401, 287, 503 ], "type": "table", "html": "
LLMsMethods2WMQAHQASQAIIRC
L2-7BDR.2.683.265.332.73
DR.+Ours2.342.774.772.08
L2-13BDR.2.743.694.663.06
DR.+Ours2.413.454.252.49
V-13BDR.3.023.474.413.28
DR.+Ours2.442.983.932.60
", "image_path": "4cac2f83fd119d1cbef15b7433888056b6b1b03d3afb096bd4dca664eeebd926.jpg" } ] } ], "index": 5, "angle": 0, "type": "table_body" } ], "index": 5 }, { "bbox": [ 91, 511, 265, 523 ], "lines": [ { "bbox": [ 91, 511, 265, 523 ], "spans": [ { "bbox": [ 91, 511, 265, 523 ], "type": "text", "content": "Table 7: The number of rounds of A-RAG." } ] } ], "index": 6, "angle": 0, "type": "text" }, { "bbox": [ 68, 608, 227, 622 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 608, 227, 622 ], "spans": [ { "bbox": [ 68, 608, 227, 622 ], "type": "text", "content": "A.5 Details of Prompt Template" } ] } ], "index": 7 }, { "bbox": [ 319, 404, 405, 417 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 319, 404, 405, 417 ], "spans": [ { "bbox": [ 319, 404, 405, 417 ], "type": "text", "content": "Prompt (Fewshots)" } ] } ], "index": 8 }, { "bbox": [ 318, 427, 509, 453 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 318, 427, 509, 453 ], "spans": [ { "bbox": [ 318, 427, 509, 453 ], "type": "text", "content": "Question: When did the director of film Hypocrite (Film) die?" } ] } ], "index": 9 }, { "bbox": [ 318, 454, 509, 507 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 318, 454, 509, 507 ], "spans": [ { "bbox": [ 318, 454, 509, 507 ], "type": "text", "content": "Answer: The film Hypocrite was directed by Miguel Morayta. Miguel Morayta died on 19 June 2013. So the answer is 19 June 2013." } ] } ], "index": 10 }, { "bbox": [ 318, 507, 509, 550 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 318, 507, 509, 550 ], "spans": [ { "bbox": [ 318, 507, 509, 550 ], "type": "text", "content": "February 1959. Ivania Martinich was born on 25 July 1995. Thus, Martin Hodge was born first. So the answer is Martin Hodge." } ] } ], "index": 11 }, { "bbox": [ 319, 553, 346, 560 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 319, 553, 346, 560 ], "spans": [ { "bbox": [ 319, 553, 346, 560 ], "type": "text", "content": "···" } ] } ], "index": 12 }, { "bbox": [ 318, 561, 511, 657 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 318, 561, 511, 657 ], "spans": [ { "bbox": [ 318, 561, 511, 657 ], "type": "text", "content": "Question: Which album was released earlier, Ngrtd or Everything I Love? Answer: Ngrtd was released on May 18, 2015 by Bomayé Music. Everything I Love was released on October 29, 1996. Thus, Everything I Love was released earlier. So the answer is Everything I Love." } ] } ], "index": 13 }, { "bbox": [ 67, 689, 290, 728 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 689, 290, 728 ], "spans": [ { "bbox": [ 67, 689, 290, 728 ], "type": "text", "content": "The IDGR employs the prompt to guide the LLM in filtering redundant cached information, as shown below." } ] } ], "index": 14 }, { "bbox": [ 78, 761, 220, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 78, 761, 220, 775 ], "spans": [ { "bbox": [ 78, 761, 220, 775 ], "type": "text", "content": "Step1: Learning from fewshots." } ] } ], "index": 15 }, { "bbox": [ 302, 748, 524, 773 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 748, 524, 773 ], "spans": [ { "bbox": [ 302, 748, 524, 773 ], "type": "text", "content": "Step2: Input the retrieved documents into the LLM." } ] } ], "index": 16 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26995" } ] } ], "index": 17 } ], "page_size": [ 595, 841 ], "page_idx": 12 }, { "para_blocks": [ { "bbox": [ 84, 72, 221, 85 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 84, 72, 221, 85 ], "spans": [ { "bbox": [ 84, 72, 221, 85 ], "type": "text", "content": "Prompt (Retrieved documents)" } ] } ], "index": 0 }, { "bbox": [ 84, 95, 124, 105 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 95, 124, 105 ], "spans": [ { "bbox": [ 84, 95, 124, 105 ], "type": "text", "content": "Context:" } ] } ], "index": 1 }, { "bbox": [ 84, 107, 275, 134 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 107, 275, 134 ], "spans": [ { "bbox": [ 84, 107, 275, 134 ], "type": "text", "content": "[1672255] Christian August, Prince of Anhalt-Zerbst Christian August...." } ] } ], "index": 2 }, { "bbox": [ 84, 135, 275, 174 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 135, 275, 174 ], "spans": [ { "bbox": [ 84, 135, 275, 174 ], "type": "text", "content": "[12419160] Frederick Augustus, Prince of Anhalt-Zerbst Frederick Augustus, Prince...." } ] } ], "index": 3 }, { "bbox": [ 84, 175, 275, 202 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 175, 275, 202 ], "spans": [ { "bbox": [ 84, 175, 275, 202 ], "type": "text", "content": "[1672259] 1727 in Vechelde, Christian August married Johanna Elisabeth." } ] } ], "index": 4 }, { "bbox": [ 67, 221, 289, 247 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 221, 289, 247 ], "spans": [ { "bbox": [ 67, 221, 289, 247 ], "type": "text", "content": "Step3: Using IDGR to guide the model to focus on relevant content for the current round." } ] } ], "index": 5 }, { "bbox": [ 84, 260, 113, 271 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 84, 260, 113, 271 ], "spans": [ { "bbox": [ 84, 260, 113, 271 ], "type": "text", "content": "IDGR" } ] } ], "index": 6 }, { "bbox": [ 84, 280, 234, 293 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 280, 234, 293 ], "spans": [ { "bbox": [ 84, 280, 234, 293 ], "type": "text", "content": "Document: [12368478] is related." } ] } ], "index": 7 }, { "bbox": [ 84, 294, 245, 306 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 294, 245, 306 ], "spans": [ { "bbox": [ 84, 294, 245, 306 ], "type": "text", "content": "Document: [10028469] is unrelated." } ] } ], "index": 8 }, { "bbox": [ 84, 307, 196, 318 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 307, 196, 318 ], "spans": [ { "bbox": [ 84, 307, 196, 318 ], "type": "text", "content": "The relevance scores are:" } ] } ], "index": 9 }, { "bbox": [ 85, 321, 176, 333 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 85, 321, 176, 333 ], "spans": [ { "bbox": [ 85, 321, 176, 333 ], "type": "text", "content": "[12415199] Score: 3" } ] } ], "index": 10 }, { "bbox": [ 85, 334, 172, 347 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 85, 334, 172, 347 ], "spans": [ { "bbox": [ 85, 334, 172, 347 ], "type": "text", "content": "[5881721] Score: 2" } ] } ], "index": 11 }, { "bbox": [ 85, 348, 176, 360 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 85, 348, 176, 360 ], "spans": [ { "bbox": [ 85, 348, 176, 360 ], "type": "text", "content": "[12368478] Score: 1" } ] } ], "index": 12 }, { "bbox": [ 84, 362, 249, 373 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 84, 362, 249, 373 ], "spans": [ { "bbox": [ 84, 362, 249, 373 ], "type": "text", "content": "Answer in the same format as before." } ] } ], "index": 13 }, { "bbox": [ 68, 395, 252, 408 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 395, 252, 408 ], "spans": [ { "bbox": [ 68, 395, 252, 408 ], "type": "text", "content": "A.6 Results Calculation Methodology" } ] } ], "index": 14 }, { "bbox": [ 67, 415, 290, 563 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 415, 290, 563 ], "spans": [ { "bbox": [ 67, 415, 290, 563 ], "type": "text", "content": "The calculation method of the speedup ratio presented in Table 8: first compute the individual speedup ratio for each sample, then calculate the arithmetic mean of all the ratios. The calculation method of the speed presented in Table 9 is calculated by taking the arithmetic mean of all sample speeds. Notably, the speedup ratio calculated by dividing the average speeds recorded in Table 9 differs from the result shown in Table 8, which is obtained by averaging individual sample speedup ratios." } ] } ], "index": 15 }, { "bbox": [ 68, 578, 232, 592 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 578, 232, 592 ], "spans": [ { "bbox": [ 68, 578, 232, 592 ], "type": "text", "content": "A.7 Explanation of Overlap Rate" } ] } ], "index": 16 }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 599, 291, 773 ], "spans": [ { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": "Figure 7 shows the overlap rate of the retrieved documents between different rounds. For example, as illustrated in Figure 7a, in the case of retrieving 3 documents, " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "25\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": " of the samples have an overlap rate between " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "0\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": " and " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "33\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": ", " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "25\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": " have an overlap rate between " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "33\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": " and " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "66\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": ", " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "25\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": " have an overlap rate of " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "66\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": ", and the remaining " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "25\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": " have an overlap rate greater than " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "66\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": ". The red dots represent the mean of the overlap rate in different numbers of retrieved documents. For example, in Figure 7b, when the number of the retrieved documents is 5, the mean overlap rate of the retrieved documents between the first and third rounds is " }, { "bbox": [ 67, 599, 291, 773 ], "type": "inline_equation", "content": "37.95\\%" }, { "bbox": [ 67, 599, 291, 773 ], "type": "text", "content": "." } ] } ], "index": 17 }, { "type": "image", "bbox": [ 305, 70, 522, 128 ], "blocks": [ { "bbox": [ 305, 70, 522, 128 ], "lines": [ { "bbox": [ 305, 70, 522, 128 ], "spans": [ { "bbox": [ 305, 70, 522, 128 ], "type": "image", "image_path": "e96a99574d2df964c791041e078565edaf8cc871d5272ad4e0847b8053aaa66d.jpg" } ] } ], "index": 18, "angle": 0, "type": "image_body" }, { "bbox": [ 308, 134, 520, 146 ], "lines": [ { "bbox": [ 308, 134, 520, 146 ], "spans": [ { "bbox": [ 308, 134, 520, 146 ], "type": "text", "content": "(a) Overlap rate comparison between round 1 and round 2." } ] } ], "index": 19, "angle": 0, "type": "image_caption" } ], "index": 18 }, { "type": "image", "bbox": [ 305, 160, 522, 219 ], "blocks": [ { "bbox": [ 305, 160, 522, 219 ], "lines": [ { "bbox": [ 305, 160, 522, 219 ], "spans": [ { "bbox": [ 305, 160, 522, 219 ], "type": "image", "image_path": "56225b02d3596ae13a3afce2e583741e1828cacc7a2b423bef545c1b42d3edac.jpg" } ] } ], "index": 20, "angle": 0, "type": "image_body" }, { "bbox": [ 307, 225, 520, 236 ], "lines": [ { "bbox": [ 307, 225, 520, 236 ], "spans": [ { "bbox": [ 307, 225, 520, 236 ], "type": "text", "content": "(b) Overlap rate comparison between round 1 and round 3." } ] } ], "index": 21, "angle": 0, "type": "image_caption" } ], "index": 20 }, { "type": "image", "bbox": [ 305, 251, 522, 310 ], "blocks": [ { "bbox": [ 305, 251, 522, 310 ], "lines": [ { "bbox": [ 305, 251, 522, 310 ], "spans": [ { "bbox": [ 305, 251, 522, 310 ], "type": "image", "image_path": "87e9851ff9d2493e31dc3243b61f5302a57d5d20e55333815caadeb8272310e8.jpg" } ] } ], "index": 22, "angle": 0, "type": "image_body" }, { "bbox": [ 307, 316, 520, 327 ], "lines": [ { "bbox": [ 307, 316, 520, 327 ], "spans": [ { "bbox": [ 307, 316, 520, 327 ], "type": "text", "content": "(c) Overlap rate comparison between round 1 and round 4." } ] } ], "index": 23, "angle": 0, "type": "image_caption" }, { "bbox": [ 302, 336, 524, 359 ], "lines": [ { "bbox": [ 302, 336, 524, 359 ], "spans": [ { "bbox": [ 302, 336, 524, 359 ], "type": "text", "content": "Figure 7: The overlap rate comparison between different rounds." } ] } ], "index": 24, "angle": 0, "type": "image_caption" } ], "index": 22 }, { "bbox": [ 303, 382, 495, 407 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 303, 382, 495, 407 ], "spans": [ { "bbox": [ 303, 382, 495, 407 ], "type": "text", "content": "A.8 The efficiency of " }, { "bbox": [ 303, 382, 495, 407 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 303, 382, 495, 407 ], "type": "text", "content": " on different devices" } ] } ], "index": 25 }, { "bbox": [ 302, 413, 525, 534 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 413, 525, 534 ], "spans": [ { "bbox": [ 302, 413, 525, 534 ], "type": "text", "content": "To verify whether " }, { "bbox": [ 302, 413, 525, 534 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 413, 525, 534 ], "type": "text", "content": " has the same effect on different hardware devices, we tested the runtime of LLaMA-7B on the 2WikiMultihopQA dataset on Nvidia 3090 GPU and Nvidia H800 GPU respectively. As shown in Figure 9, we tested the runtime when setting different numbers of retrieved documents. The experimental results show that our " }, { "bbox": [ 302, 413, 525, 534 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 302, 413, 525, 534 ], "type": "text", "content": " framework achieves consistent performance improvements across different hardware devices." } ] } ], "index": 26 }, { "bbox": [ 303, 544, 498, 558 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 303, 544, 498, 558 ], "spans": [ { "bbox": [ 303, 544, 498, 558 ], "type": "text", "content": "A.9 Hyperparameters Analysis of " }, { "bbox": [ 303, 544, 498, 558 ], "type": "inline_equation", "content": "M, N" } ] } ], "index": 27 }, { "type": "image", "bbox": [ 310, 572, 517, 672 ], "blocks": [ { "bbox": [ 310, 572, 517, 672 ], "lines": [ { "bbox": [ 310, 572, 517, 672 ], "spans": [ { "bbox": [ 310, 572, 517, 672 ], "type": "image", "image_path": "ddc47511143cc35d7036f6e1f511856a7dbf40f602ee493de39dee2d7c9c3c46.jpg" } ] } ], "index": 28, "angle": 0, "type": "image_body" }, { "bbox": [ 302, 682, 524, 706 ], "lines": [ { "bbox": [ 302, 682, 524, 706 ], "spans": [ { "bbox": [ 302, 682, 524, 706 ], "type": "text", "content": "Figure 8: The speed-up ratios achieved with different combinations of " }, { "bbox": [ 302, 682, 524, 706 ], "type": "inline_equation", "content": "M, N" }, { "bbox": [ 302, 682, 524, 706 ], "type": "text", "content": "." } ] } ], "index": 29, "angle": 0, "type": "image_caption" } ], "index": 28 }, { "bbox": [ 302, 721, 525, 775 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 302, 721, 525, 775 ], "spans": [ { "bbox": [ 302, 721, 525, 775 ], "type": "text", "content": "We conducted extensive experiments using LLaMA2-7B on the 2WikiMultihopQA dataset to evaluate the impact of different queue depths (M) and thread counts (N) on processing speed," } ] } ], "index": 30 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26996" } ] } ], "index": 31 } ], "page_size": [ 595, 841 ], "page_idx": 13 }, { "para_blocks": [ { "bbox": [ 67, 71, 290, 98 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 71, 290, 98 ], "spans": [ { "bbox": [ 67, 71, 290, 98 ], "type": "text", "content": "as shown in Figure.8. Based on these results, we chose " }, { "bbox": [ 67, 71, 290, 98 ], "type": "inline_equation", "content": "\\mathrm{N} = 5" }, { "bbox": [ 67, 71, 290, 98 ], "type": "text", "content": " and " }, { "bbox": [ 67, 71, 290, 98 ], "type": "inline_equation", "content": "\\mathrm{M} = 7" }, { "bbox": [ 67, 71, 290, 98 ], "type": "text", "content": " as our optimal configuration." } ] } ], "index": 0 }, { "bbox": [ 68, 107, 166, 119 ], "type": "title", "angle": 0, "lines": [ { "bbox": [ 68, 107, 166, 119 ], "spans": [ { "bbox": [ 68, 107, 166, 119 ], "type": "text", "content": "A.10 More Results" } ] } ], "index": 1 }, { "bbox": [ 67, 125, 291, 246 ], "type": "text", "angle": 0, "lines": [ { "bbox": [ 67, 125, 291, 246 ], "spans": [ { "bbox": [ 67, 125, 291, 246 ], "type": "text", "content": "The results of acceleration for different models are listed in Table 8. The results of the runtime on different models are listed in Table 9. The results of performance using other methods are listed in Table 10. Table 11 shows the average number of documents cached per round and the corresponding memory requirements for different retrieval document formats. Table 12 adds an independent experimental result on the combination of CICS+IDGR." } ] } ], "index": 2 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 313, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 313, 791 ], "spans": [ { "bbox": [ 283, 780, 313, 791 ], "type": "text", "content": "26997" } ] } ], "index": 3 } ], "page_size": [ 595, 841 ], "page_idx": 14 }, { "para_blocks": [ { "type": "table", "bbox": [ 70, 91, 523, 523 ], "blocks": [ { "bbox": [ 70, 91, 523, 523 ], "lines": [ { "bbox": [ 70, 91, 523, 523 ], "spans": [ { "bbox": [ 70, 91, 523, 523 ], "type": "table", "html": "
ModelsMethods2WikiMultihopQAHotpotQAStrategyQAIIRC
Pref.Deco.E2EPref.Deco.E2EPref.Deco.E2EPref.Deco.E2E
Llama2-7BFLRAG
FLRAG+Ours2.23×2.37×1.75×2.27×1.85×1.53×1.75×1.49×1.40×3.08×2.76×2.10×
FSRAG
FSRAG+Ours2.04×2.64×2.32×2.41×1.88×1.69×2.36×1.97×1.79×2.92×2.88×2.20×
FLARE
FLARE+Ours2.81×2.74×2.60×3.12×2.61×2.31×2.71×2.27×1.77×3.54×2.97×2.89×
DRAGIN
DRAGIN+Ours3.34×2.77×2.52×4.09×2.08×2.09×3.39×1.98×1.95×4.49×2.58×2.58×
Llama2-13BFLRAG
FLRAG+Ours2.12×2.36×1.64×2.29×2.00×1.54×1.76×1.62×1.40×2.70×2.65×1.83×
FSRAG
FSRAG+Ours2.11×2.47×1.79×2.16×2.05×1.59×1.74×1.59×1.44×2.16×2.65×1.74×
FLARE
FLARE+Ours1.98×2.24×2.16×2.42×1.87×1.80×2.45×1.71×1.69×3.58×3.15×3.01
DRAGIN
DRAGIN+Ours3.25×3.21×2.61×3.97×2.15×2.01×3.15×1.98×1.87×4.25×2.86×2.65×
Llama2-70BFLRAG
FLRAG+Ours1.55×2.24×1.89×1.53×2.14×1.76×1.22×1.64×1.46×1.75×2.27×1.92×
FSRAG
FSRAG+Ours1.61×2.60×2.33×1.68×2.48×2.27×1.64×2.32×2.20×1.82×2.83×2.62×
FLARE
FLARE+Ours1.87×2.09×1.99×2.33×1.85×1.81×2.34×1.69×1.65×3.68×3.06×2.98×
DRAGIN
DRAGIN+Ours3.02×2.67×2.23×3.37×2.16×1.98×2.99×1.65×1.64×3.31×2.79×2.71×
Vicuna-7B-v1.5FLRAG
FLRAG+Ours2.09×2.21×1.68×2.29×1.96×1.61×1.72×1.61×1.37×2.81×2.48×1.84×
FSRAG
FSRAG+Ours2.44×2.92×2.19×2.11×2.00×1.78×1.69×1.64×1.53×2.59×2.49×2.16×
FLARE
FLARE+Ours2.01×2.09×1.98×2.11×2.05×1.93×1.96×1.88×1.74×2.65×2.22×2.19×
DRAGIN
DRAGIN+Ours3.84×2.76×2.54×3.97×1.98×2.00×3.46×2.25×2.17×4.40×2.39×2.31×
Vicuna-13B-v1.5FLRAG
FLRAG+Ours2.05×2.25×1.60×2.22×1.97×1.51×1.65×1.55×1.31×2.66×2.72×1.82×
FSRAG
FSRAG+Ours2.23×2.31×1.75×2.15×2.31×1.66×2.02×1.78×1.53×2.35×2.69×1.92×
FLARE
FLARE+Ours2.04×2.14×2.06×2.27×2.07×1.98×2.05×1.93×1.89×2.70×2.24×2.22×
DRAGIN
DRAGIN+Ours3.57×2.81×2.55×4.14×2.29×2.15×3.25×1.88×1.82×4.72×4.00×3.53×
", "image_path": "8be83a226c2660f7f22878d52fae4385deaa02e0b7b97736a999f15a19cd00c4.jpg" } ] } ], "index": 0, "angle": 0, "type": "table_body" } ], "index": 0 }, { "type": "table", "bbox": [ 71, 596, 521, 727 ], "blocks": [ { "bbox": [ 128, 531, 464, 544 ], "lines": [ { "bbox": [ 128, 531, 464, 544 ], "spans": [ { "bbox": [ 128, 531, 464, 544 ], "type": "text", "content": "Table 8: The average speedup ratios before and after applying the " }, { "bbox": [ 128, 531, 464, 544 ], "type": "inline_equation", "content": "\\mathrm{IDR}_2" }, { "bbox": [ 128, 531, 464, 544 ], "type": "text", "content": " framework." } ] } ], "index": 1, "angle": 0, "type": "table_caption" }, { "bbox": [ 71, 596, 521, 727 ], "lines": [ { "bbox": [ 71, 596, 521, 727 ], "spans": [ { "bbox": [ 71, 596, 521, 727 ], "type": "table", "html": "
ModelsMethods2WikiMultihopQAHotpotQAStrategyQAIIRC
Pref.Deco.E2EPref.Deco.E2EPref.Deco.E2EPref.Deco.E2E
Llama2-7BDRAGIN3.7112.5519.315.5021.6131.836.8128.9941.794.7325.3133.75
DRAGIN+Ours1.186.079.561.4912.5818.262.1918.2225.711.1812.2916.20
Llama2-13BDRAGIN3.8419.2626.316.2027.1139.905.9740.0152.625.2941.3051.24
DRAGIN+Ours1.248.0612.341.7916.3524.742.1226.2534.741.3317.5022.98
Vicuna-7B-v1.5DRAGIN4.5616.4024.075.9016.8327.665.1119.2028.115.6333.6343.38
DRAGIN+Ours1.307.6211.611.599.5815.601.6911.3516.591.4717.7123.08
Vicuna-13B-v1.5DRAGIN4.3425.0333.475.9621.5533.695.7731.9843.945.7654.2165.47
DRAGIN+Ours1.2910.4915.181.5310.4517.301.9319.8327.861.3818.7524.89
", "image_path": "7274680f5fcc5615d7620c7c866787f1638e7ff7f1ead7630636d2b08b698ed7.jpg" } ] } ], "index": 2, "angle": 0, "type": "table_body" } ], "index": 2 }, { "bbox": [ 140, 736, 451, 749 ], "lines": [ { "bbox": [ 140, 736, 451, 749 ], "spans": [ { "bbox": [ 140, 736, 451, 749 ], "type": "text", "content": "Table 9: The average runtime before and after applying the " }, { "bbox": [ 140, 736, 451, 749 ], "type": "inline_equation", "content": "\\mathrm{{IDR}}{}_{2}" }, { "bbox": [ 140, 736, 451, 749 ], "type": "text", "content": " framework." } ] } ], "index": 3, "angle": 0, "type": "text" } ], "discarded_blocks": [ { "bbox": [ 283, 781, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 781, 312, 791 ], "spans": [ { "bbox": [ 283, 781, 312, 791 ], "type": "text", "content": "26998" } ] } ], "index": 4 } ], "page_size": [ 595, 841 ], "page_idx": 15 }, { "para_blocks": [ { "type": "table", "bbox": [ 94, 121, 500, 257 ], "blocks": [ { "bbox": [ 94, 121, 500, 257 ], "lines": [ { "bbox": [ 94, 121, 500, 257 ], "spans": [ { "bbox": [ 94, 121, 500, 257 ], "type": "table", "html": "
LLMsMethods2WQAHQASQAIIRC
EM↑F1↑EM↑F1↑Acc.↑EM↑F1↑
Llama2-7BFLRAG†14.1019.4915.1024.5563.5014.6818.83
FLRAG+Ours16.0024.3013.7023.5362.3013.4217.38
Llama2-13BFLRAG†21.9032.6321.8033.4366.7015.6218.93
FLRAG+Ours20.4030.2617.5028.5264.6015.6319.41
Vicuna-13bFLRAG†7.9021.9715.328.1261.609.2212.41
FLRAG+Ours6.8012.8314.2025.4861.998.3910.20
", "image_path": "0c94fc1a30167e3be553759979d8f0230627d8782aaed3c59912851e212fd28c.jpg" } ] } ], "index": 0, "angle": 0, "type": "table_body" } ], "index": 0 }, { "bbox": [ 67, 264, 524, 278 ], "lines": [ { "bbox": [ 67, 264, 524, 278 ], "spans": [ { "bbox": [ 67, 264, 524, 278 ], "type": "text", "content": "Table 10: The performance comparison on different datasets with different models. The " }, { "bbox": [ 67, 264, 524, 278 ], "type": "inline_equation", "content": "\\dagger" }, { "bbox": [ 67, 264, 524, 278 ], "type": "text", "content": " represents the reproduction." } ] } ], "index": 1, "angle": 0, "type": "text" }, { "type": "image", "bbox": [ 72, 409, 213, 513 ], "blocks": [ { "bbox": [ 121, 389, 470, 402 ], "lines": [ { "bbox": [ 121, 389, 470, 402 ], "spans": [ { "bbox": [ 121, 389, 470, 402 ], "type": "text", "content": "Performance Analysis of LLaMA2-7B Model Tested on Nvidia 3090 GPUs" } ] } ], "index": 2, "angle": 0, "type": "image_caption" }, { "bbox": [ 72, 409, 213, 513 ], "lines": [ { "bbox": [ 72, 409, 213, 513 ], "spans": [ { "bbox": [ 72, 409, 213, 513 ], "type": "image", "image_path": "6aa52dce22bc6787b098f7f013973c336750180e6ab734a1ddb598646a909e79.jpg" } ] } ], "index": 3, "angle": 0, "type": "image_body" }, { "bbox": [ 85, 521, 200, 533 ], "lines": [ { "bbox": [ 85, 521, 200, 533 ], "spans": [ { "bbox": [ 85, 521, 200, 533 ], "type": "text", "content": "(a) LLaMA2-7B prefilling cost." } ] } ], "index": 4, "angle": 0, "type": "image_caption" } ], "index": 3 }, { "type": "image", "bbox": [ 227, 410, 366, 513 ], "blocks": [ { "bbox": [ 227, 410, 366, 513 ], "lines": [ { "bbox": [ 227, 410, 366, 513 ], "spans": [ { "bbox": [ 227, 410, 366, 513 ], "type": "image", "image_path": "3c4853bbd2b5455e88d7747ebb2147fb26de4040fbad02e6fd5045c86bc15afc.jpg" } ] } ], "index": 5, "angle": 0, "type": "image_body" }, { "bbox": [ 239, 521, 354, 533 ], "lines": [ { "bbox": [ 239, 521, 354, 533 ], "spans": [ { "bbox": [ 239, 521, 354, 533 ], "type": "text", "content": "(b) LLaMA2-7B decoding cost." } ] } ], "index": 6, "angle": 0, "type": "image_caption" } ], "index": 5 }, { "type": "image", "bbox": [ 381, 411, 521, 513 ], "blocks": [ { "bbox": [ 381, 411, 521, 513 ], "lines": [ { "bbox": [ 381, 411, 521, 513 ], "spans": [ { "bbox": [ 381, 411, 521, 513 ], "type": "image", "image_path": "eaa85d781832b4eb96a729be1dd74990c67b7399144ee1527d3399ed162b3cb8.jpg" } ] } ], "index": 7, "angle": 0, "type": "image_body" }, { "bbox": [ 390, 521, 511, 532 ], "lines": [ { "bbox": [ 390, 521, 511, 532 ], "spans": [ { "bbox": [ 390, 521, 511, 532 ], "type": "text", "content": "(c) LLaMA2-7B end-to-end cost." } ] } ], "index": 8, "angle": 0, "type": "image_caption" } ], "index": 7 }, { "type": "image", "bbox": [ 72, 574, 213, 677 ], "blocks": [ { "bbox": [ 120, 553, 470, 566 ], "lines": [ { "bbox": [ 120, 553, 470, 566 ], "spans": [ { "bbox": [ 120, 553, 470, 566 ], "type": "text", "content": "Performance Analysis of LLaMA2-7B Model Tested on Nvidia H800 GPUs" } ] } ], "index": 9, "angle": 0, "type": "image_caption" }, { "bbox": [ 72, 574, 213, 677 ], "lines": [ { "bbox": [ 72, 574, 213, 677 ], "spans": [ { "bbox": [ 72, 574, 213, 677 ], "type": "image", "image_path": "eaa294afdf9a46efedf7c555ac06f76986fd9ecaa2309ae071d2f5e89865f28b.jpg" } ] } ], "index": 10, "angle": 0, "type": "image_body" }, { "bbox": [ 85, 685, 200, 697 ], "lines": [ { "bbox": [ 85, 685, 200, 697 ], "spans": [ { "bbox": [ 85, 685, 200, 697 ], "type": "text", "content": "(d) LLaMA2-7B prefilling cost." } ] } ], "index": 11, "angle": 0, "type": "image_caption" }, { "bbox": [ 134, 705, 457, 718 ], "lines": [ { "bbox": [ 134, 705, 457, 718 ], "spans": [ { "bbox": [ 134, 705, 457, 718 ], "type": "text", "content": "Figure 9: The speed comparison under different number of retrieved documents." } ] } ], "index": 16, "angle": 0, "type": "image_caption" } ], "index": 10 }, { "type": "image", "bbox": [ 227, 574, 366, 677 ], "blocks": [ { "bbox": [ 227, 574, 366, 677 ], "lines": [ { "bbox": [ 227, 574, 366, 677 ], "spans": [ { "bbox": [ 227, 574, 366, 677 ], "type": "image", "image_path": "7bad51e4d4001238f03f886cd6317b29a502156eb925478957ccd4ac7176b7d4.jpg" } ] } ], "index": 12, "angle": 0, "type": "image_body" }, { "bbox": [ 239, 685, 354, 697 ], "lines": [ { "bbox": [ 239, 685, 354, 697 ], "spans": [ { "bbox": [ 239, 685, 354, 697 ], "type": "text", "content": "(e) LLaMA2-7B decoding cost." } ] } ], "index": 13, "angle": 0, "type": "image_caption" } ], "index": 12 }, { "type": "image", "bbox": [ 381, 574, 521, 677 ], "blocks": [ { "bbox": [ 381, 574, 521, 677 ], "lines": [ { "bbox": [ 381, 574, 521, 677 ], "spans": [ { "bbox": [ 381, 574, 521, 677 ], "type": "image", "image_path": "a1941eee7d40be98fd31a01f92cc3a2b4db459a2aa901fa3e3f6ecf6996d3b03.jpg" } ] } ], "index": 14, "angle": 0, "type": "image_body" }, { "bbox": [ 390, 685, 510, 696 ], "lines": [ { "bbox": [ 390, 685, 510, 696 ], "spans": [ { "bbox": [ 390, 685, 510, 696 ], "type": "text", "content": "(f) LLaMA2-7B end-to-end cost." } ] } ], "index": 15, "angle": 0, "type": "image_caption" } ], "index": 14 } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "26999" } ] } ], "index": 17 } ], "page_size": [ 595, 841 ], "page_idx": 16 }, { "para_blocks": [ { "type": "table", "bbox": [ 71, 167, 287, 259 ], "blocks": [ { "bbox": [ 71, 167, 287, 259 ], "lines": [ { "bbox": [ 71, 167, 287, 259 ], "spans": [ { "bbox": [ 71, 167, 287, 259 ], "type": "table", "html": "
MethodsNumber of retrieved documents
357
DRAGIN357
0.24GB0.41GB0.57GB
DRAGIN+IDR24.818.0811.52
0.39GB0.66GB0.95GB
", "image_path": "be0f37f6f7d7c1884a82726e38288ff776d5f3a247682ed969fbd05c0fdd4d32.jpg" } ] } ], "index": 0, "angle": 0, "type": "table_body" } ], "index": 0 }, { "type": "table", "bbox": [ 71, 494, 286, 640 ], "blocks": [ { "bbox": [ 68, 267, 289, 292 ], "lines": [ { "bbox": [ 68, 267, 289, 292 ], "spans": [ { "bbox": [ 68, 267, 289, 292 ], "type": "text", "content": "Table 11: Comparison of memory cost for LLaMA2-7B on 2WikiMultihopQA." } ] } ], "index": 1, "angle": 0, "type": "table_caption" }, { "bbox": [ 71, 494, 286, 640 ], "lines": [ { "bbox": [ 71, 494, 286, 640 ], "spans": [ { "bbox": [ 71, 494, 286, 640 ], "type": "table", "html": "
CICSIGPGIDGRLLaMA2-7B
EM ↑F1 ↑
---22.528.68
--20.326.88
--22.428.51
-20.226.78
-25.833.26
25.433.17
", "image_path": "8c8f5b87c3bc0bd771b7c9bd2e4a933d3786edf9739accedbb05eafc6609c56a.jpg" } ] } ], "index": 2, "angle": 0, "type": "table_body" } ], "index": 2 }, { "bbox": [ 68, 649, 289, 673 ], "lines": [ { "bbox": [ 68, 649, 289, 673 ], "spans": [ { "bbox": [ 68, 649, 289, 673 ], "type": "text", "content": "Table 12: Analysis of the impact of different modules on 2WikiMultihopQA based on DRAGIN." } ] } ], "index": 3, "angle": 0, "type": "text" } ], "discarded_blocks": [ { "bbox": [ 283, 780, 312, 791 ], "type": "page_number", "angle": 0, "lines": [ { "bbox": [ 283, 780, 312, 791 ], "spans": [ { "bbox": [ 283, 780, 312, 791 ], "type": "text", "content": "27000" } ] } ], "index": 4 } ], "page_size": [ 595, 841 ], "page_idx": 17 } ], "_backend": "vlm", "_version_name": "2.6.4" }