<?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[HUCVL Stories - Medium]]></title>
        <description><![CDATA[News, notes, and musings from the HUCVL community - Medium]]></description>
        <link>https://medium.com/hucvl-stories?source=rss----92f1c6b8867---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>HUCVL Stories - Medium</title>
            <link>https://medium.com/hucvl-stories?source=rss----92f1c6b8867---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:07:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/hucvl-stories" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introducing    CRAFT — A Benchmark for Causal Reasoning About Forces and inTeractions]]></title>
            <link>https://medium.com/hucvl-stories/introducing-craft-a-benchmark-for-causal-reasoning-about-forces-and-interactions-17f0b95480ba?source=rss----92f1c6b8867---4</link>
            <guid isPermaLink="false">https://medium.com/p/17f0b95480ba</guid>
            <category><![CDATA[dynamic-forces]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[intuitive-physic]]></category>
            <category><![CDATA[visual-question-answering]]></category>
            <category><![CDATA[temporal-reasoning]]></category>
            <dc:creator><![CDATA[Tayfun Ates]]></dc:creator>
            <pubDate>Tue, 08 Dec 2020 19:50:25 GMT</pubDate>
            <atom:updated>2020-12-10T07:40:17.007Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introducing 🧱 CRAFT — A Benchmark for Causal Reasoning About Forces and inTeractions</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrOG7GQm6zNg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrOG7GQm6zNg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrOG7GQm6zNg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8e2a5fbfa03045c19618eade43e1d0d1/href">https://medium.com/media/8e2a5fbfa03045c19618eade43e1d0d1/href</a></iframe><p>Watch the above video for a couple of seconds… Although some of the actions occurred in this video are complex to grasp before happening, some of them can be predicted by us because of our intelligence in understanding the environment and reasoning causal relationships of the events realized by some objects in the scene regardless of our experience for the video. We can estimate how high a marble jumps after it collides with a static ground, or we can estimate how far a marble goes after hit by another, even though we do not know the exact values of dynamic and static object properties. In other words, we do not need accurate information about force dynamics between the objects for our estimations. Our predictions are all based on the approximate guesses about the environment we are observing at the moment. They are not exact calculations based on Newtonian physics! This ability of humans, understanding and making approximate predictions about an environment, consisting of different objects and their interactions, is known as <em>intuitive physics</em> (Kubricht et al., 2017).</p><p>Although recent advances in machine learning systems have reduced the gap between humans and computers, there are some research areas in which artificial systems are not performing as good as humans. The ability of understanding physical actions and reasoning causal relationships can be considered one of these areas that should be studied more by artificial intelligence scientists to be able to close this gap. In the last couple of years, a new research direction has emerged to bring similar capabilities to robots by employing recent discoveries in cognitive science and machine learning. Improving physical reasoning skills, for example by teaching counterfactual situations, can make them understand and estimate what will happen if they perform an action to change the scene without actually performing the it. <a href="https://news.mit.edu/2019/robot-jenga-0130">Jenga playing robot</a> is one of the recent examples in this direction (Fazeli et al., 2019).</p><p>In recent years, AI researchers gained interest to create models which have reasoning capabilities about intuitive physics. While Mottaghi et al. (2016) studied the problem of predicting whether a configuration of 3D objects have a stable configuration or not, Lerer et al. (2016) tried to estimate where objects will fall if the configuration is not stable. Moreover, Janner et al. (2019) developed a model of building a stack configuration by placing object one by one implementing a planning algorithm. Mottaghi et al. (2016) tried to understand motion trajectory of the query objects under certain forces from static images. Very recently, Bakhtin et al. (2019) and Allen et al, (2020) created <a href="https://ai.facebook.com/tools/phyre/">PHYRE</a> and <a href="https://k-r-allen.github.io/tool-games/">Tools</a> benchmarks, respectively, consisting of different 2D environments. The model must reason about the environment and select a specific action by estimating if it solves the task associated with the environment or not.</p><p>In 🧱CRAFT, similar to PHYRE and Tools, we have different 2D environments consisting of static and dynamics objects. However, we also integrate the language component, which is missing in PHYRE and Tools, by proposing our benchmark as a visual question answering task. Our dataset contains virtually generated videos with physical interactions of objects and accompanying questions testing strong reasoning capabilities. Answering CRAFT questions requires detecting objects, understanding and tracking the relations between objects; which can be attributed to causing, enabling, or preventing certain types of events, and lastly, estimating what would have happened if a change occurred in the environment. There are other visual question answering benchmarks testing physical reasonings (Wagner et al., 2018 and Yi et al., 2020), but they lack visual variations unlike PHYRE and Tools. In that sense, CRAFT combines the best of both worlds.</p><h3><strong>The </strong>🧱<strong>CRAFT Dataset</strong></h3><p>In our recent paper, which will be presented at 2nd <a href="https://www.svrhm.com/">Shared Visual Representations in Human &amp; Machine Intelligence</a> (SVRHM) Workshop of <a href="https://nips.cc/Conferences/2020/">NIPS 2020</a> conference, a new visual question answering benchmark for <strong>C</strong>ausal <strong>R</strong>easoning <strong>A</strong>bout <strong>F</strong>orces and in<strong>T</strong>eractions, named CRAFT is introduced. Our first version of CRAFT includes 38K video and question pairs that are generated from 3K videos, automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KN31YNdfzzTnqrbYObiwfw.png" /><figcaption>Example CRAFT questions from a sample scene. There are 10 different scene layouts and 65 different question types which are divided into five distinct categories. Besides having tasks questioning descriptive attributes that possibly require temporal reasoning, CRAFT proposes new challenges including more complex tasks that need single or multiple counterfactual analysis, or understanding object intentions for deep causal reasoning.</figcaption></figure><p>More examples from our benchmark can be found at our project <a href="https://sites.google.com/view/craft-examples/home">website</a>.</p><p><strong>Video Generation: </strong>CRAFT visuals are generated using Box2D (Catto, 2010) physics engine. We created 10 second videos for 10 distinct scene layouts. The resolution of our videos is 256 by 256.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_tCZsyFsdoXqwerSfe5jw.png" /><figcaption>Variations within each scene layout. While generating the videos, the attributes of the static scene elements are sampled from a uniform distribution. Opaque illustrations demonstrate the mean positions whereas transparent drawings show the extreme cases.</figcaption></figure><p><strong>Objects: </strong>Static (<em>ramp, platform, basket, left wall, right wall, ground</em>)and dynamic objects (<em>cube, triangle, circle</em>) are the two main types of objects in CRAFT environments. While the set of dynamic objects has 8 colors (<em>gray, red, blur, green, brown, purple, cyan, yellow</em>), we use <em>black </em>color to draw static objects. Furthermore, CRAFT uses 2 object sizes (small, large).</p><p><strong>Events: </strong>We detect different types of events from our simulations automatically. These events are <em>Start</em>, <em>End</em>, <em>Collision</em>, <em>Touch Start</em>, <em>Touch End</em>, and <em>In Basket</em>. Our scenes contains a single basket (aka. container). is <em>In Basket </em>is<em> </em>triggered when an object enters it. Although our tasks only question collision event, CRAFT wants models to differentiate the difference between collision and touching. CRAFT dataset also contains causal graphs of events inside a simulation for our question generator to extract causal relationships automatically.</p><p><strong>Question Generation: </strong>Our question generator brings dynamism to <a href="https://github.com/facebookresearch/clevr-dataset-gen">CLEVR</a> by Johnson et al. (2017) in order to be able to create questions for video inputs. For each CRAFT task, there is a ground-truth function program that is sufficient to answer to the question at hand. These tasks can be categorized into 5 different categories which are <em>descriptive</em>, <em>counterfactual</em>, <em>cause</em>, <em>enable</em>, and <em>prevent</em>.</p><p><strong>Descriptive Questions: </strong>CRAFT’s descriptive tasks require predicting object attributes, counting the number of objects which satisfy certain conditions. Temporal analysis is also needed to give correct answers to some of descriptive questions. As well as understanding the relationships between dynamic objects, models must infer the relationships between static objects and dynamic objects in 10 different layouts.</p><ul><li><em>How many objects enter the basket before the &lt;size&gt; &lt;color&gt; &lt;shape&gt; enters the basket?</em></li><li><em>How many objects fall to the ground?</em></li><li><em>After falling to the ground, does the &lt;size&gt; &lt;color&gt; &lt;shape&gt; collide with other objects?</em></li></ul><p><strong>Counterfactual Questions: </strong>CRAFT’s counterfactual tasks require understanding what would happen if an object is removed from the scene. Moreover, some counterfactual tasks require making this analysis multiple times removing multiple objects. Models must investigate counterfactual video(s) by predicting them somehow.</p><ul><li><em>Does the &lt;size-2&gt; &lt;color-2&gt; &lt;shape-2&gt; enter the basket, if the &lt;size&gt; &lt;color&gt; &lt;shape&gt; is removed?</em></li><li><em>Does the &lt;size&gt; &lt;color&gt; &lt;shape&gt; fall to the ground, if any other single one of the objects is removed?</em></li></ul><p><strong>Cause, Enable, and Prevent Questions: </strong>CRAFT extends the question categories above, inspired by the theories of Cognitive Science to model how humans learn, experience, and perform physical reasoning for the events occurring in an environment. Some of these theories are mental model theory (Khemlani et al., 2014), causal model theory (Sloman et al., 2009), and force dynamics theory (Wolff and Barbey, 2015), whose main aim is to represent causal relationships, such as cause, enable, and prevent between two entities. While the first entity is called as the affector, the entity that the affector acts on is called as the patient. To our knowledge, CRAFT is the first benchmark which integrates these complex relations in a visual question answering setting to help machine learning models to get close to the human intelligence.</p><p>Besides investigating the counterfactual video(s), model must analyze the original video in order to predict the correct answer for <em>cause</em>, <em>enable</em>, and <em>prevent</em> questions in CRAFT. The affector and the patient objects are explicitly specified inside CRAFT’s questions’ texts. C<em>ause</em>, <em>enable</em>, and <em>prevent</em> questions requiring counting, there are single affectors, but multiple patients for the same question and video pair.</p><ul><li>Does the &lt;size&gt; &lt;color&gt; &lt;shape&gt; enable the &lt;size-2&gt; &lt;color-2&gt; &lt;shape-2&gt; to fall to the ground?</li><li>How many objects does the &lt;size&gt; &lt;color&gt; &lt;shape&gt; prevent from colliding with the basket?</li></ul><h3>Results</h3><p>So far, we have conducted experiments using some simple baseline models. Our first baseline is the <strong>Most Frequent Answer</strong> model (MFA) which extracts the most frequent answer value in the dataset’s training split and then outputs it for all questions encountered. Our seconds baseline is the <strong>Answer Type-Based Most Frequent Answer</strong> model which extracts the most frequent answer value for each answer types such as color, shape, boolean in the same split. It then outputs the corresponding value for all questions. Moreover, our third baseline is an image-blind <strong>LSTM </strong>model which is trained with CRAFT’s textual data only. This model is implemented using famous Long Short-term Memory (Hochreiter and Schmidhuber, 1997). Our last artificial baseline is <strong>LSTM-CNN </strong>model which extract natural language features with a Long Short-term Memory and visual features with Residual Networks (He et al., 2016). Types of visual features we have experimented so far are the first frame features and the last frame features. This model concatenates the visual and textual features and provide an answer accordingly.</p><p>Besides generating some artificial baselines, we also conducted a small experiment with human subjects. We sampled 522 question and video pairs and tested 12 adults. In the experiment, they watched a video and provided an answer for a question and continued with the next question. We obtained 489 question and video pairs answered by the participants.</p><p>The results of the artificial models and the human subjects are provided below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i5BOULKNNi8QJvCK5q2JvQ.png" /><figcaption>Performance of all baseline models on CRAFT training, validation and test splits. We report the average accuracy. C, CF, D, E and P columns stand for Cause, Counterfactual, Descriptive, Enable and Prevent tasks, respectively.</figcaption></figure><p>Although the artificial ones are very simple baselines, there is still a large gap between those and humans. We are now very excited to be working on different state-of-the-art models in order to close this gap as a future work. We also plan to scale up our experiment with human subjects to receive more accurate data and to extend CRAFT in different directions. We welcome any discussions and possible collaborations to broaden the impact of our research project.</p><p><strong>References</strong></p><p>James R. Kubricht, Keith J. Holyoak, and Hongjing Lu. Intuitive physics: Current research and controversies. Trends Cogn. Sci., 21(10):749–759, 2017.</p><p>Nima Fazeli, Miquel Oller, Jiajun Wu, Zheng Wu, Joshua B Tenenbaum, and Alberto Rodriguez. See,feel, act: Hierarchical learning for complex manipulation skills with multisensory fusion. Science Robotics, 4(26), 2019.</p><p>Roozbeh Mottaghi, Hessam Bagherinezhad, Mohammad Rastegari, and Ali Farhadi. Newtonian scene understanding: Unfolding the dynamics of objects in static images. In CVPR, pages 3521–3529,2016.</p><p>Adam Lerer, Sam Gross, and Rob Fergus. Learning physical intuition of block towers by example. ICML, 2016.</p><p>Michael Janner, Sergey Levine, William T. Freeman, Joshua B. Tenenbaum, Chelsea Finn, and Jiajun Wu. Reasoning about physical interactions with object-oriented prediction and planning. In ICLR, 2019.</p><p>Roozbeh Mottaghi, Hessam Bagherinezhad, Mohammad Rastegari, and Ali Farhadi. Newtonian scene understanding: Unfolding the dynamics of objects in static images. In CVPR, pages 3521–3529, 2016.</p><p>Anton Bakhtin, Laurens van der Maaten, Justin Johnson, Laura Gustafson, and Ross Girshick. Phyre: A new benchmark for physical reasoning. In NeurIPS, pages 5082–5093, 2019.</p><p>Smith Kevin, A. Allen, Kelsey R. and Joshua B. Tenenbaum. Rapid trial-and-error learning with simulation supports flexible tool use and physical reasoning.arXiv preprint arXiv:1907.09620,2020.</p><p>Misha Wagner, Hector Basevi, Rakshith Shetty, Wenbin Li, Mateusz Malinowski, Mario Fritz, and Ales Leonardis. Answering visual what-if questions: From actions to predicted scene descriptions.In ECCV Workshops, 2018.</p><p>Kexin Yi, Chuang Gan, Yunzhu Li, Pushmeet Kohli, Jiajun Wu, Antonio Torralba, and Joshua B. Tenenbaum. Clevrer: Collision events for video representation and reasoning. InICLR, 2020.</p><p>Erin Catto. Box2d v2.0.1 user manual. 2010.</p><p>Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C. Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. InCVPR, pages 2901–2910, 2017.</p><p>Sangeet S. Khemlani, Aron K. Barbey, and Philip N. Johnson-Laird. Causal reasoning with mental models.Front. Hum. Neurosci., 8:849, 2014.</p><p>Steven Sloman, Aron K. Barbey, and Jared M. Hotaling. A causal model theory of the meaning of cause, enable, and prevent.Cognitive Science, 33(1):21–50, 2009</p><p>Phillip Wolff and Aron K. Barbey. Causal reasoning with forces.Front. Hum. Neurosci., 9:1, 2015.</p><p>Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Comput., 9(8):1735–1780, 1997.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17f0b95480ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hucvl-stories/introducing-craft-a-benchmark-for-causal-reasoning-about-forces-and-interactions-17f0b95480ba">Introducing 🧱   CRAFT — A Benchmark for Causal Reasoning About Forces and inTeractions</a> was originally published in <a href="https://medium.com/hucvl-stories">HUCVL Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing  RecipeQA — A Challenge Dataset for Multimodal Comprehension of Cooking Recipes]]></title>
            <link>https://medium.com/hucvl-stories/introducing-recipeqa-a-challenge-dataset-for-multimodal-comprehension-of-cooking-recipes-478c46e6a80c?source=rss----92f1c6b8867---4</link>
            <guid isPermaLink="false">https://medium.com/p/478c46e6a80c</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[reading-comprehension]]></category>
            <category><![CDATA[multimodal-reasoning]]></category>
            <category><![CDATA[procedural-knowledge]]></category>
            <dc:creator><![CDATA[Aykut Erdem]]></dc:creator>
            <pubDate>Wed, 05 Sep 2018 03:58:35 GMT</pubDate>
            <atom:updated>2018-09-05T03:58:35.500Z</atom:updated>
            <content:encoded><![CDATA[<p>Reading comprehension aims at building machines that can answer questions related to a given natural language text. As one of the most difficult and attractive problems in artificial intelligence, it requires joint understanding of the question and the context passage, and therefore, an effective reading comprehension model should learn to make sense of what a question asks and which parts of the provided text are most related to the question.</p><p>Although much progress has been made in the last couple of years, there is still a significant performance gap between humans and computers, and researchers are pushing forward our understanding of the limitations and capabilities of the existing approaches by the introduction of more complex datasets. These benchmarks mainly differ from each other by their question-answer formats, <em>e.g.</em> cloze, span selection or multiple choice, the text sources they use such as news articles, fictional stories and Wikipedia articles, and the comprehension skills that they test like temporal reasoning, coreference resolution and multi-step inference (Sugawara et al., 2017).</p><p>Despite the surge of new datasets, some researchers have questioned the difficulty of these benchmarks and showed that from a machine learning perspective the tasks might seem to be much harder than they actually are (Chen et al., 2016; Kaushik and Lipton, 2018). It has also been shown that the state-of-the-art models generally tend to learn some simple surface cues, and hence they can be easily fooled by artificially injecting some text that will match the patterns they expect (Jia and Liang, 2017).</p><h3>The RecipeQA Dataset</h3><p>In <a href="https://arxiv.org/abs/1809.00812">our recent paper</a>, which will be presented at <a href="http://emnlp2018.org/">EMNLP 2018</a> conference, we introduce a new <em>multimodal machine comprehension</em> dataset named <strong>RecipeQA</strong>. Our benchmark is primarily focused on comprehending procedural knowledge in a multimodal setting where cooking recipes with accompanying images are used as testbed. It consists of approximately <strong>20K recipes</strong> from <strong>22 food categories</strong>, and <strong>over 36K questions</strong>.</p><p>Collected from <a href="http://www.instructables.com/">an online how-to web site</a>, each recipe that we employ in RecipeQA includes an arbitrary number of steps containing both textual and visual elements. To our benefit, the nature of the cooking recipes (they all consist of well-defined step-by-step instructions) helped us generate a large set of questions in a fully automatic manner without compromising the quality. Just look at the following recipe to see how structured they can get!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dL1XeeWUbFV2KwYzTV4Ejw.png" /><figcaption>A recipe of `Creamy Coconut Chickpea Curry’ with 9 steps.</figcaption></figure><p>RecipeQA differs from existing reading comprehension datasets in a number of important ways. First, it leverages data from real natural language found online. Second, the use of the visual modality makes RecipeQA less gameable, preventing questions from easily answerable through shallow signals. Lastly, it involves a large number of images which are taken by ordinary people in unconstrained environments as opposed to the cases in other multimodal benchmarks, for instance, carefully drawn diagrams or textbook images in <a href="http://data.allenai.org/tqa/">TQA</a> (Kembhavi et al., 2017), comic strips in <a href="https://github.com/miyyer/comics">COMICS</a> (Iyyer et al., 2017) or edited videos in <a href="http://movieqa.cs.toronto.edu/">MovieQA</a> (Tapaswi et al., 2016).</p><p>In particular, RecipeQA contains the following three core challenges unique to the cooking recipes and the multimodal aspects of the questions:</p><ol><li>RecipeQA requires identifying and linking entities from different modalities to possess effective and visually grounded reasoning skills. At the present, multi-modality has been explored only to a limited extent where most of the existing multimodal models mostly consider very simple strategies when integrating different modalities.</li><li>To succeed in RecipeQA, a comprehension system needs to exploit common sense knowledge while working towards an answer. The questions in RecipeQA need identify entities (<em>e.g.</em> tomato) — building conceptual associations between parts of images and certain sections of the recipe, and track the states of these entities (<em>e.g.</em> roasted) in time.</li><li>RecipeQA presents several different tasks specifically designed for cooking recipes. Described in detail below, each of these tasks evaluates a specific comprehension skill and handling all these multiple tasks within a single model needs a multitask learning setup.</li></ol><h3>Comprehension Tasks in RecipeQA</h3><p>The first comprehension task, which we formulate as a <strong>Textual Cloze</strong> task, is in the same vein as other existing reading comprehension benchmarks, <em>e.g.</em> (Hermann et al., 2015; Hill et al., 2016), with the only difference being it is <em>visually grounded</em>. That is, the input passage additionally includes zero or more images aligned with each step of the recipe. Here, we form cloze questions from the titles of the steps where candidates are chosen adversarially by following a simple heuristic.</p><p>Let’s look at a sample textual cloze style question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q1JQS4KxnipCnjJOsN_wVw.png" /><figcaption>A sample <strong>textual cloze</strong> style question from RecipeQA.</figcaption></figure><p>In contrast to textual cloze task, our other three comprehension tasks, namely <strong>visual cloze</strong>, <strong>visual coherence</strong>, and <strong>visual ordering</strong>, all take the titles and descriptions of the recipe steps as the context passage, and the questions and answers involve only the visual modality. To succeed in these tasks, an a comprehension system needs to not only understand the relations between candidate steps, but also align and relate different modalities existing in the context and the answers, or understand the temporal occurrence of a sequence of recipe steps and infer temporal relations between candidates.</p><p>For example, let’s consider the following ‘Bacon Sushi’ recipe as the input context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dd8x8dxAizza8YHDMeaLdw.png" /><figcaption>A recipe of `Bacon Suchi’ with 7 steps.</figcaption></figure><p>A <strong>visual cloze</strong> question tests a skill similar to that of textual cloze task with the difference that the missing information in this task reside in the visual domain. Here is an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VnNaYIeNFzXq4NDJheWL1Q.png" /><figcaption>A sample <strong>visual cloze</strong> style question from RecipeQA.</figcaption></figure><p>A <strong>visual coherence</strong> question, on the other hand, tests the capability to identify an incoherent image in an ordered set of images. Here is a sample visual coherence style question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C5KexFFavCzYwZepeA4y7Q.png" /><figcaption>A sample <strong>visual coherence</strong> style question from RecipeQA.</figcaption></figure><p>Lastly, a<strong> visual ordering</strong> questions test the ability of a system in finding a correctly ordered sequence given a jumbled set of representative images of a recipe. And here is one such question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QjRPDWbcR546b84H1CSHsg.png" /><figcaption>A sample <strong>visual ordering</strong> style question from RecipeQA.</figcaption></figure><h3>Results</h3><p>So far, we have only implemented some baselines. As a simple baseline, we adapt the <em>Hasty Student</em> model described in (Tapaswi et al., 2016), which does not consider the provided context and simply answers questions by only looking at the similarities or the dissimilarities between the elements in questions and the candidate answers. For our neural baselines, we modify the <em>Impatient Reader </em>in (Hermann et al., 2015), which is a neural model originally developed for the cloze style text comprehension questions.</p><p>The results that we obtained with these methods demonstrate the hardness of the tasks. We believe that RecipeQA will serve as a challenging testbed and an ideal benchmark for evaluating procedural knowledge in a multimodal setting. Here we should also note that the reason why the scores of the Hasty Student is way better than neural models is that candidate answers were selected in a similar way in generating the questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vh06paBN4B9nQWro3ZS38w.png" /><figcaption>Results of the baseline methods on the test set of RecipeQA.</figcaption></figure><p>Clearly, what is missing in the above table is the human performance scores. We plan to perform experiments on humans to evaluate the difficulty of questions. Moreover, we expect to extend the baseline results with more powerful models. Right now, we are working on <em>IR based QA</em> <em>approaches</em>, which employ visual semantic embeddings for cross-modal retrieval. And of course, we encourage researchers to contribute their ideas to RecipeQA.</p><p>You can read our paper, explore the dataset, check out out the leaderboard at our project website at <a href="https://hucvl.github.io/recipeqa">https://hucvl.github.io/recipeqa</a>.</p><h4>References</h4><p>Danqi Chen, Jason Bolton, and Christopher D Manning. 2016. A thorough examination of the CNN/Daily Mail reading comprehension task. In ACL.</p><p>Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. 2015. Teaching machines to read and comprehend. In NIPS.</p><p>Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. 2016. The Goldilocks principle: Reading children’s books with explicit memory representations. In ICLR.</p><p>Mohit Iyyer, Varun Manjunatha, Anupam Guha, Yogarshi Vyas, Jordan Boyd-Graber, Hal Daumé III, and Larry Davis. 2017. The amazing mysteries of the gutter: Drawing inferences between panels in comic book narratives. In CVPR.</p><p>Robin Jia and Percy Liang. 2017. Adversarial examples for evaluating reading comprehension systems. In EMNLP.</p><p>Divyansh Kaushik and Zachary C. Lipton. 2018. How much *reading* does reading comprehension require? A critical investigation of popular benchmarks. In EMNLP.</p><p>Aniruddha Kembhavi, Minjoon Seo, Dustin Schwenk, Jonghyun Choi, Ali Farhadi, and Hannaneh Hajishirzi. 2017. Are you smarter than a sixth grader? Textbook question answering for multimodal machine comprehension. In CVPR.</p><p>Saku Sugawara, Hikaru Yokono, and Akiko Aizawa. 2017. Prerequisite skills for reading comprehension: Multi-Perspective Analysis of MCTest Datasets and Systems. In AAAI.</p><p>Makarand Tapaswi, Yukun Zhu, Rainer Stiefelhagen, Antonio Torralba, Raquel Urtasun, and Sanja Fidler. 2016. MovieQA: Understanding stories in movies through question-answering. In CVPR.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=478c46e6a80c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hucvl-stories/introducing-recipeqa-a-challenge-dataset-for-multimodal-comprehension-of-cooking-recipes-478c46e6a80c">Introducing 🥘 RecipeQA — A Challenge Dataset for Multimodal Comprehension of Cooking Recipes</a> was originally published in <a href="https://medium.com/hucvl-stories">HUCVL Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HUCVL Presentations at ICCV 2017]]></title>
            <link>https://medium.com/hucvl-stories/hucvl-presentations-at-iccv-2017-680d9039af37?source=rss----92f1c6b8867---4</link>
            <guid isPermaLink="false">https://medium.com/p/680d9039af37</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[iccv-2017]]></category>
            <dc:creator><![CDATA[HUCVL]]></dc:creator>
            <pubDate>Mon, 09 Oct 2017 16:38:11 GMT</pubDate>
            <atom:updated>2017-10-09T18:00:42.757Z</atom:updated>
            <content:encoded><![CDATA[<p>There will be one conference paper and 3 workshop papers co-authored by HUCVL members at <a href="http://iccv2017.thecvf.com/">ICCV 2017</a>, which will be held in Venice, Italy from October 22–29, 2017.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1d6ZGS-Ujv5BpzfY6YyZHQ.jpeg" /><figcaption>Image credit: <a href="https://unsplash.com/photos/QnQmw0JfQr8">https://unsplash.com/photos/QnQmw0JfQr8</a></figcaption></figure><h3>Main Conference</h3><h4><a href="https://arxiv.org/pdf/1705.01734.pdf">Attributes2Classname: A discriminative model for attribute-based unsupervised zero-shot learning</a></h4><p><strong>Authors: </strong><em>Berkan Demirel</em>, Ramazan Gokberk Cinbis and <em>Nazli Ikizler-Cinbis<br></em><strong>Time:</strong><em> </em>Tuesday, October 24 15:00–17:00 Poster Session P2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xZ62L2MfCtCWCxoPXzZQWg.jpeg" /></figure><p>We propose a novel approach for unsupervised zero-shot learning (ZSL) of classes based on their names. Most existing unsupervised ZSL methods aim to learn a model for directly comparing image features and class names. However, this proves to be a difficult task due to dominance of non-visual semantics in underlying vector-space embeddings of class names. To address this issue, we discriminatively learn a word representation such that the similarities between class and combination of attribute names fall in line with the visual similarity. Contrary to the traditional zero-shot learning approaches that are built upon attribute presence, our approach bypasses the laborious attribute-class relation annotations for unseen classes. In addition, our proposed approach renders text-only training possible, hence, the training can be augmented without the need to collect additional image data. The experimental results show that our method yields state-of-the-art results for unsupervised ZSL in three benchmark datasets.</p><h3><strong>Workshops</strong></h3><h4><a href="https://web.cs.hacettepe.edu.tr/~aykut/papers/uavision17.pdf">Feature-Based Efficient Moving Object Detection for Low-Altitude Aerial Platforms</a></h4><p><strong>Authors: </strong>Kamil Berker Logoglu, Hazal Lezki, Mehmet Kerim Yücel, Ahu Ozturk, Alper Küçükkömürler, Batuhan Karagoz, <em>Erkut Erdem </em>and <em>Aykut Erdem</em><br><strong>Workshop:</strong> <a href="https://sites.google.com/site/uavision2017/">1st International Workshop on Vision for UAVs</a><br><strong>Time:</strong> Saturday, October 28 17:10–17:25</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*znOIz0SevQDKZ_eSdm_IqA.jpeg" /></figure><p>Moving Object Detection is one of the integral tasks for aerial reconnaissance and surveillance applications. Despite the problem’s rising potential due to increasing availability of unmanned aerial vehicles, moving object detection suffers from a lack of widely-accepted, correctly labelled dataset that would facilitate a robust evaluation of the techniques published by the community. Towards this end, we compile a new dataset by manually annotating several sequences from VIVID and UAV123 datasets for moving object detection. We also propose a feature-based, efficient pipeline that is optimized for near real-time performance on GPU-based embedded SoMs (system on module). We evaluate our pipeline on this extended dataset for low altitude moving object detection. Ground-truth annotations are made publicly available to the community to foster further research in moving object detection field.</p><h4><a href="https://drive.google.com/file/d/0B9F0O2Zp_oENSkpPYmtjV29qaUE/view">Spatio-Temporal Saliency Networks for Dynamic Saliency Prediction</a></h4><p><strong>Authors: </strong><em>Cagdas Bak</em>, <em>Aysun Kocak</em>, <em>Aykut Erdem</em> and <em>Erkut Erdem</em><br><strong>Workshop:</strong> <a href="https://sites.google.com/site/mbcc2017w/">Mutual Benefits of Cognitive and Computer Vision</a><br><strong>Time:</strong> Sunday, October 29 10:00–11:00</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*z9BQNVgXWbHbgtHVaK9Tow.jpeg" /></figure><p>Predicting where human looks in images has gained a significant popularity in recent years. Compared to the vast number of saliency methods for static images, dynamic saliency estimation remains relatively unexplored. In this work, we propose deep saliency networks based on the two-stream architecture that processes both spatial and temporal information to predict saliency in videos. In particular, we investigate several fusion strategies to combine information coming from spatial and temporal streams and analyze their effectiveness for dynamic saliency prediction. Moreover, to improve the generalization of the saliency networks, we introduce a novel and cognitively grounded data augmentation technique. Experimental results on the DIEM, UCF-Sports datasets show that the proposed approach is able to model human attention mechanism behavior better than the competing methods, achieving state-of-the-art results.</p><h4><a href="http://aclweb.org/anthology/E17-1019">Re-evaluating automatic metrics for image captioning</a>*</h4><p><strong>Authors: </strong><em>Mert Kilickaya</em>, <em>Aykut Erdem</em>, <em>Nazli Ikizler-Cinbis</em> and <em>Erkut Erdem</em><br><strong>Workshop: </strong><a href="https://sites.google.com/site/clvlworkshopiccv17/">2nd Workshop on Closing the Loop Between Vision and Language</a><br><strong>Time: </strong>Sunday, October 29</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDezeUZWcCKPNb6gRFUuJA.png" /></figure><p>The task of generating natural language descriptions from images has received a lot of attention in recent years. Consequently, it is becoming increasingly important to evaluate such image captioning approaches in an automatic manner. In this paper, we provide an in-depth evaluation of the existing image captioning metrics through a series of carefully designed experiments. Moreover, we explore the utilization of the recently proposed Word Mover’s Distance (WMD) document metric for the purpose of image captioning. Our findings outline the differences and/or similarities between metrics and their relative robustness by means of extensive correlation, accuracy and distraction based evaluations. Our results also demonstrate that WMD provides strong advantages over other metrics.</p><p>* First presented as a long paper at <a href="http://eacl2017.org/">EACL 2017</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=680d9039af37" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hucvl-stories/hucvl-presentations-at-iccv-2017-680d9039af37">HUCVL Presentations at ICCV 2017</a> was originally published in <a href="https://medium.com/hucvl-stories">HUCVL Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HUCVL at SIU 2017]]></title>
            <link>https://medium.com/hucvl-stories/hucvl-at-siu-2017-ddcc240e4ed1?source=rss----92f1c6b8867---4</link>
            <guid isPermaLink="false">https://medium.com/p/ddcc240e4ed1</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[HUCVL]]></dc:creator>
            <pubDate>Thu, 11 May 2017 08:24:36 GMT</pubDate>
            <atom:updated>2017-05-11T07:10:14.363Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*FfqDs8vojR69TVejWVUokw.png" /></figure><p>From May 15–18, Hacettepe University Computer Vision Lab (HUCVL) will be attending <a href="http://www.siu2017.org/tr/">25th IEEE Conference on Signal Processing and Communications Applications (SIU 2017)</a>, a major national annual conference on signal processing, pattern recognition and computer vision.</p><p>At the conference, Aykut Erdem, Erkut Erdem and Levent Karacan will be giving a short tutorial on<em> adversarial learning</em> and <em>generative adversarial networks, </em>and there will be 9 oral paper presentations from our lab:</p><ul><li><strong>Action Recognition with Prototypes </strong>Özge Yalçınkaya; Pınar Duygulu</li><li><strong>Action Recognition with Skeletal Volume and Deep Learning</strong> Ali Seydi Keçeli; Aydın Kaya; Ahmet Burak Can</li><li><strong>Adjusting Transient Attributes of Outdoor Images using Generative Adversarial Networks </strong>Levent Karacan; Aykut Erdem; Erkut Erdem</li><li><strong>Anomaly Detection Using Improved Background Subtraction </strong>Yunus Can Bilge; Fikret Kaya; Nazlı İkizler Cinbiş; Ufuk Çelikcan; Hayri Sever</li><li><strong>Could We Create A Training Set For Image Captioning Using Automatic Translation? </strong>Nermin Samet; Samet Hiçsönmez; Pınar Duygulu; Emre Akbaş</li><li><strong>Investigation of Transfer Learning on Pulmonary Nodule Characteristics </strong>Aydın Kaya; Ali Seydi Keçeli; Ahmet Burak Can</li><li><strong>Recognition of Tennis Actions Using a Depth Camera </strong>Bilal Öztürk; Pınar Duygulu Şahin</li><li><strong>Turkish Cuisine: A Benchmark Dataset with Turkish Meals for Food Recognition </strong>Cem Güngör; Fatih Baltacı; Aykut Erdem; Erkut Erdem</li><li><strong>Using Deep Multiple Instance Learning for Action Recognition in Still Images </strong>Cagdas Bas; Cemil Zalluhoglu; Nazli Ikizler-Cinbis</li></ul><p>See you all next week at Antalya …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddcc240e4ed1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hucvl-stories/hucvl-at-siu-2017-ddcc240e4ed1">HUCVL at SIU 2017</a> was originally published in <a href="https://medium.com/hucvl-stories">HUCVL Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up a Machine for Deep Learning]]></title>
            <link>https://medium.com/hucvl-stories/setting-up-a-machine-for-deep-learning-f9a222bc457b?source=rss----92f1c6b8867---4</link>
            <guid isPermaLink="false">https://medium.com/p/f9a222bc457b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Semih Yagcioglu]]></dc:creator>
            <pubDate>Sat, 29 Apr 2017 05:49:16 GMT</pubDate>
            <atom:updated>2017-04-29T05:49:15.983Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeVjbqLeu4nK_OEio2BoJw.jpeg" /></figure><p>Hi there! Here is a simple tutorial to get you started with developing Deep Learning projects. Working on deep learning might be quite intimidating — especially, where to start. I have spent plenty of my time building and setting up machines for Deep Learning. But each time I felt like I needed a simple reference that I could follow. I tried to create that simple reference and share it with you.</p><blockquote>What one fool can do, another can. — Ancient Simian Proverb</blockquote><p>Getting your hands dirty is the best way to learn, as is also the case for Deep Learning. So, I always disliked the things that get in the way. Such as making configurations, and setting things up. There is a great barrier for getting started with working on Deep Learning projects. Besides, we should be <strong>focusing on the ideas</strong>, not the environment. This is very important especially for research.</p><p>Having an idea is some thing, but you have to prove it and you need solid results for that. We should be able to go from the idea to results as easy as possible. We may fail but we will be able to re-evaluate our idea and finally see whether it works or not.</p><p>Now, let’s get started. We will configure a machine from the ground up for Deep Learning, and in the end run a simple neural network on it.</p><h3><strong>The Machine</strong></h3><p>I had a SuperMicro computer which had 3 Nvidia GTX 1080 GPUs with Pascal architecture. This workstation came with all the hardware installed such as GPUs and hard disks. So, there was no need for extra installation. Yet, there was one free slot so I installed another GTX 1080 GPU on it, but it doesn’t matter how many GPUs you have. As long as you have at least one GPU, this tutorial will get you to the end. We will be using Ubuntu 16.04. But I won’t go into detail how to install it as we will focus more on building our first deep neural network from scratch.</p><h3><strong>The Basics</strong></h3><p>Matrix multiplication is important. Especially if you are working on deep learning, almost everything relies on matrix multiplications.</p><p>So, let’s start with the basics, and build on top of it. BLAS substantially improves matrix multiplications. Here, we will use OpenBLAS and make some tests with NumPy. Now open the terminal (you can do this by pressing Ctrl + Alt + T at the same time) and paste the following lines one at a time (without copying the $) by pressing Ctrl + Shift + V into the terminal.</p><pre>$ sudo apt-get update<br>$ sudo apt-get upgrade<br>$ sudo apt-get install build-essential cmake cmake g++ gfortran unzip wget pkg-config openjdk-8-jdk git python-dev python3-dev python-pip python3-pip swig python-wheel libcurl3-dev<br>$ sudo apt-get install libopenblas-dev liblapack-dev<br>$ sudo apt-get install python-numpy python3-numpy</pre><p>We installed a few packages and NumPy with OpenBLAS support, which would make things a bit faster when we run our network. Now let’s see if we did everything right.</p><p>Here is a <a href="https://gist.github.com/semihyagcioglu/d1cabf7e284841460beb27bb4efd2428">simple script</a> to run some tests. You can as well copy it from below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1c07a1695f3856a8f2891c4357e57fb/href">https://medium.com/media/c1c07a1695f3856a8f2891c4357e57fb/href</a></iframe><p>You need to save it to your computer, in your working directory. Run the following command to see where your working directory is.</p><pre>$ pwd</pre><p>This should print the path you are currently working on. Once you save the test script in this directory, we can start running simple tests.</p><pre>$ OMP_NUM_THREADS=1 python test_numpy_so_bad.py</pre><p>The above command should print a few results like the following. But we are not looking for exact numbers.</p><pre>NumPy Version: 1.11.0<br>Max int: 9223372036854775807</pre><pre>BLAS info:<br> * libraries [‘openblas’, ‘openblas’]<br> * library_dirs [‘/usr/lib’]<br> * define_macros [(‘HAVE_CBLAS’, None)]<br> * language c</pre><pre>Dot product of two (1000,1000) matrices took 82.5 ms<br>Dot product of two (2000) dimensional vectors took 2.62 us<br>SVD of (1000,2000) matrix took 1.194 s<br>Eigen decomposion of (1000,1000) matrix took 1.370 s</pre><p>Let’s run the same experiment, this time with more threads.</p><pre>$ OMP_NUM_THREADS=8 python test_numpy_so_bad.py</pre><p>So far so good. The results should take less time compared to our previous test.</p><pre>NumPy Version: 1.11.0<br>Max int: 9223372036854775807</pre><pre>BLAS info:<br> * libraries [‘openblas’, ‘openblas’]<br> * library_dirs [‘/usr/lib’]<br> * define_macros [(‘HAVE_CBLAS’, None)]<br> * language c</pre><pre>Dot product of two (1000,1000) matrices took 28.4 ms<br>Dot product of two (2000) dimensional vectors took 2.59 us<br>SVD of (1000,2000) matrix took 0.698 s<br>Eigen decomposion of (1000,1000) matrix took 1.219 s</pre><p>Now that we have the basic setup, we can move forward to making use of our GPU(s). We haven’t talked much about it before but GPUs are a lot more powerful compared to CPUs as they have many cores. Thus, it is very important to configure your GPUs to get the full performance.</p><h3><strong>Nvidia Drivers</strong></h3><p>We must have the latest Nvidia drivers installed. But before that let’s first find our graphic card model(s).</p><pre>$ lspci | grep -i nvidia</pre><p>This should list the model(s) of your graphic card(s). Go to the <a href="http://www.geforce.com/drivers">Nvidia driver website</a> and find the<strong> latest stable drivers</strong> for your graphics card model(s) based on your OS. Next step is to add the “Proprietary GPU Drivers” PPA repository. At the time of this writing, the latest stable driver version for my GPU(s) was 378. But, for you it might be different from this version. If this is the case, you should replace the <strong>378</strong> in the following commands with the newer version.</p><pre>$ sudo add-apt-repository ppa:graphics-drivers/ppa<br>$ sudo apt-get update<br>$ sudo apt-get install nvidia-<strong>378</strong></pre><p>We should now restart our computer. If we did everything right, the computer should boot up fine.</p><pre>$ sudo shutdown -r now</pre><p>We are almost there, but let’s make sure if we set up our Nvidia Drivers right. Now let’s run the following command in the terminal.</p><pre>$ cat /proc/driver/nvidia/version</pre><p>Here we should see the correct version of the driver we intended to install.</p><h3><strong>CUDA</strong></h3><p>CUDA enables running our models on the GPUs, so we need to install it. Otherwise, we would restrict our models to run only on CPUs. Now go to <a href="https://developer.nvidia.com/cuda-toolkit">CUDA web site</a> and download the correct version of CUDA based on your system. But don’t forget to come back here, we are not finished yet.</p><p>Now, the name of the file should look like the following. But feel free to change it based on your settings, which I marked as <strong>bold</strong>.</p><pre>$ sudo dpkg -i <strong>cuda-repo-ubuntu1604*amd64.deb</strong><br>$ sudo apt-get update<br>$ sudo apt-get install cuda</pre><p>If we could install CUDA right, there should be a directory in the following path:</p><pre>/usr/local/cuda</pre><p>We should now add CUDA to the environment variables.</p><pre>$ echo &#39;export PATH=/usr/local/cuda/bin:$PATH&#39; &gt;&gt; ~/.bashrc<br>$ echo &#39;export LD_LIBRARY_PATH=&quot;$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64&quot;&#39; &gt;&gt; ~/.bashrc<br>$ echo &#39;export CUDA_HOME=/usr/local/cuda&#39; &gt;&gt; ~/.bashrc<br>$ source ~/.bashrc</pre><p>Let’s make sure that everything is correct before we move forward.</p><pre>$ nvcc -V</pre><p>This should print out the CUDA compiler driver information and its version. Let’s restart our machine one more time.</p><pre>$ sudo shutdown -r now</pre><h3><strong>cuDNN</strong></h3><p>So far we finished installing CUDA. Now we are going to install cuDNN. Which is a library to speed up Deep Learning frameworks, such as Theano and Tensorflow. Thus, if you skip this step it is not the end of the world. But it will help us a lot once we get to train very deep networks, so let’s stick for a while and complete the following steps. Besides, we don’t have much left to do.</p><p>First, we should register for <a href="https://developer.nvidia.com/rdp/cudnn-download">Nvidia’s Accelerated Computing Developer Program</a>. Once you register, you should login and download the latest cuDNN. Current version v5.1 but you can change it to a newer version which I marked as <strong>bold</strong> in the following line. Next step is to extract the cuDNN contents into /usr/local/cuda and for this to happen we execute the following commands.</p><pre>$ sudo tar -xzvf <strong>cudnn-8.0-linux-x64-v5.1.tgz</strong><br>$ sudo cp -P cuda/include/cudnn.h /usr/local/cuda/include<br>$ sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64<br>$ sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*</pre><p>We are now done. Let’s see how we did.</p><pre>$ nvidia-smi</pre><p>You should now be able to see all your GPUs here. If not, then something might have gone wrong. By the way, this command is very handy incase you want to check the performance metrics of your GPU(s).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*nGmDxUS7bc5v4U73mzSgkg.png" /></figure><p>Here, I can see all my GPUs which means we can now move forward.</p><h3><strong>virtualenv</strong></h3><p><a href="http://www.virtualenv.org/">virtualenv</a> is a tool which we will use to create isolated Python environments. It allows many Python projects to coexist in the same machine.</p><pre>$ sudo pip install virtualenv</pre><h3><strong>virtualenvwrapper</strong></h3><p><a href="https://virtualenvwrapper.readthedocs.io/">virtualenvwrapper</a> is a set of extensions to the virtualenv tool. It makes working with virtual environments very easy.</p><pre>$ sudo pip install virtualenvwrapper</pre><p>Now lets create a directory for our virtual environments.</p><pre>$ cd ~/<br>$ mkdir Envs</pre><p>We are now going to update our bash file again.</p><pre>$ echo &#39;export WORKON_HOME=$HOME/.virtualenvs&#39; &gt;&gt; ~/.bashrc<br>$ echo &#39;export PROJECT_HOME=$HOME/Envs&#39; &gt;&gt; ~/.bashrc<br>$ source /usr/local/bin/virtualenvwrapper.sh</pre><p>Let’s create a virtual environment and name it <strong>playground</strong>. As it will be our playground :D You can create more environments and name them as you wish.</p><pre>$ mkvirtualenv playground</pre><p>Anytime you want to work on an environment, type the below command in the terminal. Of course if the name of the environment is different, then you should be using it.</p><pre>$ workon <strong>playground</strong></pre><h3><strong>Tensorflow</strong></h3><p>It is easy to install Tensorflow. Let’s first try to install it via pip.</p><pre>$ pip install --upgrade tensorflow-gpu</pre><p>If this fails, you can go to <a href="https://www.tensorflow.org/install/">Tensorflow website</a> and select the correct binary for your system. In this case we select the GPU enabled Ubuntu version. For my configuration it is Ubuntu/Linux 64-bit, GPU enabled, Python 2.7 but yours might be different. Make sure you select the latest version from the Tensorflow website.</p><pre>$ pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.1.0-cp27-none-linux_x86_64.whl</pre><p>After the installation, let’s make sure everything is OK.</p><pre>$ python<br>&gt;&gt;&gt; import tensorflow<br>&gt;&gt;&gt; tf.__version__<br>&gt;&gt;&gt; exit()</pre><p>You can also test it with <a href="https://gist.github.com/semihyagcioglu/7bba93a225909dd9939925c48f581a45">this script</a> or copy it from below as well to see the tasks run on GPU(s).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e7932f23ddf30eb8c89984681b714d4/href">https://medium.com/media/3e7932f23ddf30eb8c89984681b714d4/href</a></iframe><h3><strong>Keras</strong></h3><p>Keras is a high-level neural networks library written in Python. You can run your code in Keras on top of either <a href="https://github.com/tensorflow/tensorflow">TensorFlow</a> or <a href="https://github.com/Theano/Theano">Theano</a>. Which makes Keras a a good choice for Deep Learning models. So let’s install a few dependencies first.</p><pre>$ pip install numpy scipy<br>$ pip install scikit-learn<br>$ pip install pillow<br>$ pip install h5py</pre><p>Now let’s install Keras via pip.</p><pre>$ pip install keras</pre><p>That’s actually it. But let’s make sure everything is OK. This time for Keras.</p><pre>$ python<br>&gt;&gt;&gt; import keras<br>&gt;&gt;&gt; keras.__version__<br>&gt;&gt;&gt; exit()</pre><p>This should print the Keras version and the backend Keras uses. We can change the backend from the configuration file of Keras incase it is not set to Tensorflow by default.</p><pre>$ gedit ~/.keras/keras.json</pre><p>The contents of this file should look something like this for Tensorflow. If this is not the case you can change it based on the configuration below and save the file.</p><pre>{<br>    &quot;image_dim_ordering&quot;: &quot;tf&quot;, <br>    &quot;epsilon&quot;: 1e-07, <br>    &quot;floatx&quot;: &quot;float32&quot;, <br>    &quot;backend&quot;: &quot;tensorflow&quot;<br>}</pre><h3><strong>The Network</strong></h3><p>Now that we set up our machine for deep learning let’s build a simple neural network to solve the famous XOR problem. You can <a href="https://gist.github.com/semihyagcioglu/ba151a3781b401eee0a6a41d4c343cd3">download the script from here</a> or copy it from below as well.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb510c5961307b73cdd1432dfd4e2021/href">https://medium.com/media/eb510c5961307b73cdd1432dfd4e2021/href</a></iframe><pre>$ python keras_xor.py</pre><p>This will create a neural network to solve the XOR problem and start training it for 1000 epochs. You can track the performance of the GPU(s) with the following command. But make sure to do this in another terminal window, which will refresh the screen for every second.</p><pre>$ watch -n1 nvidia-smi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*LACsZROd8pNwOKAd0hcphw.png" /></figure><h3><strong>Conclusion</strong></h3><p>This is the end of our tutorial. You can now build more complex networks and start experimenting with them using this set up. Take care!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9a222bc457b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hucvl-stories/setting-up-a-machine-for-deep-learning-f9a222bc457b">Setting Up a Machine for Deep Learning</a> was originally published in <a href="https://medium.com/hucvl-stories">HUCVL Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HUCVL at SIU 2016]]></title>
            <link>https://medium.com/hucvl-stories/hucvl-at-siu-2016-f5e3ca6372ea?source=rss----92f1c6b8867---4</link>
            <guid isPermaLink="false">https://medium.com/p/f5e3ca6372ea</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[HUCVL]]></dc:creator>
            <pubDate>Wed, 04 May 2016 14:04:24 GMT</pubDate>
            <atom:updated>2016-05-04T14:09:55.930Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*3Nom6zm0oYmzSjV_oA3EKQ.png" /></figure><p>From May 16–19, Hacettepe University Computer Vision Lab (HUCVL) will be attending <a href="http://siu2016.beun.edu.tr/eng/">24th IEEE Conference on Signal Processing and Communications Applications (SIU 2016)</a>, a major national annual conference on signal processing, pattern recognition and computer vision.</p><p>At the conference, we will be giving a short tutorial on<em> deep learning</em>, which will be on May 16th between 11:00 – 12:30. Moreover, we will be presenting 6 oral papers, some of which are chosen as runner-ups for Alper Atalay Best Student Paper Award. The descriptions of these papers can be found below.</p><p>See you all at Zonguldak in two weeks time…</p><h4><a href="http://web.cs.hacettepe.edu.tr/~aykut/papers/siu2016_1.pdf">Clustering Motion Trajectories via Dominant Sets</a> (Runner-Up for <strong>Alper Atalay Best Student Paper Award)</strong></h4><p><strong>Authors: </strong>Cagdas Bak, Aykut Erdem, Erkut Erdem<br><strong>Abstract — </strong>In<strong> </strong>recent years, video surveillance systems stand out as an important research topic in the field of computer vision. Studies in this context usually focus on detecting common motion patterns in video sequences, determining unexpected motions or predicting possible future events. Performance of these studies directly depends on the performances of the pre-processing steps. In this paper, we present an approach to extract motion trajectories and then to cluster those trajectories that have similar characteristics. The proposed approach can be considered as a preliminary step for complex surveillance systems. Unlike the existing studies in the literature, the proposed method both produces more accurate results for determining common motion patterns and yields successful results on long video sequences in consequence of used clustering algorithm. The effectiveness and the performance of the proposed approach is validated on VIRAT dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WuE7A0-7C7FLNqQZaYtFtA.png" /></figure><h4><a href="http://web.cs.hacettepe.edu.tr/~aykut/papers/siu2016_2.pdf">Dominant Sets Based Analysis of Human Crowds</a></h4><p><strong>Authors: </strong>Burcak Asal, Aykut Erdem, Erkut Erdem<br>A<strong>bstract — D</strong>ue to recent advances in new camera technologies and the Internet, millions of videos can be easily accessed from any place at any time. A significant amount of these videos are for surveillance, and include actors such as humans and vehicles performing different actions in dynamic scenes. The goal of this study is to analyze human crowd motions in videos. More specifically, moving humans are tracked throughout a video sequence, and the collective crowd motions are then clustered using path similarities via the Dominant Sets method. Moreover, this clustering result can be used to predict the coherency of the motion as a scalar value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*4_nVCIc9qvODOMX9uukE1g.png" /></figure><h4><a href="http://web.cs.hacettepe.edu.tr/~aykut/papers/siu2016_3.pdf">Summarizing Personal Image Collections with Intrinsic Properties</a> (Runner-Up for Alper Atalay Best Student Paper Award)</h4><p><strong>Authors: </strong>Goksu Erdogan, Bora Celikkale, Aykut Erdem, Erkut Erdem<br><strong>Abstract — </strong>Visual summarization problems are complex intrinsically. Because definition of a summary have some ambiguity and only one correct summary does not exist. A good summary consists of two main properties in general which are (i) coverage and (ii) diversity. A good summary should have high coverage. On the other words summary should consist of key events and concepts for given set. At the same time a good summary should also be diverse, i.e it should not consist of similar events and concepts. In addition to these two main properties, intrinsic properties such as quality, emotions, popularity of images increase in importance depending on prevalence of social media applications. We proposed an automatic summarization method which considers intrinsic properties of images in addition to coverage and diversity for personal image collection summarization. This developed method is compared with summaries of different personal image collections which are collected by crowdsourcing and it is observed that the taking intrinsic properties into account improves the summaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJjxNRsOBqDymHj8P_rJnQ.png" /></figure><h4><a href="http://web.cs.hacettepe.edu.tr/~aykut/papers/siu16_tasviret.pdf">TasvirEt: A Benchmark Dataset for Automatic Turkish Description Generation from Images</a> (Runner-Up for Alper Atalay Best Student Paper Award)</h4><p><strong>Authors:</strong> Mesut Erhan Unal, Begum Citamak, Semih Yagcioglu, Aykut Erdem, Erkut Erdem, Nazli Ikizler Cinbis, Ruket Cakici<br><strong>Abstract — </strong>Automatically describing images with natural sentences is considered to be a challenging research problem that has recently been explored. Although the number of methods proposed to solve this problem increases over time, since the datasets used commonly in this field contain only English descriptions, the studies have mostly been limited to single language, namely English. In this study,for the first time in the literature, a new dataset is proposed which enables generating Turkish descriptions from images, which can be used as a benchmark for this purpose. Furthermore, two approaches are proposed, again for the first time in the literature, for image captioning in Turkish with the dataset we named as TasvirEt. Our findings indicate that the new Turkish dataset and the approaches used here can be successfully used for automatically describing images in Turkish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNGFKL6LoxLE2ZSaKf9dbQ.png" /></figure><h4>Turkish Sign Language Recognition Application Using Motion History Image</h4><p><strong>Authors:</strong> Ozge Yalcinkaya, Anil Atvar, Pinar Duygulu<br><strong>Abstract — </strong>Recognizing sign language is an important interest area since there are many speech and hearing impaired people in the world. They need to be understood by other people and understand them as well. Unfortunately, the number of people who have the knowledge of sign language is not many. In order to communicate with handicapped people, existence of some automatized systems may be helpful. Therefore, in this work, we aimed to implement a system that recognizes the sign language and converts it to text to help people while communicating with each other where the input scene is taken from camera. We produced a training data which includes eight different sign language videos. After that, we used “Motion History Images”(MHI) to extract the motion information from them. A classification is done by using nearest neighbor approach after extracting the features from MHI of videos. As a result, by using training data, our system predicts the text for given sign language. The overall classification accuracy is computed as 95%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-LM289ptOqyciwygo-c1YQ.png" /></figure><h4><a href="http://www.cs.bilkent.edu.tr/~gcinbis/pdfs/demirel16siu.pdf">Visual Saliency Estimation via Attribute Based Classifiers and Conditional Random Field</a> (Runner-Up for Alper Atalay Best Student Paper Award)</h4><p><strong>Authors: </strong>Berkan Demirel, R. Gokberk Cinbis, Nazli Ikizler-Cinbis<br><strong>Abstract — </strong>Visual Saliency Estimation is a computer vision problem that aims to find the regions of interest that are frequently in eye focus in a scene or an image. Since most computer vision problems require discarding irrelevant regions in a scene, visual saliency estimation can be used as a preprocessing step in such problems. In this work, we propose a method to solve top-down saliency estimation problem using Attribute Based Classifiers and Conditional Random Fields (CRF). Experimental results show that attribute-based classifiers encode visual information better than low level features and the presented approach generates promising results compared to state-of-the-art approaches on Graz-02 dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*zHR0BLLuMu-pR0Kju9HIzw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5e3ca6372ea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hucvl-stories/hucvl-at-siu-2016-f5e3ca6372ea">HUCVL at SIU 2016</a> was originally published in <a href="https://medium.com/hucvl-stories">HUCVL Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Image Captioning: A Retrospect on Our Latest Study]]></title>
            <link>https://medium.com/hucvl-stories/image-captioning-a-retrospect-on-our-latest-study-4e54a864159e?source=rss----92f1c6b8867---4</link>
            <guid isPermaLink="false">https://medium.com/p/4e54a864159e</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[image-captioning]]></category>
            <dc:creator><![CDATA[Semih Yagcioglu]]></dc:creator>
            <pubDate>Tue, 26 Apr 2016 10:17:06 GMT</pubDate>
            <atom:updated>2016-04-26T11:37:55.345Z</atom:updated>
            <content:encoded><![CDATA[<p>The amount of data generated each day is tremendous. With more data comes more information. By extracting the precious information hidden in the piles of big data and employing new paradigms, researchers can now solve quite challenging problems such as describing what is out there in a scene.</p><p>Recently, this particular problem have garnered a lot of attraction from both computer vision and natural language processing communities. Obviously it is at the intersection of two active research areas and the challenges of this problem seems to grasp the attention of several researchers.</p><p>But, what makes this problem uniquely interesting? The answer is hidden in its goal, which probably explains why it is very important to Artificial Intelligence in general. The basic goal in image captioning is to describe a scene like a human would describe it. Although we are not there yet, with the recent progress we can say that we not too far from there either.</p><p>It’s a challenging problem, one needs to admit, to start with there are several things to consider if you want to pass the <a href="https://en.wikipedia.org/wiki/Turing_test">Turing test</a>. For example, people do not always mention all image contents to describe it and tend to mention things that are of importance to them. Moreover, people often provide quite different descriptions for the same scene as they often do not agree on what is important about that scene. These are just a few things to keep in mind. But the real challenge is the quality of the descriptions the algorithms produce, considering we want to convince people that these descriptions come from humans not machines. Yet it is not as easy as it may sound, humans are quite good at separating things that are non-human, in other words robotic. See for yourself, and try to guess which caption is authored by a human and which by a machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*rZm3cpjmDsuABWYy." /></figure><ol><li>There are one cow and one sky. The golden cow is by the blue sky.</li><li>A young highlander cow stands in a pasture.</li></ol><p>The above image was taken from <a href="http://vision.cs.uiuc.edu/pascal-sentences/">UIUC Pascal Sentence dataset</a> and the first caption was generated by <a href="http://tamaraberg.com/papers/generation_cvpr11.pdf">BabyTalk</a> of Berg et al. (CVPR, 2011), the second however was written by humans.</p><p>Image captioning studies fall into two broad categories. In the first category the main idea is to retrieve a relevant description from a set of descriptions. In the second category the main idea is to generate a description from scratch. We recently did a study on the former, which we presented at <a href="http://semihyagcioglu.com/projects/image-captioning">ACL 2015</a>.</p><p>In our study we proposed a query expansion scheme to improve the quality of retrieval based image captioning approaches. The main idea of our work is to improve the retrieval based image captioning by synthesizing a new query with the captions of visually similar images and re-ranking candidate captions based on this synthesized query.</p><p>Now let’s repeat the same test and try to find which caption is provided by a human and which caption by a machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*wUNo8hOKJ-jVqfRo." /></figure><ol><li>A construction crew in orange vests working near train tracks</li><li>A man in an orange vest and yellow hard hat looks on as a yellow vehicle lays track</li></ol><p>It is getting harder right? The main reason is the approach we used here. Actually both captions are written by humans, but the first caption was chosen by our algorithm among several captions. Our algorithm believes that this caption should be describing the scene. Apparently, it does so.</p><p>It is hard to make a fair comparison between generative and retrieval models, as they do quite different things. Generative models aim to create a caption from scratch whereas retrieval models aim to find the most suitable caption for the scene. They do have their own challenges, which I believe would be off topic for this short blog post. So, we follow a retrieval based approach in our image captioning study, therefore the above description is selected among several image captions.</p><p>At this point, you might wonder how we selected this description for that image. You should check <a href="http://www.aclweb.org/anthology/P15-2018">the original paper</a> for the details but for the conciseness of this blog post, I will try to explain how we did that in very simple terms :)</p><p><strong>Retrieving Visually Similar Images</strong></p><p>Let’s rephrase our problem here once more. We want to describe a scene, and we want to do it good. In order to come up with a good description for that scene we first need to visually understand that scene. This is at least what humans do when they want to describe a scene. Our vision system starts working unconsciously and determines the contents of the scene. For a machine, it is not that easy. But we might at least follow a simple strategy to find out the contents of an image without heavily relying on parsing the image contents. Here we assume that visually similar images contain similar contents and attributes, such as illumination, weather, objects etc.</p><p>In order to represent images, we use the output of a deep learning model, <a href="http://www.robots.ox.ac.uk/~vgg/research/very_deep/">16-layer VGG</a> trained on <a href="http://image-net.org/challenges/LSVRC/2014/">ImageNet</a>, and use fc7 activations of <a href="https://en.wikipedia.org/wiki/Convolutional_neural_network">ConvNet</a> with 4096 dimensional vectors. After employing an Euclidean distance measurement against the query scene, followed by an adaptive neighborhood selection we find the top <em>N</em> images in our dataset that are visually similar to the query scene. Note that <em>N</em> is subject to change based on the density of candidates. At this moment we have a set of images that look very much like the scene we want to describe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lbigAP2pnXKXYGu1." /></figure><p>Visual retrieval and adaptive neighborhood selection. The algorithm determines the number of candidates to be selected adaptively based on the density as seen in A and B</p><p>Close enough, but we still need some work to do. Now that we find the visually similar images to our own query image, we can reduce the problem to, what to do with those images. The short answer is, we don’t deal with images from now on but change our focus to textual domain by using the captions of visually similar images, as we assume that they contain the information we need to describe the query scene.</p><p><strong>Distributed Representation via Word Vectors</strong></p><p>Word vectors are very popular these days, but their popularity has some solid ground. They can accurately capture the meaning of words in higher dimensions where each word is associated with a real valued vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PM0xK8EnKmjLT-EB." /></figure><p>Vectors encoding gender relation between words on the left, singular/plural relation between two words on the right. (<a href="https://www.aclweb.org/anthology/N/N13/N13-1090.pdf">Mikolov et al., 2013</a>)</p><p>What makes word vectors so popular and powerful is, their simplicity and accuracy. With simple arithmetics it is possible to extract syntactic and semantic regularities between words singular/plural, gender, tense etc. In other words we can make analogies by using the vector differences and sums.</p><p>W(‘uncle) − W(‘man’) + W(‘woman’) ≃ W(‘aunt’)</p><p>W(‘king’) − W(‘man’) + W(‘woman’) ≃ W(‘queen’)</p><p>In the above example we see that we can make a nearest neighbor search around the result of vector operation “king — man + woman” and obtain “queen”. Replacing “king” with “uncle” results with “aunt” (<a href="https://www.aclweb.org/anthology/N/N13/N13-1090.pdf">Mikolov et al, 2013</a>). This is very powerful especially if you want to encode/decode such regularities in a language.</p><p>We used 500 dimensional word embeddings to represent words and employed simple vector arithmetics to synthesize a new query using the captions of visually similar images. Primarily what we do here is to shift our focus to language domain from the visual domain and make a query expansion that is based on distributional representations.</p><p>Representing words with word vectors seems quite simple as it works like a lookup table where each word has a mapping in a higher dimensional space. But, how do we represent captions? We have mentioned that we can apply algebraic operations on a vector, and use the difference or sum vectors to encode some regularities. Using this rationale, we assume that a caption might be represented as the sum of its constituents. Therefore, we simply sum vectors for each word in a caption. In our case, each image had 5 different captions. Subsequently, we averaged these caption vectors.</p><p>At this step, we have a vector which we presume to represent an image. Considering we have plenty of captions in our pool we need to draw the best caption from that pool that describes the query image. Here we make another assumption, that is, the query image could be represented with a query vector. But we don’t have such a query vector. So, we synthesize one by averaging the caption vectors in the pool. The resulting vector is to represent the query image but in the language domain. What we do here is to expand the original image query by synthesizing a new query vector in language domain and changing modalities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1ZdkiwmdufV2-_QH." /></figure><p>A system overview of the proposed query expansion approach for image captioning</p><p>Now that we have a query vector, we can do something cool with it. So, we simply re-rank all the caption vectors in the pool against this synthesized query vector. This re-ranking scheme considers the angular cosine distance between caption vectors and ranks them based on their distance. Finally, we return the top caption as the output of our algorithm for describing the query image.</p><p><strong>Datasets</strong></p><p>Choosing which dataset to work with is a very important part of a study. There are a few established datasets that have been used in various vision and NLP related tasks such as <a href="http://vision.cs.uiuc.edu/pascal-sentences/">UIUC Pascal Sentence</a>, <a href="http://nlp.cs.illinois.edu/HockenmaierGroup/8k-pictures.html">Flickr8K</a>, <a href="http://shannon.cs.illinois.edu/DenotationGraph/">Flickr30K</a>, <a href="http://mscoco.org/">MS COCO</a>, <a href="http://tlberg.cs.unc.edu/vicente/sbucaptions/">SBU Captioned Photo</a> datasets, which have 1K, 8K and 30K, 300K and 1M captioned images respectively. Each dataset has been criticized from different aspects, such as size, noise, object distribution etc. In the recent studies MS COCO dataset has been used as the standard captioned image dataset, as it quite big in size, has diverse categories of objects with very structured tokenized captions as well as object segmentations.</p><p>In order to provide benchmark for future studies we used Flickr8K, Flick30K and MSCOCO datasets and conducted our evaluation tasks on these datasets separately.</p><p><strong>Evaluation</strong></p><p>So, what makes an image description good? How can we determine the quality of our descriptions? There are two common approaches in the literature. The first one is evaluating the provided descriptions against the ground-truth descriptions using machine translation and summarization metrics such as BLEU, TER, METEOR, ROUGE, CIDEr, etc. Second approach is designing human evaluation tasks to determine the quality of the descriptions, such as relevancy, descriptiveness etc. Both approaches have some advantages and disadvantages of their own. For example, it is easier to evaluate descriptions with automated metrics, but these metrics often have their quirks (see <a href="http://acl2014.org/acl2014/P14-2/pdf/P14-2074.pdf">Elliott and Keller (ACL, 2014)</a> for an extended review). Human evaluation tasks are good to determine the overall description quality, but these tasks are hard to replicate, costly, and often subject to bias based on the design of the tasks.</p><p>In our evaluation task we used smoothed BLEU, METEOR and CIDEr and compared our approach with some of the related works in the literature as well as the human baseline. Moreover, we conducted a human evaluation task with a similar setting as described in (<a href="http://www.tamaraberg.com/papers/acl_12.pdf">Kuznetsova et al., 2012</a>; <a href="https://cs.brown.edu/people/rebecca/364_Paper.pdf">Mason and Charniak, 2014</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/0*1ZQQUXFerSGpMpha." /></figure><p>A few results obtained with our method along with ground-truth captions.</p><p>The human evaluation task suggested that our results are quite relevant to the query scenes as shown above for a few scenes, and the machine translation metrics supported these findings but we believe that there are a few things we can do to improve our results in other words other pooling strategies such as <a href="http://arxiv.org/abs/1411.7399">Fisher Vectors</a> and incorporating word order, etc. Hopefully, we will be addressing these in our upcoming studies.</p><p><strong>Final Remarks</strong></p><p>Before we presented our work at ACL 2015, we submitted our results to the <a href="http://mscoco.org/dataset/#captions-challenge2015">MS COCO 2015 Captioning Challenge</a>. We noticed that the competing methods were performing very well with the automatic machine translation metrics. Most methods were even performing better than humans, in terms of these metrics. I must note that we missed the human judgment and could not partake in the original challenge, and submitted our results afterwards.</p><p><a href="http://mscoco.org/dataset/#captions-leaderboard">Human judgment scores</a> showed that there is still quite a big margin between the best performing methods compared to ground-truth image captions. This simply tells us that there still room for progress both in machine translation metrics and image captioning methods. We’ll probably see quite interesting studies trying to fill this gap in the very near future.</p><p>This is a joint work by <a href="http://semihyagcioglu.com/">Semih Yagcioglu</a>(1), <a href="http://web.cs.hacettepe.edu.tr/~erkut/">Erkut Erdem</a>(1), <a href="http://web.cs.hacettepe.edu.tr/~aykut/">Aykut Erdem</a>(1) ve <a href="https://www.ceng.metu.edu.tr/~ruken/">Ruket Cakici</a>(2).</p><p>1: <a href="http://vision.cs.hacettepe.edu.tr/">Hacettepe University Computer Vision Lab (HUCVL)</a></p><p>2: <a href="https://www.ceng.metu.edu.tr/">Middle East Technical University Department of Computer Engineering</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e54a864159e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hucvl-stories/image-captioning-a-retrospect-on-our-latest-study-4e54a864159e">Image Captioning: A Retrospect on Our Latest Study</a> was originally published in <a href="https://medium.com/hucvl-stories">HUCVL Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>