arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.16434cs.CL
收藏

通过结构化增强大语言模型的认知能力

Enhancing LLM's Cognition via Structurization

Zhejiang University(浙江大学);Alibaba Cloud(阿里云)

Kai Liu, Zhihang Fu, Chao Chen, Wei Zhang, Rongxin Jiang, Fan Zhou, Yaowu Chen, Yue Wu, Jieping Ye

AI总结:

针对大语言模型序列处理长上下文的认知局限,提出上下文结构化方法,将无序文本转为分层有序结构,在多任务多模型上实现显著性能提升,并验证了小模型蒸馏实现结构化的可行性。

摘要:

人类在阅读长文本时的认知过程是复杂且结构化的。大语言模型(LLM)虽从因果序列视角处理输入上下文,但这种方式可能限制其有效处理错综复杂输入的能力。为提升LLM的认知能力,本文提出上下文结构化的新概念。具体而言,我们将平实无序的上下文语句转换为有序且分层结构化的元素。借此,LLM可沿组织好的结构进行精准注意力分配与信息检索,从而更好地掌握复杂冗长的上下文。我们在多种NLP任务(如基于上下文的问答、全面幻觉评估、段落级稠密检索)上,针对不同架构与规模的模型(包括一系列自回归LLM以及类BERT掩码模型)开展了广泛评估。实验结果表明,单轮结构化可带来持续且显著的性能提升。尤其在幻觉评估任务中,我们将开源LLaMA2-70B模型的性能提升至与GPT-3.5-Turbo相当的水平。此外,我们验证了将先进LLM的语言处理能力蒸馏到规模更小但高效的StruXGPT-7B模型以执行结构化任务的可行性,解决了该方法的实用性问题。代码可在https://github.com/alibaba/struxgpt获取。

英文摘要:

When reading long-form text, human cognition is complex and structurized. While large language models (LLMs) process input contexts through a causal and sequential perspective, this approach can potentially limit their ability to handle intricate and complex inputs effectively. To enhance LLM's cognition capability, this paper presents a novel concept of context structurization. Specifically, we transform the plain, unordered contextual sentences into well-ordered and hierarchically structurized elements. By doing so, LLMs can better grasp intricate and extended contexts through precise attention and information-seeking along the organized structures. Extensive evaluations are conducted across various model architectures and sizes (including a series of auto-regressive LLMs as well as BERT-like masking models) on a diverse set of NLP tasks (e.g., context-based question-answering, exhaustive hallucination evaluation, and passage-level dense retrieval). Empirical results show consistent and significant performance gains afforded by a single-round structurization. In particular, we boost the open-sourced LLaMA2-70B model to achieve comparable performance against GPT-3.5-Turbo as the hallucination evaluator. Besides, we show the feasibility of distilling advanced LLMs' language processing abilities to a smaller yet effective StruXGPT-7B to execute structurization, addressing the practicality of our approach. Code is available at https://github.com/alibaba/struxgpt.

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

↑