scieee AI-readable full text Open interactive document viewer

Towards Robust End-to-End Speech Translation

Cortès Sebastià, Guillem

Abstract

Interest in speech-to-text translation systems has experienced a remarkable growth in recent years. The main motivation for this is the need to adapt to users the digital content they consume, for example, on social networks or video streaming platforms. In addition, nowadays we have high-quality automatic speech recognition and text translation systems which makes it the perfect time to investigate on speech translation systems. Traditionally cascade systems (ASR + MT) have worked best but great advances have recently been made in End-to-End systems which show their potential. This work is a study of the robustness of both systems, with the aim of being able to establish which approach is more resistant to noise. A series of experiments have been performed to determine which system is more robust. Both cascade and End-to-End systems have been trained with different noise levels using data from MuST-C En-Es, which contains 504 hours of speech, to study the difference in their performances. End-to-End systems have achieved a higher performance systematically. Despite of that, the behaviour of Cascade systems is pretty similar although they don?t achieve the same performance. Moreover, training with noise provides a lot of stability and robustness

Full text

Escola Tècnica Superior d’Enginyeria de Telecomunicació de Barcelona Towards Robust End-to-End Speech Translation A Master’s thesis submitted to the Faculty of the Escola Tècnica Superior d’Enginyeria de Telecomunicació de Barcelona Universitat Politècnica de Catalunya by Guillem Cortès Sebastià In partial fulfillment of the requirements for the Master’s degree in Advanced Telecommunication Technologies Supervisors: Marta Ruiz Costa-Jussà, PhD. (UPC) Barry Haddow, PhD. (UoE) Barcelona, September 2020 "If a machine is expected to be infallible, it cannot also be intelligent." Alan Turing Abstract Interest in speech-to-text translation systems has experienced a remarkable growth in recent years. The main motivation for this is the need to adapt to users the digital content they consume, for example, on social networks or video streaming platforms. In addition, nowadays we have high-quality automatic speech recognition and text translation systems which makes it the perfect time to investigate on speech translation systems. Traditionally cascade systems (ASR + MT) have worked best but great advances have recently been made in End-to-End systems which show their potential. This work is a study of the robustness of both systems, with the aim of being able to establish which approach is more resistant to noise. A series of experiments have been performed to determine which system is more robust. Both cascade and End-to-End systems have been trained with different noise levels using data from MuST- C En-Es, which contains 504 hours of speech, to study the difference in their performances. End-to-End systems have achieved a higher performance systematically. Despite of that, the behaviour of Cascade systems is pretty similar although they don’t achieve the same performance. Moreover, training with noise provides a lot of stability and robustness. ii Resum L’interès pels sistemes de traducció de parla a text ha experimentat un creixement notable els darrers anys. La principal motivació que ha comportat aquest creixement és la necessitat d’adaptar a l’usuari el contingut digital que consumeix, per exemple, a les xarxes socials o a plataformes de vídeo streaming. A més, avui en dia tenim sistemes automàtics de reconeixement de parla i de traducció de text de gran qualitat la qual cosa fa que sigui el moment idoni per investigar sistemes de traducció de parla. Tradicionalment els sistemes en cascada (ASR+MT) són els que han funcionat millor però recentment s’han produït grans avenços en els sistemes End-to-End. Aquest treball és un estudi de la robustesa d’ambdós sistemes, amb l’objectiu de poder establir quina estratègia és més resistent a la presència de soroll. S’han realitzat una sèrie experiments entrenant sistemes en cascada i End-to-End, amb diferents nivells de soroll utilitzant les dades de MuST-C En-Es, que conté 504 hores de parla, per determinar quin sistema és més robust. Les conclusions que se’n poden extreure és que els sistemes End-to-End assoleixen un rendiment més elevat. Tot i això, el comportament davant el soroll és comparable als sistemes Cascada. Afegir que entrenar amb dades sorolloses aporta molta estabilitat i robustesa a qualsevol dels dos sistemes. iii Resumen El interés por los sistemas de traducción de habla a texto ha experimentado un crecimiento notable en los últimos años. La principal motivación que ha comportado este crecimiento es la necesidad de adaptar al usuario el contenido digital que consume, por ejemplo, en las redes sociales o plataformas de vídeo streaming. Además, hoy en día tenemos sistemas automáticos de reconocimiento de habla y de traducción de texto de gran calidad lo que hace que sea el momento idóneo para investigar sistemas de traducción de habla. Tradicionalmente los sistemas en cascada (ASR + MT) son los que han funcionado mejor pero recientemente se han producido grandes avances en los sistemas End-to-End. Este trabajo es un estudio de la robustez de ambos sistemas, con el objetivo de poder establecer qué estrategia es más resistente a la presencia de ruido. Se han realizado una serie de experimentos entrenando sistemas en cascada y End-to-End con diferentes niveles de ruido utilizando los datos de MuST-C En-Es, que contiene 504 horas de habla, para determinar qué sistema es más robus- to. Los sistemas End-to-End consiguen un rendimiento más elevado y funcionan mejor. Sin embargo, el comportamiento delante señales ruidosas es muy parecido al de los sistemas en Cascada, aunque estos tienen un rendimiento pero. Añadir que entrenar con datos ruidosos aporta mucha estabilidad y robustez a cualquiera de los dos sistemas. iv To Aliya, Nick and Talha. Couldn’t have asked for a better lockdown mates. v Acknowledgements I would like to start thanking Barry Haddow for being an outstanding supervisor and always guiding me towards the correct direction. Thank you for being so responsive and available for a quick chat or question-answering session. Also, I would like to thank Marta Ruiz Costa- Jussà for contacting Barry and making this collaboration possible. Moltes gràcies Marta, tot el que he après i viscut aquests mesos m’acompanyarà la resta de la meva vida i és tot gràcies a tu. To Gerard Gállego for the countless late-night sessions and for feeding me back with your motivation and our chats. Gràcies per totes les estones que hem passat junts, no hagués arribat aquí sense tu. To Carlos Escolano, gracias por estar siempre disponible para resolver cualquier duda y aportar/discutir ideas. To Aliya, Nick, Talha and Momina for being responsible for many good memories of my stay in Edinburgh and keeping me entertained during lockdown. To Ramon for that road trip with all its conversations. Gràcies per obrir-te tant amb mi i deixar que jo també ho fes. Last but not least, I would like to thank my family, for supporting me and giving me the opportunity to live in Edinburgh for almost 7 months; Jordi, Marta, m’heu fet el millor regal de la meva vida. Moltíssimes gràcies. I Mariona, gràcies per estar pendent de mi. And all my friends in Catalonia that encouraged me and supported me when the lockdown was not easy to handle; Albert, Joan, Jordi, gràcies pels podcasts i les trucades random; Bernat, Xavi, sou uns flipats i gràcies per això; Clara, gràcies per recordar-me que what you give is what you get i que tot torna. I Mar, gràcies per tot el viscut. vi Table of contents 1 Introduction 1 2 Background 3 2.1 Systems overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.2 Transformer..................................... 4 3 Literature Review 6 4 Methodology 8 4.1 S-Transformer.................................... 8 4.2 Toolkits ....................................... 9 4.3 Datasets....................................... 10 5 Experimental Framework 12 5.1 Experiments cookbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 5.2 Data......................................... 13 5.3 Data processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.3.1 Removing annotations . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.3.2 Adding noise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.4 Parameters and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 6 Results 19 7 Conclusions and future work 23 A Code 31 vii Towards Robust End-to-End Speech Translation Guillem Cortès Cascade systems consist of different independent blocks, 2 at least, that we connect to get what we want. In Speech Translation we usually connect an Automatic Speech Recognition block with a Machine Translation one (nowadays the vast majority them are, in fact, Neural Machine Translation blocks). The ASR input can be raw speech directly, or a representation of it. It depends on each ASR. The ASR generates the transcriptions of the input signal in the same language. These transcriptions are used later as the input of the MT system, which translates the transcriptions to the target language. Ent-to-End systems of one single block, so there are no intermediate steps. In ST, the E2E input is the raw audio — or again, it can be a representation of it — and the output is the translation of it. As it is noted in the Introduction §1, the belief is that not having an intermediate step makes the system more robust. So, if we imagine each system as a black box, they are interchangeable because input and output are the same. This can be seen clearly in Figure 2.1.1. We have someone speaking producing speech, we record this speech but with it we are recording many other things like reflections, third-party noises, the envelope of the room/space where the speaker is (this is recorded indirectly) and many other things. So, to keep things simple, we can say that the original speech signal has been distorted by all this artefacts and that’s actually the signal we will work with. 2.2 Transformer Transformer (Vaswani u. a., 2017) is a widely used sequence to sequence encoder-decoder architecture entirely based on attention networks which makes it really good in processing sequences. Attention is no other thing that a mechanism that looks at an input sequence and decides at each step which other parts of the sequence are relevant. Attention is weighing individual words in the input sequence according to the impact they make on the target sequence generation. The fact that attention weights are calculated using all the words in the input sequence at once facilitates parallelisation and that’s one of the Transformers’ strongest points. Figure 2.2.1 shows its full architecture. So Transformer works perfectly when we want to process sequences of words, it was designed for it so that make sense. The problems start when we want to process speech with it. Then, the number of input tokens is much higher, causing a computational problem. Another issue that appears is that Transformer cannot model 2D dependencies over time and frequency in a spectrogram, so we have to introduce some elements in the network capable of doing that. 4 Towards Robust End-to-End Speech Translation Guillem Cortès Last but not least, the absence of an explicit bias towards the local text — i.e. short-range dependencies between the input feature — is also something that requires an action. The reason why this happens is that attention works really great for long-range dependencies, but it is not that good with short ones. An architecture — S-Transformer — that solves all of this problems was proposed in Adapting Transformer to End-to-end Spoken Language Translation (Di Gangi u. a., 2019b) and it is explained in Section 4.1. (a) Transformer architecture (b) Multi-Head Attention (c) Scaled Dot-Product Attention Figure 2.2.1: Transformer architecture breakdown 5 Chapter 3 Literature Review As I already said, the Speech Translation field has experienced growth in popularity in the last few years. The community has been focusing on achieving the best possible performance with the maximum data efficiency. To do so, there have been many different approaches, Knowledge Distillation, Data Augmentation, Pretraining, Multitask learning, Meta-learning, etc. But, even though there are a significant amount of research papers in this field, this thesis is the first work that focuses on the robustness of existing systems, to the best of my knowledge. This Chapter gathers the most remarkable works in Speech Translation and classifies them by approach. Speech Translation and the End-to-EndPromise:Taking Stock of Where We Are (Sperber und Paulik, 2020) is an exceptional analysis of the actual (was published on April, 2020) situation of ST. They realised that to improve data efficiency, most end-to-end models employ techniques that re-introduce issues generally attributed to cascaded ST. In the search for the best ST system, several new approaches, methods and techniques has been proposed. Multi-task training and pretraining were proposed as a way to incorporate additional ASRand MT data and reduce dependency on scarce end-to-end data (Weiss u. a., 2017) (Bérard u. a., 2018) (Bansal u. a., 2018). These approaches were not able to use ASR and MT data as loosley coupled cascade systems do, so other approaches emerged: Data augmentation (Pino u. a., 2019) by using Text-to-Speech from MT parallel corpus & MT translating the ASR transcript. Knowledge Distillation (Liu u. a., 2019) in which they aim that ST models work better if they have been trained with knowledge distillation from an MT system. So they developed a ST model that learned from ground truth translations and teacher model outputs. They obtained the highest BLEU score when learning only from the teacher. Meta-learning was proposed by (Indurthi u. a., 2020) and they claim to be state-of-the-art on ST. (Hsu u. a., 2020) they also use Meta-learning for low-resource ASR. 6 Towards Robust End-to-End Speech Translation Guillem Cortès Other interesting works have been carried out by Fondazione Bruno Kessler — FBK. In Adapting Transformer to End-to-end Spoken Language Translation (Di Gangi u. a., 2019b) they present the S-Transformer, the system I have used as E2E and presented in Section 4.1. In End-to-End Sp eech-Translation with Knowledge Distillation (Gaido u. a., 2020) they focus on Transfer Learning (ASR pretraining and KD); Data Augmentation (SpecAugment, time stretch, synthetic data); Combining real and synthetic data in different domains; and Multitask learning using CTC loss. Luckily, I could attend to ICASSP. Below I present the papers I found more interesting. Analyzing ASR Pretraining for Low-Resource Speech-to-Text Translation (Stoian u. a., 2020). They found that best WER of the pre-trained ASR model is likely the best direct predictor of ST performance. They also claim that the most important thing in ASR pretraining is having a lot of data rather than having data from a close language. McCarthy et al. presented SKINAUGMENT (McCarthy u. a., 2020), which is state-of-the-art in data augmentation (better than SpecAugment (Park u. a., 2019)) They learn speaker representations with an autoencoder and create new audios by characterisin existing audios with a different speaker. PASE+ (Ravanelli u. a., 2020). An improved version of PASE (Problem Agnostic Speech Encoder) for robust speech recognition in noisy and reverberant environments. 7 Chapter 4 Methodology In order to determine which system is more robust to noise, Cascade systems or End-to-End, I need to know which systems (frameworks, architectures), dataset and toolkits I’m going to use. This chapter is a collection of available datasets, tools and architectures for Speech Translation. I also explain the reasons why I chose one tool or another one as well as the methodology that followed that decision. 4.1 S-Transformer The main issue when we want to use a Transformer on speech data is that the Transformer’s memory complexity produces a computational problem, because of Self-Attention’s GPU complexity, which is quadratic in sequence length. This is usually tackled with downsampling methods and it can enable SLT training on GPUs. Another issue is that Transformer cannot model 2D dependencies over time and frequency in a spectrogram (Li u. a., 2016). To address this, 2D adaptation strategies of the Transformer encoder (Dong u. a., 2018) have been proposed and validated. The last big problem is the absence of an explicit bias towards the local text — i.e. short-range dependencies between the input feature. This has been addressed by explicitly modeling short-range dependencies for acoustic models either using hard masking (Povey u. a., 2018), or penalising the self-attention weighting based on the distance between input elements (Sperber u. a., 2018) so it penalizes the long-distance relations in favour of the closer ones. S-Transformer (Di Gangi u. a., 2019b) is a variant of the Transformer that includes all these solutions to adapt the Transformer to SLT. Figure 4.1.1 shows the S-Transformer Encoder architecture where the first two CNNs capture local 2D-invariant features in the input, while the following two 2D self-attention layers model long-range context. 8 Towards Robust End-to-End Speech Translation Guillem Cortès Figure 4.1.1: S-Transformer Encoder architecture 4.2 Toolkits If you are planing to work in ST, the first thing you must know is that it is a multi-disciplinary field. So you will come across many speech processing, ASR toolkits on one hand and MT toolkits on the other hand. But the truth is that there aren’t that many ST toolkits so here I summarise all toolkits I’ve used and my experience with them. First, I wanted to use ESPnet1(Watanabe u. a., 2018) because it is a super complete toolkit with a lot of features and seems to be up-to-date and maintained. My experience is not as satisfactory as it seemed at first. The installation process is quite tedious and annoying, and I had some problems to set it up at university’s servers. But after installing it succesfully, I couldn’t replicate their baseline so I moved forward to FBK-Fairseq-ST (Di Gangi u. a., 2019b). It is an adaptation of fairseq (Ott u. a., 2019) for direct speech translation. The advantages of FBK-Fairseq-ST is that is based on fairseq, a consolidated sequence omdelling toolkit that runs on python and pytorch so that makes it really flexible and easy to tweak (because fairseq has been conceived to be very adaptable). The main drawback is that there isn’t a community behind the project and might be difficult to solve issues that may arise. Luckily, all the issues were solved and I was able to train systems using FBK-Fairseq-ST tool. 1In addition to ESPnet, creators presented ESPnet-ST (Inaguma u. a., 2020) at ACL 2020 which has been designed for the quick development of speech-to-speech translation systems in a single framework. 9 Towards Robust End-to-End Speech Translation Guillem Cortès For the cascade system I had to find a strong ASR with a trained model in English and an MT with En-Es trained model as well. So according to this, I have used Quartznet (Kriman u. a., 2020) which is an end-to-end neural acoustic model for ASR. QuartzNet’s design is based on the Jasper (Li u. a., 2019) architecture, which is a convolutional model trained with Connectionist Temporal Classification (CTC) loss (Graves u. a., 2006) but in which they replaced the 1D convolutions with 1D time-channel separable convolutions, an implementation of depthwise separable convolutions. For the MT system I have used Bergamot translation models (statmt, 2020) for Marian (Junczys-Dowmunt u. a., 2018). These models have been trained on OPUS+OpenSubtitles+Paracrawl data, cleaned with rule-based and dual cross-entropy noise filtering, and trained with sampled back-translations (sBT). Then, additional toolkits that I have used: moses (Koehn u. a., 2007) for tokenisation scripts, SoX (Bagwell, 2000) for adding noise to the dataset, xnmt (Neubig u. a., 2018) and librosa (McFee u. a., 2020) to generate de melspectograms and export them into .h5 files. To compute WER I used the asr-evaluation repository (Lambert, 2018) and for BLEU scores Sacrebleu (Post, 2018). 4.3 Datasets Neural Networks need data, a lot of it, so it is important to use as much as it is available. And particularly in Speech-to-text Translation where there are less aligned and parallel corpora than there are for ASR or MT. For a corpus to be considered an ST dataset, it needs to include – at least – parallel data of audio in the source language and the written translations in the target language so it can be used to train an End-to-End system. Most of the times they also include the transcription in the original language, that it becomes really useful for ASR pretraining or training a cascade system. In this section, I describe the main ST datasets that are available up until today. I am presenting them in reverse chronological order, starting with the most recent ones. Later on in section 5.3, I will explain why I chose to use MuST-C En-ES dataset. Publicly available SLT Datasets CoVoST (Wang u. a., 2020a), created and released under CC0 license by Facebook AI, CoVoST (Common Voice Speech Translation) is a multilingual speech-to-text translation corpus from 11 languages to English. It has a lot of diversity due to the 11,000 speakers and more than 60 accents involved. Audios and transcriptions are from Common Voice dataset (Ardila u. a., 2019). 10 Towards Robust End-to-End Speech Translation Guillem Cortès CoVoST 2 (Wang u. a., 2020b) expands on the CoVoST dataset conforming the largest multilingual ST dataset available to date. CoVoST 2contains data that will facilitate translating 21 languages into English, as well as English into 15 languages. EuroparlST (Iranzo-Sánchez u. a., 2020) corpus has been compiled using the debates held in the European Parliament between 2008 and 2012 resulting in a corpus with 6European languages, for a total of 30 different translation directions. This corpus was created with the aim to be the reference dataset for SLT of languages other than English. Europarl-ST is the first fully self-contained, publicly available corpus with both, multiple (speech) source and target languages, which will also enable further research into multilingual SLT. MuST-C (Di Gangi u. a., 2019a) is a multilingual corpus from English to 8different languages. It was created pursuing high quality as well as large size, speaker variety (male/female, native/non-native) and coverage in terms of topics and languages. That’s why they extracted the original audios from TED Talks (TED). They also provide a yaml file with the alignment between audio and text translations. For all the experiments I have carried out in this project I have used the English to Spanish set from MuST-C. I chose MuST-C because, first, it is the dataset with the largest amount of SLT data English-Spanish, and I wanted to use either English, Spanish or Catalan due to they are the languages I can speak. Secondly, because its high speaker variety as well as all the different topics covered. And in addition, Mattia Di Gangi worked on its development and he released2as well a ST version of fairseq (Di Gangi u. a., 2019b). Augmented Librispeech (Kocabiyikoglu u. a., 2018) is an extension of Librispeech (Panayotov u. a., 2015) dataset that gathers English audiobooks that translate into 1000 hours of speech. In Augmented Librispeech they collect French translations of that books and perform a bilingual text alignment from comparable chapters. How2 (Sanabria u. a., 2018) is a large-scale dataset for multimodal understanding but, on top of that, it is multilingual as well. So because of that, we can use part of the available data and perfectly fits as an SLT dataset. All videos are in English and were extracted from YouTube, and the Translations are in Portuguese. Fisher and CALLHOME (Post u. a., 2013) is actually a combination of two datasets: Fisher Spanish dataset consists of 819 transcribed conversations on an assortment of provided topics primarily between strangers. CALLHOME Spanish corpus comprises 120 transcripts of spontaneous conversations primarily between friends and family members. (Paulik und Waibel, 2009) worked with a custom dataset that gathered 111 hours En-Es and 105 hours Es-En but, unfortunately, this data hasn’t been published. 2S-Transformer github repository. https://github.com/mattiadg/FBK-Fairseq-ST 11 Chapter 5 Experimental Framework Let’s stop for a second and recapitulate. This project is a study of the robustness of the two more used approaches to tackle Speech-to-text Translation: Cascade and End-to-End. The motivation lies in the fact that one of the main reasons to use an End-to-End approach instead of the traditional ASR-MT is that the latter propagates the ASR errors and that harms the performance. End-to-End systems avoid compounding errors because they generate the translation text directly. But does this mean that End-to-End systems are more robust than the traditional cascade approach? 5.1 Experiments cookbook In order to determine which experiments are necessary and which ones are the best we have to ask ourselves, How can we measure robustness? It is not an easy question to answer, for sure. So we can try to reformulate it: Which system is more robust to noise, cascade or End-to-End? Now, this question seems easier to answer. What we can do is to compare the performance of both approaches when we train or inference with noisy data. We can also establish different levels of noisiness and cross all possibilities. Table 5.1.1 summarises the notation I use to refer to each system configuration. Some considerations: • E2E and ASR use the same S-transformer architecture, the only difference between them is the target data that in ASR is the transcriptions and in E2E is the translations. •E2E♦uses the encoder of an ASR trained with the same configuration as pretraining. • NeMo (Kuchaiev u. a., 2019) is Python toolkit developed by nvidia for creating AI applications. They provide a strong, ready to use ASR Quartznet Jasper models (Li u. a., 2019) trained on Librispeech, Common Voice, Fisher, WSJ, Switchboard. 12 Towards Robust End-to-End Speech Translation Guillem Cortès • Bergamot (statmt, 2020) are Marian-NMT (Junczys-Dowmunt u. a., 2018) models trained on OPUS+OpenSubtitles+Paracrawl data, cleaned with rule-based and dual crossentropy noise filtering, and trained with sampled back-translations (sBT). System configuration Description E2Eraw/low/mid/high End-to-End ST E2E♦ raw/low/mid/high End-to-End ST with ASR pretraining ASRNeMo + NMT NeMo ASR + Bergamot NMT ASRraw/low/mid/high + NMT End-to-End ASR + Bergamot NMT Table 5.1.1: Systems descriptions for experiments ♦ASR pretraining So basically, my experiments consist in training all these systems and generating translations by inferring raw,Noisylow,Noisymid and Noisyhigh data. Check section 5.3.2 for more details about the added noise and Chapter 6. 5.2 Data In order to study the robustness of both approaches, it is crucial to work with languages I can speak – i.e. Catalan, Spanish and English – so I can evaluate the outputs manually to look for differences. Another important factor to pay special attention is the quality of the recordings and if this quality is consistent throughout all the dataset – since some experiments consist in adding noise to the original audio. Last but not least, it is also important the topics coverage and domain variety. So, as I detailed above, it is crucial for me to work with languages I can speak, write and understand, so this restricts the data that I can use. In Figure 5.2.1 there’s a detailed comparison between all available datasets with parallel translated data in any of the combinations between English, Spanish and Catalan. The two datasets with more data are MuST-C En- Es and CoVoST-2 En-Ca. I could have worked with both of them, but when I started this project on January 2020,CoVoST-2 had not yet been published so I opted for MuST-C. Data Analysis An important step that most of the times is overlooked in research is to analyse data you’ll be working on. And this process is even more important when working with text. Every day we, humans, create and consume tons of text, so there’s plenty of them available on internet and sometimes, very easy to get by scraping the web, and that’s great news. But most of the times we assume that the data we are using is correct or has a good quality, and luckily most of the times will be like that, but there are others when the 13 Towards Robust End-to-End Speech Translation Guillem Cortès The conclusion is that BPE works better, but not that much (with the exception of E2E-char trained with noise). Keep in mind that these E2E♦systems are with ASR pretraining and E2E without it. E2E E2E♦ASR+NMT Train Inference CHAR BPE CHAR BPE (Cascade) Raw Raw 17.1 17.4 21.1 21.1 18.9 Noise 8.9 7.5 11.7 10 10.1 Noise Raw 0 12.5 18.4 19.7 17.1 Noise 0 11.6 17.7 18.8 15.8 Table 6.0.2: BLEU (↑) char vs BPE tokenisation ♦ASR pretraining BPE parameters optimisation The training parameters of the experiments of the table above are the same for both char and BPE approaches, but my intuition is that they shouldn’t be the same. Following Gaido’s training configuration in (Gaido u. a., 2020), I trained a model analogous to E2Eraw. Basically, the paramaters that differ from one to the other are the Adam optimer’s betas (0.9, 0.98), the learing rate (5e-4) and warmup-updates (5000). Table 6.0.3 shows the BLEU scores on tst-COMMON subset. As you can appreciate, the performance is worse so I will keep using the default configuration detailed in Section 5.4. System Raw Noise E2Eraw 17.4 7.5 E2E-optimraw 14.9 6.9 Table 6.0.3: BLEU (↑) for different training parameters when using BPE Noise Robustness ASR Before studying the robustness of End-to-End systems, first I did some experiments on ASR. For that, I used the same S-Transformer architecture (see Figure 4.1.1) that I use to train End-to-End models or the ASR pretraining. I trained these ASR with the three levels of noisiness I established in Section 5.3.2. Figure 6.0.1 helps to visualise and understand the performance consistency among all types of noise. I will like to point out that ASRhigh is the system more consistent, which makes sense because it is the approach that has been trained with more noise, but ASRmid achieves an impressive performance that is actually better than ASRlow for low noise levels, and almost the same for raw data. Check Table 6.0.4 for the exact BLEU scores. 20 Towards Robust End-to-End Speech Translation Guillem Cortès ASRraw ASRlow ASRmid ASRhigh WER 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% Inference data Raw Noisylow Noisymid Noisyhigh Figure 6.0.1: ASR Word Error Rate (↓) Raw Noisylow Noisymid Noisyhigh ASRraw 24.25 47.89 (+23.64) 77.98 (+53.73) 97.61 (+73.36) ASRlow 30.34 35.30 (+4.96) 56.33 (+25.99) 92.64 (+62.3) ASRmid 31.39 32.04 (+0.65) 39.05 (+7.66) 58.52 (+27.13) ASRhigh 43.61 36.77 (-6.84) 42.09 (-1.52) 49.19 (-5.58) Table 6.0.4: WER (%, ↓) of different ASR configurations End-to-End vs Cascade Once we have seen how ASR behaviour to the presence of noise, let’s see how ST systems do. For that, I trained several models with different configurations and generate from different levels of noise as well. Figure 6.0.2 shows the performance curve of each system when we infer from different levels of noisiness. The exact BLEU scores can be found in Table 6.0.5. As a reference, MuST-C baseline on En-Es data is 18.20 BLEU (Di Gangi u. a., 2019a). Di Gangi et al., in their work Adapting Transformer to End-to-end Spoken Language Translation (Di Gangi u. a., 2019b) note a BLEU score of 22.5 performed by a cascade system. What these experiments show is that all E2E♦(End-to-End ST with ASR pretraining) systems outperform the cascade equivalent system, even though if that cascade uses an ASR trained with an S-transformer on MuST-C En-Es. The most probable thing happening here is that first, the domain is really important — even more than the amount of data — so it is crucial to train with data of the same domain you will be testing later. And then, the ASR might not be as strong as they can, so it’s not a really good ASR in terms of performance. 21 Towards Robust End-to-End Speech Translation Guillem Cortès If we now look at performance consistency, it happens the same exact thing as happened with ASR. E2E♦ high is the most consistent system but E2E♦ mid seems to achieve a really nice tradeoffbetween consistency and performance, outperforming E2E♦ low. It is also worth mentioning that for each configuration, both the E2E and Cascade system curves are parallel, so it is fair to say that they behave really similarly in the presence of noise. Last but not least, ASRNeMo + NMT, the only system that hasn’t seen any MuST-C data, performs pretty well and better than the ASRraw model wihout seeing any data from TED Talks. E2E♢ raw E2E♢ low E2E♢ mid E2E♢ high ASRNeMo + NMT ASRraw + NMT ASRlow + NMT ASRmid + NMT ASRhigh + NMT BLEU 0 2 4 6 8 10 12 14 16 18 20 22 Inference data Raw Noisylow Noisymid Noisyhigh Figure 6.0.2: BLEU (↑) for all systems comparison ♦ASR pretraining System configuration Raw Noisylow Noisymid Noisyhigh E2E♦ raw 21.1 13 5 1.5 E2E♦ low 17.1 17.1 11.5 4.7 E2E♦ mid 17.8 17.4 15.4 10.3 E2E♦ high 14 15.8 14.7 13.1 ASRNeMo + NMT 20.4 13.9 4.4 0.4 ASRraw + NMT 18.9 11.6 4.4 1.4 ASRlow + NMT 17.7 16.8 10.9 3.6 ASRmid + NMT 16.5 16.3 14.1 9.2 ASRhigh + NMT 14.1 15.3 13.6 12 Table 6.0.5: BLEU (↑) for all systems comparison ♦ASR pretraining 22 Chapter 7 Conclusions and future work The scope of this work was to shed light into the robustness of speech translation systems. More specifically, between End-to-End systems and cascade. As it is stated in the Introduction §1, the motivation appeared as a consequence of what seems to be accepted in the scientific community that End-to-End systems are more robust because among other things, avoid compounding errors from the ASR and MT models. The truth is that it seems a valid hypothesis, but have we — the scientific community — verified it’s veracity? As it has been detailed in the Literature Review §3, there’s not much work done in the field, and this hypothesis still has to be validated. In my attempt to find which of the two systems is most robust, I have used several tools (§4) and read a lot about the state of art in Speech Translation. I’ve also been able to attend to ICASSP, one of the most important conferences in Speech, Acoustics and Signal Processing. All of this has made me learn a lot about Speech Processing and also MT, which the latter was quite unknown to me, and has given me enough knowledge to design experiments to validate the original hypothesis (§5). In this section I present the conclusions I have come up with alongside posible further work/research. End-to-End systems perform better than cascade systems (§6) if the latter haven’t been trained with similar data to the one we will evaluate the system with. But both E2E and cascade systems have parallel curves so they have a similar behaviour in noisy conditions. So it is not true that E2E systems are more robust than cascade systems. They have other advantages which can make them better than cascade systems, but in terms of robustness, they are very comparable. For the future, would be great to add sporadic (non-constant) noise, and see if there’s any differences between approaches. 23 Towards Robust End-to-End Speech Translation Guillem Cortès Training with noisy data gives consistency to system performance, and it is better to train with more noise than expected, not too much, though. E2E♦ mid performing better than E2E♦ low (and the same for their analogous ASRs) is a pleasant surprise that demonstrates that training with a significant level of noise does not harm the performance in raw conditions too much but increases it a lot in noisy conditions. Having a lot of data that you can use for training is nice and it is always a good idea to use as much as you can, but training with data from the same domain is also super important. And even more important if the dataset has a different nature than the data used for training. By nature I refer to the fact that MuST-C used speeches from TED Talks, that involves some things: audience, interviews, speeches overlapping. It also means that it is a rehearsed speech, but can fluctuate a lot in intonation, prosody, etc. An interesting experiment for the future is to train a strong ASR and strong MT but also including MuST-C data in their training, to actually see the difference in performance with E2E system trained only on MuST-C. 24 Bibliography [Ardila u. a. 2019] Ardila, Rosana ; Branson, Megan ; Davis, Kelly ; Henretty, Michael ; Kohler, Michael ; Meyer, Josh ; Morais, Reuben ; Saunders, Lindsay ; Tyers, Francis M. ; Weber, Gregor: Common voice: A massively-multilingual speech corpus. In: arXiv preprint arXiv:1912.06670 (2019) [Bagwell 2000] Bagwell, Chris: SoX - Sound eXchange.http://sox.sourceforge. net/. 2000. – [Online; accessed 30-August-2020] [Bansal u. a. 2018] Bansal, Sameer ; Kamper, Herman ; Livescu, Karen ; Lopez, Adam ; Goldwater, Sharon: Pre-training on high-resource speech recognition improves low-resource speech-to-text translation. In: arXiv preprint arXiv:1809.01431 (2018) [Bérard u. a. 2018] Bérard, Alexandre ; Besacier, Laurent ; Kocabiyikoglu, Ali C. ; Pietquin, Olivier: End-to-end automatic speech translation of audiobooks. In: 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2018, S. 6224–6228 [Di Gangi u. a. 2019a] Di Gangi, Mattia A. ; Cattoni, Roldano ; Bentivogli, Luisa ; Negri, Matteo ; Turchi, Marco: MuST-C: a multilingual speech translation corpus. In: 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies Association for Computational Linguistics (Veranst.), 2019, S. 2012–2017 [Di Gangi u. a. 2019b] Di Gangi, Mattia A. ; Negri, Matteo ; Turchi, Marco: Adapting Transformer to end-to-end spoken language translation. In: INTERSPEECH 2019 International Speech Communication Association (ISCA) (Veranst.), 2019, S. 1133–1137 [Dong u. a. 2018] Dong, Linhao ; Xu, Shuang ; Xu, Bo: Speech-transformer: a norecurrence sequence-to-sequence model for speech recognition. In: 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2018, S. 5884–5888 [ELITR 2020] ELITR:European Live Translator.https://elitr.eu/. 2020. – [Online; accessed 31-August-2020] 25 Towards Robust End-to-End Speech Translation Guillem Cortès [Gaido u. a. 2020] Gaido, Marco ; Di Gangi, Mattia A. ; Negri, Matteo ; Turchi, Marco: End-to-End Speech-Translation with Knowledge Distillation: FBK@ IWSLT2020. In: arXiv preprint arXiv:2006.02965 (2020) [Graves u. a. 2006] Graves, Alex ; Fernández, Santiago ; Gomez, Faustino ; Schmidhuber, Jürgen: Connectionist temporal classification: labelling unsegmented sequence data with recurrent neural networks. In: Proceedings of the 23rd international conference on Machine learning, 2006, S. 369–376 [Hsu u. a. 2020] Hsu, Jui-Yang ; Chen, Yuan-Jui ; Lee, Hung-yi: Meta learning for end-to-end low-resource speech recognition. In: ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2020, S. 7844–7848 [Inaguma u. a. 2020] Inaguma, Hirofumi ; Kiyono, Shun ; Duh, Kevin ; Karita, Shigeki ; Yalta, Nelson ; Hayashi, Tomoki ; Watanabe, Shinji: ESPnet-ST: All-in-One Speech Translation Toolkit. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations. Online : Association for Computational Linguistics, Juli 2020, S. 302–311. – URL https://www.aclweb.org/anthology/ 2020.acl-demos.34 [Indurthi u. a. 2020] Indurthi, Sathish ; Han, Houjeung ; Lakumarapu, Nikhil K. ; Lee, Beomseok ; Chung, Insoo ; Kim, Sangha ; Kim, Chanwoo: End-end Speech-to- Text Translation with Modality Agnostic Meta-Learning. In: ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2020, S. 7904–7908 [Iranzo-Sánchez u. a. 2020] Iranzo-Sánchez, Javier ; Silvestre-Cerdà, Joan A. ; Jorge, Javier ; Roselló, Nahuel ; Giménez, Adrià ; Sanchis, Albert ; Civera, Jorge ; Juan, Alfons: Europarl-ST: A multilingual corpus for speech translation of parliamentary debates. In: ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2020, S. 8229–8233 [Junczys-Dowmunt u. a. 2018] Junczys-Dowmunt, Marcin ; Grundkiewicz, Roman ; Dwojak, Tomasz ; Hoang, Hieu ; Heafield, Kenneth ; Neckermann, Tom ; Seide, Frank ; Germann, Ulrich ; Fikri Aji, Alham ; Bogoychev, Nikolay ; Martins, André F. T. ; Birch, Alexandra: Marian: Fast Neural Machine Translation in C++. In: Proceedings of ACL 2018, System Demonstrations. Melbourne, Australia : Association for Computational Linguistics, July 2018, S. 116–121. – URL http://www.aclweb.org/ anthology/P18-4020 [Kocabiyikoglu u. a. 2018] Kocabiyikoglu, Ali C. ; Besacier, Laurent ; Kraif, Olivier: 26 Towards Robust End-to-End Speech Translation Guillem Cortès Augmenting librispeech with french translations: A multimodal corpus for direct speech translation evaluation. In: arXiv preprint arXiv:1802.03142 (2018) [Koehn u. a. 2007] Koehn, Philipp ; Hoang, Hieu ; Birch, Alexandra ; Callison- Burch, Chris ; Federico, Marcello ; Bertoldi, Nicola ; Cowan, Brooke ; Shen, Wade ; Moran, Christine ; Zens, Richard u. a.: Moses: Open source toolkit for statistical machine translation. In: Proceedings of the 45th annual meeting of the ACL on interactive poster and demonstration sessions Association for Computational Linguistics (Veranst.), 2007, S. 177–180 [Kriman u. a. 2020] Kriman, Samuel ; Beliaev, Stanislav ; Ginsburg, Boris ; Huang, Jocelyn ; Kuchaiev, Oleksii ; Lavrukhin, Vitaly ; Leary, Ryan ; Li, Jason ; Zhang, Yang: Quartznet: Deep automatic speech recognition with 1d time-channel separable convolutions. In: ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2020, S. 6124–6128 [Kuchaiev u. a. 2019] Kuchaiev, Oleksii ; Li, Jason ; Nguyen, Huyen ; Hrinchuk, Oleksii ; Leary, Ryan ; Ginsburg, Boris ; Kriman, Samuel ; Beliaev, Stanislav ; Lavrukhin, Vitaly ; Cook, Jack ; Castonguay, Patrice ; Popova, Mariya ; Huang, Jocelyn ; Cohen, Jonathan M.: NeMo: a toolkit for building AI applications using Neural Modules. 2019 [Kudo und Richardson 2018] Kudo, Taku ; Richardson, John: Sentencepiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. In: arXiv preprint arXiv:1808.06226 (2018) [Lambert 2018] Lambert, Ben: ASR-evaluation: Python module for evaluting ASR hypotheses (i.e. word error rate and word recognition rate). https://github.com/ belambert/asr-evaluation. 2018. – [Online; accessed 30-August-2020] [Li u. a. 2019] Li, Jason ; Lavrukhin, Vitaly ; Ginsburg, Boris ; Leary, Ryan ; Kuchaiev, Oleksii ; Cohen, Jonathan M. ; Nguyen, Huyen ; Gadde, Ravi T.: Jasper: An end-to-end convolutional neural acoustic model. In: arXiv preprint arXiv:1904.03288 (2019) [Li u. a. 2016] Li, Jinyu ; Mohamed, Abdelrahman ; Zweig, Geoffrey ; Gong, Yifan: Exploring multidimensional LSTMs for large vocabulary ASR. In: 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2016, S. 4940–4944 [Liu u. a. 2019] Liu, Yuchen ; Xiong, Hao ; He, Zhongjun ; Zhang, Jiajun ; Wu, Hua ; Wang, Haifeng ; Zong, Chengqing: End-to-end speech translation with knowledge distillation. In: arXiv preprint arXiv:1904.08075 (2019) 27 Towards Robust End-to-End Speech Translation Guillem Cortès [McCarthy u. a. 2020] McCarthy, Arya D. ; Puzon, Liezl ; Pino, Juan: SkinAugment: auto-encoding speaker conversions for automatic speech translation. In: ICASSP 2020- 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2020, S. 7924–7928 [McDonald 2020] McDonald, Karl: Scots Wikipedia taken over by American teenager who wrote thousands of ‘very odd’ articles without learning language. https://inews.co.uk/news/scotland/scots-wikipedia-language-articles- native-speaker-mistakes-610689. 2020. – [Online; accessed 27-August-2020] [McFee u. a. 2020] McFee, Brian ; Lostanlen, Vincent ; Metsai, Alexandros ; McVicar, Matt ; Balke, Stefan ; Thomé, Carl ; Raffel, Colin ; Zalkow, Frank ; Malek, Ayoub ; Dana ;Lee, Kyungyun ; Nieto, Oriol ; Mason, Jack ; Ellis, Dan ; Battenberg, Eric ; Seyfarth, Scott ; Yamamoto, Ryuichi ; Choi, Keunwoo ; viktorandreevichmorozov ;Moore, Josh ; Bittner, Rachel ; Hidaka, Shunsuke ; Wei, Ziyao ; nullmightybofo ;Hereñú, Darío ; Stöter, Fabian-Robert ; Friesch, Pius ; Weiss, Adam ; Vollrath, Matt ; Kim, Taewoon: librosa/librosa: 0.8.0. Juli 2020. – URL https://doi.org/10.5281/zenodo.3955228 [Neubig u. a. 2018] Neubig, Graham ; Sperber, Matthias ; Wang, Xinyi ; Felix, Matthieu ; Matthews, Austin ; Padmanabhan, Sarguna ; Qi, Ye ; Sachan, Devendra S. ; Arthur, Philip ; Godard, Pierre ; Hewitt, John ; Riad, Rachid ; Wang, Liming: XNMT: The eXtensible Neural Machine Translation Toolkit. In: Conference of the Association for Machine Translation in the Americas (AMTA) Open Source Software Showcase. Boston, March 2018 [Ott u. a. 2019] Ott, Myle ; Edunov, Sergey ; Baevski, Alexei ; Fan, Angela ; Gross, Sam ; Ng, Nathan ; Grangier, David ; Auli, Michael: fairseq: A Fast, Extensible Toolkit for Sequence Modeling. In: Proceedings of NAACL-HLT 2019: Demonstrations, 2019 [Panayotov u. a. 2015] Panayotov, Vassil ; Chen, Guoguo ; Povey, Daniel ; Khudanpur, Sanjeev: Librispeech: an asr corpus based on public domain audio books. In: 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2015, S. 5206–5210 [Park u. a. 2019] Park, Daniel S. ; Chan, William ; Zhang, Yu ; Chiu, Chung-Cheng ; Zoph, Barret ; Cubuk, Ekin D. ; Le, Quoc V.: Specaugment: A simple data augmentation method for automatic speech recognition. In: arXiv preprint arXiv:1904.08779 (2019) [Paulik und Waibel 2009] Paulik, Matthias ; Waibel, Alex: Automatic translation from 28 Towards Robust End-to-End Speech Translation Guillem Cortès parallel speech: Simultaneous interpretation as mt training data. In: 2009 IEEE Workshop on Automatic Speech Recognition & Understanding IEEE (Veranst.), 2009, S. 496–501 [Pino u. a. 2019] Pino, Juan ; Puzon, Liezl ; Gu, Jiatao ; Ma, Xutai ; McCarthy, Arya D. ; Gopinath, Deepak: Harnessing indirect training data for end-to-end automatic speech translation: Tricks of the trade. In: arXiv (2019), S. arXiv–1909 [Post 2018] Post, Matt: A Call for Clarity in Reporting BLEU Scores. In: Proceedings of the Third Conference on Machine Translation: Research Papers. Belgium, Brussels : Association for Computational Linguistics, Oktober 2018, S. 186–191. – URL https: //www.aclweb.org/anthology/W18-6319 [Post u. a. 2013] Post, Matt ; Kumar, Gaurav ; Lopez, Adam ; Karakos, Damianos ; Callison-Burch, Chris ; Khudanpur, Sanjeev: Improved Speech-to-Text Translation with the Fisher and Callhome Spanish–English Speech Translation Corpus. In: Proceedings of the International Workshop on Spoken Language Translation (IWSLT). Heidelberg, Germany, December 2013 [Povey u. a. 2018] Povey, Daniel ; Hadian, Hossein ; Ghahremani, Pegah ; Li, Ke ; Khudanpur, Sanjeev: A time-restricted self-attention layer for asr. In: 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2018, S. 5874–5878 [Ravanelli u. a. 2020] Ravanelli, Mirco ; Zhong, Jianyuan ; Pascual, Santiago ; Swietojanski, Pawel ; Monteiro, Joao ; Trmal, Jan ; Bengio, Yoshua: Multi-task self-supervised learning for Robust Speech Recognition. In: ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE (Veranst.), 2020, S. 6989–6993 [Sanabria u. a. 2018] Sanabria, Ramon ; Caglayan, Ozan ; Palaskar, Shruti ; Elliott, Desmond ; Barrault, Loïc ; Specia, Lucia ; Metze, Florian: How2: a largescale dataset for multimodal language understanding. In: arXiv preprint arXiv:1811.00347 (2018) [Sennrich u. a. 2015] Sennrich, Rico ; Haddow, Barry ; Birch, Alexandra: Neural machine translation of rare words with subword units. In: arXiv preprint arXiv:1508.07909 (2015) [Sperber u. a. 2018] Sperber, Matthias ; Niehues, Jan ; Neubig, Graham ; Stüker, Sebastian ; Waibel, Alex: Self-attentional acoustic models. In: arXiv preprint arXiv:1803.09519 (2018) [Sperber und Paulik 2020] Sperber, Matthias ; Paulik, Matthias: Speech Transla- 29