arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.12874cs.CLcs.AIcs.LG
收藏

使用基于Transformer的模型对文本数据中的希望进行分类

Classification of Hope in Textual Data using Transformer-Based Models

Department of Computer Science, Texas Tech University, Lubbock, Texas, United States(计算机科学系,德克萨斯科技大学,德克萨斯州,美国)

Chukwuebuka Fortunate Ijezue, Tania-Amanda Fredrick Eneye, Maaz Amjad

AI总结:

本文针对文本希望表达分类任务,对比BERT、GPT-2、DeBERTa三种Transformer模型的性能,发现BERT准确率更高、计算成本更低,为情感检测相关应用提供参考框架。

摘要:

本文提出了一种基于Transformer的方法,用于分类文本中的希望表达。我们开发并比较了三种架构(BERT、GPT-2、DeBERTa),分别用于二分类任务(希望/非希望)和多分类任务(五个与希望相关的类别)。我们最初实现的BERT在二分类任务上准确率达到83.65%,多分类任务上准确率为74.87%。在扩展对比实验中,BERT表现出更优的性能(二分类准确率84.49%,多分类准确率72.03%),且与更新的架构相比所需计算资源显著更少(训练时间443秒对比704秒)。GPT-2的整体准确率最低(二分类79.34%,多分类71.29%),DeBERTa取得了中等结果(二分类80.70%,多分类71.56%),但计算成本高得多(多分类训练耗时947秒)。误差分析显示各架构在检测细微希望表达上各有优势,其中GPT-2在反讽检测上表现突出(召回率92.46%)。本研究提供了一个用于希望的计算分析框架,可应用于心理健康和社交媒体分析领域,同时证明在专门的情感检测任务中,架构适配性可能比模型规模更重要。

英文摘要:

This paper presents a transformer-based approach for classifying hope expressions in text. We developed and compared three architectures (BERT, GPT-2, and DeBERTa) for both binary classification (Hope vs. Not Hope) and multiclass categorization (five hope-related categories). Our initial BERT implementation achieved 83.65% binary and 74.87% multiclass accuracy. In the extended comparison, BERT demonstrated superior performance (84.49% binary, 72.03% multiclass accuracy) while requiring significantly fewer computational resources (443s vs. 704s training time) than newer architectures. GPT-2 showed lowest overall accuracy (79.34% binary, 71.29% multiclass), while DeBERTa achieved moderate results (80.70% binary, 71.56% multiclass) but at substantially higher computational cost (947s for multiclass training). Error analysis revealed architecture-specific strengths in detecting nuanced hope expressions, with GPT-2 excelling at sarcasm detection (92.46% recall). This study provides a framework for computational analysis of hope, with applications in mental health and social media analysis, while demonstrating that architectural suitability may outweigh model size for specialized emotion detection tasks.

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

↑