Work

Addressing Text Degeneration of Discriminative Models with Re-ranking Methods

Year: 2023
Type: dissertation
Abstract: Natural language processing (NLP) involves tasks that enable computers to process and understand human languages, whether in text or speech, with the goal of improving communications between humans and machines, as well as among humans themselves.The origins of NLP can be traced back to the 1950s when Alan Turing introduced the Turing Test as a tool to determine whether a computer is as skillful as a human being in processing human languages.With the rapid development of the Internet and computer hardware in recent decades, the field of NLP has experienced significant growth, and many NLP applications are now widely used in our daily lives, such as Google Translate and Apple Siri.One notable advancement in recent years is the emergence of ChatGPT, a large-scale intelligent language model, that has gained global attention for its impressive conversational capabilities.In NLP, discriminative models are often preferred over generative models owing to their direct computation and proven success in various applications such as machine translation, text summarization, and named entity recognition, despite challenges such as unbalanced data distribution and limited training data.However, recent studies have highlighted two significant issues that arise when using discriminative models: text degeneration and exposure bias, which can hurt the quality of the models' predictions.The primary objective of this thesis is to improve the prediction results from discriminative models by presenting two re-ranking-based methods: the language model-based reranker (LMR) and the bidirectional Transformer reranker (BTR), to counter the decoding issues of text degeneration and exposure bias.The aim of this study is to propose general ideas that can be easily implemented in NLP tasks, including discourse parsing and grammatical error correction, without requiring complex modifications to the existing discriminative model structure or excessive computational resources.The proposed LMR is designed as a generative model that leverages information from the top-𝛼 candidates generated by a discriminative model.In addition to the source text, the LMR also treats each candidate as the input.For each candidate, the LMR employs a masked language model and pseudo-log-likelihood scores (PLL) to estimate the sequence probability based on the bidirectional representation of the concatenated sequence comprising the source text and the candidate.This thesis uses contrastive learning during training to increase the probability difference between the true sequence and unmatched sequences, expecting to enhance the ability of the LMR to distinguish between them, thereby mitigating issues such as text degeneration.Experimental results on the RST-DT dataset demonstrate the effectiveness of LMR in discourse segmentation and sentence-level discourse parsing tasks.Building upon the success of the LMR, this thesis extends it to a seq2seq architecture, i resulting in the BTR.The BTR preserves the seq2seq-style Transformer architecture and incorporates a masked language model in the decoder component to re-estimate the probability of each candidate through PLL based on the corresponding bidirectional representations.During inference, the BTR compares the re-ranked top-1 results with the original ones using an acceptance threshold 𝛽 to determine the final results.Experimental results on three publicly available grammatical error correction datasets demonstrates the effectiveness of BTR in overcoming exposure bias and text degeneration.The experimental results presented in this study provide strong evidence for the effectiveness of the proposed re-ranking-based methods in addressing decoding problems.Moreover, these results suggest that future research could explore the potential benefits of combining PLL-based and discriminative models.Building upon these findings, this thesis offers valuable insights into potential directions, including label embedding, masking, and negative sampling strategies, to benefit the NLP community.Publication 91 v vi 4.1 Overview of the reranking procedure by using the bidirectional Transformer reranker (BTR). . . . . . . . . . . . . . . . . . . . . . . . .47 4.2 The bidirectional Transformer architecture (a) utilizes a fully-visible self-attention mechanism (b) in the decoder, distinguishing it from the conventional Transformer. . . . . . . . . . . . . . . . . . . . . . .48 4.3 Pre-training loss for R2L (left) and the BTR (right). . . . . . . . . .51 4.4 Performances of BTR and RoBERTa with various 𝛼 𝑡𝑟𝑎𝑖𝑛 without 𝛽 during fine-tuning.𝛼 𝑝𝑟𝑒𝑑 was fixed to 5 with candidates from T5GEC.Both 𝐹 0.5 score and training loss were averaged over the four trials. . . . .55 4.5 Precision and recall of BTR (𝛼 𝑡𝑟𝑎𝑖𝑛 = 20, 𝛼 𝑝𝑟𝑒𝑑 = 5) with respect to different 𝛽 on the CoNLL-13 set (left, a -e) and CoNLL-14 set (right, f -j), respectively. . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 4.6 Precision and recall of BTR (𝛼 𝑡𝑟𝑎𝑖𝑛 = 10, 𝛼 𝑝𝑟𝑒𝑑 = 5) with respect to different 𝛽 on the BEA dev (left, a -e) and test (right, f -h) set. . . .65 4.7 GLEU of BTR (𝛼 𝑡𝑟𝑎𝑖𝑛 = 5, 𝛼 𝑝𝑟𝑒𝑑 = 15) with respect to different 𝛽 on the JFLEG dev (left, a -c) and test (right, d -f) set. . . . . . . . . . . .66 4.8 Average probability for each rank on the CoNLL-14 (a), BEA (b) and JFLEG (c) test set.The top candidate sentences were generated by T5GEC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 4.9 Cross-entropy loss of 𝑦 𝑗 versus 𝑗.The loss was averaged over CoNLL-14's 149 tokenized utterances with length in interval [18, 20] (including <eos>). . . . . . . . . . . . . . . .
Authors: Zhang, Ying, Zhang, Ying
Language: English
Open Access status: green
OpenAlex ID: W6998389792
Cites: 101
Cited by:
Related to: 10