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战略评估与咨询研究院)
尽管大语言模型(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.
The Importance of Being Recurrent for Modeling Hierarchical Structure
University of Amsterdam(阿姆斯特丹大学);Leiden University(莱顿大学)
最近的工作表明,当训练递归神经网络(RNN)以解决常见的自然语言处理任务(例如语言建模)时,它可以隐式地捕获和利用分层信息(Linzen et al.,2016)和神经机器翻译(Shi等人,2016年)。相比之下,尽管非递归神经网络在许多NLP任务中取得了成功,但用非递归神经网络对结构化数据进行建模的能力却很少受到关注(Gehring等人,2017; Vaswani等人,2017年)。在这项工作中,我们比较了这两种架构-经常性与非经常性-关于他们的能力,模型层次结构,并发现,递归确实是重要的,为此目的。
Hierarchical Gated Recurrent Neural Tensor Network for Answer Triggering
Key Laboratory of Computational Linguistics (Peking University), Ministry of Education(北京大学计算语言学教育部重点实验室);School of Electronic Engineering and Computer Science, Peking University(北京大学电子工程与计算机科学学院)
Hierarchical Bi-Directional Self-Attention Networks for Paper Review Rating Recommendation
Department of Computer Science, University of Illinois at Chicago(伊利诺伊大学芝加哥分校计算机科学系);Beijing Advanced Innovation Center for Big Data and Brain Computing, Beihang University(北京航空航天大学大数据与脑计算北京高等创新中心);School of Cyber Science and Technology, Beihang University(北京航空航天大学网络空间安全学院);Department of Computer Science and Engineering, Lehigh University(里海大学计算机科学与工程系)