Convolutional Sequence to Sequence Learning
Paper · 2017 · Jonas Gehring, Michael Auli, David Grangier et al.
Summary
The paper asks whether sequence-to-sequence models need recurrence at all. At the time, the standard design paired recurrent encoders and decoders with soft attention. The authors build ConvS2S, a model made entirely of convolutional layers. Each block applies a 1-D convolution, then a gated linear unit (GLU), then a residual connection. Learned absolute position embeddings supply word order. Every decoder layer gets its own dot-product attention over the encoder. The decoder's convolutions are padded and trimmed so it cannot see future tokens.
Because no step waits on the previous one, training runs in parallel across the whole sequence. Every input also passes through a fixed number of non-linearities, which makes optimization easier. On WMT'16 English-Romanian the model sets a new state of the art. On WMT'14 English-German and English-French it beats the deep LSTM system of Wu et al. (2016). It also translates roughly an order of magnitude faster on both GPU and CPU. Summarization results are close to recurrent systems that use task-specific tricks. The work showed that convolutions are a fast and competitive alternative to RNNs for generation. Code and models were released in fairseq.
Key points
- Translation gains: +1.9 BLEU over the previous best on WMT'16 English-Romanian, +0.5 BLEU over Wu et al. (2016) on WMT'14 English-German, and +1.6 BLEU over its likelihood-trained version on WMT'14 English-French.
- Context window: stacking 6 blocks with kernel width 5 lets each output see 25 inputs. In the analysed setup the encoder sees up to 27 words and the decoder up to 25.
- Attention cost: adding 4 extra attention modules slowed the model by only about 4%, because attention is batched over all target positions.
- Ablations:
- Removing both source and target position embeddings costs only 0.5 BLEU, and output lengths stay well calibrated.
- Encoder accuracy keeps rising with depth until about 9 layers, while a decoder with two layers already does well.
- Narrow kernels with more layers beat wide kernels.
- Summarization: a small model (six layers each side, hidden size 256, batch size 128, one GPU overnight) beats the likelihood-trained RNN of Shen et al. (2016) on DUC-2004 and Gigaword. It reaches the best Gigaword RG-2 in the table, at 17.48.
Interesting ideas
- I1. Stacking narrow convolutions gives a context window whose maximum size is known exactly, so you choose how far dependencies may reach instead of hoping a recurrent state remembers them.
- I2. A gated linear unit splits each feature vector into content and a sigmoid gate, which lets the network learn which local inputs matter while keeping a linear path for gradients.
- I3. The attention value is the encoder's contextual output plus the raw input embedding: context is used for matching, while the exact identity of the source item is kept for prediction.
- I4. Each decoder layer has its own attention, and all target positions are computed in one batch, so repeated look-ups into the source add almost no cost.
- I5. The authors expected that removing position information would break output length calibration, and they checked this explicitly. It turned out not to, which showed the model learns relative order from its local windows.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (tokens): A tagger or morphology model in crate en could use a few stacked narrow windows with a known reach, so every tag decision can be traced to a bounded span of neighbouring tokens.
- I2 (tree): The token encoder in gparse could use GLU-gated convolution layers as a cheap, easy-to-train alternative or supplement to its transformer layers.
- I3 (back): When generating text from the meaning graph, attention could match on contextual node states but carry the node's own lemma or entity embedding, so specific words are not blurred away.
- I4 (back): The text → graph → text compressor could let every decoding layer re-consult the graph, which also yields per-layer alignments to inspect for explainability.
- I5 (learn): Evaluation could include similar "remove a signal and check a side behaviour" controls, such as dropping position or morphology features, to verify what a parser actually relies on.
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Cite
Cite as Jonas Gehring, Michael Auli, David Grangier, Denis Yarats and Yann N. Dauphin. 2017. Convolutional Sequence to Sequence Learning. arXiv:1705.03122.
@misc{gehring2017convolutional,
title = {{Convolutional Sequence to Sequence Learning}},
author = {Jonas Gehring, Michael Auli, David Grangier, Denis Yarats and Yann N. Dauphin},
year = {2017},
doi = {10.48550/arxiv.1705.03122},
eprint = {1705.03122},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1705.03122}
}References
- Ba, Jimmy Lei, Kiros, Jamie Ryan, and Hinton, Geoffrey E. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
- Bahdanau, Dzmitry, Cho, Kyunghyun, and Bengio, Yoshua. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
- Bojar, Ondej, Chatterjee, Rajen, Federmann, Christian, Graham, Yvette, Haddow, Barry, Huck, Matthias, Jimeno-Yepes, Antonio, Koehn, Philipp, Logacheva, Varvara, Monz, Christof, Negri, Matteo, Névéol, Aurélie, Neves, Mariana L., Popel, Martin, Post, Matt, Rubino, Raphaël, Scarton, Carolina, Speci… — Findings of the 2016 Conference on Machine Translation
- Bradbury, James, Merity, Stephen, Xiong, Caiming, and Socher, Richard. Quasi-Recurrent Neural Networks. arXiv preprint arXiv:1611.01576, 2016. OpenAlex ↗ · Scholar ↗
- Cho, Kyunghyun, Van Merriënboer, Bart, Gulcehre, Caglar, Bahdanau, Dzmitry, Bougares, Fethi, Schwenk, Holger, and Bengio, Yoshua. Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation. In Proc. of EMNLP, 2014. — Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation
- Chorowski, Jan K, Bahdanau, Dzmitry, Serdyuk, Dmitriy, Cho, Kyunghyun, and Bengio, Yoshua. Attention-based models for speech recognition. In Advances in Neural Information Processing Systems, pp. 577–585, 2015.
- Collobert, Ronan, Kavukcuoglu, Koray, and Farabet, Clement. Torch7: A Matlab-like Environment for Machine Learning. In BigLearn, NIPS Workshop, 2011. URL http://torch.ch. OpenAlex ↗ · Scholar ↗
- Dauphin, Yann N., Fan, Angela, Auli, Michael, and Grangier, David. Language modeling with gated linear units. arXiv preprint arXiv:1612.08083, 2016.
- Dyer, Chris, Chahuneau, Victor, and Smith, Noah A. A Simple, Fast, and Effective Reparameterization of IBM Model 2. In Proc. of ACL, 2013. OpenAlex ↗ · Scholar ↗
- Elman, Jeffrey L. Finding Structure in Time. Cognitive Science, 14:179–211, 1990. OpenAlex ↗ · Scholar ↗
- Gehring, Jonas, Auli, Michael, Grangier, David, and Dauphin, Yann N. A Convolutional Encoder Model for Neural Machine Translation. arXiv preprint arXiv:1611.02344, 2016.
- Glorot, Xavier and Bengio, Yoshua. Understanding the difficulty of training deep feedforward neural networks. The handbook of brain theory and neural networks, 2010. OpenAlex ↗ · Scholar ↗
- Graff, David, Kong, Junbo, Chen, Ke, and Maeda, Kazuaki. English gigaword. Linguistic Data Consortium, Philadelphia, 2003. OpenAlex ↗ · Scholar ↗
- Ha, David, Dai, Andrew, and Le, Quoc V. Hypernetworks. arXiv preprint arXiv:1609.09106, 2016. OpenAlex ↗ · Scholar ↗
- He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Deep Residual Learning for Image Recognition. In Proc. of CVPR, 2015a.
- He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1026–1034, 2015b. OpenAlex ↗ · Scholar ↗
- Hochreiter, Sepp and Schmidhuber, Jürgen. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. OpenAlex ↗ · Scholar ↗
- Ioffe, Sergey and Szegedy, Christian. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of The 32nd International Conference on Machine Learning, pp. 448–456, 2015. OpenAlex ↗ · Scholar ↗
- Jean, Sébastien, Firat, Orhan, Cho, Kyunghyun, Memisevic, Roland, and Bengio, Yoshua. Montreal Neural Machine Translation systems for WMT15. In Proc. of WMT, pp. 134–140, 2015. OpenAlex ↗ · Scholar ↗
- Kalchbrenner, Nal, Espeholt, Lasse, Simonyan, Karen, van den Oord, Aaron, Graves, Alex, and Kavukcuoglu, Koray. Neural Machine Translation in Linear Time. arXiv, 2016. OpenAlex ↗ · Scholar ↗
- LeCun, Yann and Bengio, Yoshua. Convolutional networks for images, speech, and time series. The handbook of brain theory and neural networks, 3361(10):1995, 1995. OpenAlex ↗ · Scholar ↗
- L’Hostis, Gurvan, Grangier, David, and Auli, Michael. Vocabulary Selection Strategies for Neural Machine Translation. arXiv preprint arXiv:1610.00072, 2016. — arXiv:1610.00072 OpenAlex ↗ · Scholar ↗
- Lin, Chin-Yew. Rouge: A package for automatic evaluation of summaries. In Text Summarization Branches Out: Proceedings of the ACL-04 Workshop, pp. 74–81, 2004.
- Luong, Minh-Thang, Pham, Hieu, and Manning, Christopher D. Effective approaches to attention-based neural machine translation. In Proc. of EMNLP, 2015.
- Meng, Fandong, Lu, Zhengdong, Wang, Mingxuan, Li, Hang, Jiang, Wenbin, and Liu, Qun. Encoding Source Language with Convolutional Neural Network for Machine Translation. In Proc. of ACL, 2015. OpenAlex ↗ · Scholar ↗
- Mi, Haitao, Wang, Zhiguo, and Ittycheriah, Abe. Vocabulary Manipulation for Neural Machine Translation. In Proc. of ACL, 2016. OpenAlex ↗ · Scholar ↗
- Miller, Alexander H., Fisch, Adam, Dodge, Jesse, Karimi, Amir-Hossein, Bordes, Antoine, and Weston, Jason. Key-value memory networks for directly reading documents. In Proc. of EMNLP, 2016. OpenAlex ↗ · Scholar ↗
- Nallapati, Ramesh, Zhou, Bowen, Gulcehre, Caglar, Xiang, Bing, et al. Abstractive text summarization using sequence-to-sequence rnns and beyond. In Proc. of EMNLP, 2016.
- Oord, Aaron van den, Kalchbrenner, Nal, and Kavukcuoglu, Koray. Pixel recurrent neural networks. arXiv preprint arXiv:1601.06759, 2016a. OpenAlex ↗ · Scholar ↗
- Oord, Aaron van den, Kalchbrenner, Nal, Vinyals, Oriol, Espeholt, Lasse, Graves, Alex, and Kavukcuoglu, Koray. Conditional image generation with pixelcnn decoders. arXiv preprint arXiv:1606.05328, 2016b. OpenAlex ↗ · Scholar ↗
- Over, Paul, Dang, Hoa, and Harman, Donna. Duc in context. Information Processing & Management, 43(6): 1506–1520, 2007. OpenAlex ↗ · Scholar ↗
- Pascanu, Razvan, Mikolov, Tomas, and Bengio, Yoshua. On the difficulty of training recurrent neural networks. In Proceedings of The 30th International Conference on Machine Learning, pp. 1310–1318, 2013. OpenAlex ↗ · Scholar ↗
- Rush, Alexander M, Chopra, Sumit, and Weston, Jason. A neural attention model for abstractive sentence summarization. In Proc. of EMNLP, 2015.
- Salimans, Tim and Kingma, Diederik P. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. arXiv preprint arXiv:1602.07868, 2016. OpenAlex ↗ · Scholar ↗
- Schuster, Mike and Nakajima, Kaisuke. Japanese and korean voice search. In Acoustics, Speech and Signal Processing (ICASSP), 2012 IEEE International Conference on, pp. 5149–5152. OpenAlex ↗ · Scholar ↗
- Sennrich, Rico, Haddow, Barry, and Birch, Alexandra. Neural Machine Translation of Rare Words with Subword Units. In Proc. of ACL, 2016a.
- Sennrich, Rico, Haddow, Barry, and Birch, Alexandra. Edinburgh Neural Machine Translation Systems for WMT 16. In Proc. of WMT, 2016b.
- Shazeer, Noam, Mirhoseini, Azalia, Maziarz, Krzysztof, Davis, Andy, Le, Quoc, Hinton, Geoffrey, and Dean, Jeff. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. ArXiv e-prints, January 2016. OpenAlex ↗ · Scholar ↗
- Shen, Shiqi, Zhao, Yu, Liu, Zhiyuan, Sun, Maosong, et al. Neural headline generation with sentence-wise optimization. arXiv preprint arXiv:1604.01904, 2016. — arXiv:1604.01904 OpenAlex ↗ · Scholar ↗
- Srivastava, Nitish, Hinton, Geoffrey E., Krizhevsky, Alex, Sutskever, Ilya, and Salakhutdinov, Ruslan. Dropout: a simple way to prevent Neural Networks from overfitting. JMLR, 15:1929–1958, 2014.
- Sukhbaatar, Sainbayar, Weston, Jason, Fergus, Rob, and Szlam, Arthur. End-to-end Memory Networks. In Proc. of NIPS, pp. 2440–2448, 2015. OpenAlex ↗ · Scholar ↗
- Sutskever, Ilya, Martens, James, Dahl, George E., and Hinton, Geoffrey E. On the importance of initialization and momentum in deep learning. In ICML, 2013. OpenAlex ↗ · Scholar ↗
- Sutskever, Ilya, Vinyals, Oriol, and Le, Quoc V. Sequence to Sequence Learning with Neural Networks. In Proc. of NIPS, pp. 3104–3112, 2014.
- Suzuki, Jun and Nagata, Masaaki. Cutting-off redundant repeating generations for neural abstractive summarization. arXiv preprint arXiv:1701.00138, 2017. OpenAlex ↗ · Scholar ↗
- Waibel, Alex, Hanazawa, Toshiyuki, Hinton, Geoffrey, Shikano, Kiyohiro, and Lang, Kevin J. Phoneme Recognition using Time-delay Neural Networks. IEEE transactions on acoustics, speech, and signal processing, 37 (3):328–339, 1989. OpenAlex ↗ · Scholar ↗
- Wu, Yonghui, Schuster, Mike, Chen, Zhifeng, Le, Quoc V, Norouzi, Mohammad, Macherey, Wolfgang, Krikun, Maxim, Cao, Yuan, Gao, Qin, Macherey, Klaus, et al. Google’s Neural Machine Translation System: Bridging the Gap between Human and Machine Translation. arXiv preprint arXiv:1609.08144, 2016. OpenAlex ↗ · Scholar ↗
- Yang, Zichao, Hu, Zhiting, Deng, Yuntian, Dyer, Chris, and Smola, Alex. Neural Machine Translation with Recurrent Attention Modeling. arXiv preprint arXiv:1607.05108, 2016. OpenAlex ↗ · Scholar ↗
- Zhou, Jie, Cao, Ying, Wang, Xuguang, Li, Peng, and Xu, Wei. Deep Recurrent Models with Fast-Forward Connections for Neural Machine Translation. arXiv preprint arXiv:1606.04199, 2016.
- A. Weight Initialization We derive a weight initialization scheme tailored to the GLU activation function similar to Glorot & Bengio (2010); He et al. (2015b) by focusing on the variance of activations within the network for both forward and backward passes. We also detail how we modify the weight i… OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/gehring-2017-convolutional-sequence-sequence-learning/