计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260100068-283.doi: 10.11896/jsjkx.260100068
吴友晶, 黄孝喜
WU Youjing, HUANG Xiaoxi
摘要: 针对多语言隐喻生成数据集稀缺及生成效果欠佳的问题,构建覆盖13种语言的隐喻生成对齐语料库并提升生成性能。从诗歌语料提取句子后,利用XLM-RoBERTa(XLM-R)进行词元级隐喻动词识别,结合知识增强提示开展交叉验证;采用掩码语言建模生成字面动词,借助常识生成确保隐喻句子与字面句子相对应,最终形成一个多语言隐喻对齐语料库。在隐喻生成方面,基于多语言序列到序列训练模型(mBART),引入隐喻识别器作为奖励函数的强化学习进行优化。最终获得199 926条对齐句对,语料库多维度平均得分为37.36/50;隐喻生成结果的测试集语义相似度达0.903,BERTScore为0.94,整体优于对比模型。研究表明,所构建的语料库质量可靠,强化学习优化后的模型可高效生成高质量多语言隐喻句子。
中图分类号:
| [1] STEEN G J,DORST A G,HERRMANN J B,et al.A Method for Linguistic Metaphor Identification:From MIP to MIPVU[M].John Benjamins Publishing,2010. [2] INDURKHYA B.Metaphor and cognition:An interactionist approach[M].Springer Science & Business Media,2013. [3] SU C,FUKUMOTO F,HUANG X,et al.Deepmet:A reading comprehension paradigm for token-level metaphor detection [C]//Proceedings of the Second Workshop on Figurative Language Processing.2020:30-39. [4] TSVETKOV Y,BOYTSOV L,GERSHMAN A,et al.Metaphor detection with cross-lingual model transfer [C]//Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics(Volume 1:Long Papers).2014:248-258. [5] LIN Y,LIU J,GAO Y,et al.A dual-perspective metaphor detection framework usinglarge language models[C]//ICASSP 2025-2025 IEEE International Conference on Acoustics,Speech and Signal Processing(ICASSP).IEEE,2025:1-5. [6] CHAKRABARTY T,ZHANG X,MURESAN S,et al.MERMAID:Metaphor Generation with Symbolism and Discriminative Decoding[C]//Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies.2021:4250-4261. [7] STOWE K,RIBEIRO L,GUREVYCH I.Metaphoric para-phrase generation[PP/OL].(2020-02-28)[2025-12-23].https://arxiv.org/abs/2002.12854. [8] SU C,WANG X,CHANG Y,et al.Metaphor generation based on noval evaluation method[J].Neurocomputing,2025,611:128651. [9] STEEN G J,DORST A G,HERRMANN J B,et al.Metaphor in usage [M].Walter de Gruyter GmbH & Co.KG,2010. [10] MOHAMMAD S,SHUTOVA E,TURNEY P.Metaphor as a medium for emotion:An empirical study [C]//Proceedings of the Fifth Joint Conference on Lexical and Computational Semantics.2016:23-33. [11] SHAO Y,YAO X,QU X,et al.CMDAG:A Chinese metaphor dataset with annotated grounds as CoT for boosting metaphor generation[C]//Proceedings of the 2024 Joint International Conference on Computational Linguistics,Language Resources and Evaluation(LREC-COLING 2024).2024:3357-3366. [12] XU B,LI T,ZHENG J,et al.Met-meme:A multimodal meme dataset rich in metaphors [C]//Proceedings of the 45th International ACM SIGIR Conference on Research and Development in Information Retrieval.2022:2887-2899. [13] MOHLER M,BRUNSON M,RINK B,et al.Introducing the lcc metaphor datasets [C]//Proceedings of the Tenth International Conference on Language Resources and Evaluation(LREC’16).2016:4221-4227. [14] LIU A,FENG B,XUE B,et al.Deepseek-v3 technical report[PP/OL].(2025-02-18)[2025-12-31].https://arxiv.org/abs/2412.19437. [15] YANG A,LI A,YANG B,et al.Qwen3 technical report [PP/OL].(2025-05-14)[2025-12-31].https://arxiv.org/abs/2505.09388. [16] AGHAZADEH E,FAYYAZ M,YAGHOOBZADEH Y.Metaphors in Pre-Trained Language Models:Probing and Generalization Across Datasets and Languages[C]//Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics(Volume 1:Long Papers).2022:2037-2050. [17] BARSALOU L W.Perceptual symbol systems [J].Behavioral and Brain Sciences,1999,22(4):577-660. [18] SPEER R,CHIN J,HAVASI C.Conceptnet 5.5:An open multilingual graph of general knowledge [C]//Proceedings of the AAAI Conference on Artificial Intelligence.2017. [19] LIU Y,GU J,GOYAL N,et al.Multilingual denoising pre-training for neural machine translation [J].Transactions of the Associationfor Computational Linguistics,2020,8:726-742. [20] KRISHNAKUMARAN S,ZHU X.Hunting elusive metaphors using lexical resources[C]//Proceedings of the Workshop on Computational Approaches to Figurative Language.2007:13-20. [21] GAO G,CHOI E,CHOI Y,et al.Neural Metaphor Detection in Context[C]//Conference on Empirical Methods in Natural Language Processing.2018. [22] ABE K,SAKAMOTO K,NAKAGAWA M.A computationalmodel of the metaphor generation process [C]//Proceedings of the Annual Meeting of the Cognitive Science Society.2006. [23] TERAI A,NAKAGAWA M.A computational system of metaphor generation with evaluation mechanism [C]//International Conference on Artificial Neural Networks.Springer,2010:142-147. [24] MASON Z J.Cormet:a computational,corpus-based conventional metaphor extraction system [J].Computational Linguistics,2004,30(1):23-44. [25] YU Z,WAN X.How to avoid sentences spelling boring?to-wards a neural approach to unsupervised metaphor generation [C]//Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies,Volume 1(Long and Short Papers).2019:861-871. [26] SHAO Y,YAO X,QU X,et al.CMDAG:A Chinese metaphor dataset with annotated grounds as CoT for boosting metaphor generation[C]//Proceedings of the 2024 Joint International Conference on Computational Linguistics,Language Resources and Evaluation(LREC-COLING 2024).2024:3357-3366. [27] LI Y,LIN C,GUERIN F.Nominal metaphor generation with multitask learning[C]//Proceedings of the 15th International Conference on Natural Language Generation.2022:225-235. [28] JACOBS A M.The gutenberg english poetry corpus:exemplary quantitative narrative analyses [J].Frontiers in Digital Humanities,2018,5:5. [29] CONNEAU A,KHANDELWAL K,GOYAL N,et al.Unsupervised cross-lingual representation learning at scale[C]//Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.2020:8440-8451. [30] WANG J,WANG J,ZHANG X.Chinese metaphor recognition using a multi-stage prompting large language model[C]//CCF International Conference on Natural Language Processing and Chinese Computing.Singapore:Springer Nature Singapore,2024:234-246. [31] KRAMER O.Conceptual Metaphor Theory as a Prompting Paradigm for Large Language Models [PP/OL].(2025-02-04)[2025-12-31].https://arxiv.org/abs/2502.01901 [32] MILLER G A.WordNet:a lexical database for English[J].Communications of the ACM,1995,38(11):39-41. [33] BOND F,FOSTER R.Linking and extending an open multilingual wordnet [C]//Proceedings of the51st Annual Meeting of the Association for Computational Linguistics(Volume 1:Long Papers).2013:1352-1362. [34] LI X,TAHERI A,TU L,et al.Commonsense knowledge base completion [C]//Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics(Volume 1:Long Papers).2016:1445-1455. [35] ZHA Z C.Research on Chinese Metaphor Evaluation and Generation Based on LLM and Conceptual Metaphor Theory [D].Hangzhou:Hangzhou Dianzi University,2025. [36] REIMERS N,GUREVYCH I.Sentence-BERT:Sentence Em-beddings 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(EMNLP-IJCNLP).2019:3982-3992. [37] ZHANG T,KISHORE V,WU F,et al.BERTScore:Evaluating Text Generation with BERT[C]//International Conference on Learning Representations.2020. |
|
||