

浏览全部资源
扫码关注微信
Online First:2023-10,
Published:25 October 2023
移动端阅览
Yuran ZHAO, Tang XUE, Gongshen LIU. Research on the robustness of neural machine translation systems in word order perturbation[J]. Chinese Journal of Network and Information Security, 2023, 9(5): 138-149.
Yuran ZHAO, Tang XUE, Gongshen LIU. Research on the robustness of neural machine translation systems in word order perturbation[J]. Chinese Journal of Network and Information Security, 2023, 9(5): 138-149. DOI: 10.11959/j.issn.2096-109x.2023078.
预训练语言模型是自然语言处理领域一类十分重要的模型,预训练-微调成为许多下游任务的标准范式。先前的研究表明,将BERT等预训练语言模型融合至神经机器翻译模型能改善其性能。但目前仍不清楚这部分性能提升的来源是更强的语义建模能力还是句法建模能力。此外,预训练语言模型的知识是否以及如何影响神经机器翻译模型的鲁棒性仍不得而知。为此,使用探针方法对两类神经翻译模型编码器的句法建模能力进行测试,发现融合预训模型的翻译模型能够更好地建模句子的词序。在此基础上,提出了基于词序扰动的攻击方法,检验神经机器翻译模型的鲁棒性。多个语言对上的测试结果表明,即使受到词序扰动攻击,融合BERT的神经机器翻译模型的表现基本上优于传统的神经机器翻译模型,证明预训练模型能够提升翻译模型的鲁棒性。但在英语-德语翻译任务中,融合预训练模型的翻译模型生成的译文质量反而更差,表明英语BERT将损害翻译模型的鲁棒性。进一步分析显示,融合英语BERT的翻译模型难以应对句子受到词序扰动攻击前后的语义差距,导致模型出现更多错误的复制行为以及低频词翻译错误。因此,预训练并不总能为下游任务带来提高,研究者应该根据任务特性考虑是否使用预训练模型。
Pre-trained language model is one of the most important models in the natural language processing field
as pre-train-finetune has become the paradigm in various NLP downstream tasks.Previous studies have proved integrating pre-trained language models (e.g.
BERT) into neural machine translation (NMT) models can improve translation performance.However
it is still unclear whether these improvements stem from enhanced semantic or syntactic modeling capabilities
as well as how pre-trained knowledge impacts the robustness of the models.To address these questions
a systematic study was conducted to examine the syntactic ability of BERT-enhanced NMT models using probing tasks.The study revealed that the enhanced models showed proficiency in modeling word order
highlighting their syntactic modeling capabilities.In addition
an attacking method was proposed to evaluate the robustness of NMT models in handling word order.BERT-enhanced NMT models yielded better translation performance in most of the tasks
indicating that BERT can improve the robustness of NMT models.It was observed that BERT-enhanced NMT model generated poorer translations than vanilla NMT model after attacking in the English-German translation task
which meant that English BERT worsened model robustness in such a scenario.Further analyses revealed that English BERT failed to bridge the semantic gap between the original and perturbed sources
leading to more copying errors and errors in translating low-frequency words.These findings suggest that the benefits of pre-training may not always be consistent in downstream tasks
and careful consideration should be given to its usage.
DEVLIN J , CHANG M W , LEE K , et al . BERT:pre-training of deep bidirectional transformers for language understanding [C ] // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies . 2019 : 4171 - 4186 .
ZHU J , XIA Y , WU L , et al . Incorporating BERT into neural machine translation [C ] // 8th International Conference on Learning Representations . 2020 : 1 - 16 .
BAZIOTIS C , HADDOW B , BIRCH A . Language model prior for low-resource neural machine translation [C ] // Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) . 2020 : 7622 - 7634 .
AN T , SONG J , LIU W . Incorporating pre-trained model into neural machine translation [C ] // 2021 4th International Conference on Artificial Intelligence and Big Data (ICAIBD) . 2021 : 212 - 216 .
LIU X , WANG L , WONG D F , et al . On the complementarity between pre-training and back-translation for neural machine translation [C ] // Findings of the Association for Computational Linguistics:EMNLP 2021 . 2021 : 2900 - 2907 .
PETERS M E , NEUMANN M , ZETTLEMOYER L , et al . Dissecting contextual word embeddings:architecture and representation [C ] // Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing . 2018 : 1499 - 1509 .
JAWAHAR G , SAGOT B , SEDDAH D . What does BERT learn about the structure of language [C ] // Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics . 2019 : 3651 - 3657 .
TENNEY I , DAS D , PAVLICK E . BERT rediscovers the classical NLP pipeline [C ] // Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics . 2019 : 4593 - 4601 .
TENNEY I , XIA P , CHEN B , et al . What do you learn from context? Probing for sentence structure in contextualized word representations [C ] // 7th International Conference on Learning Representations . 2019 : 1 - 17 .
HEWITT J , MANNING C D . A structural probe for finding syntax in word representations [C ] // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies . 2019 : 4129 - 4138 .
GOLDBERG Y . Assessing BERT's syntactic abilities [J ] . arXiv preprint arXiv:1901.05287 , 2019 .
SUNDARARAMAN D , SUBRAMANIAN V , WANG G , et al . Syntax-infused transformer and bert models for machine translation and natural language understanding [J ] . arXiv preprint arXiv:1911.06156 , 2019 .
WENG R , YU H , HUANG S , et al . Acquiring knowledge from pre-trained model to neural machine translation [C ] // Proceedings of the AAAI Conference on Artificial Intelligence . 2020 : 9266 - 9273 .
YANG J , WANG M , ZHOU H , et al . Towards making the most of bert in neural machine translation [C ] // Proceedings of the AAAI Conference on Artificial Intelligence . 2020 : 9378 - 9385 .
SHAVARANI H S , SARKAR A . Better neural machine translation by extracting linguistic information from BERT [C ] // Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics . 2021 : 2772 - 2783 .
HAUSER J , MENG Z , PASCUAL D , et al . BERT is robust! a case against synonym-based adversarial examples in text classification [J ] . arXiv preprint arXiv:2109.07403 , 2021 .
VASWANI A , SHAZEER N , PARMAR N , et al . Attention is all you need [C ] // Proceedings of the 31st International Conference on Neural Information Processing Systems . 2017 : 6000 - 6010 .
CONNEAU A , KRUSZEWSKI G , LAMPLE G , et al . What you can cram into a single $ &!#* vector:probing sentence embeddings for linguistic properties [C ] // Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1:Long Papers) . 2018 : 2126 - 2136 .
PAPINENI K , ROUKOS S , WARD T , et al . Bleu:a method for automatic evaluation of machine translation [C ] // Proceedings of the 40th annual Meeting of the Association for Computational Linguistics . 2002 : 311 - 318 .
ZHANG T , KISHORE V , WU F , et al . BERTScore:evaluating text generation with BERT [C ] // 8th International Conference on Learning Representations . 2020 : 1 - 43 .
CLINCHANT S , JUNG K W , NIKOULINA V . On the use of BERT for neural machine translation [C ] // Proceedings of the 3rd Workshop on Neural Generation and Translation . 2019 : 108 - 117 .
ROTHE S , NARAYAN S , SEVERYN A . Leveraging pre-trained checkpoints for sequence generation tasks [J ] . Transactions of the Association for Computational Linguistics , 2020 , 8 : 264 - 280 .
GUO J , ZHANG Z , XU L , et al . Incorporating bert into parallel sequence decoding with adapters [J ] . Advances in Neural Information Processing Systems . 2020 , 33 : 10843 - 10854 .
GUO J , ZHANG Z , XU L , et al . Adaptive adapters:an efficient way to incorporate BERT into neural machine translation [J ] . IEEE/ACM Transactions on Audio,Speech,and Language Processing , 2021 , 29 : 1740 - 1751 .
XU H , VAN DURME B , MURRAY K . BERT,mBERT,or BiBERT? a study on Contextualized Embeddings for Neural Machine Translation [C ] // Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing . 2021 : 6663 - 6675 .
CONNEAU A , LAMPLE G . Cross-lingual language model pretraining [C ] // Proceedings of the 33rd International Conference on Neural Information Processing Systems . 2019 : 7059 - 7069 .
SONG K , TAN X , QIN T , et al . MASS:masked sequence to sequence pre-training for language generation [C ] // International Conference on Machine Learning . 2019 : 5926 - 5936 .
LIU Y , GU J , GOYAL N , et al . Multilingual denoising pre-training for neural machine translation [J ] . Transactions of the Association for Computational Linguistics , 2020 , 8 : 726 - 742 .
LIN Z , PAN X , WANG M , et al . Pre-training multilingual neural machine translation by leveraging alignment information [C ] // Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) . 2020 : 2649 - 2663 .
PAN X , WANG M , WU L , et al . Contrastive learning for many-to-many multilingual neural machine translation [C ] // Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing . 2021 : 244 - 258 .
LI P , LI L , ZHANG M , et al . Universal conditional masked language pre-training for neural machine translation [C ] // Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics . 2022 : 6379 - 6391 .
BELINKOV Y , BISK Y . Synthetic and natural noise both break neural machine translation [C ] // 6th International Conference on Learning Representations . 2018 : 1 - 13 .
CHENG Y , TU Z , MENG F , et al . Towards robust neural machine translation [C ] // Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics . 2018 : 1756 - 1766 .
VAIBHAV V , SINGH S , STEWART C , et al . Improving robustness of machine translation with synthetic noise [C ] // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies . 2019 : 1916 - 1920 .
MICHEL P , LI X , NEUBIG G , et al . On evaluation of adversarial perturbations for sequence-to-sequence models [C ] // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies . 2019 : 3103 - 3114 .
SATO M , SUZUKI J , KIYONO S . Effective adversarial regularization for neural machine translation [C ] // Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics . 2019 : 204 - 210 .
CHENG Y , JIANG L , MACHEREY W , et al . AdvAug:robust adversarial augmentation for neural machine translation [C ] // Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics . 2020 : 5961 - 5970 .
SENNRICH R , HADDOW B , BIRCH A . Neural machine translation of rare words with subword units [C ] // Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics . 2016 : 1715 - 1725 .
MICHEL P , NEUBIG G . MTNT:a testbed for machine translation of noisy text [C ] // Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing . 2018 : 543 - 553 .
WU Z , WU L , MENG Q , et al . UniDrop:a simple yet effective technique to improve transformer without extra cost [C ] // Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies . 2021 : 3865 - 3878 .
CHENG Y , WANG W , JIANG L , et al . Self-supervised and supervised joint training for resource-rich machine translation [C ] // International Conference on Machine Learning . 2021 : 1825 - 1835 .
AGIRRE E , CER D , DIAB M , et al . SemEval-2012 task 6:A pilot on semantic textual similarity [C ] // Proceedings of the Main Conference and the Shared Task,and Volume 2:Proceedings of the Sixth International Workshop on Semantic Evaluation (SemEval 2012) . 2012 : 385 - 393 .
AGIRRE E , CER D , DIAB M , et al . * SEM 2013 shared task:semantic textual similarity [C ] // Proceedings of the Main Conference and the shared task:Semantic Textual Similarity . 2013 : 32 - 43 .
AGIRRE E , BANEA C , CARDIE C , et al . Multilingual semantic Textual Similarity [C ] // Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2014) . 2014 : 81 - 91 .
AGIRRE E , BANEA C , CARDIE C , et al . Semantic textual similarity,english,spanish and pilot on interpretability [C ] // Proceedings of the 9th International Workshop on Semantic Evaluation (SemEval 2015) . 2015 : 252 - 263 .
AGIRRE E , BANEA C , CER D , et al . Semantic Textual Similarity,Monolingual and Cross-Lingual Evaluation [C ] // Proceedings of the 10th International Workshop on Semantic Evaluation (SemEval-2016) . 2016 : 497 - 511 .
QI P , ZHANG Y , ZHANG Y , et al . Stanza:a python natural language processing toolkit for many human languages [C ] // Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics:System Demonstrations . 2020 : 101 - 108 .
CONNEAU A , KIELA D . SentEval:an evaluation toolkit for universal sentence representations [C ] // Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018) . 2018 : 1699 - 1704 .
WOLF T , DEBUT L , SANH V , et al . Transformers:state-of-the-art natural language processing [C ] // Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing:System Demonstrations . 2020 : 38 - 45 .
OTT M , EDUNOV S , BAEVSKI A , et al . Fairseq:a fast,extensible toolkit for sequence modeling [C ] // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations) . 2019 : 48 - 53 .
KINGMA D P , BA J . Adam:a method for stochastic optimization [C ] // 3rd International Conference on Learning Representations . 2015 : 1 - 15 .
POST M . A call for clarity in reporting BLEU scores [C ] // Proceedings of the Third Conference on Machine Translation:Research Papers . 2018 : 186 - 191 .
OTT M , AULI M , GRANGIER D , et al . Analyzing uncertainty in neural machine translation [C ] // International Conference on Machine Learning . 2018 : 3956 - 3965 .
NEUBIG G , DOU Z Y , HU J , et al . compare-mt:a tool for holistic comparison of language generation systems [C ] // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations) . 2019 : 35 - 41 .
0
Views
92
下载量
0
CSCD
Publicity Resources
Related Articles
Related Author
Related Institution
京公网安备11010802024621