<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ozan Çağlayan on Medium]]></title>
        <description><![CDATA[Stories by Ozan Çağlayan on Medium]]></description>
        <link>https://medium.com/@ozinkegliyin?source=rss-368fa6b47836------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dIO8rrj8-uQntoJyzaougw.jpeg</url>
            <title>Stories by Ozan Çağlayan on Medium</title>
            <link>https://medium.com/@ozinkegliyin?source=rss-368fa6b47836------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 11:27:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ozinkegliyin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Six Challenges for Neural Machine Translation]]></title>
            <link>https://medium.com/@ozinkegliyin/six-challenges-for-neural-machine-translation-8a780ead92ab?source=rss-368fa6b47836------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a780ead92ab</guid>
            <category><![CDATA[paper-review]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[nmt]]></category>
            <category><![CDATA[machine-translation]]></category>
            <dc:creator><![CDATA[Ozan Çağlayan]]></dc:creator>
            <pubDate>Fri, 16 Jun 2017 20:37:42 GMT</pubDate>
            <atom:updated>2017-06-16T20:37:42.107Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Six Challenges for Neural Machine Translation” — Philipp Koehn, Rebecca Knowles</h3><p>This is a short summary of the <a href="https://arxiv.org/pdf/1706.03872.pdf">paper</a> <em>“Six Challenges for Neural Machine Translation”</em> by <strong>Philipp Koehn</strong> and <strong>Rebecca Knowles</strong>.</p><ul><li>Six challenges for NMT are explored throughout the paper: Domain mismatch, amount of training data, rare words, long sentences, word alignment and beam search.</li><li>Nematus and Moses are used to train NMT and SMT systems using WMT and OPUS datasets. 50K subword (BPE) vocabularies are used.</li><li>Two language pairs considered: English-Spanish and German-English.</li></ul><h4>Challenge 1 — Domain Mismatch</h4><blockquote>Words have different translations and meaning is expressed in different styles.</blockquote><p>5 different <em>German-English</em> SMT and NMT systems using different corpora obtained from OPUS (law, medical, IT, Koran, Subtitles) are trained along with an additional one trained on all OPUS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*1mlFoz7vkJjcxxw5mLjCsQ.png" /><figcaption>Green = NMT, Blue = SMT</figcaption></figure><p>In-domain NMT and SMT systems are similar, out-of-domain NMT performs worse than SMT in almost all cases. (Ex: 3.9 vs 10.2 BLEU for NMT and SMT in Medical-trained/law-tested cell.)</p><h4>Challenge 2— Amount of Training Data</h4><blockquote>Increasing amounts of training data lead to better results.</blockquote><p><em>English-Spanish</em> systems on all WMT13 (385M words) and partitions of it to obtain a learning curve. For SMT, language model is trained on the Spanish part of each partition. A contrastive SMT with big-LM is also provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*34JCOM8T9SNtfXBOF9Y3TA.png" /></figure><p>NMT exhibits a much <strong>steeper</strong> learning curve, starting with <strong>bad</strong> results (BLEU 1.6 vs 16.4 for the first partition having 0.4M words), outperforming SMT by <strong>+1 BLEU</strong> (24M words) and even <strong>beating SMT with big-LM</strong> over the full dataset (31.1 / 28.4 / 30.4 for NMT, SMT, and SMT+BigLM).</p><p>The contrast between NMT and SMT learning curves is striking: NMT is unable to get off the ground with corpora &lt;&lt; ~few million words.</p><h4>Challenge 3 — Rare Words</h4><blockquote>Conventional wisdom states that NMT performs particularly poorly on rare words.</blockquote><p>NMT and SMT systems tested for this challenge both achieve a case-sensitive BLEU of 34.5 on WMT16 <em>German-English</em> test set (34.5 BLEU is obtained with beam size of 1 in the case of NMT.)</p><p><strong>NMT</strong> systems (at least those using byte-pair encoding) perform <strong>better</strong> on <strong>very low-frequency words</strong> then SMT systems do. Byte-pair encoding is sometimes sufficient (much like stemming or compound-splitting) to allow the successful translation of rare words <strong>even though it does not necessarily split words at morphological</strong> boundaries.</p><p>Both SMT and NMT systems actually have their worst performance on words that were observed a <strong>single time</strong> in the training corpus, even worse than for <strong>unobserved</strong> words.</p><h4>Challenge 4 — Long Sentences</h4><blockquote>The attention mechanism remedied the inability of NMT to properly translate long sequences but how well?</blockquote><p>The all-data systems are taken from <em>Challenge 2 </em>and used to translate collection of news test sets bucketed based on source sentence length in subwords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*l4nbvC24TZS-d5YAGzpWZA.png" /></figure><h4>Challenge 5 — Word Alignment</h4><blockquote>Is the attention mechanism a proper word alignment?</blockquote><p>The concept of word alignment is very different in SMT and NMT. The sequence of attention vectors (soft alignment matrix) is compared to word alignments obtained using <strong>fast-align.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*ciJprXmvpU9AcgUppVRjKA.png" /></figure><p>Both attention states and fast-align alignment points seem to correlate more or less except German-English which shows an off-by-one skew. This system is also considered as an outlier for the <strong>Match</strong> scores computed between NMT attention vectors and fast-align scores.</p><h4>Challenge 6 — Beam Search</h4><blockquote>While there are diminishing returns for increasing the beam parameter, typically improvements in these scores can be expected with larger beams.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tT-voLdqQj6I2qFewjUSNw.png" /></figure><p>Increasing the beam size does not consistently improve translation quality. The optimal beam size varies from 4 (Czech-English) to around 30 (English-Romanian). The main cause of deteriorating quality are <strong>shorter</strong> translations under <strong>wider</strong> beams.</p><h3>Conclusions</h3><p>Neural machine translation still has to overcome various challenges, most notably performance out-of-domain and under low resource conditions.</p><h3>My Comments</h3><ul><li><strong>Challenge 2 — </strong>If the hyper-parameters of the trained NMTs (especially layer sizes and regularization) are kept fixed <strong>regardless</strong> of the data amount of each subset, I would look at training and validation losses for possible signs of over-fitting which may explain the steep learning curve and the abysmal 1.6 BLEU. Same model capacity vs training amount issue can also be raised for <strong>Challenge 1.</strong></li><li><strong>Challenge 3 — </strong>I did not understand why the compared systems were deemed to be equivalent by looking at beam-1 BLEU of NMT.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a780ead92ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Imagination Improves Multimodal Translation]]></title>
            <link>https://medium.com/@ozinkegliyin/imagination-improves-multimodal-translation-b4e4beb39b62?source=rss-368fa6b47836------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4e4beb39b62</guid>
            <category><![CDATA[paper-review]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-translation]]></category>
            <category><![CDATA[multimodal]]></category>
            <dc:creator><![CDATA[Ozan Çağlayan]]></dc:creator>
            <pubDate>Mon, 15 May 2017 15:48:31 GMT</pubDate>
            <atom:updated>2017-05-15T15:52:34.130Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a summary of the paper entitled <a href="https://arxiv.org/pdf/1705.04350.pdf">“Imagination Improves Multimodal Translation”</a> by Desmond Elliott and Akos Kadar.</p><h4>Introduction</h4><ul><li>Multimodal machine translation is the task of translating sentences in context, such as images paired with a parallel text.</li><li>Initial efforts have not convincingly demonstrated that visual context can improve translation quality.</li><li>Authors present a <strong>multitask</strong> learning model that decomposes multimodal translation into learning a <strong>translation model</strong> and learning <strong>visually grounded representations </strong>where separate models can be trained on external/non-coupled datasets.</li><li>Translation decoder is an attentive encoder-decoder model whereas the image prediction decoder is <strong>trained to predict a global feature vector</strong> of an image (Chrupala et al , <em>Learning language through pictures.</em>). The encoder is shared between the components. The image prediction decoder thus tries to <strong>imagine</strong> the image (feature vector) associated with a sentence.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*PlR2Nq3c6JkMiaP2s6WV5w.png" /><figcaption>The proposed architecture</figcaption></figure><h4>Formulation</h4><ul><li>Learning shared parameters 𝜽 and task-specific parameters 𝜙 in a multitask setup where batch preparation/computation graph routing is probabilistic:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*NLgi_48pMUQiSYD6k15Ocw.png" /><figcaption>Expected loss for multi-task setup: Superscripted 𝜙 refers to task-specific parameters for translation and grounding. Batches are generated in a probabilistic way with a probability <strong>w </strong>where the primary task is <strong>translation (J_T)</strong></figcaption></figure><ul><li>Shared source encoder is bi-directional RNN as in NMT where the initial state is a learned parameter,</li><li>Translation decoder is more-or-less the same as <strong>CGRU</strong> from <em>dl4mt</em></li><li>Imaginet decoder is trained to predict the true image representation vector <strong>v</strong> with a <em>margin-based objective</em> parameterised by the minimum margin 𝜶 and the <em>cosine distance</em>. The input to the decoder is the average <strong>h</strong> of the encoder hidden states which is then non-linearly transformed into:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/1*6SdqoJ6Ny_hgs5Y6yzRwsg.png" /></figure><h4>Data &amp; Training</h4><ul><li>Normalized, lowercased, tokenized using Moses + compound splitting with Zmorge: 10.214 &amp; 16.022 types for English and German.</li><li>Two external datasets to evaluate the model: MSCOCO dataset of English image descriptions and the EN-&gt;DE news commentary parallel corpus.</li><li>Images are represented with 2048D vectors extracted from pool5/7x7_s1 layer of GoogLeNet v3 CNN.</li><li>620D embeddings, 1000D GRU RNNs, a dropout of 0.2 for embeddings and recurrent connections in both tasks.</li></ul><h4>Results &amp; Conclusion</h4><ul><li>(Constrained) NMT baseline: 54.0, Imagination: 55.8, Best Ensemble: 57.6</li><li>(Unconstrained) NMT+News: 56.7, Imagination: 56.7, Imagination-COCO: 57.1, Best Ensemble: 59.3</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*gL0dmj5_YdNPbMI49E1kpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*Mh6TpgPTtZwroCLJwgJuJQ.png" /><figcaption>This is when the imaginet decoder is trained on COCO task instead of Multi30k. Conclusion: Another task is OK as well.</figcaption></figure><ul><li>Effect of visual features: InceptionV3 +1.3 over ResNet-50 which is +1.1 over VGG19.</li><li>(Note to myself) The decomposed pipeline allows only the encoder’s weights to be learned jointly during back-propagation.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4e4beb39b62" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>