成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

百度也來卷RAG了,Self-Reasoning比Self-RAG最高提升11.8%

發布于 2024-8-2 15:02
瀏覽
0收藏

檢索增強型語言模型(Retrieval-Augmented Language Model, RALM)通過在推理過程中整合外部知識,減輕了LLM固有的事實幻覺問題。然而,RALMs仍面臨挑戰:檢索到的不相關文檔可能導致無效的回答生成、生成的輸出中缺乏適當的引用,使得驗證模型的可信度變得復雜。

一個示例,展示了百度自我推理(Self-Reasoning)框架如何通過相關意識過程、證據意識選擇過程和軌跡分析過程生成推理軌跡。

百度也來卷RAG了,Self-Reasoning比Self-RAG最高提升11.8%-AI.x社區


為了解決上述問題,百度(Baidu Inc.)提出了一種新穎的自我推理框架(SELF-REASONING framework),旨在通過LLM自身生成的推理軌跡來提高RALMs的可靠性和可追溯性。它的創新之處在于通過端到端的框架直接增強LLMs的性能,而無需依賴外部的推理模型,從而提供了一種更有效和可擴展的解決方案。

對提高RALMs的自我推理框架的說明圖。上層是基本的LLMs,它們通過固有知識回答問題。中層是標準的檢索增強型語言模型,它們使用檢索到的文檔幫助回答問題。底層是百度的自我推理框架,它使用自生成的推理軌跡來輸出答案。

百度也來卷RAG了,Self-Reasoning比Self-RAG最高提升11.8%-AI.x社區

  1. 相關性感知過程(Relevance-Aware Process, RAP)

選擇默認的檢索器(如DPR和Contriever)來檢索與問題相關的文檔。

指導模型評估檢索到的文檔與問題的相關性,并生成解釋為何這些文檔被識別為相關的輸出。

如果所有檢索到的文檔都不相關,模型應依據預訓練階段獲得的內部知識提供答案。

  1. 證據感知選擇過程(Evidence-Aware Selective Process, EAP)

要求模型從檢索到的文檔中明確選擇關鍵句子作為證據,并輸出選擇這些句子的原因。

模型需要自動選擇文檔中的關鍵句子片段,并解釋為何這些片段能夠回答問題。

  1. 軌跡分析過程(Trajectory Analysis Process, TAP)

將前兩個過程中生成的自我推理軌跡整合,形成推理片段鏈,以增強檢索增強生成的整體性能。

要求模型分析這些推理軌跡,并最終輸出簡潔的分析和簡短的答案。

此外,還包括數據生成和質量控制的過程:

  • 訓練數據生成:使用GPT-4生成答案作為基準真值,并創建正負樣本對。
  • 數據質量控制:通過自動驗證工具和過濾不正確答案的軌跡,確保數據生成的正確性和完整性。

模型訓練:

  • 使用標準的語言建模目標進行訓練,通過最大化似然函數來訓練自我推理生成模型。
  • 提出了分階段掩碼策略的逐步訓練方法,以逐步學習生成長推理軌跡。

通過在四個公共數據集(兩個短形式問答數據集、一個長形式問答數據集和一個事實驗證數據集)上的評估,證明了該方法的優越性,能夠超越現有的最先進模型,并且在僅使用2,000個訓練樣本的情況下,就能與GPT-4的性能相媲美。

在兩個短形式問答數據集、一個長形式問答數據集和一個事實驗證數據集上,與不同基線模型的性能比較。用粗體黑色表示的數字代表除了GPT-4之外的最佳結果。結果是基于五次運行的平均值,并且省略了標準差值(所有值均≤2%)。

百度也來卷RAG了,Self-Reasoning比Self-RAG最高提升11.8%-AI.x社區


SELF-REASONING框架通過利用LLM自身生成的推理軌跡,在不依賴外部模型或工具的情況下,有效提高了RALMs的魯棒性,并通過要求LLM明確生成文檔片段和引用,增強了RALMs的可解釋性和可追溯性。

在三個不同的數據集上的噪聲魯棒性實驗結果:(a) 左側是NQ數據集,(b) 中間是PopQA數據集,(c) 右側是FEVER數據集。Self-RAG和Vicuna是具有13B參數大小的模型。

百度也來卷RAG了,Self-Reasoning比Self-RAG最高提升11.8%-AI.x社區

附錄:

GPT-4生成短形式和長形式問答任務的自我推理軌跡的Prompt模版

