<?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 Richard Csaky on Medium]]></title>
        <description><![CDATA[Stories by Richard Csaky on Medium]]></description>
        <link>https://medium.com/@richardcsaky?source=rss-6fe4dbcb83ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IUt09BFrCGb_c4FfCn9MDQ.png</url>
            <title>Stories by Richard Csaky on Medium</title>
            <link>https://medium.com/@richardcsaky?source=rss-6fe4dbcb83ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:50:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@richardcsaky/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[Neural Chatbots Are Dumb]]></title>
            <link>https://medium.com/@richardcsaky/neural-chatbots-are-dumb-65b6b40e9bd4?source=rss-6fe4dbcb83ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b6b40e9bd4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[dialogue]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[evaluation]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Richard Csaky]]></dc:creator>
            <pubDate>Mon, 29 Jul 2019 13:27:21 GMT</pubDate>
            <atom:updated>2019-08-05T17:20:55.940Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EL8tQWnG8yx_bMD8cIWzEA.png" /></figure><blockquote>“Conversation should touch everything, but should concentrate itself on nothing.”<br> — <strong><em>Oscar Wilde</em></strong></blockquote><p>📄 <a href="https://www.aclweb.org/anthology/P19-1567"><strong>Paper</strong></a><strong><br>🚀 </strong><a href="https://github.com/ricsinaruto/NeuralChatbots-DataFiltering/blob/master/code/utils/filtering_demo.ipynb"><strong>Filtering demo</strong></a><br>💻 <a href="https://github.com/ricsinaruto/Seq2seqChatbots"><strong>Training code</strong></a><strong><br></strong>⏳ <a href="https://github.com/ricsinaruto/NeuralChatbots-DataFiltering"><strong>Filtering code</strong></a><br>📊 <a href="https://github.com/ricsinaruto/dialog-eval"><strong>Evaluation code</strong></a><br>🌈 <a href="https://ricsinaruto.github.io/website/docs/acl_poster_h.pdf"><strong>Poster</strong></a></p><p>Why are they dumb? Neural networks are <strong>function approximators</strong>, and they are fantastic for processing an <strong>image</strong> and outputting an object category 🚗, or processing a sentence and <strong>translating</strong> it into another language. <strong>But dialog modeling?</strong> Here is a simple illustration of why training a naive neural network in a supervised way (single-turn) will never result in a decent chatbot 👾:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6S8YL02yRYvk9_sWdzPi-Q.png" /></figure><p>I call this the <em>one-to-many</em>, <em>many-to-one</em> problem. See in dialog modeling there are a lot of inputs like “<em>What did you do today?</em>”. These are so <strong>open-ended</strong> that virtually an <strong>infinite</strong> number of <strong>different responses</strong> can come after it. Now, why is this a problem? Well, when we optimize a dialog model, it’s usually through the <strong>cross-entropy loss</strong>, which is not the best optimization <strong>goal</strong> for chatbots. It tries to make the model learn the distribution of responses which is very <strong>high-entropy</strong> (many different possible responses). Since usually dialog datasets are pretty <strong>small</strong>, there is no way of modeling this distribution, and our little <a href="https://arxiv.org/abs/1706.03762">Transformer</a> gets confused 👾. You could say that this happens all the time in other tasks as well, but I doubt there is another task where the problem manifests itself at this level (<a href="https://arxiv.org/abs/1712.02250">Wei et al., 2017</a>).</p><p>But the problem doesn’t stop here; we’ve still got the other side (<em>many-to-one</em>). <strong>So what’s the issue here?</strong> The model sees <strong>multiple inputs</strong> to which it should reply with the <strong>same response</strong>. In other domains, this is called classification. <strong>However,</strong> in other domains, there is something <strong>similar</strong> about inputs with the <strong>same class</strong> (e.g., if projected to a latent space, they should be close to each other).</p><p>Now looking at my polished example, how similar are those inputs to you?</p><p>Exactly, they have <strong>nothing to do with each other</strong>. In response generation, we don’t want to classify these inputs as the “<em>I don’t know</em>” class; we want to <strong>generate interesting and relevant responses</strong>. But if the model sees the same response after many completely semantically different inputs, then it’s confidence in this response increases ⬆️. In the extreme, it could just say that <strong>no matter the input</strong> I can output “<em>I don’t know</em>”. And the thing is it would be somewhat right, because this response <strong>does fit in a lot of contexts</strong>, but this is precisely the <strong>problem</strong>. I’m sure you wouldn’t want to chat with someone that responds like this all the time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KXdQyjfxSq4beY2mHOaULg.png" /><figcaption>You vs. a boring LSTM</figcaption></figure><p>Ok, so has anyone tackled this problem before? Hmm, I don’t know maybe <strong>hundreds of papers</strong> in the past years 😃. Just go to my <a href="https://github.com/ricsinaruto/Seq2seqChatbots/wiki/Chatbot-and-Related-Research-Paper-Notes-with-Images">chatbot paper notes</a>, and probably at least half of them are related to this. I think these approaches can be grouped into 3️⃣ main categories:</p><ol><li>💉 Feeding extra <strong>information</strong>: If we supply more info on the input side, like dialog history (<a href="https://www.aaai.org/ocs/index.php/AAAI/AAAI16/paper/download/11957/12160">Serban et al., 2016</a>), topic/person/emotion categories (<a href="https://www.aaai.org/ocs/index.php/AAAI/AAAI17/paper/download/14563/14260">Xing et al., 2017</a>; <a href="https://www.aclweb.org/anthology/P16-1094">Li et al., 2016</a>; <a href="https://www.aaai.org/ocs/index.php/AAAI/AAAI18/paper/download/16455/15753">Zhou et al., 2018</a>), or knowledge-pieces (<a href="https://openreview.net/forum?id=r1l73iRqKm">Dinan et al., 2019</a>), then it will be less likely that a specific input has multiple possible responses. However, a generic response like “<em>I don’t know</em>” can still be good in many cases, so only the <em>one-to-many</em> issue is remedied with these approaches. A downside is that they require annotated datasets which are not always available, or might be smaller in size 💰.</li><li>🔨 Augmenting the <strong>model</strong> or the decoding process: We can infuse the model to deal with these issues, for example, by using variational approaches (<a href="http://www.cs.toronto.edu/~lcharlin/papers/vhred_aaai17.pdf">Serban et al., 2017</a>). However, these models typically output more ungrammatical or irrelevant responses.</li><li>🔧 Modifying the <strong>loss</strong> function: Well, this is the most straightforward idea, because if the loss function is bad, why not just use another one. The problem is that it’s tough to come up with an optimization goal that captures conversational goals, but people have tried with some success (<a href="https://www.aclweb.org/anthology/N/N16/N16-1014.pdf">Li et al., 2016</a>; <a href="https://www.aclweb.org/anthology/D17-1230">Li et al., 2017</a>).</li></ol><p>What if I told you there is a 4th category? Surely it cannot be. Well, our idea 💡 was that since there is a mismatch between the data and the loss function, we should <strong>modify the data</strong>. At first glance, this doesn’t seem like a good idea, since the data is from the real world 🌍. However, if we want to make an easier task for the model, we can make the data <strong>more aligned with the loss function</strong>, and there is some minimal research on this (<a href="http://aclweb.org/anthology/D18-1432">Xu et al., 2018</a>).</p><p>Our approach consists of merely <strong>removing</strong> as many <strong>confusing input-output examples</strong> from the data as possible, so eliminating utterances which fall in the <em>one-to-many, many-to-one</em> categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJbcclhTY4Tg-SgzTqL7ig.png" /></figure><p>How can we find these utterances? Well, there’s a reasonably simple method. If we look at the <strong>conditional probabilities of utterance pairs,</strong> we can get the <strong>distribution of responses to a given input</strong> (probabilities denoted by numbers on the lines in the picture above). If this distribution is <strong>uniform,</strong> that means that all responses are different, precisely what we <strong>want to find ✔️</strong>. We can capture this by measuring the <a href="https://en.wikipedia.org/wiki/Entropy_(information_theory)"><strong>entropy</strong></a><strong> of the distribution. </strong>Remember that the entropy of a distribution says something about the uncertainty of the examples. So in the above picture, the above two examples have <strong>high entropy ☝️</strong>, while the lower two have <strong>zero entropy 👇</strong>. So far, I’ve talked only about the input side because it’s easier to understand, but we can do the same thing for the target side. On the target side, the distribution is based on the input utterances that are paired with the target.</p><p>So these are the steps:</p><ol><li><strong>Build the distribution</strong> for each utterance based on its pairs</li><li><strong>Calculate</strong> the utterance’s <strong>entropy</strong> from this distribution</li><li><strong>Filter utterance pairs</strong> in which one of the utterances has <strong>high entropy</strong>.</li></ol><p><a href="https://github.com/ricsinaruto/NeuralChatbots-DataFiltering/blob/master/code/utils/filtering_demo.ipynb">The following demo is from a jupyter notebook containing all the code where you can quickly try it out.</a></p><h3>💻 Let’s do these through a simple demo</h3><h4>0. Imports</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc232456b6731e627d8dc2286c92d0db/href">https://medium.com/media/fc232456b6731e627d8dc2286c92d0db/href</a></iframe><p>In order for this code to run, you need to have a “<em>sources.txt</em>” and a “<em>targets.txt</em>” file in your directory.</p><h4>1. Build the distributions</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cbe274447ac80c4e663f34a59a57be5a/href">https://medium.com/media/cbe274447ac80c4e663f34a59a57be5a/href</a></iframe><p>It’s ridiculously simple, so now that we have the distribution, we can calculate the entropy of each utterance.</p><h4>2. Calculate entropy</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd894cdd7fab909eab6032a9475d74a6/href">https://medium.com/media/bd894cdd7fab909eab6032a9475d74a6/href</a></iframe><p>That’s it! Now we have a dict where the keys are the utterances in the data, and the values are the entropies. Now we can set a threshold and save our filtered dataset 💾.</p><h4>3. Save filtered data</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0e930e1ff297039c582c5c1754706b8/href">https://medium.com/media/d0e930e1ff297039c582c5c1754706b8/href</a></iframe><p>In less than 4️⃣0️⃣ lines of code, we’ve filtered our dataset and implemented the main idea behind the <a href="https://www.aclweb.org/anthology/P19-1567">ACL paper</a>.</p><h3>📊 Visualization</h3><p>Since we already computed all this info about our data, why not do some beautiful visualizations?<br>I will omit the code for these, but you can find everything in the <a href="http://localhost:8888/notebooks/code/utils/filtering_demo.ipynb">jupyter notebook</a>. I used the <a href="http://yanran.li/dailydialog.html">DailyDialog</a> dataset.</p><h4>Highest entropy sources and targets</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/64d87cd285accf246b3f518a6b886e3d/href">https://medium.com/media/64d87cd285accf246b3f518a6b886e3d/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e2078abfdbd791dcafddb5487ef8e10/href">https://medium.com/media/1e2078abfdbd791dcafddb5487ef8e10/href</a></iframe><p>These are the top 🔟 source and target utterances. They are exactly what we wanted, very <strong>open-ended low information</strong> / <strong>high entropy</strong> sentences (or sometimes only words). Why are the source and target sides so similar? In single-turn dialog modeling, an utterance can be an example on both sides (unless it’s the first or last utterance of a dialog). Thus there is a substantial <strong>overlap</strong> between the <strong>source and target utterances</strong>.</p><h4>Entropy distribution</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*SgsNKeFYfU_7d2iagvHYDg.png" /></figure><p>This is the entropy distribution over utterances; again, the source and target sides are very similar (left and right graphs). I left out utterances with zero entropy because then we wouldn’t see anything (there are 70000 such utterances). Still, there is a big jump at 1 entropy because there are a lot of utterances with two different pairs. Other than that the graph looks pretty normal, it goes down exponentially, so the data has a <strong>high entropy tail</strong>, which we can remove.</p><h4>Entropy and Frequency</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*7b4V_zRDQlApP-m4JINaAQ.png" /></figure><p>The blue dots are the frequency and entropy of all utterances, while the red curve is the <strong>average entropy</strong> among utterances with the same frequency. I zoomed in a bit and left out some outliers. There is some <strong>correlation</strong> between entropy and frequency, but we looked more into this and found that: 1️. Entropy offers a more <strong>fine-grained measure</strong> for filtering, 2. The highest frequency utterances are not always the ones we <strong>wish to remove</strong>.</p><h4>Entropy and Length</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*oWipigzHewl4sjuZz9Dm_Q.png" /></figure><p>The blue dots are the length and entropy of all utterances, while the red dots are the <strong>average entropies</strong> of utterances with the same length. Notice that the scale is different this time because the average entropy is an order of magnitude lower. Again I zoomed in a bit to focus on the exciting part. While there is some correlation between entropy and sentence length, it’s much lower than in the case of frequency.</p><p>But if you think about it, these correlations are somewhat justifiable 🔥. Naively, the <strong>fewer words</strong> a sentence has the <strong>less information </strong>it conveys. Thus it has <strong>higher entropy</strong> since many <strong>different responses</strong> can be associated with it. This reasoning is similar to why adding previous utterances as input to a dialog model can help it, because it <strong>reduces the diversity</strong> of potential responses. Here it’s the same thing but within a sentence at the word level.</p><h4>3D</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*5VREI-_b9Yy59isCbgxQZA.png" /><figcaption>because why not (also notice the zoom)</figcaption></figure><h3>🔥 Results</h3><p>So there is more to the paper than this simple idea, but funnily this gets the best results 💯, and you can find further variations in the <a href="https://www.aclweb.org/anthology/P19-1567">paper</a> or the <a href="https://ricsinaruto.github.io/website/docs/acl_poster_h.pdf">poster</a>.</p><p>Evaluating open-domain dialog models is hard, and I could come up with tens of papers that talk about this (<a href="https://doi.org/10.18653/v1/D16-1230">Liu et al., 2016</a>). The problem is that it’s nigh <strong>impossible to construct an easily computable metric</strong> which tells whether a response is good or not. We humans can easily do this, but automating it would immediately <strong>solve the entire field</strong> of dialog modeling, so it’s kind of a paradox 💥. Nevertheless, over the years, several metrics have come up in research papers to quantify <strong>different aspects</strong> of <strong>response quality</strong>. Most of them <strong>correlate poorly with human judgment </strong>(<a href="https://doi.org/10.18653/v1/D16-1230">Liu et al., 2016</a>), but we don’t have anything better 😢. The problem with metrics like <a href="https://www.aclweb.org/anthology/P02-1040">BLEU</a> is similar to the cross-entropy loss. We can’t say that a response is only adequate when it’s similar to the target in the data since there are <strong>many potentially good responses</strong>. And if we would try to look at all the responses in the data, then we would run into the <em>many-to-one</em> problem. Since there is bound to be at least one “<em>I don’t know</em>” among them, a model that outputs this <strong>all the time</strong> will have high metrics, since it <strong>plays safely</strong>.</p><p>Anyways here are some carefully selected metrics from the literature. BTW all these metrics are implemented in <a href="https://github.com/ricsinaruto/dialog-eval">this repo</a>. You can compute all metrics easily by providing a file with one response per line, or<strong> a directory full of response files at the same time. </strong>Additionally, the metrics get saved to a file (together with standard deviation and confidence interval for each metric). The goal of this repo is to be a <strong>helpful tool 🔧 </strong>for the community to <strong>evaluate dialog models</strong>, so feel free to contribute and add new metrics ❤️</p><ul><li><strong>1️⃣ Response length</strong>: Number of words in the response.</li><li><strong>2️⃣ </strong><a href="http://www.cs.toronto.edu/~lcharlin/papers/vhred_aaai17.pdf"><strong>Per-word entropy</strong></a>: Probabilities of words are calculated based on frequencies observed in the training data. Entropy at the bigram level is also computed.</li><li><strong>3️⃣ </strong><a href="http://www.cs.toronto.edu/~lcharlin/papers/vhred_aaai17.pdf"><strong>Utterance entropy</strong></a>: The product of per-word entropy and the response length. Also computed at the bigram level.</li><li><strong>4️⃣ </strong><a href="https://arxiv.org/abs/1905.05471"><strong>KL divergence</strong></a>: Measures how well the word distribution of the model responses approximates the ground truth distribution. Also computed at the bigram level (with bigram distributions).</li><li><strong>5️⃣ </strong><a href="https://aclweb.org/anthology/D16-1230"><strong>Embedding</strong></a>: Embedding <em>average</em>, <em>extrema</em>, and <em>greedy</em> are measured. <em>average</em> measure the cosine similarity between the averages of word vectors of response and target utterances. <em>extrema</em> constructs a representation by taking the greatest absolute value for each dimension among the word vectors in the response and target utterances and measures the cosine similarity between them. <em>greedy</em> matches each response token to a target token (and vice versa) based on the cosine similarity between their embeddings and averages the total score across all words.</li><li><strong>6️⃣ </strong><a href="https://arxiv.org/pdf/1809.06873.pdf"><strong>Coherence</strong></a>: Cosine similarity of input and response representations (constructed with the average word embedding method).</li><li><strong>7️⃣ </strong><a href="https://www.aclweb.org/anthology/N16-1014"><strong>Distinct</strong></a>: Distinct-1 and distinct-2 measure the ratio of unique unigrams/bigrams to the total number of unigrams/bigrams in a set of responses.</li><li><strong>8️⃣ </strong><a href="https://www.aclweb.org/anthology/P02-1040"><strong>BLEU</strong></a>: Measures n-gram overlap between response and target (n = [1,2,3,4]).</li></ul><p>In the following results 👇, we trained a <a href="https://arxiv.org/abs/1706.03762">Transformer</a> model from scratch for each different filtered dataset. We evaluated at the minimum validation loss on the test set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OT4-4wlD4eECMyewcWKWhA.png" /></figure><p>The first line is the transformer trained on unfiltered data (our baseline). ID means our filtering method, while RT is randomly selected responses from the training data, and GT is the ground truth responses. B, T, S (not the kpop band) mean different ways of setting the threshold. When filtering an utterance pair, we can filter based on only the <strong>S</strong>ource’s entropy or only the <strong>T</strong>arget’s entropy, or looking at <strong>B</strong>oth entropies. The 17 metrics are what I described before in the same order: <em>response length, unigram and bigram entropy, unigram and bigram utterance entropy, unigram and bigram KL divergence, embedding average, extrema and greedy, coherence, distinct-1 and distinct-2, and finally, BLEU-1, BLEU-2, BLEU-3 and BLEU-4</em>.</p><p>Bold highlights the <strong>best results</strong>, with our method <strong>improving over the baseline </strong>on most metrics and filtering based on only target entropy, is the best, so removing <strong>high entropy targets</strong>. Which is good because this remedies the <em>many-to-one</em> problem. Thus the method could be combined with others that alleviate the <em>one-to-many</em> problem, like adding dialog history. It’s interesting to look at the RT row because on metrics that only look at the response RT is close in performance to the ground truth. But at least on embedding and BLEU, they are worse, so these metrics are not entirely useless. But again it’s essential to <strong>look at metrics jointly</strong>, because individually, on the entropy metrics random responses are the best 😅</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f859e3f4346ed787350cdb8ee617044/href">https://medium.com/media/9f859e3f4346ed787350cdb8ee617044/href</a></iframe><p>Above you can see responses from the baseline and best filtered training to the top 🔟 highest entropy inputs. You could expect that since we <strong>removed these inputs</strong> from the data, the filtered model would output worse responses. However, the responses are <strong>at least as good</strong> as the baseline and sometimes better ⭐️.</p><p>So why is this?</p><p>Well since we have a pretty large dataset even if we remove some form of an utterance another may stay in, like “yes” without the punctuation mark. Thus the model still sees examples of these inputs 👀 and can learn to respond to them. Also, it sees the words themselves in different contexts; thus, it can learn something about their meaning 🔤.</p><p>Since we removed high entropy responses, some of the responses from the filtered training are <strong>longer</strong> and have <strong>more information</strong> in them. But it’s tough to draw conclusions from 🔟 examples. Since the improvements in the metrics are <strong>not that significant,</strong> I doubt we can easily see actual <strong>differences</strong> between the <strong>quality of responses</strong>, other than what I mentioned already. For a lot more example responses check the <a href="https://arxiv.org/pdf/1905.05471.pdf">paper</a>. An interesting observation is that both models respond the same way to “yes” and “sure”, so they might have learned that they mean the same thing 👐.</p><p>BTW you can try out <strong>all trained models </strong><a href="https://github.com/ricsinaruto/Seq2seqChatbots"><strong>here</strong></a> (follow the readme to download the models).</p><p>A lot of things were not covered from the <a href="https://www.aclweb.org/anthology/P19-1567">paper</a> if you are interested:</p><ul><li><strong>✨ Clustering</strong> utterances and performing the filtering on clusters</li><li>🔀 An interesting difference between how the <strong>loss function and the automatic metrics behave</strong> during training</li><li>🚧 Preliminary experiments on 2️⃣ <strong>other dialog datasets</strong></li><li>📚 Maybe more background and <strong>details/explanations</strong>?</li></ul><p>So what’s the verdict? The verdict is the title 🎉.<br>I’ve read a <a href="https://github.com/ricsinaruto/Seq2seqChatbots/wiki/Chatbot-and-Related-Research-Paper-Notes-with-Images">ton of publications</a>, writing two papers (<a href="https://www.aclweb.org/anthology/P19-1567">this</a> and <a href="https://tdk.bme.hu/VIK/DownloadPaper/asdad">this</a>), while slowly realizing the futility of everything 💫.</p><p>So I’m moving on, I want to do <a href="https://www.biorxiv.org/content/biorxiv/early/2019/04/18/613141.full.pdf">brain modeling with AI</a>. I’m hoping to do a PhD 🎓 related to this topic, drop me an e-mail if you are interested.</p><p>(I still love dialog modeling though ❤)</p><p><a href="https://twitter.com/Thunderdrums69">my twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b6b40e9bd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EEML 2019: A subjective retelling]]></title>
            <link>https://medium.com/@richardcsaky/eeml-2019-a-subjective-retelling-67448909e64b?source=rss-6fe4dbcb83ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/67448909e64b</guid>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[course]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[summer-school]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Richard Csaky]]></dc:creator>
            <pubDate>Sun, 14 Jul 2019 20:45:24 GMT</pubDate>
            <atom:updated>2019-07-15T14:43:00.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MC0DM8OCFbuURvazGZdMaQ.jpeg" /></figure><p>So I attended this year’s <a href="https://www.eeml.eu/home">Eastern European Machine Learning Summer School</a> and had an amazing week there ❤️. I will try to summarize my experience as best as possible. What follows is 1️⃣a brief introduction, 2️⃣a day-by-day breakdown of the school and 3️⃣a conclusion.</p><p><strong>Disclaimer</strong>: All statements are personal opinions, and some may not be true as I didn’t bother to check everything 😁.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*802NcVVPTPo6zR3Q318u7w.png" /></figure><h3>Intro</h3><p>EEML first started as <a href="https://tmlss.ro/">TMLSS</a> in 2018 in the city of Cluj, Romania. It was mainly organized by <strong>DeepMind</strong> researchers who are originally from Romania. Since it was a huge success they decided to organize another one this time in Bucharest 🌆. From my limited experience I identified 5️⃣ important groups of people which are all essential for such a school to exist:</p><p>💡 DeepMind organizing team<br>🎓 Local university support<br> 💰 Sponsors<br> 🔈 Speakers and TAs <br>💖 Volunteers</p><p>IMO this year’s success is partly due to getting right all these groups 🎯. Applicants to the school had to write an <strong>extended abstract</strong> either about their own research, a reproduction work, or a review of 3 research papers 📃.</p><p>Registration fees were very low (100 EUR for students which covered all meals), and cheap accommodation was also possible in the form of university dorms. On top of this, the school offered generous <strong>scholarships</strong>, with which one could cover even these reduced fees, and also traveling to Bucharest. I don’t think that many schools offer such all expenses paid grants, so this is definitely an amazing opportunity. Considering that the focus is on eastern europe, with many low-income countries, the low fees and the scholarships made this school extremely attractive ⭐️.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AcMrxwncKcyefQxVJO8pyg.jpeg" /><figcaption>I like numbers</figcaption></figure><p>And attractive it was, more than <strong>700</strong> people applied, of which only 160 were accepted. On top of this, there were also about 50 spots reserved for sponsors and volunteers, so in total there were roughly 2️⃣0️⃣0️⃣ participants. However, I think not even the organizers expected the amount of <strong>excitement</strong> around the school, as applications were received from 7️⃣4️⃣ countries, of which 4️⃣2️⃣ were represented at the school. The organizers also took into account gender diversity achieving a higher than <strong>30% female ratio</strong>, a lot more than at an average engineering/computer science university 🎓.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sDWyz6e_vbcDafZ7jyZkJQ.jpeg" /><figcaption>One of my favorite slides (and Viorica’s as well 😄)</figcaption></figure><p>Diversity was an important issue that the organizing team brought up several times. It is also a driving factor behind the organization of this school. The argument goes something like this: Currently, AI research is skewed towards the west as most publications come from there, with many well-funded labs and universities 💰. However, in order to ensure <strong>fair</strong> and <strong>equal</strong> development of AI, every concerned party should be represented in research (gender, countries, etc.) 🌍.</p><p>Before the school, EEML also hosted a <a href="https://www.kaggle.com/c/electricity/overview">Kaggle competition</a> on electricity consumption prediction and visualization, which I sadly didn’t have enough time to partake, but at least 2️⃣5️⃣ people did! The organization before the school was excellent, volunteers waited for participants at the airport ✈️ and took them to their rooms. I personally also attended <a href="https://conferences.unibuc.ro/raai2019/#">RAAI</a>, an AI conference in Bucharest just before the school, so I arrived earlier than most. But enough of this, let&#39;s get to the first day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z1BCCgUWCFbdmx6G40CgMg.png" /><figcaption>Yes, your eyes are not lying, every day from 8 am to ~10 pm</figcaption></figure><h3>Monday</h3><p>🌄 After a good night’s sleep (in hellish temperatures ♨️), the day started with registration, breakfast and some quick welcome notes. Then we got straight into the nitty-gritty with an introduction-like <a href="https://drive.google.com/file/d/172peB-2VDgX8EhK81v473SQL9Xk1wIoR/view">presentation</a> to deep learning by <a href="https://scholar.google.ca/citations?user=eSPY8LwAAAAJ&amp;hl=en">Razvan Pascanu</a>. It was a higher-level lecture covering most major areas in <strong>machine learning</strong> (supervised, unsupervised, reinforcement), and the basics of <strong>neural networks</strong>. It also went into more detail about neural network optimization and the <strong>loss surface</strong>, as this is one of Razvan’s research areas. To me, it felt a bit rushed at the end, but there is obviously no way to cover everything in 1.5 hours.</p><p>After lunch (btw the catering was awesome 🍴), we continued with an <a href="https://drive.google.com/file/d/1p-elrqK3MBzW_ThjyqlTnvLwQJsM3XUp/view">intro to reinforcement learning</a> by <a href="https://scholar.google.com/citations?user=j54VcVEAAAAJ&amp;hl=en">Doina Precup</a>. It started nicely, but somewhere in the middle I got a bit lost, as it’s not my field of expertise. She talked about the basics (state, reward, value functions), and then got into more technical stuff like the <strong>Bellman equation</strong>. There were a lot of equations which weren’t clear to me at the time, but luckily the lab managed to elucidate most of it. Different <strong>value function estimators</strong> were also presented like monte carlo, dynamic programming, and the temporal difference method.</p><p>Following a host keynote and a coffee break, the final talk was by <a href="https://scholar.google.com/citations?user=bmZbi_UNs-oC&amp;hl=en">Rahul Sukthankar</a>. He introduced the main tasks and architectures/techniques in modern <strong>computer vision</strong> in an interactive and funny way. After his talk, we had a very brief <a href="https://github.com/eeml2019/PracticalSessions/tree/master/introductory">lab</a> about the basics of <a href="https://colab.research.google.com/">google colab</a> and <a href="https://www.tensorflow.org/">tensorflow</a> 💻.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZhcuXSiO6T2wT-aZJC_9fw.jpeg" /><figcaption>Taking photos is not my forte…</figcaption></figure><p>The day concluded with a fancy welcome reception at Hilton 🏨. Several people from the hosting university gave short talks and also Ligia Deca the state adviser on education and research.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwv3yJBBKJxamzrdtQ4YGQ.png" /></figure><h3>Tuesday</h3><p>Doina continued the <a href="https://drive.google.com/file/d/19wrPeBWEdj4iLO1fz7-1wRGAhBuOgufV/view">RL intro</a>, talking about control, and <strong>on and off-policy</strong> algorithms, such as epsilon-greedy and q-learning. She finished with policy gradient methods, such as REINFORCE and <strong>actor-critic</strong> variants. For me, it definitely gave a detailed albeit dry summary of the various methods used in RL. It was cool because I had a vague idea about most of these, but this gave a more solid foundation.</p><p>After a short break <a href="https://scholar.google.com/citations?user=9zeEI-cAAAAJ&amp;hl=en">Shimon Whiteson</a> gave an exciting talk about <strong>multi-agent RL</strong>. He went over all the different scenarios (cooperative, competitive, mixed), and explained very clearly how some popular algorithms work. A major point throughout the talk was what simplifications/assumptions we have to make to <strong>real-world</strong> multi-agent environments to be able to deal with them 🚗.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*jX2AwnzaMcGN7d5zzGcZKA.png" /><figcaption>Zeynep Akata</figcaption></figure><p>The last talk of the day was by <a href="https://scholar.google.com/citations?hl=en&amp;user=jQl9RtkAAAAJ&amp;view_op=list_works&amp;sortby=pubdate">Zeynep Akata</a>, mainly focusing on her own research related to <strong>explainable AI</strong>. She also talked about <strong>zero-shot learning</strong> and multimodal learning (e.g. text to image synthesis). After a break and a keynote, we had the <a href="https://github.com/eeml2019/PracticalSessions/tree/master/rl">reinforcement learning lab</a>, which was pretty cool because it showed how some of the algorithms that Doina talked about work through a gridworld environment. The evening concluded with <strong>poster presentations 📊</strong> from about half of the participants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNh4-fz4jT-lWGYH22gJVw.png" /></figure><h3>Wednesday</h3><p>The day started with <a href="https://drive.google.com/file/d/1lK8ZulIzs_yzPrdQxLLcIWIlDa64RQxc/view">continual learning</a> by <a href="https://scholar.google.be/citations?user=EuFF9kUAAAAJ&amp;hl=nl">Tinne Tuytelaars</a>. This was a topic that I haven’t really heard about before, but the lecture gave a solid foundation into the various types of <strong>continual learning</strong>. In continual learning, a model is sequentially trained on different tasks 🔁 and the goal is to be able to perform <strong>all tasks</strong> (without forgetting past tasks).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*cOli0n2wVwyozgphatnYWw.png" /><figcaption>Andrew Zisserman</figcaption></figure><p>The second talk was by <a href="https://scholar.google.co.uk/citations?user=UZ5wscMAAAAJ&amp;hl=en">Andrew Zisserman</a> on <a href="https://drive.google.com/file/d/1pqwF2FEQFdn4MZP_YFSclSqr6E8jTLTJ/view">self-supervised learning</a>. This was again a topic that I knew little about, and his talk was enlightening. <strong>Self-supervision</strong> is powerful for tasks where there is no labeled data, and even in normals tasks accuracy can be improved by <strong>pre-training</strong> in a self-supervised manner. He mostly talked about self-supervision for computer vision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*u9VMnMGkWY8EFWjShrFSQg.png" /><figcaption>Dmitry Vetrov</figcaption></figure><p>After lunch, <a href="https://scholar.google.ca/citations?user=7HU0UoUAAAAJ&amp;hl=en">Dmitry Vetrov</a> gave a talk on <a href="https://drive.google.com/file/d/1G6I1hOxg9zN3PmKqm7sahXw6DvYmyYW3/view">bayesian learning</a>, which I think was one of the worse talks in the school (keep in mind that the worst talk here still means pretty good 💯). Probably if I was more acquainted with the field I would have liked it more, but it felt dry and full of equations and derivations. I think some practical examples would have helped as he only talked about foundations. Although during a later lab I understood better his presentation.</p><p><a href="https://github.com/eeml2019/PracticalSessions/tree/master/vision">Wednesday’s lab</a> was on computer vision and self-supervised methods. Unfortunately, it was one of the worse labs of the school, nearly nobody managed to get to the second part, because of bugs and confusingly organized code. Nevertheless, we put together a simple <a href="https://arxiv.org/abs/1512.03385"><strong>Resnet</strong></a> and experimented with the effects of <strong>batch norm</strong> and <strong>transformations</strong>. In the evening the other half of the participants presented their posters, my <a href="https://ricsinaruto.github.io/website/docs/acl_poster_v.pdf"><strong>poster</strong></a> was on chatbots. It was my second ever poster presentation and the experience is always amazing. I also had a little demo on my laptop where people could talk with the chatbot 💻. On both evenings I found a lot of interesting posters and the atmosphere was energizing with everybody discussing their work 🔥.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Y8FznoOcDxDvccV5_Fq2w.png" /></figure><h3><strong>Thursday</strong></h3><p>In the morning we had, in my opinion, the best <a href="https://drive.google.com/file/d/1HsL0Yqfxb3fc3OZEUr88RKIX7MYcg12l/view">lecture</a> of the week by <a href="https://scholar.google.com/citations?user=UgHB5oAAAAAJ&amp;hl=en">Anca Dragan</a>. She talked about a very interesting subfield of reinforcement learning, called <strong>inverse RL</strong>. I’ve never heard of it before, but because of how clearly she talked about it I think I understood almost everything (the nice <strong>visual explanations</strong> helped a lot). She also talked about the interaction between robots and humans ⚠️.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBxucoUXuM4YDdTNn_mj7g.png" /><figcaption>The photo is from the official <a href="https://twitter.com/EEMLcommunity">EEML twitter</a></figcaption></figure><p>During the afternoon we went to a traditional restaurant to have lunch and visited the Palace of Parliament, one of the largest buildings in the world. The day concluded with a public event (<strong>AI for Social Good</strong>) organized by the EEML organizers. <a href="https://scholar.google.co.uk/citations?user=bGDCgpUAAAAJ&amp;hl=en">Danielle Belgrave</a> talked about her work and <a href="https://scholar.google.com/citations?user=uKXVH54AAAAJ&amp;hl=en">Piotr Mirowski</a> about AI for <strong>climate change 🌊</strong>, which I found pretty interesting. There is a very recent <a href="https://arxiv.org/pdf/1906.05433.pdf">paper</a> 📄 on this topic by a huge group of people from respected universities and companies. At the end of the event, they held a <strong>panel discussion</strong> with ❓ from the public. Razvan Pascanu and Antoine Bordes also joined the previous two presenters for the panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ecWknwr5bjjCEdo-atrtw.png" /></figure><h3>Friday</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*96F31C4rP4Fwbc3sx8TIFQ.png" /><figcaption>Antoine Bordes</figcaption></figure><p>Finally, the NLP day, starting with an <a href="https://drive.google.com/file/d/19VzDj8Nyqd4KHfzT9DIyHO4GW7SgLQhn/view">intro talk</a> by Razvan Pascanu (Stephan Gouws couldn’t make it). I think he focused a bit too much on <strong>RNN</strong>s, but all in all, it was a nice talk, mentioning all the famous architectures in NLP. <a href="https://arxiv.org/abs/1706.03762"><strong>Transformers</strong></a> were a bit muddy even for me who read the paper, luckily the next talk explained them better.</p><p>The <a href="https://drive.google.com/file/d/1DO9mwe9gH4d-L5i7JvOxBo3NQlqHYMNO/view">second talk</a> was by <a href="https://scholar.google.com/citations?user=jWWx33IAAAAJ&amp;hl=en">Antoine Bordes</a> on <strong>machine reading 🔤</strong>. I think it was really good, summarizing the main techniques in NLP. He also talked about current state-of-the-art neural models like <a href="https://arxiv.org/abs/1810.04805"><strong>BERT</strong></a> and <a href="https://arxiv.org/abs/1906.08237"><strong>XLNET</strong></a>.</p><p>After lunch, <a href="https://scholar.google.com/citations?user=6azBRUAAAAAJ&amp;hl=en">Lucian Itu</a> talked about medical imaging, which for me wasn’t too interesting. Next, Piotr Mirowski talked about some really cool projects at <strong>DeepMind</strong>. This time the lab was pretty easy and I managed to finish it. We had to do build a simple <strong>RNN</strong>, and then train it for character-based language generation 🔡, which was pretty cool. Although I would have liked some more advanced stuff.</p><p>The big event of the day was the gala dinner where we also took our group picture (the headline for this post). We were at a very fancy restaurant 🍰 on the side of a lake in Bucharest 🐟.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cIJ2Z6dVWbIABpUQ-TRE4w.png" /></figure><h3>Saturday</h3><p>The final day started with an <strong>unconference</strong> which I sadly didn’t go to because I had to recover some sleep 😴. However, I heard that it was pretty good, participants had to talk about a topic for half an hour in groups then present it to the others. The final talk of the school was by <a href="https://scholar.google.hu/citations?user=LFyg0tAAAAAJ&amp;hl=en">Nal Kalchbrenner</a> <strong>unsupervised learning</strong>.</p><p>After lunch, we had a <strong>panel discussion</strong> where 7️⃣ people from <strong>DeepMind</strong> participated. We asked a lot of questions and it was a super interesting discussion with them about different topics in AI. I especially liked the more personal questions. The school ended with a <a href="https://github.com/eeml2019/PracticalSessions/tree/master/unsupervised">lab</a> on <strong>bayesian learning</strong>, which was pretty interesting and helped me understand ELBO, variational inference, and other such techniques. I definitely want to finish all the labs in the next few weeks 📆.</p><p>Honestly, I was pretty dead 😪 by the end of Saturday, and I think most participants and even the organizers felt the same. It was an extremely intense 6 days packed with all kinds of lectures/labs in machine learning and social events. I can’t thank enough all the effort and time put in by the organizers and volunteers, I hope I can give back one day ❤️.</p><p>This was my first summer school but definitely not the last, I greatly recommend applying for EEML 2020, and if you have any questions about the application process or the school, hit me up 😄</p><p>Slides for talks: <a href="https://www.eeml.eu/resources">https://www.eeml.eu/resources</a><br>Lab materials: <a href="https://github.com/eeml2019/PracticalSessions">https://github.com/eeml2019/PracticalSessions</a><br>My twitter: <a href="https://twitter.com/Thunderdrums69">https://twitter.com/Thunderdrums69</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67448909e64b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>