<?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 Peterc on Medium]]></title>
        <description><![CDATA[Stories by Peterc on Medium]]></description>
        <link>https://medium.com/@peterc_19148?source=rss-78c084acea64------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Peterc on Medium</title>
            <link>https://medium.com/@peterc_19148?source=rss-78c084acea64------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:24:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@peterc_19148/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[General-Purpose Question-Answering with Macaw]]></title>
            <link>https://medium.com/ai2-blog/general-purpose-question-answering-with-macaw-84cd7e3af0f7?source=rss-78c084acea64------2</link>
            <guid isPermaLink="false">https://medium.com/p/84cd7e3af0f7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[question-answering]]></category>
            <category><![CDATA[language-model]]></category>
            <category><![CDATA[aristo]]></category>
            <category><![CDATA[ai2]]></category>
            <dc:creator><![CDATA[Peterc]]></dc:creator>
            <pubDate>Fri, 15 Oct 2021 17:44:39 GMT</pubDate>
            <atom:updated>2023-05-19T20:26:45.119Z</atom:updated>
            <content:encoded><![CDATA[<h4>An impressive new open-source QA model from AI2</h4><figure><img alt="Photograph of a blue and gold macaw" src="https://cdn-images-1.medium.com/max/800/1*HFqMPbE-V7EMl9xG8s1n_A.jpeg" /></figure><p>While OpenAI’s GPT-3 system has proved to be remarkably effective at many tasks, including question-answering (QA), it is still out of reach for many organizations, being only available to approved users for a fee. While there are a few other pretrained QA systems available, none has quite matched GPT-3’s few-shot QA performance — until now. AI2 has just released Macaw (multi-angle question-answering), a versatile, generative question-answering (QA) system that exhibits strong zero-shot performance on a wide range of question types. On a suite of 300 challenge questions, Macaw outperformed GPT-3 by over 10%, even though Macaw is an order of magnitude smaller (11 billion vs. 175 billion parameters). Even better, Macaw is <a href="https://github.com/allenai/macaw">publicly available for free</a>. One could perhaps think of Macaw as a (T5-based) language model highly optimized for question-answering; While it does not have the range of capabilities of GPT-3, its question-answering prowess is often impressive.</p><p>For example, we recently gave this well-known riddle to Macaw:</p><blockquote><strong>Q: </strong>A young boy was rushed to the hospital emergency room, but the ER doctor saw the boy and refused to operate. “This boy is my son,” the doctor said. But the doctor wasn’t the boy’s father. How could this be?</blockquote><p>The conventional answer to this is, of course, the doctor was the boy’s mom. Macaw, however, answered:</p><blockquote><strong>A:</strong> He mistook the boy for his own son.</blockquote><p>Not what we were expecting, but a completely reasonable alternative! And one which, at least on the surface, suggests remarkable ability to process questions. Some other impressive examples of its answers include:</p><blockquote><strong>Q:</strong> How would you make a house conduct electricity?<br><strong>A:</strong> [generated by Macaw] paint it with a metal paint</blockquote><blockquote><strong>Q:</strong> What is an implication of a cat being an animal?<br><strong>A:</strong> it has feelings</blockquote><blockquote><strong>Q:</strong> What is an incorrect implication of a cat being an animal?<br><strong>A</strong>: it is a human</blockquote><blockquote><strong>Q:</strong> Could a newborn look over the top of a fully grown horseradish plant?<br><strong>A: </strong>no, because the plant is so tall</blockquote><blockquote><strong>Q:</strong> Why couldn’t Aristotle have used a cellphone?<br><strong>A:</strong> he was born before cellphones</blockquote><blockquote><strong>Q: </strong>Why can’t an amoeba design software?<br><strong>A: </strong>it lacks the necessary neurons</blockquote><p>Of course, Macaw can make mistakes. For example, it struggles with entity tracking:</p><blockquote><strong>Q: </strong>Imagine an empty cup. Now put a coin in the cup. Now take the coin out of the cup. How many coins are in the cup now?<br><strong>A:</strong> 1 [wrong]</blockquote><p>and some commonsense questions:</p><blockquote><strong>Q:</strong> Sally’s favorite cow died yesterday. When will the cow be alive again?<br><strong>A:</strong> in a few days [wrong]</blockquote><p>How good is Macaw overall? To evaluate it, we created a highly diverse set of 300 challenge questions, designed to try and stump the system (without cherry-picking — we retain both questions Macaw got right and got wrong), and compared its performance with three other well-known QA systems: GPT-3 from OpenAI, T5-CBQA (closed-book QA) from Google, and Jurassic-1 from AI21 Labs. Macaw scored 75%, compared with 65% (for both GPT-3 and Jurassic-1) and 57% (T5-CBQA). Although this is only one test, its results are encouraging. (The dataset and all the different models’ answers are available on the Macaw page also).</p><p>Classifying questions by type, we also measured which question types were easiest (highest score) for the models, shown below (from easiest/highest average score on the left to hardest/lowest average score on the right).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*LtB3PVdbW0nztW8i" /></figure><p>On average, the models scored highest on general knowledge questions (e.g., “What is a shiplap?”) and scored lowest on commonsense (“Can I cut a brick with a knife?”) and “trick” questions that assume something that is not true (“What year did Tom Hanks land on the moon?”).</p><p>In this test, GPT-3 and T5-CBQA, both produced impressive (zero-shot) answers to some questions — but similarly made mistakes (and more than Macaw). Some of the more amusing failures include:</p><blockquote><strong>Q</strong>: Why do houses have windows?<br><strong>A:</strong> [GPT-3] So you can throw the dog out.</blockquote><blockquote><strong>Q:</strong> What is the role of a carburetor in a car engine?<br><strong>A:</strong> [GPT-3] It’s a device that converts water into gasoline.</blockquote><blockquote><strong>Q:</strong> The judge killed the suspect. Who did the police arrest?<br><strong>A: </strong>[T5-CBQA] his partner</blockquote><blockquote><strong>Q</strong>: How would you make a marriage stronger?<br><strong>A:</strong> [GPT-3] I would make sure that I was the one who was always right.</blockquote><p>Well, no language model is perfect!</p><p>Macaw also has another nice capability, namely the ability to switch inputs and outputs (which we call “angles”, hence “multi-angle question-answering”). For instance, I can give a question and get an answer:</p><blockquote><strong>Q: </strong>What is a knife made of?<br>→ <strong>A:</strong> [system’s response] metal</blockquote><p>Or give an answer and ask for a question:</p><blockquote><strong>A</strong>: metal<br>→ <strong>Q:</strong> [system’s response] A student is given a small piece of a shiny, reflective material. What is the most likely material that the student is handling?</blockquote><p>Or give a question and answer, and ask for multiple-choice options:</p><blockquote><strong>Q:</strong> What is a knife made of?<br><strong>A:</strong> metal<br>→ <strong>M:</strong> [system’s response] (A) metal (B) plastic © rubber (D) wood</blockquote><p>Finally, Macaw can generate explanations, e.g.,</p><blockquote><strong>Q:</strong> How would you make a rope stronger?<br>→ <strong>A</strong>: [system’s response] add strands<br>and <strong>E: </strong>[system’s response] As the diameter of a rope increases, the strength of that rope will increase.</blockquote><p>We hope that Macaw will be useful to the community, both as a research tool and as a component in future systems. You can download the model (plus the challenge dataset) <a href="https://github.com/allenai/macaw"><strong>here</strong></a>, or read the paper: <a href="https://www.semanticscholar.org/paper/General-Purpose-Question-Answering-with-Macaw-Tafjord-Clark/e3480d9395e692833b722b2e957d51139985f310"><em>General-Purpose Question-Answering with Macaw</em></a>.</p><p><em>Follow </em><a href="http://twitter.com/allen_ai"><em>@allen_ai</em></a><em> on Twitter, and subscribe to the </em><a href="https://share.hsforms.com/1uJkWs5aDRHWhiky3aHooIg3ioxm"><em>AI2 Newsletter</em></a><em> to stay current on news and research coming out of AI2.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84cd7e3af0f7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai2-blog/general-purpose-question-answering-with-macaw-84cd7e3af0f7">General-Purpose Question-Answering with Macaw</a> was originally published in <a href="https://medium.com/ai2-blog">Ai2 Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If Ostriches Could Fly…]]></title>
            <link>https://medium.com/ai2-blog/if-ostriches-could-fly-146b3007cac3?source=rss-78c084acea64------2</link>
            <guid isPermaLink="false">https://medium.com/p/146b3007cac3</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[question-answering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Peterc]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 18:34:19 GMT</pubDate>
            <atom:updated>2023-05-19T21:03:01.822Z</atom:updated>
            <content:encoded><![CDATA[<h4>Transformers as Soft Reasoners over Language</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qAlilaXoU48BuF50" /><figcaption>Photo by <a href="https://unsplash.com/@shannonlitt?utm_source=medium&amp;utm_medium=referral">Shannon Litt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Artificial intelligence research has long pursued the goal of giving a system explicit <em>knowledge</em>, and having it <em>reason</em> over that knowledge to reach conclusions, dating back to the earliest years of the field (e.g., McCarthy’s ‘Advice Taker’ in <a href="http://www-formal.stanford.edu/jmc/mcc59.pdf">1959</a>). However, building suitable knowledge representations has proved challenging. Is there a modern version of this, in which language transformer models similarly learn to reason (or emulate reasoning), but using rules expressed in language, thus bypassing a formal representation? If this could be done, new opportunities for question-answering, explainability, correctability, and counterfactual reasoning may become possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*1Kf7f8WsaDhI2zYcCX8_dQ.png" /></figure><p>In <a href="https://arxiv.org/abs/2002.05867">new work from AI2</a>, we show this is indeed possible, by training a transformer on thousands of machine-generated rules (expressed in templated English) and conclusions that deductively follow from those rules. The resulting model, called <a href="https://rule-reasoning.apps.allenai.org/"><strong>RuleTaker</strong></a>, can take a new set of rules that it has never seen before, and similarly reliably conclude whether a statement follows or not from the rules. For example, consider giving the following rules about electricity to RuleTaker, followed by a question:</p><p><em>Metals conduct electricity.<br>Insulators do not conduct electricity.<br>If something is made of iron then it is metal.<br>Nails are made of iron.</em></p><blockquote><strong>Question</strong>:<em> Is it true that: nails conduct electricity? </em><strong>RuleTaker’s answer:</strong><em> TRUE</em></blockquote><p>Here RuleTaker’s answer is what one expects from the facts given: nails are made of iron, which is a metal, which conducts electricity. Suppose we now change the facts, though, to declare that iron is an <em>insulator</em>, i.e., introduce a counterfactual:</p><p><em>Metals conduct electricity.<br>Insulators do not conduct electricity.<br></em><strong><em>If something is made of iron then it is an insulator.</em></strong><em><br>Nails are made of iron.</em></p><p>Suppose we now ask:</p><blockquote><strong>Question</strong>:<em> Is it true that: nails conduct electricity? </em><strong>RuleTaker’s answer:</strong><em> FALSE</em></blockquote><p>RuleTaker again produces the (correct) answer, now FALSE — it appears to have correctly reasoned (or emulated the reasoning) over the new knowledge: nails are iron, which is in insulator (as we told it, in bold above), which does not conduct electricity. In our tests, RuleTaker reliably produces answers that are consistent with the provided knowledge, mimicking the conclusions that a formal reasoning algorithm would reach, even when the rules and topics are different from those it was trained on.</p><p>In many ways this is quite remarkable, and quite different to the prevailing paradigm of question-answering as selecting an answer phrase in a retrieved passage of text. Rather, this is (to our knowledge) the first demonstration that transformers can emulate reasoning with explicit rule sets in language, to reliably arrive at correct conclusions.</p><h4>Is RuleTaker actually reasoning?</h4><p>We leave that question open, including what “reasoning” even means in a neural context. What we do show, however, is that RuleTaker can answer questions requiring significantly more reasoning than seen during training time, answer questions on problems that were authored independent of the training data, and on problems where the knowledge is paraphrased into more natural language, all with high precision. We also show it is able, with high precision, to identify the original sentences that a conclusion depends on, suggesting is has some knowledge of the dependencies between the facts and rules and the answer (e.g., below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUQQQVEqhYeymvr7lzu4mg.png" /><figcaption>In this toy problem, RuleTaker correctly concludes “<strong>The lion visits the rabbit”</strong> (the Statement)<strong>, </strong>and also correctly identifies the sentences needed to reach that conclusion (green). Here: <strong>The lion is red</strong> (first green sentence), therefore <strong>young </strong>(third green), and as the<strong> lion is also cold</strong> (second) it <strong>visits the rabbit</strong> (fourth).</figcaption></figure><p>Although this is exciting, our demonstrations so far have been in a constrained setting: Rules are simple if-then statements (or paraphrases of them), and the emulated reasoning is purely deductive. There is still a large gap to our long-term goal of natural language inference (NLI), which encompasses use of many more linguistic forms and unstated background knowledge. However, it does suggest a way forward towards this larger goal, in which we train neural systems to not just to find answer spans, but to learn to reason over language from examples of such reasoning.</p><p>What about a hypothetical world in which birds normally<em> don’t</em> fly, but ostriches <em>do</em>? While we can, of course, show fictional texts to modern BERT-style systems, they cannot fully entertain the consequences because they are tightly tethered to reality, having ‘digested’ millions of sentences. RuleTaker, however, given a few well-chosen pieces of advice, can easily consider an alternate universe, because it has been trained to <em>reason with what it is given</em>, not what it has memorized in pre-training. Where, for example, would an ostrich build its nest? We can describe and query such a world:</p><p><em>Ostriches are birds.<br>Ostriches can fly.<br>If a bird can fly then it builds its nest in trees.<br>If a bird does not fly then it builds its nest on the ground.<br>Normal birds do not fly.<br>Ostriches are not normal birds.<br>Bill is an ostrich.</em></p><blockquote><strong>Qn:</strong><em> Is it true that: Bill builds his nest on the ground? </em><strong>RuleTaker’s Answer: </strong><em>FALSE<br></em><strong>Qn</strong><em>: Is it true that: Bill builds his nest in a tree? </em><strong>RuleTaker’s Answer:</strong><em> TRUE</em></blockquote><p>RuleTaker has (correctly) concluded that Bill, the flying ostrich, builds his nest in trees — an example of a system appearing to properly read and reason with the knowledge provided. <a href="http://rule-reasoning.apps.allenai.org/"><strong>Try it yourself</strong></a><strong>, </strong>or <a href="https://arxiv.org/abs/2002.05867">read the paper here</a> for more details.</p><p><em>To stay up to date with new research at AI2, subscribe to the </em><a href="https://share.hsforms.com/1uJkWs5aDRHWhiky3aHooIg3ioxm"><em>AI2 Newsletter</em></a><em>, and be sure to follow us on Twitter at </em><a href="http://twitter.com/allen_ai"><em>@allen_ai</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=146b3007cac3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ai2-blog/if-ostriches-could-fly-146b3007cac3">If Ostriches Could Fly…</a> was originally published in <a href="https://medium.com/ai2-blog">Ai2 Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>