arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.13364cs.CLcs.IR
收藏

一种简单而有效的方法,用于改进信息抽取中的结构化语言模型输出

A Simple but Effective Approach to Improve Structured Language Model Output for Information Extraction

Georgia Institute of Technology(佐治亚理工学院)

Yinghao Li, Rampi Ramprasad, Chao Zhang

AI总结:

本文提出 G&O 方法,将 LLM 的结构化生成拆分为先生成自然语言中间响应、再整理为目标结构两步,在零样本 NER 和 RE 上以极小开销显著提升性能,并可与自洽性等策略结合。

摘要:

大型语言模型(LLMs)在根据指令生成非结构化自然语言方面已展现出令人印象深刻的能力。然而,当任务要求生成符合特定结构化格式的文本时,其表现可能不稳定,而这在命名实体识别(NER)或关系抽取(RE)等应用中至关重要。为解决这一问题,本文提出了一种高效的方法 G&O,以增强其结构化文本生成能力。该方法将生成过程拆分为两步流水线:首先,LLMs 以自然语言生成答案作为中间响应;随后,要求 LLMs 利用中间响应作为上下文,将输出整理为所需的结构。G&O 有效地将内容生成与结构化过程分离,减轻了同时完成两个正交任务的负担。在零样本 NER 和 RE 上测试的结果表明,LLM 的性能在额外开销极小的情况下得到了显著提升。这种直接且适应性强的提示技术还可以与其他策略(如自洽性)结合,从而在各种结构化文本生成任务中进一步提升 LLM 的能力。

英文摘要:

Large language models (LLMs) have demonstrated impressive abilities in generating unstructured natural language according to instructions. However, their performance can be inconsistent when tasked with producing text that adheres to specific structured formats, which is crucial in applications like named entity recognition (NER) or relation extraction (RE). To address this issue, this paper introduces an efficient method, G&O, to enhance their structured text generation capabilities. It breaks the generation into a two-step pipeline: initially, LLMs generate answers in natural language as intermediate responses. Subsequently, LLMs are asked to organize the output into the desired structure, using the intermediate responses as context. G&O effectively separates the generation of content from the structuring process, reducing the pressure of completing two orthogonal tasks simultaneously. Tested on zero-shot NER and RE, the results indicate a significant improvement in LLM performance with minimal additional efforts. This straightforward and adaptable prompting technique can also be combined with other strategies, like self-consistency, to further elevate LLM capabilities in various structured text generation tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