# benchmarking_large_language_models_in_retrievalaugmented_generation__77e9d2e5.pdf Benchmarking Large Language Models in Retrieval-Augmented Generation Jiawei Chen1,3, Hongyu Lin1,*, Xianpei Han1,2,*, Le Sun1,2 1Chinese Information Processing Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China 2State Key Laboratory of Computer Science, Institute of Software, Chinese Academy of Sciences, Beijing, China 3University of Chinese Academy of Sciences, Beijing, China {jiawei2020,hongyu,xianpei,sunle}@iscas.ac.cn Retrieval-Augmented Generation (RAG) is a promising approach for mitigating the hallucination of large language models (LLMs). However, existing research lacks rigorous evaluation of the impact of retrieval-augmented generation on different large language models, which make it challenging to identify the potential bottlenecks in the capabilities of RAG for different LLMs. In this paper, we systematically investigate the impact of Retrieval-Augmented Generation on large language models. We analyze the performance of different large language models in 4 fundamental abilities required for RAG, including noise robustness, negative rejection, information integration, and counterfactual robustness. To this end, we establish Retrieval-Augmented Generation Benchmark (RGB), a new corpus for RAG evaluation in both English and Chinese. RGB divides the instances within the benchmark into 4 separate testbeds based on the aforementioned fundamental abilities required to resolve the case. Then we evaluate 6 representative LLMs on RGB to diagnose the challenges of current LLMs when applying RAG. Evaluation reveals that while LLMs exhibit a certain degree of noise robustness, they still struggle significantly in terms of negative rejection, information integration, and dealing with false information. The aforementioned assessment outcomes indicate that there is still a considerable journey ahead to effectively apply RAG to LLMs. Introduction Recently, there have been impressive advancements in large language models (LLMs) like Chat GPT (Open AI 2022) and Chat GLM (THUDM 2023a). Although these models have shown remarkable general abilities (Bang et al. 2023; Guo et al. 2023), they still suffer severely from challenges including factual hallucination (Cao et al. 2020; Raunak, Menezes, and Junczys-Dowmunt 2021; Ji et al. 2023), knowledge outdating (He, Zhang, and Roth 2022), and the lack of domainspecific expertise (Li et al. 2023c; Shen et al. 2023). Incorporating external knowledge via information retrieval, i.e., Retrieval-Augmented Generation (RAG), has been regarded as a promising way to resolve the above challenges. (Guu et al. 2020; Lewis et al. 2020; Borgeaud et al. * Corresponding authors. Copyright 2024, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved. Noise Robustness Negative Rejection Who was awarded the 2022 Nobel prize in literature? French author Annie Ernaux in Literature for 2021 is Annie Ernaux External documents contain noises Retrieval Augmented Generation The 2020 Nobel Laureate I can not answer the question Information Integration When were the Chat GPT app for i OS and api launched? On May 18th, 2023, Open AI That changed on March 1, May 18 and March 1. External documents contain all answers Retrieval Augmented Generation Counterfactual Robustness Which city hosted the Olympic games in 2004? 2004 Olympic to New York, New York easily defeated There are factual errors in the Counterfactual external documents Retrieval Augmented Generation Retrieval Augmented Generation Who was awarded the 2022 Nobel prize in literature? in Literature for 2021 is External documents are all noises Figure 1: Illustration of 4 kinds of abilities required for retrieval-augmented generation of LLMs. 2022; Izacard et al. 2022). With the help of external knowledge, LLMs can generate more accurate and reliable responses. The most common method is to use a search engine as a retriever such as New Bing. Due to the vast amount of information available on the Internet, using a search engine can provide more real-time information. However, Retrieval-Augmented Generation brings not only positive effects to LLMs (Liu, Zhang, and Liang 2023; Maynez et al. 2020). On one hand, there is a significant amount of noise information even fake news in the content available on the Internet, which poses challenges for search engines in accurately retrieving desirable knowledge. On the other hand, LLMs suffer from unreliable generation challenge. LLMs can be misled by incorrect information contained in the context (Bian et al. 2023) and also suffer from hallucination during the generation (Adlakha et al. 2023), resulting in generating content that goes beyond external information. These challenges result in LLMs being unable to consistently generate reliable and accurate responses. Un- The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) fortunately, currently there lacks of comprehensive understanding on how these factors can influence RAG, and how could each model survives from these drawbacks and improvement their performance via information retrieval. As a result, there is a pressing need for a comprehensive evaluation of LLMs on their ability to effectively utilize retrieved information, as well as their ability to withstand the various drawbacks present in information retrieval. To this end, this paper conducts a comprehensive evaluation of RAG for current LLMs. Specifically, we create a new Retrieval-Augmented Generation Benchmark, namely RGB, in both English and Chinese. In order to ensure that the internal knowledge of LLMs does not introduce bias into the evaluation results, RGB chooses to aggregate the latest news information and constructs queries based on the news information. Then, based on these queries, we use Search API to fetch relevant documents and select most relevant snippets from the content as external retrieved documents. Finally, based on different compositions of query and document-set pairs, we expand the corpus and divided it into 4 testbeds to evaluate the following basic abilities of LLMs according to the common challenges in RAG, as shown in Figure 1: Noise Robustness, which means a LLM can extract useful information from noisy documents. In this paper, we define noisy documents as those that are relevant to the question but do not contain any information of the answer. For the instance in Figure 1, the noisy documents related to the question Who was awarded the 2022 Nobel Prize in Literature include reports about the 2021 Nobel Prize in Literature. To this end, the testbed for noise robustness contains instances whose external documents contain a certain number of noisy documents based on the desired noise ratio. Negative Rejection, which means that a LLM should reject to answer the question when the required knowledge is not present in any retrieved document. The testbed for negative rejection contains instances whose external documents are only with noisy documents. LLMs are expected to indicate insufficient information or other rejection signals. Information Integration, which evaluates whether LLMs can answer complex questions that require integrating information from multiple documents. For the instance in Figure 1, for the question When were the Chat GPT app for i OS and Chat GPT api launched? , LLMs are expected to provide information of the launch dates for both the Chat GPT i OS app and Chat GPT API. The testbed for information integration contains instances that can only be answered using multiple documents. Counterfactual Robustness, which evaluates whether LLMs can identify risks of known factual errors in the retrieved documents when the LLMs are given warnings about potential risks in the retrieved information through instruction. The testbed for counterfactual robustness includes instances that can be answered directly by the LLMs, but the external documents contain factual errors. Based on RGB, we conduct evaluation on 6 state-ofthe-art large language models including Chat GPT (Ope- n AI 2022), Chat GLM-6B (THUDM 2023a), Chat GLM26B (THUDM 2023b), Vicuna-7b (Chiang et al. 2023), Qwen-7B-Chat (Bai et al. 2023), BELLE-7B (BELLEGroup 2023). We found that even though RAG can improve the response accuracy of LLMs, they still suffer from the abovementioned challenges significantly. Specifically, we found that even though LLMs demonstrate some level of noise robustness, they tend to confuse similar information and frequently generate inaccurate answers when relevant information exists. For example, when faced with a question about the 2022 Nobel Prize in Literature, if there are noisy documents about the 2021 Nobel Prize in Literature in external documents, LLMs may become confused and provide inaccurate answers. Besides, LLMs frequently fail to reject answering and generate incorrect answers when none of the external documents contain relevant information. Furthermore, LLMs lack the ability to summarize from multiple documents, and therefore if multiple documents are needed to answer a question, LLMs often fail to provide accurate answer. Finally, we found that even when the LLMs contain the required knowledge and are given warnings about potential risks in the retrieved information through instruction, they still tend to trust and prioritize the retrieved information over their own existing knowledge. The experimental results mentioned above highlight the need for further resolution of important issues in the existing RAG method. Therefore, it is crucial to exercise caution and carefully design its usage. Generally speaking, the contributions of this paper are1: We proposed to evaluate four capabilities for retrievalaugmented generation of LLMs and created the Retrieval-Augmented Generation Benchmark in both English and Chinese. To best of our knowledge, it is the first benchmark designed to assess these four capabilities for retrieval-augmented generation of LLMs. We evaluated the existing LLMs using RGB and found the limitations of them in the four different abilities. We analyzed the responses of LLMs in RGB and identified their current shortcomings as well as suggested directions for improvement. Related Work Retrieval-augmented models The knowledge stored in large language models is commonly out-of-date (He, Zhang, and Roth 2022) and they also sometimes generate hallucination (Cao et al. 2020; Raunak, Menezes, and Junczys Dowmunt 2021; Ji et al. 2023) i.e., they may generate irrelevant or factually incorrect contents. By using external knowledge as guidance, retrieval-augmented models can generate more accurate and reliable responses (Guu et al. 2020; Lewis et al. 2020; Borgeaud et al. 2022; Izacard et al. 2022; Shi et al. 2023; Ren et al. 2023). Retrievalaugmented models have achieved remarkable results in various tasks such as open-domain QA (Izacard and Grave 2021; Trivedi et al. 2023; Li et al. 2023a), dialogue (Cai et al. 2019a,b; Peng et al. 2023), domain-specific question answering (Cui et al. 2023) and code generation (Zhou 1Our code&data: https://github.com/chen700564/RGB. The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) News Collection News about The 2022 Nobel Prize for Physiology and Medicine Data adjustment and filtering by { Question : Who was awarded the 2022 Nobel Prize for Physiology and Medicine? , Answer : ['Svante Pääbo','Svante Paabo ] } Data generation by Retrieve using search engine Rerank by dense retrieval model We simulate the process of a user querying and obtaining information.. News: The 2022 Nobel Prize for Related event: \n Question: \n Key information: gpt-3.5-turbo api Query: Who was awarded the 2022 Nobel Prize for Physiology and Medicine? , {"link": "https://www.nobelprize.org/prizes/ medicine/", ... Google Search API Chun2 Chunk Query Dense retrieval model Top30 Chunk Top2 Chunk Figure 2: The process of data generation. Firstly, we use models to extract (event, question, answer) from news articles. Next, we utilize search engines to retrieve relevant web pages. Finally, a dense retrieval model is employed to re-rank the content of these web pages. et al. 2023b). Recently, with the development of large models, a series of retrieval-enhanced tools and products have gained widespread attention, such as Chat GPT retrieval plugin, Langchain, New Bing, etc. However, in real-world scenarios, the retrieved text inevitably contains noise. Therefore, in this paper we conducted a systematic evaluation and analysis of retrieval-augmented generation in LLMs. Evaluation of LLMs Evaluating LLMs has received significant attention due to their remarkable general capability (Chang et al. 2023). It enables us to gain a deeper understanding of the specific abilities and limitations of LLMs, while also providing valuable guidance for future research. In the past, benchmarks such as GLUE (Wang et al. 2019b) and Super CLUE (Wang et al. 2019a) primarily focused on evaluating NLP tasks, particularly in natural language understanding. However, these evaluations often fail to fully capture the capabilities of LLMs. MMLU (Hendrycks et al. 2021) was then proposed to measure the knowledge acquired by language models when pre-training. Recently, with the development of LLMs, a series of general evaluation benchmarks have emerged, such as AGIEval (Zhong et al. 2023), C-Eval (Huang et al. 2023), Alpaca Eval (Li et al. 2023b), Open LLM Leaderboard (Edward Beeching 2023), etc. In addition to general abilities, there are also specific benchmarks that focus on evaluating the capabilities of models. For example, CValues (Xu et al. 2023a) focuses on the safety and responsibility of LLMs, M3Exam (Zhang et al. 2023) focuses on human exam and Tool Bench (Qin et al. 2023) evaluates how well LLMs use external tools. Recently, Adlakha et al. (2023) evaluate the RAG of LLMs in exist QA dataset. Different from their work, we focus on 4 required abilities of RAG and create Retrieval-Augmented Generation Benchmark to evaluate the LLMs. Retrieval-Augmented Generation Benchmark In this section, we first introduce the specific retrievalaugmented generation abilities we aim to evaluate. Next, we outline the process of constructing the RAG benchmark for evaluation. Lastly, we present the evaluation metrics. Required Abilities of RAG External knowledge is the key to resolving the problems of LLMs such as hallucination and outdated knowledge, which can make LLMs generate more accurate and reliable responses through retrieval-augmented generation (RAG). However, LLMs cannot always response as expected with RAG. For one thing, there are numerous irrelevant documents and false information on the Internet. Incorporating these external documents into LLMs could have a detrimental effect. For anthoer, LLMs suffer from the unreliable generation challenge. The generation of LLMs is often unpredictable, and we cannot guarantee that they will utilize the useful information entailed in the external documents. Additionally, LLMs can easily be misled by incorrect information in the document. To this end, we build Retrieval Augmented Generation Benchmark (RGB) to evaluate the retrieval-augmented generation of LLMs, and we concern about 4 specific abilities: Noise Robustness is the robustness of LLMs in noisy documents. As retrievers are not perfect, the external knowledge they retrieve often contains a significant amount of noise, i.e., documents which are relevant to the question but do not contain any information about the answer. To effectively answer user questions, LLMs must be able to extract the necessary information from documents despite there are noisy documents. Negative Rejection is a measure of whether LLMs can decline to answer a question when none of the contexts provide useful information. In real-world situations, the search engine often fails to retrieve documents containing the answers. In these cases, it is important for the model to have the capability to reject recognition and avoid generating misleading content. Information Integration is a capacity to integrate answers from multiple documents. In many cases, the answer to a question may be contained in multiple documents. For example, for the question Who are the champions of the U.S. Open 2022 men s and women s singles? , the two champions may be mentioned in different documents. In order to provide better answers to complex questions, it is necessary for LLMs to have the ability to integrate information. Counterfactual Robustness refers to a capacity to handle errors in external knowledge. In the real world, there is an abundance of false information on the internet. Please The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) note that we only evaluate the situation that LLMs are given warnings about potential risks in the retrieved information through instruction. In real-world scenarios, it is not possible to obtain perfect documents with all the necessary external knowledge. Therefore, evaluating these four abilities of the model becomes essential in order to measure the RAG of LLMs. Data Construction Inspired by previous benchmarks for LLMs, RGB utilizes a question-answering format for evaluation. We evaluate the LLMs by judging the retrieval-augmented responses of them to the questions. To simulate real-world scenarios, we construct question and answer data using actual news articles. Due to the abundance of knowledge contained within the LLMs there is a potential for bias when measuring the first three abilities. To mitigate this, the instances of RGB are constructed by latest news articles. Additionally, we retrieve external documents from Internet through search engines. Finally, we expand the corpus and divided it into 4 testbeds to evaluate the above basic abilities of LLMs. The overall procedure of our data construction is illustrated in Figure 2. QA instances generation. We first collect latest news articles and use prompts to make Chat GPT generate events, questions, and answers for each articles. For example, as shown in the Figure 2, for a report about The 2022 Nobel Prize , Chat GPT will generate corresponding event, question and provide key information for answering it. By generating events, the model is able to preliminarily filter out news articles that do not contain any events. After generation, we manually check the answer and filter out data that is difficult to retrieve through search engines. Retrieve using search engine. For each query, we use Google s API to fetch 10 relevant web pages and extract corresponding snippets of text from them. Simultaneously, we read these web pages and convert their textual content into text chunks with a maximum length of 300 tokens. Using an open-source dense retriever, we select the top-30 text chunks that match the query most effectively. These retrieved text chunks, along with the snippets provided by the search API, will serve as our external documents. These documents will be divided into positive documents and negative documents based on whether they contain the answer. Testbeds construction for each ability. We expand the corpus and divided it into 4 testbeds to evaluate the above basic abilities of LLMs. To evaluate the noise robustness, we sample varying numbers of negative documents according to the desired ratio of noises. For negative rejection, all the external documents are sampled from negative documents. For the information integration ability, we further construct data based on the above generated questions. This involves expanding or rewriting these questions so that their answers encompass multiple aspects. For example, the question Who won the MVP of Super Bowl 2023? can be rewrite as Who won the MVPs of Super Bowl 2022 and 2023? . Consequently, answering such questions requires utilizing information from various documents. Different from the first three abilities, the data of counterfactual robustness is constructed solely based on the internal knowl- edge of the model. Based on the aforementioned generated questions mentioned above, we adopt Chat GPT to automatically generate its known knowledge. Specifically, we use prompts to allow the model to generate both questions and answers that are already known. For example, based on the question Who was awarded the 2022 Nobel Prize for Physiology and Medicine? , the model will generate the known question Who was awarded the 2021 Nobel Prize in Literature? and answer Abdulrazak Gurnah . We then manually verified the generated answers, and retrieve relevant documents as described above. In order to make documents contain factual errors, we manually modify the answers and replace the corresponding parts in the document. Finally, we collect totally 600 base questions in RGB, and 200 additional questions for the information integration ability and 200 additional questions for counterfactual robustness ability. Half of the instances are in English, and the other half are in Chinese. Evaluation Metrics The core of this benchmark is to evaluate whether LLMs can utilize the provided external documents to acquire knowledge and generate reasonable answers. We evaluate the responses of LLMs in order to measure above-mentioned four abilities of them. Accuracy is used to measure noise robustness and information integration. We employ an exact matching approach where if the generated text contains an exact match to the answer, it is considered as a correct answer. Rejection rate is used to measure negative rejection. When only noisy documents are provided, LLMs should output the specific content I can not answer the question because of the insufficient information in documents. (We use instructions to inform the model.). If the model generates this content, it indicates a successful rejection. Error detection rate measures whether the model can detect the factual errors in the documents for counterfactual robustness. When the provided documents contain factual errors, the model should output the specific content There are factual errors in the provided documents. (We use instructions to inform the model.). If the model generates this content, it indicates that the model has detected erroneous information in the document. Error correction rate measures whether the model can provide the correct answer after identifying errors for counterfactual robustness. The model is asked to generate the correct answer after identifying the factual errors. If the model generates the correct answer, it indicates that the model is capable of correcting errors in the document. Considering that LLMs may not fully adhere to instructions, for rejection rate and error detection rate, we also use Chat GPT to conduct additional evaluation of the responses. Specifically, we prompt Chat GPT to determine if the responses can reflect information that is not present in the document or identify any factual errors. Experiments In this section, we evaluate the performance of various LLMs, analyze and discuss the results, summarizing the The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) English Chinese Noise Ratio 0 0.2 0.4 0.6 0.8 0 0.2 0.4 0.6 0.8 Chat GPT (Open AI 2022) 96.33 94.67 94.00 90.00 76.00 95.67 94.67 91.00 87.67 70.67 Chat GLM-6B (THUDM 2023a) 93.67 90.67 89.33 84.67 70.67 94.33 90.67 89.00 82.33 69.00 Chat GLM2-6B (THUDM 2023b) 91.33 89.67 83.00 77.33 57.33 86.67 82.33 76.67 72.33 54.00 Vicuna-7B-v1.3 (Chiang et al. 2023) 87.67 83.33 86.00 82.33 60.33 85.67 82.67 77.00 69.33 49.67 Qwen-7B-Chat (Bai et al. 2023) 94.33 91.67 91.00 87.67 73.67 94.00 92.33 88.00 84.33 68.67 BELLE-7B-2M (BELLEGroup 2023) 83.33 81.00 79.00 71.33 64.67 92.00 88.67 85.33 78.33 67.68 Table 1: The experimental result of noise robustness measured by accuracy (%) under different noise ratios. We can see that the increasing noise rate poses a challenge for RAG in LLMs. Long-distance information. Evidence uncertainty. Concept confusion. Question Who did Iga Swiatek defeat to win the Qatar Open 2022? What is the name of Apple s headset? What was Tesla s revenue in Q1 2022? Answer Anett Kontaveit Vision Pro 18.76 billion Positive document Swiatek entered into the Qatar Open ...won ... Anett Kontaveit Negative document ... she defeated Ons Jabeur 6-2, 7-6(5) to win the 2022 US Open Positive document Apple unveiled a costly augmentedreality headset called the Vision Pro Negative document ... is what Gurman believes will be called Apple Reality Pro. ... Positive document Tesla, Inc. reported Q1 FY 2022 ... revenues of $18.76 billion Negative document ...earnings for 2022 ... Automotive revenue reached $16.86 billion Responses Iga Swiatek defeated Ons Jabeur ... headset is Apple Reality Pro. ... in Q1 2022 was $16.86 billion. Table 2: Error cases of noise robustness, and only one positive document and one negative document are shown. The responses are generated by Chat GLM2-6B. The bold text indicates the matching parts between the document and the question or answer, while the italicized text highlights the non-matching parts. main challenges that existing LLMs encounter when using external knowledge. Task formats. We provide 5 external documents for each question. In our experiments on noise robustness, we evaluate scenarios with noise ratios ranging from 0 to 0.8. Models We evaluate 6 state-of-the-art LLMs including Chat GPT (Open AI 2022) (gpt-3.5-turbo), Chat GLM6B (THUDM 2023a), Chat GLM2-6B (THUDM 2023b), Vicuna-7b-v1.3 (Chiang et al. 2023), Qwen-7B-Chat (Bai et al. 2023), BELLE-7B-2M (BELLEGroup 2023). Results on Noise Robustness We evaluated the accuracy based on the different noise ratios in external documents, and the results are shown in Table 1. We can see that: (1) RAG can effect improve the responses of LLMs. LLMs have shown strong performance even in the presence of noise, indicating that RAG is a promising way for LLMs to generate accurate and reliable responses. (2) The increasing noise rate poses a challenge for RAG in LLMs. Specifically, when the noise ratio exceeds 80%, the accuracy decreases significantly at a significance level of 0.05. For example, the performance of Chat GPT has decreased from 96.33% to 76.00%, while the performance of Chat GLM2-6B has decreased from 91.33% to 57.33%. Error Analysis To better comprehend the negative impact of noise on model generation, we examined the incorrect answers and found that these errors typically originate from three reasons, as shown in Table 2. (1) Long-distance information. LLMs often face difficulty in identifying the correct answer from external documents when the information related to the question is distant from the information related to the answer. This scenario is quite common as longer texts are frequently encountered on the internet. In such cases, it is typical for the question s information to be initially presented at the start of the document and subsequently referred to using pronouns. In Table 2, the question information ( Qatar Open 2022 ) is only mentioned once at the beginning and is far from where the answer text Anett Kontaveit appears. This situation may cause LLMs to depend on information from other documents and create false impressions, i.e., hallucination. (2) Evidence uncertainty. Before highly anticipated events, like the release of new Apple products or the announcement of the Oscars, there is often a significant amount of speculative information circulating on the internet. Although the relevant documents explicitly state that it is uncertain or speculative content, they can still impact on the retrieval-augmented generation of LLMs. In Table 2, The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) Languages English Chinese Rej Rej Rej Rej Chat GPT 24.67 45.00 5.33 43.33 Chat GLM-6B 9.00 25.00 6.33 17.00 Chat GLM2-6B 10.33 41.33 6.33 36.33 Vicuna-7B-v1.3 17.00 33.33 3.37 24.67 Qwen-7B-Chat 31.00 35.67 8.67 25.33 BELLE-7B-2M 5.67 32.33 5.33 13.67 Table 3: The result of negative rejection. Rej means the rejection rate (%) and Rej means the rejection rate evaluated by Chat GPT. We can see that negative rejection poses a challenge for RAG in LLMs. when the noise ratio increases, the content of erroneous documents is all about some people s predictions about the name of the headset ( Apple Reality Pro ). Even if there is a correct answer ( Vision Pro ) in the relevant documents, LLMs can still be misled by uncertain evidences. (3) Concept confusion. The concepts in external documents may be similar to, but different from, the concepts in the question. This can cause confusion for LLMs and make LLMs generate incorrect answers. In Table 2, the model answer focuses on the concept automotive revenue in the document rather than revenue in the question. Based on the analysis above, we have identified certain limitations in LLMs regarding retrieval-augmented generation. To effectively handle the vast amount of noise present on the internet, further detailed enhancements are required for the model such as long documents modeling and precise concept comprehension. Results on Negative Rejection Testbed We evaluated the rejection rate when only noise documents were provided. The results are shown in Table 3. In addition to evaluating the rejection rate through exact matching (Rej in Table 3), we also utilize Chat GPT to determine if the responses from the LLMs contain any rejection information (Rej in Table 3). We can see that: Negative Rejection poses a challenge for RAG in LLMs. The highest rejection rates for LLMs in English and Chinese were only 45% and 43.33%, respectively. This suggests that LLMs can be easily misled by noisy documents, leading to incorrect answers. In addition, through comparing Rej and Rej , we found that LLMs fail to strictly follow instructions, and they often generate unpredictable responses, which make it hard to use them as state triggers (such as for recognizing rejection). We conduct case studies in Table 4. The first error is because of Evidence uncertainty. Although the document only mentions contact with Adam Mc Kay and does not explicitly state that he is the director of the movie, the model still concludes that he holds this role. The first error is because of Concept confusion. The information provided in the answer pertains to the 2018 Winter Olympics instead of the 2022 Olympics mentioned in the question. Retrieval-augmented generation poses a greater challenge of Question Answer Response who will direct Irredeemable film? Jeymes Samuel ... Adam Mc Kay to movie adaptation of Irredeemable from Which country won the most medals at the 2022 Winter Olympics? ... that won the most medals ... is Germany. It has won a total of 31 medals ... Table 4: Error cases of negative rejection generated by Chat GLM2-6B. The bold text highlights the error answers. negative rejection compared to answer directly as it presents relevant documents that could potentially mislead the LLMs and result in incorrect responses. In future developments, it will be crucial for LLMs to enhance their ability to accurately match questions with the appropriate documents. Results on Information Integration Testbed We evaluated the accuracy based on the different noise ratios in external documents, and the results are shown in Table 5. When comparing the model to Table 1, we observed that it has a weak information integration ability, which in turn affects its noise robustness. We can see that: (1) Information integration poses a challenge for RAG in LLMs. Even without noise, the highest accuracy of LLMs can only reach 60% and 67% for English and Chinese, respectively. After adding noise, the highest accuracy decreases to 43% and 55%. These results suggest that LLMs struggle with integrating information effectively and are not well-suited for directly answering complex questions. (2) Complex questions are more challenging for RAG with noisy documents. Performance decline becomes significant when the noise ratio is 0.4, but for simple problems, a significant decline occurs only at a noise ratio of 0.8 at a significance level of 0.05. This indicates that complex problems are more vulnerable to interference from noise. We speculate that this is because solving complex problems requires integrating information from multiple documents, and this information can be considered as noise to each other, making it harder for the model to extract relevant information from the documents. Error Analysis We conducted an error analysis on Chat GLM2-6B (noise ratio is 0). Apart from the similar errors founded in the noise robustness experiment (38% of the total), there are also three types of unique errors. We have presented these cases in Table 6. (1) Merging Error (28% of the total). The model sometimes merges the answers of the two sub-questions, resulting in an error. It mistakenly uses the answer from one question to address both two questions. At this point, the model will disregard any documents related to one sub-question. For example, in Table 6, it incorrectly states that Group D is the World Cup group for both France and Germany, while in fact Germany is actually assigned to Group E. (2) Ignoring Error (28% of the total). Sometimes, the The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) English Chinese Noise Ratio 0 0.2 0.4 0 0.2 0.4 Chat GPT 55 51 34 63 58 47 Chat GLM-6B 45 36 35 60 53 52 Chat GLM2-6B 34 32 21 44 43 32 Vicuna-7B-v1.3 60 53 43 43 36 25 Qwen-7B-Chat 55 50 37 67 56 55 BELLE-7B-2M 40 34 24 49 41 38 Table 5: The experimental result of information integration measured by accuracy (%) under different noise ratios. Question Answer Response Errors What groupings are France and Germany in World Cup 2022? Group D Group E France and Germany are Group D ... Merging Error Who were the MVP of Super Bowl 2022 and 2023? Cooper Kupp Patrick Mahomes MVP of Super Bowl LVI was Cooper Kupp Ignoring Error What films won the 2022 and 2023 Academy Awards for Best Picture? CODA Everything Everywhere All at Once CODA won award for Best Picture at the 95th ... Misali gnment Error Table 6: Error cases of information integration, the responses are generated by Chat GLM2-6B. The bold and italicized texts represent the answers to two sub-questions. model may ignore one of the sub-questions and only answer the other. This error occurs when the model lacks a complete understanding of the problem and fails to recognize that it consists of multiple sub-problems. As a result, the model only considers relevant documents for one sub-problem in order to generate an answer, disregarding the question posed by another sub-problem. For example, in Table 6, the model only provides the answer for the MVP of Super Bowl 2022 and does not consider 2023. (3) Misalignment Error (6% of the total). Sometimes, the model incorrectly identifies the documents for one subquestion as the documents for another sub-question, leading to misaligned answers. For example, in Table 6, the third answer has two errors: an ignoring error and a misalignment error. Firstly, the model only mentioned the Best Picture of the 2023 (95th) Academy Awards, completely disregarding the 2022 awards. Additionally, it incorrectly stated that CODA is the Best Picture of 2023 when it was actually awarded as the Best Picture in 2022. The errors mentioned above are primarily caused by the limited understanding of complex questions, which hinders the ability to effectively utilize information from different sub-problems. The key lies in improving the model s reasoning capability. One possible solution is to use a chain-ofthought approach to break down complex problems (Zhou et al. 2023a; Xu et al. 2023b; Drozdov et al. 2023). How- Acc Accdoc ED ED CR Chat GPT-zh 91 17 1 3 33.33 Qwen-7B-Chat-zh 77 12 5 4 25.00 Chat GPT-en 89 9 8 7 57.14 Table 7: The result of counterfactual robustness. ACC is the accuracy (%) of LLMs without external documents. ACCdoc is the accuracy (%) of LLMs with counterfactual documents. ED and ED are error detection rates evaluated by exact matching and Chat GPT, respectively. CR is the error correction rate. ever, these methods slow down the inference speed and cannot provide timely responses. Results on Counterfactual Robustness Testbed In order to ensure that LLMs possess relevant knowledge, we assess their performance by directly asking them questions. However, we found that most LLMs struggle to answer them correctly. To ensure a more reasonable evaluation, we only consider LLMs that have an accuracy rate of over 70% as this threshold is relatively high and encompasses more LLMs. The results are shown in Table 7. We present the following metrics: accuracy without any documents, accuracy with counterfactual documents, error detection rates, and error correction rates. We can see that It is hard for LLMs to identify and correct factual errors in the documents. This suggests that the model can be easily misled by documents containing incorrect facts. It is important to note that retrieval-augmented generation is not designed to automatically address factual errors within a given context, as this contradicts the underlying assumption that the model lacks knowledge and relies on retrieved documents for additional information. However, this issue is crucial in practical applications due to the abundance of fake news on the internet. Existing LLMs do not have a safeguard to handle inaccurate responses caused by misinformation. In fact, they heavily depend on the information they retrieve. Even when LLMs contain the internal knowledge about the questions, they often trust false information that is retrieved. This presents significant a challenge for the future development of RAG in LLMs. In this paper, we evaluated four abilities of retrievalaugmented generation in LLMs: noise robustness, negative rejection, information integration, and counterfactual robustness. To conduct the evaluation, we built Retrieval Augmented Generation Benchmark (RGB). The instances of RGB are generated from latest news articles and the external documents obtained from search engines. The experimental results suggest that current LLMs have limitations in the 4 abilities. This indicates that there is still a significant amount of work needed to effectively apply RAG to LLMs. To ensure accurate and reliable responses from LLMs, it is crucial to exercise caution and carefully design for RAG. The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) Acknowledgements This research work is supported by the National Natural Science Foundation of China under Grants no. 62122077, 62106251, 62306303, the CAS Project for Young Scientists in Basic Research under Grant No.YSBR-040 and Beijing Municipal Science & Technology Comission No. Z231100010323002. Xianpei Han is sponsored by CCFBai Chuan-Ebtech Foundation Model Fund. References Adlakha, V.; Behnam Ghader, P.; Lu, X. H.; Meade, N.; and Reddy, S. 2023. Evaluating Correctness and Faithfulness of Instruction-Following Models for Question Answering. ar Xiv:2307.16877. Bai, J.; Bai, S.; Chu, Y.; Cui, Z.; Dang, K.; Deng, X.; Fan, Y.; Ge, W.; Han, Y.; Huang, F.; Hui, B.; Ji, L.; Li, M.; Lin, J.; Lin, R.; Liu, D.; Liu, G.; Lu, C.; Lu, K.; Ma, J.; Men, R.; Ren, X.; Ren, X.; Tan, C.; Tan, S.; Tu, J.; Wang, P.; Wang, S.; Wang, W.; Wu, S.; Xu, B.; Xu, J.; Yang, A.; Yang, H.; Yang, J.; Yang, S.; Yao, Y.; Yu, B.; Yuan, H.; Yuan, Z.; Zhang, J.; Zhang, X.; Zhang, Y.; Zhang, Z.; Zhou, C.; Zhou, J.; Zhou, X.; and Zhu, T. 2023. Qwen Technical Report. ar Xiv preprint ar Xiv:2309.16609. Bang, Y.; Cahyawijaya, S.; Lee, N.; Dai, W.; Su, D.; Wilie, B.; Lovenia, H.; Ji, Z.; Yu, T.; Chung, W.; Do, Q. V.; Xu, Y.; and Fung, P. 2023. A Multitask, Multilingual, Multimodal Evaluation of Chat GPT on Reasoning, Hallucination, and Interactivity. ar Xiv:2302.04023. BELLEGroup. 2023. BELLE: Be Everyone s Large Language model Engine. https://github.com/Lianjia Tech/ BELLE. Accessed: 2024-01-10. Bian, N.; Liu, P.; Han, X.; Lin, H.; Lu, Y.; He, B.; and Sun, L. 2023. A Drop of Ink Makes a Million Think: The Spread of False Information in Large Language Models. ar Xiv:2305.04812. Borgeaud, S.; Mensch, A.; Hoffmann, J.; Cai, T.; Rutherford, E.; Millican, K.; van den Driessche, G.; Lespiau, J.-B.; Damoc, B.; Clark, A.; de Las Casas, D.; Guy, A.; Menick, J.; Ring, R.; Hennigan, T.; Huang, S.; Maggiore, L.; Jones, C.; Cassirer, A.; Brock, A.; Paganini, M.; Irving, G.; Vinyals, O.; Osindero, S.; Simonyan, K.; Rae, J. W.; Elsen, E.; and Sifre, L. 2022. Improving language models by retrieving from trillions of tokens. ar Xiv:2112.04426. Cai, D.; Wang, Y.; Bi, W.; Tu, Z.; Liu, X.; Lam, W.; and Shi, S. 2019a. Skeleton-to-Response: Dialogue Generation Guided by Retrieval Memory. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), 1219 1228. Minneapolis, Minnesota: Association for Computational Linguistics. Cai, D.; Wang, Y.; Bi, W.; Tu, Z.; Liu, X.; and Shi, S. 2019b. Retrieval-guided Dialogue Response Generation via a Matching-to-Generation Framework. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), 1866 1875. Hong Kong, China: Association for Computational Linguistics. Cao, M.; Dong, Y.; Wu, J.; and Cheung, J. C. K. 2020. Factual Error Correction for Abstractive Summarization Models. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 6251 6258. Online: Association for Computational Linguistics. Chang, Y.; Wang, X.; Wang, J.; Wu, Y.; Yang, L.; Zhu, K.; Chen, H.; Yi, X.; Wang, C.; Wang, Y.; Ye, W.; Zhang, Y.; Chang, Y.; Yu, P. S.; Yang, Q.; and Xie, X. 2023. A Survey on Evaluation of Large Language Models. ar Xiv:2307.03109. Chiang, W.-L.; Li, Z.; Lin, Z.; Sheng, Y.; Wu, Z.; Zhang, H.; Zheng, L.; Zhuang, S.; Zhuang, Y.; Gonzalez, J. E.; Stoica, I.; and Xing, E. P. 2023. Vicuna: An Open-Source Chatbot Impressing GPT-4 with 90%* Chat GPT Quality. Cui, J.; Li, Z.; Yan, Y.; Chen, B.; and Yuan, L. 2023. Chat Law: Open-Source Legal Large Language Model with Integrated External Knowledge Bases. ar Xiv:2306.16092. Drozdov, A.; Sch arli, N.; Aky urek, E.; Scales, N.; Song, X.; Chen, X.; Bousquet, O.; and Zhou, D. 2023. Compositional Semantic Parsing with Large Language Models. In The Eleventh International Conference on Learning Representations. Edward Beeching, N. H. S. H. N. L. N. R. O. S. L. T. T. W., Cl ementine Fourrier. 2023. Open LLM Leaderboard. https://huggingface.co/spaces/Hugging Face H4/ open llm leaderboard. Accessed: 2024-01-10. Guo, B.; Zhang, X.; Wang, Z.; Jiang, M.; Nie, J.; Ding, Y.; Yue, J.; and Wu, Y. 2023. How Close is Chat GPT to Human Experts? Comparison Corpus, Evaluation, and Detection. ar Xiv:2301.07597. Guu, K.; Lee, K.; Tung, Z.; Pasupat, P.; and Chang, M.-W. 2020. REALM: Retrieval-Augmented Language Model Pre Training. In Proceedings of the 37th International Conference on Machine Learning, ICML 20. JMLR.org. He, H.; Zhang, H.; and Roth, D. 2022. Rethinking with Retrieval: Faithful Large Language Model Inference. ar Xiv:2301.00303. Hendrycks, D.; Burns, C.; Basart, S.; Zou, A.; Mazeika, M.; Song, D.; and Steinhardt, J. 2021. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations. Huang, Y.; Bai, Y.; Zhu, Z.; Zhang, J.; Zhang, J.; Su, T.; Liu, J.; Lv, C.; Zhang, Y.; Lei, J.; Fu, Y.; Sun, M.; and He, J. 2023. C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Models. ar Xiv preprint ar Xiv:2305.08322. Izacard, G.; and Grave, E. 2021. Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, 874 880. Online: Association for Computational Linguistics. Izacard, G.; Lewis, P.; Lomeli, M.; Hosseini, L.; Petroni, F.; Schick, T.; Dwivedi-Yu, J.; Joulin, A.; Riedel, S.; and The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24) Grave, E. 2022. Atlas: Few-shot Learning with Retrieval Augmented Language Models. ar Xiv:2208.03299. Ji, Z.; Lee, N.; Frieske, R.; Yu, T.; Su, D.; Xu, Y.; Ishii, E.; Bang, Y. J.; Madotto, A.; and Fung, P. 2023. Survey of Hallucination in Natural Language Generation. ACM Comput. Surv., 55(12). Lewis, P.; Perez, E.; Piktus, A.; Petroni, F.; Karpukhin, V.; Goyal, N.; K uttler, H.; Lewis, M.; Yih, W.-t.; Rockt aschel, T.; Riedel, S.; and Kiela, D. 2020. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS 20. Red Hook, NY, USA: Curran Associates Inc. ISBN 9781713829546. Li, D.; Rawat, A. S.; Zaheer, M.; Wang, X.; Lukasik, M.; Veit, A.; Yu, F.; and Kumar, S. 2023a. Large Language Models with Controllable Working Memory. In Findings of the Association for Computational Linguistics: ACL 2023, 1774 1793. Toronto, Canada: Association for Computational Linguistics. Li, X.; Zhang, T.; Dubois, Y.; Taori, R.; Gulrajani, I.; Guestrin, C.; Liang, P.; and Hashimoto, T. B. 2023b. Alpaca Eval: An Automatic Evaluator of Instruction-following Models. https://github.com/tatsu-lab/alpaca eval. Accessed: 2024-01-10. Li, X.; Zhu, X.; Ma, Z.; Liu, X.; and Shah, S. 2023c. Are Chat GPT and GPT-4 General-Purpose Solvers for Financial Text Analytics? An Examination on Several Typical Tasks. ar Xiv:2305.05862. Liu, N. F.; Zhang, T.; and Liang, P. 2023. Evaluating Verifiability in Generative Search Engines. ar Xiv:2304.09848. Maynez, J.; Narayan, S.; Bohnet, B.; and Mc Donald, R. 2020. On Faithfulness and Factuality in Abstractive Summarization. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 1906 1919. Online: Association for Computational Linguistics. Open AI. 2022. Chatgpt: Optimizing language models for dialogue. https://openai.com/blog/chatgpt. Accessed: 202401-10. Peng, B.; Galley, M.; He, P.; Cheng, H.; Xie, Y.; Hu, Y.; Huang, Q.; Liden, L.; Yu, Z.; Chen, W.; and Gao, J. 2023. Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedback. ar Xiv:2302.12813. Qin, Y.; Liang, S.; Ye, Y.; Zhu, K.; Yan, L.; Lu, Y.; Lin, Y.; Cong, X.; Tang, X.; Qian, B.; Zhao, S.; Tian, R.; Xie, R.; Zhou, J.; Gerstein, M.; Li, D.; Liu, Z.; and Sun, M. 2023. Tool LLM: Facilitating Large Language Models to Master 16000+ Real-world APIs. ar Xiv:2307.16789. Raunak, V.; Menezes, A.; and Junczys-Dowmunt, M. 2021. The Curious Case of Hallucinations in Neural Machine Translation. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 1172 1183. Online: Association for Computational Linguistics. Ren, R.; Wang, Y.; Qu, Y.; Zhao, W. X.; Liu, J.; Tian, H.; Wu, H.; Wen, J.-R.; and Wang, H. 2023. Investigating the Factual Knowledge Boundary of Large Language Models with Retrieval Augmentation. ar Xiv:2307.11019. Shen, X.; Chen, Z.; Backes, M.; and Zhang, Y. 2023. In Chat GPT We Trust? Measuring and Characterizing the Reliability of Chat GPT. ar Xiv:2304.08979. Shi, W.; Min, S.; Yasunaga, M.; Seo, M.; James, R.; Lewis, M.; Zettlemoyer, L.; and tau Yih, W. 2023. REPLUG: Retrieval-Augmented Black-Box Language Models. ar Xiv:2301.12652. THUDM. 2023a. Chat GLM-6B. https://github.com/ THUDM/Chat GLM-6B. Accessed: 2024-01-10. THUDM. 2023b. Chat GLM2-6B. https://github.com/ THUDM/Chat GLM2-6B. Accessed: 2024-01-10. Trivedi, H.; Balasubramanian, N.; Khot, T.; and Sabharwal, A. 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), 10014 10037. Toronto, Canada: Association for Computational Linguistics. Wang, A.; Pruksachatkun, Y.; Nangia, N.; Singh, A.; Michael, J.; Hill, F.; Levy, O.; and Bowman, S. R. 2019a. Super GLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems. Red Hook, NY, USA: Curran Associates Inc. Wang, A.; Singh, A.; Michael, J.; Hill, F.; Levy, O.; and Bowman, S. R. 2019b. GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding. In International Conference on Learning Representations. Xu, G.; Liu, J.; Yan, M.; Xu, H.; Si, J.; Zhou, Z.; Yi, P.; Gao, X.; Sang, J.; Zhang, R.; Zhang, J.; Peng, C.; Huang, F.; and Zhou, J. 2023a. CValues: Measuring the Values of Chinese Large Language Models from Safety to Responsibility. ar Xiv:2307.09705. Xu, S.; Pang, L.; Shen, H.; Cheng, X.; and Chua, T.- S. 2023b. Search-in-the-Chain: Towards Accurate, Credible and Traceable Large Language Models for Knowledgeintensive Tasks. ar Xiv:2304.14732. Zhang, W.; Aljunied, S. M.; Gao, C.; Chia, Y. K.; and Bing, L. 2023. M3Exam: A Multilingual, Multimodal, Multilevel Benchmark for Examining Large Language Models. Zhong, W.; Cui, R.; Guo, Y.; Liang, Y.; Lu, S.; Wang, Y.; Saied, A.; Chen, W.; and Duan, N. 2023. AGIEval: A Human-Centric Benchmark for Evaluating Foundation Models. ar Xiv:2304.06364. Zhou, D.; Sch arli, N.; Hou, L.; Wei, J.; Scales, N.; Wang, X.; Schuurmans, D.; Cui, C.; Bousquet, O.; Le, Q. V.; and Chi, E. H. 2023a. Least-to-Most Prompting Enables Complex Reasoning in Large Language Models. In The Eleventh International Conference on Learning Representations. Zhou, S.; Alon, U.; Xu, F. F.; Jiang, Z.; and Neubig, G. 2023b. Doc Prompting: Generating Code by Retrieving the Docs. In The Eleventh International Conference on Learning Representations. The Thirty-Eighth AAAI Conference on Artificial Intelligence (AAAI-24)