基于多任务学习的对话伦理判别方法

王涵 ,  李龙

桂林电子科技大学学报 ›› 2026, Vol. 46 ›› Issue (3) : 284 -294.

PDF (2033KB)
桂林电子科技大学学报 ›› 2026, Vol. 46 ›› Issue (3) : 284 -294. DOI: 10.16725/j.1673-808X.202381

基于多任务学习的对话伦理判别方法

作者信息 +

A multi-task learning method for ethical dialogue detection

Author information +
文章历史 +
PDF (2081K)

摘要

随着人工智能的发展,相关的伦理问题和潜在风险愈发引起人们的关注。其中,对话作为人们日常交流方式之一,其与人工智能结合带来的伦理问题更加值得考虑。要应对这一问题,首要任务是实现对话的伦理判别。基于此,通过影视字幕、多轮对话数据集等多种来源方式,构建了与伦理相关的中文多轮对话数据集 EthicDialog,并对数据集的特点进行了分析。此外,借助多任务学习实现了对话的伦理判别,将对话中话语的伦理属性偏移检测任务和对话伦理判别任务结合,从伦理标签变化和语义 2 个角度建模,从多种角度捕捉上下文的伦理相关信息;通过对 Transformer 层的掩码设计,关注了对话的全局、局部及说话者相关信息,从而更全面地考虑语义上下文、说话者信息等。实验结果表明了构造数据集的作用,显示出所提出模型较基准具有着一定的效果提升。

Abstract

Ethical issues and potential risks associated with artificial intelligence have attracted increasing attention in recent years. As one of the most common forms of human communication, dialogue introduces important ethical concerns when combined with artificial intelligence systems. To address this issue, dialogue ethics detection has become an important research task. In this study, a Chinese multi-turn dialogue dataset, EthicDialog, is constructed from multiple sources, including film subtitles and existing dialogue corpora, and its statistical characteristics are systematically analyzed. Furthermore, a multi-task learning framework for dialogue ethics detection is proposed, which jointly performs ethical attribute shift detection and dialogue-level ethics classification. By introducing dedicated masking strategies into Transformer layers, the model effectively captures global contextual information, local semantic information, and speaker-related information, thereby enabling a more comprehensive understanding of semantic context. Experimental results demonstrate the effectiveness of the constructed Ethicdialog dataset and verify that the proposed model consistently outperforms baseline methods.

关键词

对话伦理判别 / 多轮对话 / 伦理对话数据集 / 多任务学习 / Transformer

Key words

ethical dialogue detection / multi-turn dialogue / ethical dialogue dataset / multi-task learning / Transformer

引用本文

引用格式 ▾
王涵,李龙. 基于多任务学习的对话伦理判别方法[J]. 桂林电子科技大学学报, 2026, 46(3): 284-294 DOI:10.16725/j.1673-808X.202381

登录浏览全文

4963

注册一个新账户 忘记密码

参考文献

[1]

腾讯研究院. 人工智能各国战略解读: 联合国人工智能政策报告[J].电信网技术,2017(2):26-28.

[2]

张兆翔, 张吉豫, 谭铁牛. 人工智能伦理问题的现状分析与对策[J].中国科学院院刊,2021,36(11):1270-1277.

[3]

Henderson P, Sinha K, Angelard-Gontier N, et al. Ethical challenges in data-driven dialogue systems[C]//Proceedings of the 2018 AAAI/ACM Conference on AI, Ethics, and Society. New York: ACM Press, 2018: 123-129.

[4]

Sun Hao, Xu Guangxuan, Deng Jiawen, et al. On the safety of conversational models: taxonomy, dataset, and benchmark[C]//Findings of the Association for Computational Linguistics. Stroudsburg, PA: ACL Press, 2022: 3906-3923.

[5]

Hendrycks D, Burns C, Basart S, et al. Aligning AI with shared human values[C]//International Conference on Learning Representations. Ithaca, NY: OpenReview. net, 2021: 1-29.

[6]

Forbes M, Hwang J D, Shwartz V, et al. Social chemistry 101: learning to reason about social and moral norms[C]//Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing. Stroudsburg, PA: ACL Press, 2020: 653-670.

[7]

古天龙, 冯旋, 李龙 等. 基于社会新闻数据集的伦理行为判别方法[J].计算机研究与发展,2021,58(2):253-263.

[8]

Feng Xuan, Gu Tianlong, Bao Xuguang, et al. Behavior-based ethicalunderstanding in Chinese social news[J].IEEE Transactions on Affective Computing,2023,14(3):2349-2360.

[9]

Nahian M S A, Frazier S, Riedl M, et al. Learning norms from stories: a prior for value aligned agents[C]//Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society. New York: ACM Press, 2020: 124-130.

[10]

Emelin D, Le Bras R, Hwang J D, et al. Moral stories: situated reasoning about norms, intents, actions, and their consequences[C]//Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. Stroudsburg, PA: ACL Press, 2021: 698-718.

[11]

欧阳宁, 任天宇, 林乐平. 基于梯度指导的双通道深度压缩感知图像重建方法[J].桂林电子科技大学学报,2023,43(1):1-6.

[12]

黄新, 沈英超. 基于深度学习的疲劳驾驶检测方法[J].桂林电子科技大学学报,2020,40(3):201-206.

[13]

Liu Pengfei, Qiu Xipeng, Huang Xuanjing. Recurrent neural network for text classification with multi-task learning[C]//Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence. Palo Alto, CA: AAAI Press, 2016: 2873-2879.

[14]

