{"id":12191,"date":"2022-05-18T11:48:02","date_gmt":"2022-05-18T11:48:02","guid":{"rendered":"https:\/\/projectsofar.info\/aisuperior\/?post_type=blog&#038;p=12191"},"modified":"2023-12-07T16:50:18","modified_gmt":"2023-12-07T16:50:18","slug":"transformers-in-natural-language-process","status":"publish","type":"blog","link":"https:\/\/staging.aisuperior.com\/de\/blog\/transformers-in-natural-language-process\/","title":{"rendered":"Transforming The Transformers: The GPT Family And Other Trends In AI and Natural Language Processing"},"content":{"rendered":"<p>At least four open-source natural language processing projects that exploit enormous neural networks are currently challenging the only big commercial NLP project: GPT-3 of\u00a0<a href=\"https:\/\/openai.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">OpenAI<\/a>.<\/p>\n<p>The open-source initiatives aim to democratise AI and boost its evolution. All of those projects are based on\u00a0<strong>transformers<\/strong>: a special type of neural networks that have proven to be the most efficient for working with human language structures.<\/p>\n<p>What are transformers and why are the recent developments in their landscape so important?<\/p>\n<h2 class=\"wp-block-heading\">What Are Transformers In Natural Language Processing?<\/h2>\n<p>On their long way to success, researchers have tried different neural networks for natural language processing. At last, they arrived at two models based on either convolutional neural networks (CNN) or recurrent neural networks (RNN) with attention.<\/p>\n<p>On an example of a translation task, the difference between the two is the following. Although both types take into account what they learned about a given sentence from translating the previous words in it, they would proceed with the next word in the row using different approaches.<\/p>\n<p>A CNN would process every word in the sentence in parallel threads, whereas an RNN with attention will make sure it weights every previous word in the sentence in regard to its influence over the meaning of the next word, thus, handling words one after another. A CNN does not perfectly solve the problem of finding the correct meaning for each word but can work faster; an RNN produces more correct results but works slowly.<\/p>\n<p>In a nutshell, a transformer is a combination of both. It uses the attention technique evaluating the mutual influence of the single words in a sentence over each other. On the other hand, it works faster thanks to the multiple \u201cthreads\u201d: pairs of so-called encoders and decoders that help to learn, apply what was learned, and propagate the obtained knowledge to the next iteration.<\/p>\n<h2 class=\"wp-block-heading\">What Can Transformers Do?<\/h2>\n<p>Apart from translation, transformers can predict which word to use next in a sentence, thus generating whole sentences of human-looking speech.<\/p>\n<p>That allows us to use them for various purposes.<\/p>\n<p>Transformers\u2019 content creating abilities can be used for designing better chat bots, writing web content, and freeing the hands of technical support staff. The last use case is coupled with the transformers\u2019 skill for information search that promises a wide range of applications in real life.<\/p>\n<p>Apart from purely human languages, some transformers are able to handle programming languages and even create scripts for other deep learning models. Coding skills and the ability to understand human speech allow transformers to become frontend developers. They can be briefed in the same manner as a human developer and would come up with a web layout.<\/p>\n<p>As a part of another experiment, transformers have been integrated into Excel and managed to fill in empty cells in a spreadsheet predicting values based on the existing data in the same spreadsheet. That would allow us to replace bulky Excel functions with just one transformer formula that mimics the behaviour of a whole algorithm.<\/p>\n<p>In the future, transformers may replace human development operation engineers as they must be able to configure systems and provision infrastructures on their own.<\/p>\n<p>Sounds like wow! In fact, 2022 brought a few inspiring updates in the field.<\/p>\n<h2 class=\"wp-block-heading\">Transformers\u2019 Performance and Required Resources<\/h2>\n<p>Imitating the human art of language processing became a very competitive case.<\/p>\n<p>Measuring success is not an obvious thing. Indeed, the winner is the fastest and most accurate one. But you can achieve high speed and accuracy through a combination of two main factors:<\/p>\n<ul>\n<li>Your neural network architecture; although, the transformer architecture currently dominates;<\/li>\n<li>The number of parameters in your neural network.<\/li>\n<\/ul>\n<p>With the latter, we understand the number of\u00a0<em>connections<\/em>\u00a0between the nodes in a network. This number does not necessarily have a linear relationship to the number of nodes, which would be the size of the network.<\/p>\n<p>More importantly, for companies, research groups, and individuals, the main factors that influence their child\u2019s success are \u2013 apparently \u2013 the size of investment they have at their disposal, the size of the training data, and access to the human talent to develop the model.<\/p>\n<h2 class=\"wp-block-heading\">Most Powerful AI Projects In the World<\/h2>\n<p>Considering the factors mentioned above, let\u2019s look at who leads the AI competition.<\/p>\n<h2 class=\"wp-block-heading\">GPT-3<\/h2>\n<p>OpenAI\u2019s\u00a0<a href=\"https:\/\/openai.com\/api\/\" target=\"_blank\" rel=\"noreferrer noopener\">GPT-3<\/a>\u00a0(Generative Pre-Trained Transformer) used to be the leader in the race. It contains 175 billion parameters and can learn new language-related tasks on their own. It can do more than just translation: one of its important applications is answering questions and classifying information.<\/p>\n<p>It was trained on 570 GB of clean data from 45 TB of curated data, which is a lot. Its main drawback is that OpenAI allows free access neither to the model for using it, nor to its code for enhancing it. It only offers a commercial API for getting results of the model. Consequently, only OpenAI\u2019s researchers can contribute to it.<\/p>\n<p>Like many others, GPT-3 only \u201cspeaks\u201d English.<\/p>\n<h2 class=\"wp-block-heading\">Wu Dao 2.0.<\/h2>\n<p>In a quantitative sense, Wu Dao 2.0. beats GPT-3 as it has been trained on 1.2 TB of Chinese text data, 2.5 TB of Chinese\u00a0<em>graphics<\/em>\u00a0data and 1.2 TB of English text data. It also has 1.75 trillion parameters, 10 times more than GPT-3 has.<\/p>\n<p>Wu Dao 2.0. can work in various media modes and even draft 3D structures. It was announced as an open-source still has not arrived at GitHub for some reason.<\/p>\n<h2 class=\"wp-block-heading\">Metaseq\/OPT-175B<\/h2>\n<p>Meta, previously known as Facebook, has been often confronted with accusations in hiding important research results that humanity could have contributed from. Their recent attempt to make transformer models more available may help them to repair their ruined reputation.<\/p>\n<p>As its name suggests, the transformer has 175 billion parameters. It has been created as a copy of GPT-3, to match its performance and ability.<\/p>\n<p>Another advantage of Metaseq is that\u00a0<a href=\"https:\/\/github.com\/facebookresearch\/metaseq\" target=\"_blank\" rel=\"noreferrer noopener\">its GitHub repository<\/a>\u00a0hosts models with fewer parameters allowing scientists to fine-tune them for only specific tasks and avoid high maintenance and training costs associated with bigger transformer models.<\/p>\n<p>However, it is not entirely open-source: the access is limited to research groups and must be requested by them and approved by Meta on a case-by-case basis.<\/p>\n<h2 class=\"wp-block-heading\">Open GPT-X<\/h2>\n<p>It is always a pity when a scientific project emerges out of the fear of missing out and not because there is just enough inspiration for it. That is the case with the\u00a0<a href=\"https:\/\/tu-dresden.de\/tu-dresden\/newsportal\/news\/projektstart-open-gpt-x?set_language=en\" target=\"_blank\" rel=\"noreferrer noopener\">GPT-X project<\/a>: it is nursed in Europe and branded as a response to GPT-3 and a tool for establishing<a href=\"https:\/\/www.alexanderthamm.com\/de\/blog\/open-gpt-x-projekt-mit-alexander-thamm-gmbh\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u00a0Europe\u2019s \u201cdigital sovereignty\u201d<\/a>. The German Frauenhofer Institute is the main drive of its development, supported by its long-term cooperation partners from the German and European industry and academic community.<\/p>\n<p>GPT-X started just recently and there is not so much information about its progress.<\/p>\n<h2 class=\"wp-block-heading\">GPT-J and GPT-NEO<\/h2>\n<p><a href=\"https:\/\/www.eleuther.ai\/\" target=\"_blank\" rel=\"noreferrer noopener\">Eleuther AI<\/a>\u00a0is an independent research group that pursues the goal of AI democratisation. They offer two smaller models: GPT-X with 60 billion parameters and GPT-NEO with only 6 billion. Oddly enough, GPT-X outperforms GPT-3 in coding tasks and is exactly as good in storytelling, information retrieval, and translation, making it a perfect machine for chatbots.<\/p>\n<h2 class=\"wp-block-heading\">Google Switch Transformer<\/h2>\n<p>It was difficult to decide which names should land on this list and which not, but Google certainly deserves a mention, at least for two reasons.<\/p>\n<p>The first one is that the Internet giant made its transformer open-source.<\/p>\n<p>The second is that the\u00a0<a href=\"https:\/\/arxiv.org\/pdf\/2101.03961.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Switch Transformer<\/a>\u00a0was given a novel architecture. It has neural networks nested in the layers of its main neural network. That allows to boost its performance without increasing the amount of the necessary computational power.<\/p>\n<p>The Switch Transformer contains 1.600 billion parameters. Nonetheless, it did not let him overthrow GPT-3 in accuracy and flexibility yet; most probably, due to the lesser extent of the Switch Transformer\u2019s training.<\/p>\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n<p>By the way, training is a pressing issue in the field: the researchers have already used all English texts available in this world! Probably, they need to follow Wu Dao\u2019s example and switch to other languages soon.<\/p>\n<p>Another problem is the one the Switch Transformer has already addressed: more network parameters with less computations. Running neural networks causes emissions of carbon dioxide in big amounts. Therefore, better performance must remain the main goal not only for commercial, but also for environmental reasons.<\/p>\n<p>And this becomes possible thanks to the open-source projects: they supply this research field with the new (human) brains, new knowledge and ideas.<\/p>\n<p>AI and natural language processing needs inspiration from practice. At AI Superior, we are following the updates and looking forward to implementing open-source projects findings for our industry customers and their needs. We invite you to tap on our expertise in AI and natural language processing for any use case, from online shops and marketing research to supporting engineering industries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At least four open-source natural language processing projects that exploit enormous neural networks are currently challenging the only big commercial NLP project: GPT-3 of\u00a0OpenAI. The open-source initiatives aim to democratise AI and boost its evolution. All of those projects are based on\u00a0transformers: a special type of neural networks that have proven to be the most [&hellip;]<\/p>\n","protected":false},"featured_media":12192,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"categories":[8],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The GPT Family And Other Trends In AI and NLP<\/title>\n<meta name=\"description\" content=\"Explore the importance of transformers in NLP and their applications, and learn about the leading AI projects in the world of machine learning.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The GPT Family And Other Trends In AI and NLP\" \/>\n<meta property=\"og:description\" content=\"Explore the importance of transformers in NLP and their applications, and learn about the leading AI projects in the world of machine learning.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/staging.aisuperior.com\/de\/blog\/transformers-in-natural-language-process\/\" \/>\n<meta property=\"og:site_name\" content=\"aisuperior\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-07T16:50:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/staging.aisuperior.com\/wp-content\/uploads\/2023\/09\/Photo-by-Arseny-Togulev-on-Unsplash-1024x576-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"7\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/\",\"url\":\"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/\",\"name\":\"The GPT Family And Other Trends In AI and NLP\",\"isPartOf\":{\"@id\":\"https:\/\/staging.aisuperior.com\/#website\"},\"datePublished\":\"2022-05-18T11:48:02+00:00\",\"dateModified\":\"2023-12-07T16:50:18+00:00\",\"description\":\"Explore the importance of transformers in NLP and their applications, and learn about the leading AI projects in the world of machine learning.\",\"breadcrumb\":{\"@id\":\"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/staging.aisuperior.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blogs\",\"item\":\"https:\/\/staging.aisuperior.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Transforming The Transformers: The GPT Family And Other Trends In AI and Natural Language Processing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/staging.aisuperior.com\/#website\",\"url\":\"https:\/\/staging.aisuperior.com\/\",\"name\":\"aisuperior\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/staging.aisuperior.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The GPT Family And Other Trends In AI and NLP","description":"Explore the importance of transformers in NLP and their applications, and learn about the leading AI projects in the world of machine learning.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"de_DE","og_type":"article","og_title":"The GPT Family And Other Trends In AI and NLP","og_description":"Explore the importance of transformers in NLP and their applications, and learn about the leading AI projects in the world of machine learning.","og_url":"https:\/\/staging.aisuperior.com\/de\/blog\/transformers-in-natural-language-process\/","og_site_name":"aisuperior","article_modified_time":"2023-12-07T16:50:18+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/staging.aisuperior.com\/wp-content\/uploads\/2023\/09\/Photo-by-Arseny-Togulev-on-Unsplash-1024x576-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"7\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/","url":"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/","name":"The GPT Family And Other Trends In AI and NLP","isPartOf":{"@id":"https:\/\/staging.aisuperior.com\/#website"},"datePublished":"2022-05-18T11:48:02+00:00","dateModified":"2023-12-07T16:50:18+00:00","description":"Explore the importance of transformers in NLP and their applications, and learn about the leading AI projects in the world of machine learning.","breadcrumb":{"@id":"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/staging.aisuperior.com\/blog\/transformers-in-natural-language-process\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/staging.aisuperior.com\/"},{"@type":"ListItem","position":2,"name":"Blogs","item":"https:\/\/staging.aisuperior.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Transforming The Transformers: The GPT Family And Other Trends In AI and Natural Language Processing"}]},{"@type":"WebSite","@id":"https:\/\/staging.aisuperior.com\/#website","url":"https:\/\/staging.aisuperior.com\/","name":"aisuperior","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/staging.aisuperior.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"}]}},"_links":{"self":[{"href":"https:\/\/staging.aisuperior.com\/de\/wp-json\/wp\/v2\/blog\/12191"}],"collection":[{"href":"https:\/\/staging.aisuperior.com\/de\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/staging.aisuperior.com\/de\/wp-json\/wp\/v2\/types\/blog"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.aisuperior.com\/de\/wp-json\/wp\/v2\/media\/12192"}],"wp:attachment":[{"href":"https:\/\/staging.aisuperior.com\/de\/wp-json\/wp\/v2\/media?parent=12191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.aisuperior.com\/de\/wp-json\/wp\/v2\/categories?post=12191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}