arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.08874cs.CL
收藏

用于层级文本评分的带硬注意力的循环对齐方法

Recurrent Alignment with Hard Attention for Hierarchical Text Rating

School of Economics and Management, East China Normal University(华东师范大学经济与管理学院);School of Public Affairs, Zhejiang University(浙江大学公共管理学院);National Experiment Base for Intelligent Evaluation and Governance, Fudan University(复旦大学智能评估与治理国家实验基地);Strategic Assessments and Consultation Institute, AMS(AMS战略评估与咨询研究院)

Chenxi Lin, Jiayu Ren, Guoxiu He, Zhuoren Jiang, Haiyan Yu, Xiaomin Zhu

AI总结:

针对大语言模型难以处理层级文本结构并直接完成文本评分的问题,提出融合硬注意力与类马尔可夫循环对齐的RAHA框架,在多个层级及普通文本评分数据集上性能超越现有最优方法。

摘要:

尽管大语言模型(LLM)在理解和生成普通文本方面表现出色,但它们并非专为处理层级文本结构或直接预测文本评分等任务特定属性而设计。实际上,有选择性地反复把握大规模文本的层级结构,对于解读其本质至关重要。为此,我们提出了一种利用LLM进行层级文本评分的新型框架,该框架融合了带硬注意力的循环对齐(Recurrent Alignment with Hard Attention, RAHA)。具体而言,硬注意力机制促使被冻结的LLM选择性地关注与根文本相关的叶文本,并生成二者关系的符号化表示。受马尔可夫链逐渐稳定特性的启发,循环对齐策略将预测得到的评分迭代反馈到另一个可训练LLM的提示中,使其对齐并逐步逼近期望目标。实验结果表明,RAHA在三个层级文本评分数据集上的表现优于现有最先进方法。理论与实证分析证实,RAHA具备通过多次推理逐步收敛至潜在目标的能力。在普通文本评分数据集上开展的额外实验验证了这种类马尔可夫对齐方法的有效性。我们的数据和代码可在https://github.com/ECNU-Text-Computing/Markov-LLM获取。

英文摘要:

While large language models (LLMs) excel at understanding and generating plain text, they are not tailored to handle hierarchical text structures or directly predict task-specific properties such as text rating. In fact, selectively and repeatedly grasping the hierarchical structure of large-scale text is pivotal for deciphering its essence. To this end, we propose a novel framework for hierarchical text rating utilizing LLMs, which incorporates Recurrent Alignment with Hard Attention (RAHA). Particularly, hard attention mechanism prompts a frozen LLM to selectively focus on pertinent leaf texts associated with the root text and generate symbolic representations of their relationships. Inspired by the gradual stabilization of the Markov Chain, recurrent alignment strategy involves feeding predicted ratings iteratively back into the prompts of another trainable LLM, aligning it to progressively approximate the desired target. Experimental results demonstrate that RAHA outperforms existing state-of-the-art methods on three hierarchical text rating datasets. Theoretical and empirical analysis confirms RAHA's ability to gradually converge towards the underlying target through multiple inferences. Additional experiments on plain text rating datasets verify the effectiveness of this Markov-like alignment. Our data and code can be available in https://github.com/ECNU-Text-Computing/Markov-LLM.

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

↑