文益民, 杨鹏, 文博奚, 等. 基于深度学习的中文网络招聘文本中的技能词抽取方法[J].桂林电子科技大学学报,2020,40(4):338-348.

[15]

Chen Hongshen, Liu Xiaorui, Yin Dawei, et al. A survey on dialogue systems: recent advances and new frontiers[J].ACM SigKDD Explorations Newsletter,2017,19(2):25-35.

[16]

Ghosal D, Majumder N, Mihalcea R, et al. Utterance-level dialogue understanding: an empirical study[PP/OL].arXiv (2020-09-29)[2023-03-22].https://arxiv.org/abs/2009.13902v5.

[17]

Ni Jinjie, Young T, Pandelea V, et al. Recent advances in deep learning based dialogue systems: a systematic survey[J].Artificial Intelligence Review,2023,56(4):3055-3155.

[18]

Shen Weizhou, Chen Junqing, Quan Xiaojun, et al. DialogXL: all-in-one XLNet for multi-party conversation emotion recognition[J].Proceedings of the AAAI Conference on Artificial Intelligence,2021,35(15):13789-13797.

[19]

Zhang Yu, Yang Qiang. A survey on multi-task learning[J].IEEE Transactions on Knowledge and Data Engineering,2022,34(12):5586-5609.

[20]

Vandenhende S, Georgoulis S, Van GANSBEKE W, et al. Multi-task learning for dense prediction tasks: a survey[J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2021:1.

[21]

Chen Y N, Hakkani-Tür D, Tur G, et al. End-to-end memory networks with knowledge carryover for multi-turn spoken language understanding[C]//The 17th Annual Meeting of the International Speech Communication Association. San Francisco, CA: ISCA, 2016: 3245-3249.

[22]

Zhang Chenwei, Li Yaliang, Du Nan, et al. Joint slot filling and intent detection via capsule neural networks[C]//Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. Stroudsburg, PA: ACL Press, 2019: 5259-5267.

[23]

Zhao Jingming, Zhang Tengan, Hu Jingwen, et al. M3ED: multi-modal multi-scene multi-label emotional dialogue database[C]//Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics. Stroudsburg, PA: ACL Press, 2022: 5699-5710.

[24]

Tolmeijer S, Kneer M, Sarasua C, et al. Implementations in machine ethics: a survey[J].ACM Computing Surveys,2021,53(6):1-38.

[25]

Gips J. Toward the ethical robot [M]. Cambridge, MA: MIT Press,1995: 243-252.

[26]

Gao Qingqing, Cao Biwei, Guan Xin, et al. Emotion recognition in conversations with emotion shift detection based on multi-task learning[J].Knowledge-Based Systems,2022,248:108861.

[27]

Reimers N, Gurevych I. Sentence-BERT: sentence embeddings using siamese BERT-Networks[C]//Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing. Stroudsburg, PA: ACL Press, 2017: 670-680.

[28]

Conneau A, Kiela D, Schwenk H, et al. Supervised learning of universal sentence representations from natural language inference data[C]//Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing. Stroudsburg: ACL Press, 2017: 670-680.

[29]

Cer D, Yang Yinfei, Kong Shengyi, et al. Universal sentence encoder for English[C]//Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations. Stroudsburg, PA: ACL Press, 2018: 169-174.

[30]

Li yanran, Su Hui, Shen Xiaoyu, et al. DailyDialog: a manually labelled multi-turn dialogue dataset[C]//Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 1: Long Papers). Taipei: Asian Federation of Natural Language Processing, 2017: 986-995.

[31]

Poria S, Hazarika D, Majumder N, et al. MELD: a multimodal multi-party dataset for emotion recognition in conversations[C]//Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. Stroudsburg, PA: ACL Press, 2019: 527-536.

[32]

Chen Yirong, Fan Weiquan, Xing Xiaofen, et al. CPED: a large-scale chinese personalized and emotional dialogue dataset for conversational AI[PP/OL].arXiv(2022-05-29) [2023-05-29].https://arxiv.org/abs/2205.14727v1.

[33]

Kim Y. Convolutional neural networks for sentence classification[C]//Proceedings of the 2014 Conference on Empirical Methods in Natural Language Proces-sing.Stroudsburg, PA: ACL Press,2014: 1746-1751.

[34]

Kenton J D M W C, Toutanova L K. BERT: pre-training of deep bidirectional transformers for language understanding[C]//Proceedings of NAACL-HLT. Stroudsburg: ACL Press, 2019: 4171-4186.

[35]

Poria S, Cambria E, Hazarika D, et al. Context-dependent sentiment analysis in user-generated videos[C]//Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics. Stroudsburg, PA: ACL Press, 2017: 873-883.

[36]

Majumder N, Poria S, Hazarika D, et al. DialogueRNN: an attentive rnn for emotion detection in conversations[J].Proceedings of the AAAI Conference on Artificial Intelligence,2019,33(1):6818-6825.

[37]

Ghosal D, Majumder N, Poria S, et al. DialogueGCN: a graph convolutional neural network for emotion recognition in conversation[C]//Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing. Stroudsburg, PA: ACL Press, 2019: 154-164.

基金资助

广东省基础与应用基础研究基金(2023A1515012846)

广州市科技计划(202201011128)

认知无线电与信息处理省部共建教育部重点实验室基金(CRKL220208)

广西精密导航技术与应用重点实验室基金(DH202230)

AI Summary AI Mindmap
PDF (2033KB)

4

访问

0

被引

详细

导航
相关文章

AI思维导图

/

〈 〉