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

基于大语言模型和神经注意力机制的文本分类进展

Advancing Text Classification with Large Language Models and Neural Attention Mechanisms

Carnegie Mellon University(卡内基梅隆大学);Hofstra University(霍夫斯特拉大学);Northeastern University(东北大学);Boston University(波士顿大学)

Ning Lyu, Yuxi Wang, Feng Chen, Qingyuan Zhang

AI总结:

本研究提出基于大语言模型和神经注意力机制的文本分类方法,通过改进表示和聚合策略,提升分类性能并增强模型鲁棒性。

摘要:

本研究提出了一种基于大语言模型的文本分类算法,旨在解决传统方法在捕捉长程依赖、理解上下文语义和处理类别不平衡方面的局限性。该框架包括文本编码、上下文表示建模、基于注意力的增强、特征聚合和分类预测。在表示阶段,通过大规模预训练语言模型获得深度语义嵌入,并应用注意力机制以增强关键特征的选择性表示。在聚合阶段,结合全局和加权策略生成稳健的文本级向量。在分类阶段,使用全连接层和Softmax输出来预测类别分布,并采用交叉熵损失优化模型参数。比较实验引入了多个基线模型,包括循环神经网络、图神经网络和Transformer,并在精度、召回率、F1分数和AUC上进行评估。结果表明,所提方法在所有指标上均优于现有模型,尤其在召回率和AUC上改进显著。此外,还进行了超参数和数据条件的敏感性实验,涵盖了隐藏维度对AUC的影响以及类别不平衡比对召回率的影响。研究发现,适当模型配置对性能有显著影响,并揭示了模型在不同条件下的适应性和稳定性。总体而言,所提出的文本分类方法不仅实现了有效的性能提升,还通过系统分析验证了其在复杂数据环境中的鲁棒性和适用性。

英文摘要:

This study proposes a text classification algorithm based on large language models, aiming to address the limitations of traditional methods in capturing long-range dependencies, understanding contextual semantics, and handling class imbalance. The framework includes text encoding, contextual representation modeling, attention-based enhancement, feature aggregation, and classification prediction. In the representation stage, deep semantic embeddings are obtained through large-scale pretrained language models, and attention mechanisms are applied to enhance the selective representation of key features. In the aggregation stage, global and weighted strategies are combined to generate robust text-level vectors. In the classification stage, a fully connected layer and Softmax output are used to predict class distributions, and cross-entropy loss is employed to optimize model parameters. Comparative experiments introduce multiple baseline models, including recurrent neural networks, graph neural networks, and Transformers, and evaluate them on Precision, Recall, F1-Score, and AUC. Results show that the proposed method outperforms existing models on all metrics, with especially strong improvements in Recall and AUC. In addition, sensitivity experiments are conducted on hyperparameters and data conditions, covering the impact of hidden dimensions on AUC and the impact of class imbalance ratios on Recall. The findings demonstrate that proper model configuration has a significant effect on performance and reveal the adaptability and stability of the model under different conditions. Overall, the proposed text classification method not only achieves effective performance improvement but also verifies its robustness and applicability in complex data environments through systematic analysis.

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

↑