<?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 Paul Verhaar on Medium]]></title>
        <description><![CDATA[Stories by Paul Verhaar on Medium]]></description>
        <link>https://medium.com/@paul.verhaar?source=rss-79110f4ac54d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-es079_s1d6ZOauvpza5yw.png</url>
            <title>Stories by Paul Verhaar on Medium</title>
            <link>https://medium.com/@paul.verhaar?source=rss-79110f4ac54d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:48:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paul.verhaar/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[Language models: battle of the parameters — Natural Language Processing on Steroids :rocket:]]></title>
            <link>https://medium.com/sogetiblogsnl/language-models-battle-of-the-parameters-natural-language-processing-on-steroids-rocket-101b51fdf8?source=rss-79110f4ac54d------2</link>
            <guid isPermaLink="false">https://medium.com/p/101b51fdf8</guid>
            <dc:creator><![CDATA[Paul Verhaar]]></dc:creator>
            <pubDate>Fri, 25 Sep 2020 09:56:58 GMT</pubDate>
            <atom:updated>2020-09-25T09:56:58.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRiJltJrXXXkj193Z9rKOw.jpeg" /></figure><h3>Language models: battle of the parameters — Natural Language Processing on Steroids</h3><p>In a world where Artificial Intelligence (A.I.) is the mantra of the 21st century, Natural Language Processing (NLP) hasn’t quite kept up with other A.I. fields such as image recognition. However, recent advances within the applied NLP field, known as language models, have put NLP on steroids.</p><p>The reason why we’re here is because machine learning has become a core technology underlying many modern applications. This is especially true in utilizing natural language processing. Since word embeddings and its ground-breaking paper (Word2Vec, 2017, Mikolov et al.) we’ve arrived at a transformative stage: meet transformers.</p><p>No, we’re not talking about the latest Michael Bay film starring Transformers, but our transformers had a similar explosive impact on the NLP industry. With language models like BERT and ERNIE we’ve seen a recent trend of increasing size for language models. But is size always better? The GPT-3 model by OpenAI has taken it up a notch by creating a monstrosity in terms of size and performance and it shows that when it comes to language models size really does matter. This blog will provide a gateway into language models, its algorithms and GPT-3.</p><blockquote><em>“Extrapolating the spectacular performance of GPT-3 into the future suggests that the answer to life, the universe and everything is just 4.398 trillion parameters.” <br>– </em><a href="https://twitter.com/geoffreyhinton/status/1270814602931187715?s=20"><em>Geoff Hinton</em></a></blockquote><h3>Language models and transformers</h3><p>Before we can dive into the greatness of GPT-3 we need to talk about language models and transformers. Language models are context-sensitive deep learning models that learn the probabilities of a sequence of words, be it spoken or written, in a common language such as English. With these probabilities it then predicts the next word in that sequence, knownsimplyas “next word prediction.”Here’s how that’s done:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCFcHY3J_3HeFyWSwjZUPA.png" /><figcaption>source: <a href="https://jalammar.github.io/how-gpt3-works-visualizations-animations/">https://jalammar.github.io/how-gpt3-works-visualizations-animations/</a></figcaption></figure><p>The “how” of the language models rests on the shoulders of the algorithms of choice. Before transformers, many models used Recurrent Neural Networks (RNN) or (bi-directional) Long Short-Term Memory (LSTM). If you want to read up on those check out the following links:</p><ul><li><a href="https://towardsdatascience.com/illustrated-guide-to-recurrent-neural-networks-79e5eb8049c9">Illustrated Guide to Recurrent Neural Networks</a></li><li><a href="https://colah.github.io/posts/2015-08-Understanding-LSTMs/">Understanding LSTM Networks</a></li></ul><p>Transformers use something called attention, introduced by the paper <em>“Attention Is All You Need” </em>from 2017 (Vaswani et al.) which revolutionised algorithms for language models.</p><p><a href="https://arxiv.org/abs/1706.03762">Attention Is All You Need</a></p><p>The mechanism of attention is best explained by looking at the biological side, or how we humans solve this. I always like the comparison with the human mind, since it makes the entire process slightly more natural. As our eyes make movements over a text, or even images, we focus, i.e. attend, to certain parts of interest. In text we use this to establish dependencies between words and sentences and keep track of the history. Our “understanding” of language is used during reading a text to focus on those important bits and pieces to help us interpret text, read a coherent story and answer questions even after reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*U0tccsF4k09SsJRtocpAPQ.png" /></figure><p>Transformers with attention adopt a similar technique; they’re able to focus on the most informative and relevant (at that point in time) parts of a sequence of text for further calculations.</p><p>If you’re more of a video learner check out this great video on Transformers:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTQQlZhbC5ps%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTQQlZhbC5ps&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTQQlZhbC5ps%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/5618dcee4f03e409519b671a371f4c8d/href">https://medium.com/media/5618dcee4f03e409519b671a371f4c8d/href</a></iframe><p>Language models are used for a wide range of tasks:</p><ul><li><em>Translation</em></li><li><em>Named Entity Recognition (NER) — great for anonymizing text</em></li><li><em>Question Answering Systems</em></li><li><em>Sentiment</em></li><li><em>Text Classification</em></li><li><em>Language Generation</em></li></ul><p>Now that you’re up to speed on transformers, we can dive into the exciting world of GPT-3!</p><h3>What is GPT-3</h3><p>GPT-3 is the successor of GPT-2 sporting the transformers architecture. It’s trained on 40GB of text and boasts 175 billion-that’s right, billion! -parameters (the values that a neural network tries to optimize during training for the task at hand). Compared to GPT-2 it’s a huge upgrade, which already utilized a whopping 1.5 billion parameters. GPT-3 shows that the performance of language models greatly depends on model size, dataset size and computational amount. It’s trained similarly as GPT-2 on the next word prediction task.</p><p>What sets GPT-3 apart from the rest is that it’s task agnostic. That means that it can perform tasks without using a final layer for fine-tuning. It works straight out of the box and is able to perform tasks with minimal examples (called shots). Below is shown how this works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*M0ee17AjNsKCuZ575cuRZg.jpeg" /><figcaption>Source: <a href="https://openai.com/blog/openai-api/">https://openai.com/blog/openai-api/</a></figcaption></figure><p>So, what can GPT-3 do? There’s a playground demo on which you can register (https://beta.openai.com). In summary you can address chats, question answering, summarizing of text, conversations, code writing, semantic search and many more. Also, GPT-3’s strength lies in its capability to handle non-English languages, especially for text generation.</p><h3>GPT-3 Examples</h3><p>Besides just creating text, people found that GPT-3 can generate any kind of text, including guitar tabs or computer code. Others have shown that GPT-3 is the most coherent language model to data. Let’s check out some examples:</p><p>We can GPT-3 to create HTML layout(s) as shown by Sharif Shameem:</p><h3>Sharif Shameem on Twitter: &quot;This is mind blowing.With GPT-3, I built a layout generator where you just describe any layout you want, and it generates the JSX code for you.W H A T pic.twitter.com/w8JkrZO4lk / Twitter&quot;</h3><p>This is mind blowing.With GPT-3, I built a layout generator where you just describe any layout you want, and it generates the JSX code for you.W H A T pic.twitter.com/w8JkrZO4lk</p><p>Summarisation has been build around the API by Chris Lu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YK94-RU4_Ueyr4oCs9Vpvw.png" /></figure><p>Also, GPT-3 scores well on the Turing-test, the common-sense test for A.I.. It’s pretty capable of answering those questions as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qQNvZXnc2o-jpBRH1_Ygg.png" /></figure><p>It can parse unstructured data and organise it neatly for us:</p><p>And, finally let’s show its power in terms of language generation. We’ll start with German. Vlad Alex asked it to write a fairy tale that starts with: (“<em>A cat with wings took a walk in a park”)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*mO9K7FKDolfCBvzop4efXw.jpeg" /><figcaption>Source: <a href="https://towardsdatascience.com/gpt-3-creative-potential-of-nlp-d5ccae16c1ab">https://towardsdatascience.com/gpt-3-creative-potential-of-nlp-d5ccae16c1ab</a></figcaption></figure><p>A final example in English shows that GPT-3 can generate text on the topic of “Twitter”. Moreover, it’s been written in the style of 19th-century writer Jerome K. Jerome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*HJyu7gLZFv1eUlx34GU2-A.png" /></figure><p>In the overview provided by these interesting examples, we’ve seen that GPT-3 not only generates text in multiple languages but is also able to use the style aspect of writing. If you’re interested check out these other examples:</p><ul><li>Search engine:</li><li>The biggest thing since Bitcoin: <a href="https://news.ycombinator.com/item?id=23885684">learn more</a></li><li>Building websites from English descriptions: <a href="https://twitter.com/sharifshameem/status/1282676454690451457?s=20">learn more</a></li><li>A natural language commandline shell: <a href="https://news.ycombinator.com/item?id=23500667">learn more</a></li><li>Taking a Turing Test: <a href="https://news.ycombinator.com/item?id=23887637">learn more</a></li><li>Medical diagnosis: <a href="https://twitter.com/QasimMunye/status/1278750809094750211?s=20">learn more</a></li><li>Resume writing: <a href="https://twitter.com/DonCubed/status/1284908940149395456?s=20">learn more</a></li><li>Presentation writing: <a href="https://news.ycombinator.com/item?id=23901059">learn more</a></li><li>Excel spreadsheet function: <a href="https://twitter.com/pavtalk/status/1285410751092416513?s=20">learn more</a></li><li>On the meaning of life: <a href="https://twitter.com/Siddharth87/status/1283920116007092224?s=20">learn more</a></li></ul><h3>Summary</h3><p>Despite the fact that we’re still at the beginning, and a wonderful beginning this is, we’re seeing great experiments with GPT-3 that display its power, impact and above all potential. GPT-3 shows the immense power of large networks, at a cost, and language models. It’s capable of rephrasing difficult text, structure text, answer questions and create coherent text in multiple languages. All while working straight out of the box. Of course, there are improvements to be made and downsides. And, there’s still use for BERT, ERNIE and similar models on which we’ll talk in later blogs.</p><p>NLP has been behind in comparison to other trends such as image recognition wherein huge training sets and models have been made publicly available with great accuracy and results. NLP is now on the verge of the moment when smaller businesses and data scientists can leverage the power of language models without having the capacity to train on large expensive machines. Natural language processing models will revolutionize the way we interact with the world in the coming years. All-in all, GPT-3 is a huge leap forward in the battle of language models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=101b51fdf8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sogetiblogsnl/language-models-battle-of-the-parameters-natural-language-processing-on-steroids-rocket-101b51fdf8">Language models: battle of the parameters — Natural Language Processing on Steroids :rocket:</a> was originally published in <a href="https://medium.com/sogetiblogsnl">Sogeti Data &amp; AI | Netherlands</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>