Text classification by BERT-Capsules

Minghui Guo
{"title":"Text classification by BERT-Capsules","authors":"Minghui Guo","doi":"10.61173/wcg0nf17","DOIUrl":null,"url":null,"abstract":"This paper presents a model that integrates a BERT encoder with a Capsule network, eliminating the traditional fully connected layer designed for downstream classification tasks in BERT in favor of a capsule layer. This capsule layer consists of three main modules: the representation module, the probability module, and the reconstruction module. It transforms the final hidden layer output of BERT into the final activation capsule probabilities to classify the text. By applying the model to sentiment analysis and text classification tasks, and comparing the test results with various BERT variants, the performance across all metrics was found to be superior. Observing the model’s handling of multiple entities and complex relationships, sentences with high ambiguity were extracted to observe the probability distribution of all capsules and compared with RNN-Capsule. It was found that the activation capsule probabilities for BERT-Capsule were significantly higher than the rest, and more pronounced than RNN-Capsule, indicating the model’s exceptional ability to process ambiguous information.","PeriodicalId":438278,"journal":{"name":"Science and Technology of Engineering, Chemistry and Environmental Protection","volume":"6 9","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-02-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Science and Technology of Engineering, Chemistry and Environmental Protection","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.61173/wcg0nf17","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

This paper presents a model that integrates a BERT encoder with a Capsule network, eliminating the traditional fully connected layer designed for downstream classification tasks in BERT in favor of a capsule layer. This capsule layer consists of three main modules: the representation module, the probability module, and the reconstruction module. It transforms the final hidden layer output of BERT into the final activation capsule probabilities to classify the text. By applying the model to sentiment analysis and text classification tasks, and comparing the test results with various BERT variants, the performance across all metrics was found to be superior. Observing the model’s handling of multiple entities and complex relationships, sentences with high ambiguity were extracted to observe the probability distribution of all capsules and compared with RNN-Capsule. It was found that the activation capsule probabilities for BERT-Capsule were significantly higher than the rest, and more pronounced than RNN-Capsule, indicating the model’s exceptional ability to process ambiguous information.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
通过 BERT-Capsules 进行文本分类
本文提出了一种将 BERT 编码器与胶囊网络集成的模型,取消了 BERT 中为下游分类任务设计的传统全连接层,转而使用胶囊层。胶囊层由三个主要模块组成:表示模块、概率模块和重构模块。它将 BERT 的最终隐藏层输出转化为最终激活胶囊概率,从而对文本进行分类。通过将该模型应用于情感分析和文本分类任务,并将测试结果与不同的 BERT 变体进行比较,我们发现该模型在所有指标上都表现优异。为了观察该模型处理多实体和复杂关系的能力,我们提取了含混度较高的句子,观察所有胶囊的概率分布,并与 RNN-Capsule 进行比较。结果发现,BERT-Capsule 的激活胶囊概率明显高于其他模型,而且比 RNN-Capsule 更明显,这表明该模型具有处理模糊信息的卓越能力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Improvement of EfficientNet in medical waste classification A Review of Research on Hospital Electronic Medical Record Management System Based on Cloud Computing Exploration of the Application of UAV Remote Sensing Technology in Engineering Surveying and Mapping Research on the Influencing factors of Heart Disease based on Binary Logistic Regression A review of YOLO-based traffic sign target detection
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1