Instructions
# Role
You are an experienced expert, skilled in answering various questions.
# Task
Please answer the question according to the provided reference evidence as
required.
# Reference Evidence
[1] Retrieved Document {{DOCUMENT 1}[2] Retrieved Document {{DOCUMENT 2}[3] Retrieved Document {{DOCUMENT 3}[4] Retrieved Document {{DOCUMENT 4}[5] Retrieved Document {{DOCUMENT 5}# Requirements
1. First, please judge whether the provided documents are relevant with the
question, and put it in the relevant field. If the provided content is irrelevant to
the question, explain the reason in the relevant reason field, then you can give
the answer with your internal knowledge.
2. If possible, answer the question in points and provide explanations.
3. If the content in the answer comes from different pieces of evidence, you
need to cite the sequence number of the evidence at the end of the sentence.
The citation format is shown below: [1], [1,3].
4. Place each cited piece of evidence in the cite_list field, cite content field to
store each paragraph of cited content (omitted words can be replaced by ...),
cite reason is used to store your thoughts and analysis of this content, how
this paragraph can answer the question.
5. Put the long answer content in the analysis field, and put the short
answer(no more than 10 words) in the answer field.
# Question
{{QUESTION}}

GPT-4生成事實驗證任務的自我推理軌跡的Prompt模版

Instructions
# Role
You are an experienced expert, skilled in answering various questions.
# Task
Please answer the question according to the provided reference evidence as
required.
# Reference Evidence
[1] Retrieved Document {{DOCUMENT 1}}
[2] Retrieved Document {{DOCUMENT 2}}
[3] Retrieved Document {{DOCUMENT 3}}
[4] Retrieved Document {{DOCUMENT 4}}
[5] Retrieved Document {{DOCUMENT 5}}
# Requirements
1. First, please judge whether the provided documents are relevant with the
claim, and put it in the relevant field. If the provided content is irrelevant to the
question, explain the reason in the relevant reason field, then you can give the
answer with your internal knowledge.
2. If possible, answer the question in points and provide explanations.
3. If the content in the answer comes from different pieces of evidence, you
need to cite the sequence number of the evidence at the end of the sentence.
The citation format is shown below: [1], [1,3].
4. Place put each cited piece of evidence in the list, use cite content field to
store each paragraph of cited content (omitted words can be replaced by ...),
cite reason is used to store your thoughts and analysis of this content, how this
paragraph can answer the question.
5. Put the long answer content in the analysis field, and put the short answer
(SUPPORT/REFUTE/NOT ENOUGH INFO) in the answer field.
# Question
You should check whether the given claim is supported or refuted by above the
evidence. If supported,output SUPPORT, if controversial, output REFUTE; if
the evidence provided is not enough to make a decision or the provided
evidence is irrelevant, output NOT ENOUGH INFO.
{{CLAIM}}

案例研究。展示了SELF-REASONING框架在推理過程中生成的自我推理軌跡,并展示了它們如何邏輯上生成正確答案。

Question
When was catch me if you can made?


Retrieved document #1: The film due to her busy schedule. The original start date was
January 2002, but was pushed to February 7 in Los Angeles, California. Locations included
Burbank, Downey, New York City, Quebec City and Montreal. …


Retrieved document #2: eventually turned to him for help in catching other check forgers.
Development for the film started in 1980, but did not progress until 1997, when Spielberg's
DreamWorks bought the film rights to Abagnale's book. David Fincher, Gore Verbinski, Lasse
Hallstr?m, Milo? Forman, and Cameron Crowe had all been possible candidates for director
before Spielberg decided to direct. …


Retrieved document #3: It was funded independently and had a budget of $800,000. The film
was Sommers's directorial debut and was written by him. When production finished, the studio
that had promised to distribute the movie had gone out of business, and it was eventually
released by MCA Inc. in July 1989. The movie…
(Other retrieved documents are omitted.)


Raw LLM Answer: 2000 ?


Standard RAG Answer: 1989 ?


Self-Reasoning Answer:
(Relevant Aware Process)
Relevant: True
Relevant Reason: The provided documents are relevant with question.
(Evidence Aware Selective Process)


Cite content: [1] … the original start date was January 2002, but was pushed to February 7 in
Los Angeles, …
Reason to cite: This piece provides information on the commencement and location of filming
for 'Catch Me If You Can', indicating that it started in April 2002


Cite content: [3] … When production finished, the studio that had promised to distribute the
movie had gone out of business, and it was eventually released by MCA Inc. in July 1989., …
Reason to cite: This piece provides information on the release date of 'Catch Me If You Can',
indicating that it was eventually released by MCA Inc. in July.
(Trajectory Analysis Process)


Analysis:(long answer)
The film 'Catch Me If You Can' was made in 2002. It started filming in April 2002 in Park Avenue,
just outside the Waldorf-Astoria Hotel, and moved to Orange, New Jersey, before returning to
Brooklyn for bank and courthouse scenes [1].


Final Answer:2002 ? (short answer)

https://arxiv.org/pdf/2407.19813
Improving Retrieval Augmented Language Model with Self-Reasoning
Baidu Inc., China.

本文轉載自??PaperAgent??

收藏
回復
舉報
回復
相關推薦
主站蜘蛛池模板: 精品久久久久一区 | 欧美性生交大片免费 | 久久久久无码国产精品一区 | 欧美激情综合网 | 青青久久 | 中文字幕一区在线观看视频 | 久久国产精品视频 | 成人影院在线观看 | 99精品一区二区 | 日韩欧美国产成人一区二区 | 国产高清在线 | 欧美视频在线一区 | 欧美乱码精品一区二区三区 | 久久久视频在线 | 亚洲精品免费视频 | a亚洲精品 | 欧美一区二区在线播放 | 日韩免费三级 | 亚洲精品久久久久久国产精华液 | 黄网站免费在线 | 亚洲精彩免费视频 | 欧美日韩精品在线一区 | 日本久久精品视频 | 久久香焦| 欧美色综合一区二区三区 | 国产伦精品一区二区三区视频金莲 | 一级欧美黄色片 | 亚洲精品综合 | 国产成人精品一区二区 | 国产精品成人免费 | 日韩一区二区三区视频在线播放 | 男女啪啪高潮无遮挡免费动态 | 在线观看视频福利 | 中文区中文字幕免费看 | 伊人精品久久久久77777 | 欧美久久精品一级黑人c片 91免费在线视频 | 盗摄精品av一区二区三区 | 在线一区二区三区 | 黄色免费观看网站 | 伊人伊成久久人综合网站 | 91久久精品一区二区二区 |