Recurrent Alignment with Hard Attention for Hierarchical Text Rating

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lin, Chenxi, Ren, Jiayu, He, Guoxiu, Jiang, Zhuoren, Yu, Haiyan, Zhu, Xiaomin
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916425604530176
author Lin, Chenxi
Ren, Jiayu
He, Guoxiu
Jiang, Zhuoren
Yu, Haiyan
Zhu, Xiaomin
author_facet Lin, Chenxi
Ren, Jiayu
He, Guoxiu
Jiang, Zhuoren
Yu, Haiyan
Zhu, Xiaomin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_08874
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Recurrent Alignment with Hard Attention for Hierarchical Text Rating
Lin, Chenxi
Ren, Jiayu
He, Guoxiu
Jiang, Zhuoren
Yu, Haiyan
Zhu, Xiaomin
Computation and Language
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.
title Recurrent Alignment with Hard Attention for Hierarchical Text Rating
topic Computation and Language
url https://arxiv.org/abs/2402.08874