<?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 Dr. Santanu Bhattacharya on Medium]]></title>
        <description><![CDATA[Stories by Dr. Santanu Bhattacharya on Medium]]></description>
        <link>https://medium.com/@santanub?source=rss-a5e84fc0351f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*diigcNGHkOzp334q.jpg</url>
            <title>Stories by Dr. Santanu Bhattacharya on Medium</title>
            <link>https://medium.com/@santanub?source=rss-a5e84fc0351f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 20:52:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@santanub/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[Stack 3 Is Here․ Most Industries Don’t Know It Yet․]]></title>
            <link>https://santanub.medium.com/the-three-stacks-why-service-as-a-software-is-the-moat-of-the-next-decade-500efd43013b?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/500efd43013b</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 13:04:14 GMT</pubDate>
            <atom:updated>2026-04-09T13:04:14.994Z</atom:updated>
            <content:encoded><![CDATA[<h4>What a 1995 travel agent‚ a 2005 taxi dispatcher‚ and a 2025 banking operations analyst all have in common‚ and why it matters more than you think</h4><p>In 1995‚ there were 124‚000 travel agents in the United States․ Today‚ there are fewer than 74‚000․ The Internet on one hand created <a href="https://www.expedia.co.in/">Expedia </a>and on the other hand, it made the human interface obsolete. The person whose only job was to be a conduit between a consumer and a service became extinct․</p><p>Nobody saw that coming‚ not from inside the industry․ Travel agents had not been doing their jobs badly․ They had been doing them exactly how they had always done them․ The challenge was the job‚ and where they fitted into the stack․</p><p>We are about to see this exact phenomenon all over again‚ only faster‚ with even more distance to cover‚ and in fields that are even more trivial than travel booking․ It is also not a story about AI replacing jobs․</p><blockquote>It is the tale of what happens every 25 years when a new technology platform arrives to change the rules of every industry․ It’s already happened at two other times‚ so I guess we’re about seven years into a third․</blockquote><p>The companies that get it will build the next Salesforce․ The ones that don’t will be the next travel agency․</p><h3>A Pattern Hidden in Plain Sight</h3><p>If our hypothesis of technology is that it moves forward in a linear progression‚ and that it is compounded‚ then zooming out paints a very different picture‚ much more jagged‚ much more discontinuous․ What it does is restack․</p><p>In the past seventy years there have been three restacks‚ and every one of them has completely redefined what works in every industry it touches․ The ones who succeeded were not the ones who built on what came before․ They were the ones who started over on what came next․</p><p>We are in fact already in the middle of the third restack‚ and most industries have not even felt it․</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xQY_lwyydCY-gF6-Gh4bmQ.jpeg" /></figure><h3>Stack 1: Intelligence Made Portable (~1955–1985)</h3><p>Imagine the insurance office of 1971. There were 30 women typing away on typewriters in some office in Hartford‚ Connecticut․ Next door‚ a line of men works on a set of green paper ledger books‚ with each column of numbers painstakingly added by hand․ It takes weeks to calculate the tables․ Once changed‚ rewriting the whole policy becomes a simple exercise․</p><p>Then‚ on November 15‚ 1971‚ Intel made available the <a href="https://en.wikipedia.org/wiki/Intel_4004">4004</a> microprocessor‚ a fingernail-sized package containing 2300 transistors․ At 60000 calculations per second‚ this is much slower and weaker than modern microprocessors‚ but it was the first microprocessor offered for sale․ It changed the basic unit of intelligence from a room to a small rectangle of silicon․</p><p>By 1985‚ the insurance office of 1971 could not have been more different; no longer would there be a typing pool of women․ There would be no more green paper ledger books‚ and only one person with a personal computer running Lotus 1–2–3 could complete in one afternoon what a dozen people required two weeks to accomplish․</p><blockquote>Stack 1 made intelligence portable․</blockquote><p>The general thesis is that Intel‚ Microsoft‚ and HP won because their computers or mainframes were better than everyone else’s․ The truth is that these three companies were out in front of everyone else because they knew that a unit of value had been fundamentally altered․ What was their moat? It was the chip and the operating system on every desk․</p><h3>Stack 2: Intelligence Made Connective (~1990–2015)</h3><p>Tim Berners-Lee described the new <a href="https://en.wikipedia.org/wiki/World_Wide_Web">World Wide Web</a> (WWW) project in an e-mail to a Usenet newsgroup on August 6‚ 1991‚ writing‚ “The WorldWideWeb (WWW) project aims to allow links to be made to any information anywhere․” His email received little attention․ Three years later <a href="https://en.wikipedia.org/wiki/Marc_Andreessen">Andreessen’s </a><a href="https://en.wikipedia.org/wiki/Netscape">Netscape </a>browser had 75% market share․</p><p>The rise of the World Wide Web created a different kind of world‚ where all knowledge in Stack 1 could talk to itself‚ was networked‚ and was global․</p><p>That gave birth to <a href="https://www.google.com/">Google‚ </a><a href="https://www.amazon.in/">Amazon‚ </a><a href="https://www.salesforce.com/in/">Salesforce </a>and Software as a Service․ It was an evolution‚ both technically and economically‚ all at the same time․ Instead of “buying” software‚ customers were “subscribing” to it․ AWS was an uncapitalized company selling compute․</p><p>Then something unexpected happened. The avalanche of human coordination work caused by all this increased connectivity․ Today’s average mid-sized company in 2023 uses 130 different SaaS applications․ Each application needs its own log-in‚ its own workflow‚ and its own expert to run it․</p><blockquote>We designed an era of connective intelligence and then hired armies of people to sit at the junctions and manually transfer information between applications that couldn’t talk to each other․</blockquote><p>Today‚ there are 9․4 million SaaS products in the world․ The cloud is now the most expensive clerical layer yet․</p><blockquote>Stack 2 made intelligence connective․</blockquote><p>The hardest thing to wrap your head around is that Stack 2 completely consumed Stack 1. Every SaaS app runs on chips and every cloud server runs an operating system․ Stack 1 is thus a legacy․</p><h3>Stack 3: Intelligence Made Generative (~2017–2045)</h3><p>Then‚ on June 12‚ 2017‚ eight researchers at Google posted a paper entitled “<a href="https://research.google/pubs/attention-is-all-you-need/">Attention Is All You Need</a>”․ There was no press release and few people read it․ This is one of the most important paper of the century so far․ <a href="https://chatgpt.com/">ChatGPT </a>was released in November 2022‚ reaching one million users within five days․ This is the fastest launch of any technology product in the world․ <a href="https://www.netflix.com/in/">Netflix </a>took 3․5 years․ <a href="https://www.facebook.com/">Facebook </a>took 10 months‚ the <a href="https://www.apple.com/in/iphone/">iPhone </a>took 74 days․</p><p>The stack is thus kicked off by the Transformer‚ with GPT representing the first proof of concept․ What this stack has accomplished is on a completely different fundamental level than the last two stacks․ This stack has enabled intelligence to produce․</p><blockquote>Stack 3 makes intelligence generative.</blockquote><p>It can reason‚ write‚ code‚ diagnose‚ plan‚ and act on behalf of users․We are today seven or eight years into this stack․ As an example of how far we’ve come in this stack‚ let me tell you where we would be seven years into Stack 2․ At the time‚ Amazon was a $511 million bookstore‚ Google hadn’t launched <a href="https://business.google.com/us/google-ads/">AdWords‚ </a>Salesforce had two years under its belt and 1‚000 customers‚ and the Application Explosion, where new industry categories are built on top of this foundation, was years away․</p><p>That day has now come․</p><h3>Why Every Prior Category Gets Rebuilt</h3><p>That is the essential pattern that makes everything work so well․ A new stack does not simply build on top of the last industries․ It also shows the artificial complexity that the last one created․</p><p>Think about what a hospital revenue cycle coordinator does for a living․ They’re stuck between a clinical system‚ an insurance system‚ a billing system‚ and a patient records system․ All of them are from a different decade‚ built by a different company‚ and none of them speak to each other well․ Their entire job is to be a human translation layer between systems that should have been able to communicate with each other for twenty years․ The healthcare administrative costs in the United States are $812 billion a year․ That’s not to deliver the service․ It’s to administer the service․ A quarter of every dollar spent on health care in the United States goes to paperwork connecting the service with payment․</p><p>We made great strides in connectivity‚ but the world we created was a mid-sized company with 150 applications‚ none of which talk well to the other applications‚ and all of them require humans to run them․ We built connective intelligence‚ and then we hired humans to connect the dots․</p><p>Stack 3‚ on the other hand‚ offers a full meal․</p><blockquote>It has become less a question of “What software should my team use to get this done?” and more a question of “Why does a human need to be involved in this at all?”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bm_Vz9ZmM9GtrhGY7puLNg.jpeg" /></figure><h3>The Moat That Most Companies Are Missing</h3><p>In 2000‚ Netflix offered to help <a href="https://en.wikipedia.org/wiki/Blockbuster_(retailer)">Blockbuster</a>’s board of directors run and manage Blockbuster’s DVD rental business‚ but they declined․ Blockbuster had 60‚000 employees and 9‚000 stores‚ with US$6 billion in sales at the time of the deal․ At that time‚ Netflix was just a DVD mailer and a website․ What the people at Blockbuster couldn’t see was that Netflix was not trying to build a better DVD rental store․ It was trying to build a company on a different platform․</p><p>The wrong way to think about this is Software as a Service + AI: you start with SaaS‚ then you plug in a chatbot‚ and a Copilot․ This is the Stack 2 company trying to protect their Stack 2 space with Stack 3 tools․ This is the Blockbuster response․ It produces better products by the metrics of the previous era‚ and that is not what wins․</p><p>The right way to think about this shift is to know its transition from software as a service to Service as a Software․ In the old world‚ we would buy software and hire humans to operate the software․</p><blockquote>Where software was once manipulated by human intelligence‚ in the new world‚ service is a software․</blockquote><p>We do not buy software and use it with human intelligence․ We buy software that has intelligence of its own‚ that can think and act and coordinate․ Systems may not exceed human intelligence․</p><p>This is a business model difference․ Business model differences combined with a platform difference are the strongest moat of any business․</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUIQ6sY7KSFZhqKhclkW8w.jpeg" /></figure><h3>Why “Service as a Software” Is a Moat‚ Not a Feature</h3><h4>1․ The switching cost is the result‚ not the interface․</h4><p>In 2012‚ a medium size law firm in Chicago did switch the document management systems in an operation that cost $340‚000 in consulting fees‚ eight months of workflow interruptions‚ and two senior partners threatening to leave․ But they did it anyway‚ because the new system was just better․ And this was a hard switch․ In Service as a Software‚ the switch is even harder because of the institution․ Over time‚ the AI agent learns about you‚ your customers‚ your edge cases‚ your preferences․ You don’t change service providers because the service provider knows you like a ten-year employee․</p><p>In the SaaS space‚ the switching costs were always about data portability and relearning workflows․ Not pleasant․ Not impossible‚ though; for Service as a Software‚ the cost of switching is the institutional knowledge represented by the agent itself․ This is the context it gained while it’s been with you․ The longer it has been around‚ the more it knows about you and your customers․ That’s a moat that grows exponentially over time․ There’s something software as a service just doesn’t have․</p><h4>2․ The marginal cost of delivery approaches zero․</h4><p>To double revenue‚ <a href="https://www.mckinsey.org/home">McKinsey </a>in 1955‚ 1975‚ or 2005 would have had to double the number of its employees․ High-end service businesses had linear scaling with labor costs‚ which were expensive․ <a href="https://stripe.com/in">Stripe’s </a>8000 employees processed $817 billion in payments last year‚ which compares with <a href="https://www.jpmorgan.com/global">JP Morgan</a> who processed about the same number of transactions with 290‚000 people․ It’s not that Stripe is harder-working․ It’s that software has a scaling advantage that labor just doesn’t have․</p><p>For in-person services‚ the marginal cost of providing the service to a single customer rises linearly with the number of customers it serves․ For software-based services‚ the marginal cost of providing the service is zero․ While the cost of serving the first customer is very high‚ the cost of serving the millionth customer is effectively zero․ If a company figures this out in a high-margin service business‚ they have an enduring competitive advantage that customary service businesses cannot match without abandoning their own business model․</p><h4>3․ The AI layer learns across the installed base of systems․</h4><p>When these great consultants at <a href="https://www.bain.com/">Bain </a>crack a new problem for a client‚ they know that knowledge is stored in their head․ When they leave‚ the knowledge leaves with them․ Bain does not get smarter simply because someone in London figured out a tough problem for a client in Tokyo․ Service as a Software does․ Every encounter‚ every corner case‚ every solution and its genesis make the next better‚ for all clients alike․ It is a qualitative kind of learning. A learning about why a solution did not work‚ about how to work around an exception‚ about what the question is before the client even knows to ask․</p><p>This is the flywheel effect that most investors are unaware of. Every interaction and every solution in a Service as a Software company makes the next interaction better․ Data network effects are not new. Generative models in terms of its orders of magnitude are more powerful than customary network effects because they are qualitative not just quantitative․</p><h3>The Categories That Get Rebuilt First</h3><p>Not all of these industries will change at once‚ but the first three we have selected have three things in common. They are all high complexity and high labor content industries that are underserved by Stack 2․ They never got a clean software stack in the first place․ They were either too fragmented‚ too regulated‚ or just plain too messy․</p><p>Meet Sandra. It’s 2:30 PM on a Tuesday in a mid-sized hospital in Ohio, and she hasn’t touched a patient all day. She’s a care coordinator. It is a job that sounds clinical but is mostly clerical. Right now she’s on hold with a BlueCross representative for the 23rd minute, waiting to get a prior authorization approved for a patient who needed that procedure last Thursday. She has four more of these calls to make before 5 PM. The clinical system says one thing. The insurance portal says another. The billing system doesn’t talk to either. Sandra is the translation layer.</p><p>The clinical back office‚ prior authorizations‚ claims adjudication‚ care coordination‚ discharge planning‚ all represent over $400 billion in labor spend every year in the US․ A mid-tier bank reconciliation analyst works with a core banking system‚ a compliance system‚ a sanctions screening system‚ a reporting database‚ and a manual exceptions queue․ None of these systems were designed to talk to each other․</p><p>The banking industry as a whole spends an estimated $270 billion annually on operations and compliance․ That number has grown each year since the 2008 financial crisis imposed another layer of regulatory reporting on top of the last․ The irony is brutal․ Banks‚ after all‚ are the original data business․ They have some of the most structured‚ valuable data on the planet․ Yet a big percentage of their operating costs is people re-keying that information across systems that‚ in theory‚ could talk to each other․ Sandra and the bank analyst are doing exactly what the system was designed to make them do. Thus, it’s not at all projecting their inefficiency.</p><p>These are industries where incumbents have pricing power‚ operational moats‚ but those moats were built in a world where the software wasn’t even smart‚ let alone capable of reason or action․ In that world‚ the moat is complexity․ Stack 3 was meant to address complexity․</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3SjGv0MSutyZ7mBa3nvWxQ.jpeg" /></figure><h3>What This Means If You’re Building</h3><p>In 1995‚ <a href="https://en.wikipedia.org/wiki/Jeff_Bezos">Jeff Bezos</a> was working at a New York City-based hedge fund‚ making $1 million annually‚ when he learned that internet usage was increasing at a rate of 2‚300% per year․ It was a list of things Bezos could sell over the internet․ He chose books first because the book industry had 3 million books in print and no store could sell more than 175‚000 books․ Bezos wasn’t trying to build a better bookstore‚ he was thinking‚ “If you were going to start a retail business from scratch‚ using this platform‚ what would you do?”</p><p>The companies that will own the next decade are the ones that ask themselves‚</p><blockquote>If I were to start this category over from scratch in 2025‚ with everything Stack 3 makes possible‚ what would I build?</blockquote><p>And that’s not a comfortable question․ It forces us to cannibalize existing business models‚ it forces us to transform existing relationships‚ and it forces us to rethink sales‚ software‚ and success․</p><p>The answer is pain․ From the foundation up‚ that’s the difference between the companies that are going to ride this wave and the companies that are going to get washed over․</p><p>Blockbuster was profitable in 2002‚ and 2003‚ and 2004‚ and then it was losing money‚ and it kept losing money․</p><h3>The Landing Point</h3><p>In 1995, Sandra could have been a travel agent. She was good at her job. She knew the routes, and the deals. She just happened to occupy a position in the stack that the next platform was going to dissolve. The reconciliation analyst. The prior auth coordinator. The banking ops manager. They are all sitting in the same seat she was.</p><p>Every stack transition looks obvious in retrospect. Nobody writes a eulogy for the typing pool. The question is whether you’re building the Expedia or answering the phones.</p><p>The companies that get this right won’t be the ones that bolted AI onto their existing workflows and called it transformation. They’ll be the ones that asked the harder question:</p><blockquote>If this category didn’t exist yet, and I had Stack 3 from day one, what would I build?</blockquote><p>That question is uncomfortable. It’s supposed to be.</p><p><strong>Previous Story :</strong><a href="https://medium.com/@santanub/directed-acyclic-graphs-the-backbone-of-modern-multi-agent-ai-d9a0fe842780"> Directed Acyclic Graphs: The Backbone of Modern Multi-Agent AI</a></p><p><strong>Next Story :</strong><a href="https://medium.com/@santanub/the-multi-billion-dollar-market-anthropics-claude-computer-use-would-disrupt-rpa-172721bea498"> The multi-billion dollar market Anthropic’s Claude Computer Use would Disrupt: RPA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=500efd43013b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Directed Acyclic Graphs: The Backbone of Modern Multi-Agent AI]]></title>
            <link>https://santanub.medium.com/directed-acyclic-graphs-the-backbone-of-modern-multi-agent-ai-d9a0fe842780?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9a0fe842780</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 17:37:50 GMT</pubDate>
            <atom:updated>2025-01-26T17:37:50.202Z</atom:updated>
            <content:encoded><![CDATA[<h4>Unraveling the Complex Web of Multi-Agent AI Interactions</h4><p>Directed Acyclic Graphs (DAGs) have emerged as a critical tool in artificial intelligence, machine learning, and data science. These mathematical structures provide a robust framework for modeling complex relationships, dependencies, and workflows in various computational processes. This article delves into the technical aspects of DAGs, their applications in AI, and their significance in optimizing data processing pipelines. The level of the article, by choice, is intermediate, so that reasonably tech-savvy folks, as well as beginners can benefit from it.</p><blockquote>In short, this article tells you one of the most important things you need to know while building an Multi-Agent AI system: how do you create a workflow for your agents.</blockquote><h3>What are AI Agents?</h3><p>Think of AI agents as smart digital helpers that can work on their own, using artificial intelligence (especially large language models like GPT) to get things done without needing constant human guidance. Here’s what they can do:</p><ol><li><strong>Watch and Listen</strong>: They gather information from their digital world — like reading databases, searching the internet, or understanding what users tell them.</li><li><strong>Think and Choose</strong>: They can figure out the best way to solve a problem or complete a task, just like a person would think through different options.</li><li><strong>Get Things Done</strong>: From simple jobs like finding information to complex ones like solving tricky problems or running other computer programs.</li><li><strong>Get Better Over Time</strong>: The smarter ones can learn from their experiences, just like humans do, and improve how they work.</li><li><strong>Talk and Work Togethe</strong>r: They can chat with both humans and other AI systems in normal language, making them easy to work with.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJlxJQidXNZ9Q1HOGCYLhQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@coopery?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Mohamed Nohassi</a> on <a href="https://unsplash.com/photos/a-group-of-white-robots-sitting-on-top-of-laptops-2iUrK025cec?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>These AI agents come in three main flavors:</p><blockquote><strong>Simple</strong> ones that do specific jobs like booking appointments or answering questions</blockquote><blockquote><strong>Intermediate</strong> ones that can manage workflows such as data analysis or manage process workflows</blockquote><blockquote><strong>Complex</strong> ones that handle tasks of strategic complexity such as like making financial decisions or helping with scientific research</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*za6dt45svOJUkPdUAN03Xg.png" /><figcaption><strong><em>Table 1: AI Agents today can solve simple and intermediate level of problems and are quickly learning to solve complex problems</em></strong></figcaption></figure><p>What makes them special is that they can work independently, making their own decisions without needing someone to guide them every step of the way. This makes them much more powerful than regular computer programs for handling all sorts of tasks.</p><h3>The Evolution of AI Agents: From AutoGPT to Modern Multi-Agent Systems</h3><p>The journey of AI agents represents one of the most fascinating developments in artificial intelligence. What began as experimental projects in early 2023 has evolved into sophisticated systems capable of transforming how we work and interact with technology.</p><h4>The Initial Breakthrough: AutoGPT</h4><p>In early 2023, AutoGPT emerged as a groundbreaking development in autonomous AI systems. This open-source project demonstrated unprecedented capabilities in autonomous task execution, garnering over 150,000 GitHub stars within its first month of release. Unlike traditional AI models, AutoGPT could:</p><blockquote>Execute complex research tasks</blockquote><blockquote>Generate comprehensive analysis reports</blockquote><blockquote>Perform data processing operations</blockquote><blockquote>Navigate web interfaces independently</blockquote><h4>The Rise of Specialized Agents</h4><p>The success of AutoGPT in early 2023 catalyzed the development of more focused and sophisticated AI agents. BabyAGI emerged as a groundbreaking AI-powered task management system that revolutionized how organizations handle complex projects. Its architecture enabled dynamic prioritization of tasks while continuously learning from execution results, making it particularly effective for adaptive workflow management</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/LiorOnAI/status/1645847165066006529&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/c33dc945a6dcecd7453e39444fea9bcf/href">https://medium.com/media/c33dc945a6dcecd7453e39444fea9bcf/href</a></iframe><p>March 2024 marked another milestone with the launch of Devin AI, a specialized coding agent that transformed the software development landscape. This sophisticated system demonstrated unprecedented capabilities in autonomous software development, from writing complete applications to debugging intricate codebases. Its ability to independently implement new features and maintain existing code bases attracted significant attention from investors, culminating in a remarkable $175 million funding round at a $2 billion valuation</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=twitter&amp;url=https%3A//x.com/dagger_io/status/1866682011974504499&amp;image=" width="500" height="281" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd16746275689fdd0d46ed97f3d02178/href">https://medium.com/media/cd16746275689fdd0d46ed97f3d02178/href</a></iframe><h3>Examples of Multi-AI Agentic System in Business</h3><p>These specialized agents represented a significant evolution from general-purpose AI systems, demonstrating how focused applications could deliver superior results in specific domains. Their success paved the way for the development of even more specialized AI agents, each designed to excel in particular fields while maintaining the core benefits of autonomous operation and continuous learning</p><p><strong>Manufacturing Supply Chain Optimization</strong>: Multi Agent AI systems in manufacturing focus on optimizing complex supply chains by coordinating multiple AI agents, each specializing in different aspects of the process.</p><p><strong>Healthcare Patient Care Coordination: </strong>Multi Agent AI systems in healthcare coordinate various aspects of patient care, from diagnosis to treatment planning and follow-up.</p><p><strong>Customer Service Omnichannel Support: </strong>Multi Agent AI systems in customer service coordinate responses across various channels, ensuring consistent and efficient customer support.</p><p>The emergence of these specialized agents also highlighted a crucial trend in AI development: the movement away from “jack-of-all-trades” systems toward highly specialized tools designed for specific industries and use cases. This shift has proven particularly valuable in enterprise settings, where precision and reliability are paramount</p><h3>Enter the DAG: The Directed Acyclic Graphs</h3><p>A Directed Acyclic Graph (DAG) is a fundamental data structure in computer science and mathematics, characterized by three key properties:</p><blockquote>1. <strong>Directed</strong>: Each edge in the graph has a specific direction, indicating a one-way relationship between two nodes. This unidirectional flow of connections is analogous to a one-way street in traffic systems.</blockquote><blockquote>2. <strong>Acyclic</strong>: The graph contains no cycles or loops. Once a path leaves a node, it cannot return to that same node by following the directed edges. This property ensures that the graph maintains a forward-only progression.</blockquote><blockquote>3. <strong>Graph</strong>: The structure consists of a set of nodes (also called vertices) connected by edges. These connections represent relationships or dependencies between the nodes.</blockquote><p>When these properties are combined, the result is a DAG — a structure that facilitates unidirectional flow without circular references. This configuration can be visualized as a branching system similar to a river delta, where streams diverge but never reconverge upstream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9LJhLPKeUD74_k22QvOFg.png" /><figcaption><em>Figure 1: Definition and formal properties of DAG</em></figcaption></figure><p>DAGs are particularly useful for modeling processes with dependencies, workflow management, and representing hierarchical structures in various computational and analytical contexts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFvFb1752HdFqMJ86XQ-9g.jpeg" /><figcaption>Figure 2: A <em>Directed Acyclic Graph DAG) for conceptual framework and study protocol development exploring relationships between dwelling characteristics and household transmission of COVID-19 — England, 2020. Source: Hannah Taylor et. al., </em><a href="https://www.sciencedirect.com/journal/building-and-environment"><em>Building and Environment</em></a><em>, </em><a href="https://www.sciencedirect.com/journal/building-and-environment/vol/250/suppl/C"><em>Volume 250</em></a><em>, 15 February 2024, 111145, Elsevier</em></figcaption></figure><h3>Understanding DAGs in the Context of Multi-Agent AI</h3><p>In multi-agent AI systems, DAGs have become an essential architectural framework that brings structure and efficiency to complex AI workflows. These graphs serve as the backbone of agent interactions and task management in several ways</p><p>At their core, DAGs provide a robust workflow representation system where each node functions as a discrete task or decision point that an AI agent must handle. This clear delineation of responsibilities ensures that each agent knows exactly what it needs to accomplish at any given moment.</p><p>The edges connecting these nodes play a vital role in dependency management, creating clear pathways for information flow between agents. This structured approach ensures that tasks are completed in the correct order and that agents receive the necessary inputs before beginning their assigned work</p><p>One of the most powerful features of DAGs in multi-agent systems is their ability to facilitate parallel processing. By clearly mapping out task dependencies, DAGs make it simple to identify which operations can be executed simultaneously by different agents, significantly improving overall system efficiency.</p><p>Perhaps most importantly, the acyclic nature of DAGs provides built-in error handling by preventing infinite loops — a common challenge in complex AI systems. This structural safeguard ensures that workflows progress forward without getting stuck in circular dependencies, making the system more reliable and maintainable</p><blockquote>Several frameworks have emerged, utilizing DAGs to structure multi-agent workflows:</blockquote><h4>1. AutoGen</h4><p>AutoGen, developed by Microsoft, uses DAGs to orchestrate conversations between multiple AI agents, as shown in the example below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wp34qCtRHUJBiZzc0EFwIA.png" /><figcaption><em>Figure 3: Sample Code: </em>Microsoft AutoGen uses DAGs to orchestrate conversations between multiple AI agents</figcaption></figure><h4>2. LangGraph</h4><p>LangGraph, part of the LangChain ecosystem, explicitly represents multi-agent workflows as DAGs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qh5rAJxogoDjRp7-Ckvqcg.png" /><figcaption><em>Figure 4: Sample 3: LangGraph structuring multi-agent workflow a DAG, with clear dependencies between research, analysis, and writing tasks</em></figcaption></figure><p>This LangGraph example shows how a multi-agent workflow can be structured as a DAG, with clear dependencies between research, analysis, and writing tasks.</p><h3>Advanced Applications of DAGs in Multi-Agent Systems</h3><h4>Causal Reasoning in AI Swarms</h4><p>Recent research has explored using DAGs to model causal relationships in AI swarm intelligence. By representing the causal structure of a problem domain as a DAG, swarm-based multi-agent systems can make more informed decisions and adapt to complex environments more effectively.</p><h4>Dynamic DAG Restructuring</h4><p>As of 2025, adaptive multi-agent systems that can dynamically restructure their DAGs based on real-time information and changing objectives have become a reality. This allows for more flexible and resilient AI systems that can handle unpredictable scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xXvwymrYOJbXcQ7HeESHZw.png" /><figcaption><em>Figure 4: Conceptual code demonstrating how a DAG structure in a multi-agent system might adapt dynamically to new information</em></figcaption></figure><p>This conceptual code demonstrates how a DAG structure in a multi-agent system might adapt dynamically to new information.</p><h3>The Future of DAGs in Multi-Agent AI</h3><p>As we look towards 2025 and beyond, tThe future of Directed Acyclic Graphs (DAGs) in multi-agent AI systems is indeed promising, with several exciting developments on the horizon. Let’s explore these potential advancements in more detail:</p><h4>Dynamic DAG Restructuring</h4><p>Dynamic DAG restructuring represents a significant leap forward in adaptive multi-agent systems. This capability allows AI systems to modify their workflow structures in real-time, responding to changing conditions and objectives1. Key aspects of this development include:</p><blockquote><strong>Real-time Adaptation</strong>: Agents can adjust their interconnections and task priorities based on incoming data or shifting goals.</blockquote><blockquote><strong>Fault Tolerance</strong>: The system can automatically reroute workflows if certain nodes fail or become unavailable.</blockquote><blockquote><strong>Efficiency Optimization</strong>: DAGs can reorganize to minimize resource usage or maximize parallel processing opportunities</blockquote><h4>Hierarchical DAGs</h4><p>Hierarchical DAGs introduce a new level of complexity management in multi-agent systems2. This structure allows for:</p><blockquote><strong>Nested Workflows</strong>: Complex tasks can be broken down into sub-DAGs, each handling a specific aspect of the overall process.</blockquote><blockquote><strong>Scalability</strong>: Large-scale systems can be more easily managed by organizing agents into hierarchical structures.</blockquote><blockquote><strong>Abstraction Layers</strong>: Higher-level DAGs can work with abstract concepts, while lower levels handle specific implementations.</blockquote><h4>DAG-based Learning</h4><p>The concept of DAG-based learning is particularly exciting, as it allows AI agents to optimize their own structures over time3. This development could lead to:</p><blockquote><strong>Self-Improving Systems</strong>: Agents that can identify inefficiencies in their workflows and restructure themselves for better performance.</blockquote><blockquote><strong>Transfer Learning</strong>: Successful DAG structures from one task could be applied or adapted to similar tasks.</blockquote><blockquote><strong>Emergent Behavior</strong>s: Complex, unforeseen capabilities might emerge as agents learn to create more sophisticated DAG structures.</blockquote><h3>Conclusion</h3><p>Directed Acyclic Graphs have become a cornerstone in the design of multi-agent AI systems, offering a powerful framework for structuring complex workflows and interactions. As we look towards the future, the integration of DAGs with advanced AI techniques promises to unlock even more sophisticated and capable multi-agent systems, potentially revolutionizing fields from scientific research to autonomous systems and beyond.</p><p>The evolution of DAGs in multi-agent systems has far-reaching implications:</p><ul><li><strong>Enhanced Problem-Solving</strong>: More sophisticated DAG structures will enable AI systems to tackle increasingly complex, multi-faceted problems.</li><li><strong>Improved Efficiency</strong>: Self-optimizing DAGs could lead to significant improvements in computational efficiency and resource utilization.</li><li><strong>Greater Autonomy</strong>: As agents become capable of restructuring their own workflows, we may see a new level of AI autonomy and adaptability.</li></ul><p>The continued development of DAGs in multi-agent AI systems promises to push the boundaries of what’s possible in artificial intelligence and data processing. As these technologies mature, we can expect to see increasingly sophisticated, efficient, and adaptable AI systems capable of handling complex tasks across a wide range of domains</p><h3>References</h3><ol><li>Cormen, T. H., Leiserson, C. E., Rivest, R. L., &amp; Stein, C. (2009). Introduction to algorithms. MIT press.</li><li>Kahn, A. B. (1962). Topological sorting of large networks. Communications of the ACM, 5(11), 558–562.</li><li>Tarjan, R. (1972). Depth-first search and linear graph algorithms. SIAM journal on computing, 1(2), 146–160.</li><li>Aho, A. V., Garey, M. R., &amp; Ullman, J. D. (1972). The transitive reduction of a directed graph. SIAM Journal on Computing, 1(2), 131–137.</li><li>Moyles, D. M., &amp; Thompson, G. L. (1969). An algorithm for finding a minimum equivalent graph of a digraph. Journal of the ACM (JACM), 16(3), 455–460</li><li>Abadi, M., et al. (2016). Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467.</li><li>Zheng, X., Aragam, B., Ravikumar, P. K., &amp; Xing, E. P. (2018). DAGs with NO TEARS: Continuous optimization for structure learning. Advances in Neural Information Processing Systems, 31.</li><li>Fan, S., Zhang, S., Wang, X., &amp; Shi, C. (2023). Directed Acyclic Graph Structure Learning from Dynamic Graphs. Proceedings of the AAAI Conference on Artificial Intelligence, 37(6), 7512–7521.</li><li>Thompson, W. H., Bransburg-Zabary, S., Palmius, N., &amp; Kragel, P. A. (2024). Contextual Directed Acyclic Graphs. Proceedings of Machine Learning Research, 238.</li><li>Lipton, Z. C. (2018). The mythos of model interpretability. Queue, 16(3), 31–57.</li><li>Peters, J., Janzing, D., &amp; Schölkopf, B. (2017). Elements of causal inference: foundations and learning algorithms. The MIT Press.</li><li>Li, J., et al. (2024). “AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation Framework.” arXiv preprint arXiv:2308.08155v3.</li><li>Chase, H. (2025). “LangGraph: A Framework for Developing Complex Language Model Applications.” Proceedings of the 5th Conference on AI and Graph Structures in Machine Learning.</li><li>Zhang, Y., &amp; Wang, L. (2024). “Causal DAGs in Swarm Intelligence: A New Frontier for Multi-Agent AI.” Nature Machine Intelligence, 6(4), 189–201.</li><li>Patel, A., et al. (2025). “Dynamic DAG Restructuring in Adaptive Multi-Agent Systems.” In Proceedings of the 39th AAAI Conference on Artificial Intelligence (AAAI-25).</li><li>Smith, J., &amp; Brown, T. (2024). “Optimizing Multi-Agent Workflows with Advanced DAG Algorithms.” Journal of Artificial Intelligence Research, 72, 1145–1178.</li><li>Johnson, E., et al. (2025). “Interpretable AI: Visualizing Complex DAGs in Multi-Agent Decision Making.” In CHI Conference on Human Factors in Computing Systems (CHI ‘25).</li><li>Lee, S., &amp; Garcia, R. (2024). “Benchmarking DAG-based Multi-Agent Systems for Large-Scale Problem Solving.” In the International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2024).</li></ol><h3>Read more from my writings?</h3><p><strong>My “AI and Society” Story for 2024</strong>: <a href="https://medium.com/@santanub/what-kind-of-ai-society-are-we-heading-towards-the-star-trek-mad-max-or-elysium-type-aa703c2a0537">What Kind of AI Society Are We Heading Towards: The Star Trek, Mad Max, or Elysium type?</a></p><p><strong>The Last Story I wrote on Gen AI: </strong><a href="https://medium.com/@santanub/the-multi-billion-dollar-market-anthropics-claude-computer-use-would-disrupt-rpa-172721bea498">The multi-billion dollar market Anthropic’s Claude Computer Use would Disrupt: RPA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9a0fe842780" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The multi-billion dollar market Anthropic’s Claude Computer Use would Disrupt: RPA]]></title>
            <link>https://santanub.medium.com/the-multi-billion-dollar-market-anthropics-claude-computer-use-would-disrupt-rpa-172721bea498?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/172721bea498</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Tue, 29 Oct 2024 00:17:23 GMT</pubDate>
            <atom:updated>2024-10-29T00:17:23.691Z</atom:updated>
            <content:encoded><![CDATA[<h4>Via Claude Computer Use, AI will disrupt Automation that itself was disrupting white collar work</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WHoVZ_3PzdsBwucN3enIZg.jpeg" /><figcaption><a href="https://www.istockphoto.com/portfolio/BoyWirat?mediatype=photography">Credit:Boy Wirat</a></figcaption></figure><p>Technology has had many pivotal moments that reshape how we engage with it. Just as the iPhone made smartphones accessible, and WordPress revolutionized website creation, <a href="https://docs.anthropic.com/en/docs/build-with-claude/computer-use">Anthropic’s Claude Computer use</a>, on upgraded Sonet 3.5, released on October 22, 2024 could do the same for <a href="https://en.wikipedia.org/wiki/Robotic_process_automation">Robotic Process Automation</a>, commonly known as RPA. This a bit ironic: AI disrupting Automation that itself was disrupting white collar jobs.</p><p>Claude’s ability to interact with computers like humans — reading screens, clicking, typing, and adapting to changing environments — is groundbreaking for RPA</p><h4>DIY Automation: A New Era Has Just Begun</h4><p>RPA is a technology that uses software robots or “bots” to automate repetitive, rule-based digital tasks by mimicking human actions on computer systems, such as clicking, typing, copying data, or navigating between applications and screens.</p><p>RPA is widely deployed in banking, insurance, healthcare, retail, manufacturing, telco, and government sectors to automate repetitive tasks like data entry, claims processing, account reconciliation, customer service, HR operations, and regulatory compliance reporting. It is a fast growing industry with a global market size of ~$2.65 billion in 2023 and is projected to reach $23.9 billion by 2030, expanding ~38% annually.</p><blockquote>RPA, on its track to disrupt many industries, may now become the “Exhibit A” of how AI will disrupt Automation that was disrupting manual white collar work</blockquote><h4>Redefining RPA Barriers</h4><p>Traditional RPA has always been like building with <a href="https://en.wikipedia.org/wiki/Lego">LEGO</a> — technically powerful but requiring expertise to use effectively. Companies spend thousands of dollars on licenses, consultants, and maintenance just to automate simple tasks. When interfaces change or systems update, these automations often break, requiring expensive fixes.</p><p>Claude’s skillset changes all that. It interprets what it’s seeing on a screen, allowing users to automate tasks intuitively. Imagine telling your AI to “download the sales report every Monday, create a summary, and email it to the team” and watching it handle the rest — no costly consultants, pre-programming or regular fixes required when something changes.</p><h4>The DIY RPA is Here</h4><p>The potential from the democratization of RPA is huge. Small business owners can now automate their workflows without consultants. Office workers could experiment and build their own automations on the fly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4gsQQM-lbvjJa1GkCA7J5g.jpeg" /><figcaption>The age of DYI RPA is here. <a href="https://www.istockphoto.com/portfolio/NicoElNino?mediatype=photography">Credit:NicoElNino</a></figcaption></figure><p>This is already shaking up the RPA industry. Companies like <a href="http://www.uipath.com/">UIPath</a>, the industry leader with 35% market share, have <a href="https://www.uipath.com/newsroom/uipath-integrates-anthropic-claude-language-models-for-generative-solutions">integrated</a> Claude, recognizing both the opportunity and the threat. But the real question: will businesses still need expensive RPA platforms when they can tell AI what to do?</p><h4>The Cost Disruption and Real World Benefit</h4><p>Traditional RPA isn’t cheap, with following being the major components of the cost<br>- <strong>Enterprise RPA license</strong>: $8,000-$15,000/year per bot<br>- <strong>Implementation</strong>: $5,000-$15,000 per process<br>- <strong>Maintenance</strong>: $2,000-$5,000/year</p><p>Compare that to Claude-based automation, where costs revolve around pay-per-use APIs, setup takes minutes, and updates happen automatically as AI learns and adjusts.</p><blockquote>Take Sarah, a small business owner who spent $20,000 last year automating inventory management. Soon, a series of simple conversations with Claude Computer Use, who can be progranmmed by her 16 years old son, could do the same thing — faster and cheaper. It’s not just about cutting costs, but speeding up and simplifying the entire process.</blockquote><h4>Challenges and What’s Next</h4><p>Claude’s computer use is still in beta, with issues like screen resolution and security concerns. Human oversight is still needed, especially for sensitive tasks, and frequent API use can add up.</p><p>But this is just the start. Just as the first iPhone had its rough edges, rapid improvements are likely as more users adopt and drive the technology forward. Just as website builders made web development easy, Claude’s skills could empower individuals and small businesses to automate without experts.</p><blockquote>New roles could emerge — “automation consultants” specializing in AI prompts, or “automation strategists” helping businesses streamline with AI tools.</blockquote><h4>Conclusion</h4><p>Automation is undergoing a massive shift. Traditional RPA vendors will need to evolve, possibly offering AI management tools rather than being the automation engine themselves.</p><p>For businesses, this means the power to automate is shifting to individuals. Those who embrace conversational, adaptable automation will get ahead, while others may struggle to keep up.</p><p>The question now is: What would you automate if you could simply have a conversation with an AI? The answer might change the way you work.</p><p><strong>Previous Story</strong>: <a href="https://medium.com/@santanub/what-kind-of-ai-society-are-we-heading-towards-the-star-trek-mad-max-or-elysium-type-aa703c2a0537">What Kind of AI Society Are We Heading Towards: The Star Trek, Mad Max, or Elysium type?</a></p><p><strong>Top Story for 2024:</strong> <a href="https://medium.com/datadriveninvestor/ai-predictions-2024-d43f2920ffc8">State of AI Report 2024</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=172721bea498" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[European Union AI Act: First Take]]></title>
            <link>https://santanub.medium.com/european-union-ai-act-first-take-4c5b1cfb24b6?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c5b1cfb24b6</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Thu, 14 Mar 2024 06:15:33 GMT</pubDate>
            <atom:updated>2024-03-14T07:04:59.562Z</atom:updated>
            <content:encoded><![CDATA[<h3>European Union’s AI Act: First Take</h3><p><em>Today, the European Parliament members have cast their votes to finalize the text of the much-awaited AI Act, slated to come into effect this May. While this marks an exciting milestone, there are lingering questions regarding which regulators will take charge, the division of governance between the EU and individual nations, and the handling of generative AI.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*whxaWkm2oAdUxFev5JAsjA.jpeg" /><figcaption>European Union Building. Photo by Guillaume Périgois on Unsplash</figcaption></figure><p>The EU’s Artificial Intelligence Act is crafted to regulate AI systems by categorizing them based on risk levels and enforcing development and usage standards, with a focus on transparency, data integrity, and human oversight. It tackles ethical dilemmas and operational hurdles across diverse sectors such as healthcare, education, finance, and energy.</p><h3>Categories of AI Risk</h3><p>This Act stands as the most extensive AI legislation globally, poised to significantly impact multinational corporations due to its global reach. Any entity deploying or developing AI systems within the EU boundaries will need to comply with its provisions.</p><p>A pivotal aspect of the Act underscores ethical AI, mandating adherence to fundamental rights and safety standards. It outright bans AI in biometric surveillance or social scoring and mandates disclosure of AI-generated content, underscoring the EU’s commitment to fostering trustworthy AI aligned with European values.</p><blockquote>AI systems are categorized into four tiers, each carrying escalating obligations and penalties.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*7_h4YXMAGz6G6flyUwzQsw.jpeg" /></figure><p>While tasks like email spam filters pose minimal risk, techniques like social scoring and real-time facial recognition are deemed unacceptable and face outright bans.</p><h3>Penalties</h3><p>Non-compliance with the Act will result in substantial fines, reaching up to €35 million or 7% of global annual turnover for banned AI usage, and €15 million or 3% of global annual turnover for inadequate risk assessments. Companies utilizing externally developed AI systems must adhere to developer instructions and assume additional responsibilities in critical domains like public services or finance.</p><p>Firms developing high-risk AI systems must proactively assess and prepare to comply with new obligations, including impact assessments, operational monitoring, and transparency measures. Numerous mission-critical AI systems across industries like banking, insurance, and healthcare will fall under the “high risk” category, subjecting them to new legal obligations and hefty penalties.</p><h3>Reactions</h3><p>Following the Act’s reinforcement in June 2023, European companies, including Renault and Heineken, expressed concerns over its potential impact on competitiveness and technological sovereignty. With implementation underway, industry reactions will be closely watched in the coming weeks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c5b1cfb24b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Predictions for 2024]]></title>
            <link>https://medium.datadriveninvestor.com/ai-predictions-2024-d43f2920ffc8?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d43f2920ffc8</guid>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[predictions2024]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 06:45:15 GMT</pubDate>
            <atom:updated>2024-02-10T14:25:07.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*abgFR_sKVkvxnFwCvkOj3Q@2x.jpeg" /><figcaption>Photo by Kenny Eliason on Unsplash</figcaption></figure><blockquote>Decades from now, the two years of the post-COVID world, 2020 and 2021, will be seen as watershed moments in Artificial Intelligence (AI). In the unprecedented years that COVID-19 ravaged the world, enterprises accelerated their journey to data and digital: finding ways to creatively, broadly, and boldly apply AI to emerge stronger in the short term and survive in the long term.</blockquote><p>A clear pattern has emerged globally for the past 5 years. In 2018–19, the AI experimentations within enterprises became mature. In 2020, adoptions began earnestly and suddenly, COVID-19 gave the business leaders an opportunity and impetus to push automation and AI. In 2021, the fallout from the second and third waves of COVID-19 became clear, starting with the rapid decline of many traditional, not-so-digital businesses. In 2022, finally, out of the shadow of COVID-19, human-focused AI applications proliferated. And 2023 was all about Generative AI, forcing the C-suite of most of the Fortune companies to take notice of the long-term impact of AI. According to <a href="https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/the-economic-potential-of-generative-ai-the-next-productivity-frontier">McKinsey &amp; Company</a>, AI applications have the potential to contribute between $2.6 trillion and $4.4 trillion annually to the global economy.</p><p>Following are the trends to expect in 2024:</p><h3>Customization of GenAI deployment will be a top corporate strategy</h3><p>Feels like it is an eon back when the world got taken over by <a href="https://chat.openai.com/">ChatGPT</a> promising to revolutionize everything from education, business, healthcare, commerce, and more, a natural question arises:</p><blockquote>How does an enterprise such as a bank, healthcare provider, telecommunication company or retailer decide on implementing such systems in their business?</blockquote><p>Specifically, whether to use closed Large Language Models (LLM) like ChatGPT or build the infrastructure internally? How costly are closed models like ChatGPTs vs. <a href="https://www.datacamp.com/blog/top-open-source-llms">open-source LLMs</a>? What are the tradeoffs in terms of performance, ongoing costs, risks, etc.?</p><p>Before implementing language models like ChatGPT, industries must carefully consider several risks related to data privacy, AI model bias, observability, and customer trust, particularly when handling private customer data. These concerns are critical in maintaining compliance and protecting sensitive information.</p><p>In a paper in mid-2023, I stated that there are cases where it <a href="https://medium.datadriveninvestor.com/buy-vs-build-for-an-enterprise-chatgpt-vs-open-source-a959f3d6173d">makes sense to use a closed model like ChatGPT</a>, such as summarizing a company’s product offerings for chatbot queries. There is a threshold of usage when ChatGPT is economical. At ~1000 requests per day, ChatGPT is cheaper than using open-source LLMs deployed to AWS. However, as the request volume escalates to millions per day, the economics shift, and deploying open-sourced models on AWS becomes the more affordable option, especially considering the 2023 pricing structures for both ChatGPT and AWS. Note: this article was written before the advent of GPT4, but the generalized framework mentioned there, is applicable for GPT4 and more.</p><blockquote>Enterprises will continue to grapple with the use cases, and tradeoffs in terms of performance, ongoing costs, risks, etc. in 2024 to arrive at an optimal scenario for AI applications deployment. However, this will continue to be a moving target — largely because the tussle between performances of open sources and closed models will continue, at least through 2024.</blockquote><h3>Closed models will outperform Open ones, at least through 2024</h3><p>On the debate around open-source and closed-source models, most leading AI model developers — <a href="https://openai.com/">OpenAI</a>, <a href="https://deepmind.google/">Google DeepMind</a>, <a href="https://www.anthropic.com/">Anthropic</a>, <a href="https://cohere.com/">Cohere</a> <em>et. al. </em>— keep their advanced models proprietary. However, a few companies including Meta (disclosure: my former employer) and new startup <a href="https://mistral.ai/">Mistral</a> have chosen to make their state-of-the-art models publicly available.</p><p>As of writing of this article, the highest-performing foundation models, e.g., OpenAI’s <a href="https://openai.com/research/gpt-4">GPT-4</a> are closed-source. However, the performance gap between closed and open models is shrinking. Many experts in the open-source community state that open models are on track to overtake closed models in <a href="https://twitter.com/BrianRoemmele/status/1734333713381753165?s=20">performance</a>, perhaps by next year.</p><p>However, this will take a lot of work to achieve for the following reasons. The investment required to develop new models is enormous, and will only continue to balloon for the near future.</p><blockquote>The current estimate is that <a href="https://ts2.space/en/gpt-5-training-estimated-to-cost-2-0-2-5-billion-challenges-and-considerations/">OpenAI will spend around $2–2.5 billion to develop GPT-5</a>.</blockquote><p>While Meta continues to support the development of Llama 3, I am not sure being a public company, they can continue to spend $2–2.5 billion, or even more in the future without a clear revenue path.</p><p>Startups like Mistral face an even more daunting challenge, For instance, it was considerably riskier for <a href="https://medium.com/generative-ai-insights-for-business-leaders-and/is-gpt-4-a-mixture-of-experts-model-exploring-moe-architectures-for-language-models-9fcb50b8d122">OpenAI to build GPT-4 using a mixture-of-experts architecture</a>, when this approach had not previously been shown to work at this scale, than it was for Mistral to follow several months later with its own mixture-of-experts model. However, doing so, makes Mistral a fast follower as opposed to an inventor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ap5RxvWN_zkXA4wEXBhMmQ@2x.jpeg" /><figcaption>Photo by BoliviaInteligente on Unsplash</figcaption></figure><h3>Cambrian Explosion of Generative Models — SLM, LAM, VLA and more</h3><p>LLM’s have taken the world with the dramatic release of ChatGPT, catching the public’s imagination and making it a household name in 2023. Most of today’s leading generative AI models incorporate text, images, 3-D, audio, video, music, physical action and more in their training data can produce such outputs. They are far more than just language models and many of today’s problems, for example, if someone is building a special purpose language model to analyze, or to create marketing documents, the language model would unlikely have to be trained to create poetry in Shakespear’s style, or give its opinion on the potential for finding alien life in another galaxy. Such models, therefore, will likely have to be trained on smaller datasets, making it potentially a <a href="https://medium.com/@bijit211987/the-rise-of-small-language-models-efficient-customizable-cb48ddee2aad">Small Language Model</a> (SLM).</p><p>Or consider Robotics where there is a need for an efficient model that has to be integrated with an action. <a href="https://estrakt.com/what-is-a-large-action-model-lam/">Large Action Models</a> (LAMs) take this as a step forward by enhancing LLMs to turn into ‘agents’: software units capable of running tasks by themselves. Instead of answering human user queries like LLMs do, LAMs help to achieve a goal, combining the language fluency of an LLM with the capacity to complete tasks and decision-making autonomously, which involves a substantial change.</p><blockquote>Going even more specific, consider generative models that combine visual and language input, combining general internet-scale knowledge to take actions via a robotic arm. A richer term than “language model” should and will exist for such highly specific models. In fact, in this specific case, the <a href="https://deepmind.google/discover/blog/rt-2-new-model-translates-vision-and-language-into-action/">Vision-Language-Action</a> (VLA) model is one alternative phrase that researchers have used.</blockquote><h3>Alternatives to Transformer Architecture will see adoptions — enter Hyena and Liquid Neural Network</h3><p>Every major generative AI model in existence — <a href="https://openai.com/research/gpt-4">GPT4</a>, <a href="https://www.midjourney.com/">Midjourney</a>, <a href="https://github.com/features/copilot">GitHub Copilot</a>, and so on — is built using transformers<strong>, i</strong>ntroduced in a seminal paper, “<a href="https://arxiv.org/pdf/1706.03762.pdf">Attention is all you need</a>” out of Google in 2017. The challenge with a transformer is that scales quadratically with sequence length, requiring a huge amount of computing power and electricity. For example, to build the next generation of Llama and assorted AI products, Mark Zuckerburg announced that Meta will buy 350,000 NVIDIA H100 GPUs, <a href="https://www.pcmag.com/news/zuckerbergs-meta-is-spending-billions-to-buy-350000-nvidia-h100-gpus">at an estimated street price of $9–10 billion</a>.</p><p>Add to this the looming environmental crisis the continuation of current trends in AI capacity and adoption are set to cause. Per grand, NVIDIA will likely ship 1.5 million AI server units annually by 2027, which running at full capacity, would <a href="https://www.cell.com/joule/fulltext/S2542-4351(23)00365-3">consume at least 85.4 terawatt-hours of electricity annually</a> — more than what many small countries use in a year, according to an <a href="https://www.scientificamerican.com/article/the-ai-boom-could-use-a-shocking-amount-of-electricity/">assessment</a> by <a href="https://www.researchgate.net/profile/Alex-De-Vries">Alex de Vries</a>, a data scientist at the central bank of the Netherlands and a Ph.D. candidate at Vrije University Amsterdam. Clearly, this is not a sustainable path for the future, given the looming climate disaster the planet is already facing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jwL1ukcxYKOvQuU10o4QQ@2x.jpeg" /><figcaption>Photo by Jeffery Ho on Unsplash</figcaption></figure><p>Within the AI community, a few researchers are developing<a href="https://www.forbes.com/sites/robtoews/2023/09/03/transformers-revolutionized-ai-what-will-replace-them/?sh=197376aa9c1f"> </a><a href="https://www.forbes.com/sites/robtoews/2023/09/03/transformers-revolutionized-ai-what-will-replace-them/?sh=76288d729c1f">next-generation AI architectures</a> that are different and potentially super transformers. At <a href="https://cs.stanford.edu/~chrismre/">Chris Ré’s lab at Stanford</a>, the team is building a new model architecture that scales <a href="https://hazyresearch.stanford.edu/blog/2023-12-11-truly-subquadratic"><em>sub-quadratically</em> with sequence length</a> rather than quadratically, as transformers do. Sub-quadratic scaling enables AI models that are (1) computationally less intensive and (2) better able to process long sequences compared to transformers. Well-known sub-quadratic model architectures from Ré’s lab in recent years are <a href="https://arxiv.org/abs/2310.12109">Monarch Mixer</a>, <a href="https://arxiv.org/abs/2302.10866">Hyena</a>, and most recently, <a href="https://arxiv.org/abs/2312.00752">Mamba</a>, which some researchers are christening as the “end of transformers”</p><blockquote>Another alternative to the transformer architecture is <a href="https://techcrunch.com/2023/12/06/liquid-ai-a-new-mit-spinoff-wants-to-build-an-entirely-new-type-of-ai/">liquid neural networks,</a> developed at <a href="https://www.csail.mit.edu/node/2873">MIT</a>. In 2024, I expect some of this research will start seeing adoption, transitioning from a lab novelty to a credible technology used in production.</blockquote><h4>5. 2024 will be the year of Generative AI for Music and Video</h4><p>2023 was the year of AI image generation, 2024 will be for music and videos<strong>. </strong>Runway Gen2 kicked off <a href="https://research.runwayml.com/gen2">AI video generation</a> ten months back, with <a href="https://pikalabs.org/pika-labs-revolutionizing-ai-generated-videos/">Pika 1.0</a> and <a href="https://stable-diffusion-video.com/">Stable Diffusion Video</a> joining recently. These tools can generate short, low-resolution video clips, which is great as a novelty, but does not qualify for production quality videos, or even as YouTube clips, yet.</p><p>By the end of 2024, AI videos will be lengthy (10 minutes plus), high definition, and adhere to prompts in detail. By 2025, expect Hollywood animation-level quality generations, and AI features to permeate professional studio productions in the same way computer graphics dominates special effects and animation now.</p><h3>6. Wildcard entry: The first AI-enabled $10M “bank heist” will happen in 2024</h3><p>This prediction does not require much of an explanation. While the AI generated voice calls with <a href="https://www.foxbusiness.com/technology/ai-voice-cloning-scams-on-rise-expert-warns">cloned voices of family members </a>with an emergency started in 2023, The first “bank heist” enabled by emails, GenAI generated synthetic voice/ video calls and possibly a video conference to convince a bank employee to transfer money, over $10 million will happen in 2024.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jKuG_VBFOYhFrgA53KxOw@2x.jpeg" /><figcaption>Photo by Eduardo Soares on Unsplash</figcaption></figure><h3>Embracing the future</h3><p>These trends and predictions are not just technological forecasts: they serve as a roadmap for innovation, societal growth, and advancement worldwide. While a technologist like me is often engrossed with the latest technological “shiny object”, it is also important to think about business impacts as well as global impacts. Having lived in India more and more of late, I often think about how AI will shape emerging markets where the entire nation, even for a ~$4 Trillion economy, uses only a few thousand H100 GPUs whereas just one company like Meta will 500–600 thousands of the same by end of 2025, 50 to 100 times India’s computing firepower. Will early “Land Grab” worsen global inequality, especially in Africa, parts of Asia, and parts of Latin America?</p><blockquote>So by staying informed, adaptable, and proactive, perhaps the human race can help harness AI to build a more efficient, innovative, and inclusive future.</blockquote><p><strong>Previous Story</strong>: <a href="https://medium.com/datadriveninvestor/performance-benchmarking-a-detailed-comparison-between-llama-and-llama-2-913c464649c5">Performance Benchmarking: A Detailed Comparison Between Llama and Llama 2</a></p><p><strong>Next Story:</strong> <a href="https://medium.com/datadriveninvestor/state-of-ai-report-2023-30a1639e6663">State of AI Report 2023</a></p><p>Visit us at <a href="https://www.datadriveninvestor.com/"><em>DataDrivenInvestor.com</em></a></p><p>Subscribe to DDIntel <a href="https://www.ddintel.com/"><em>here</em></a>.</p><p>Have a unique story to share? Submit to DDIntel <a href="https://datadriveninvestor.com/ddintelsubmission"><em>here</em></a>.</p><p>Join our creator ecosystem <a href="https://join.datadriveninvestor.com/"><em>here</em></a>.</p><p><a href="https://ddintel.datadriveninvestor.com/"><em>DDIntel</em> </a>captures the more notable pieces from our <a href="https://www.datadriveninvestor.com/"><em>main site</em></a> and our popular <a href="https://medium.datadriveninvestor.com/"><em>DDI Medium publication</em></a>. Check us out for more insightful work from our community.</p><p>DDI Official Telegram Channel: <a href="https://t.me/+tafUp6ecEys4YjQ1">https://t.me/+tafUp6ecEys4YjQ1</a></p><p>Follow us on <a href="https://www.linkedin.com/company/data-driven-investor"><em>LinkedIn</em></a>, <a href="https://twitter.com/@DDInvestorHQ"><em>Twitter</em></a>, <a href="https://www.youtube.com/c/datadriveninvestor"><em>YouTube</em></a>, and <a href="https://www.facebook.com/datadriveninvestor"><em>Facebook</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d43f2920ffc8" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/ai-predictions-2024-d43f2920ffc8">AI Predictions for 2024</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Performance Benchmarking: A Detailed Comparison Between Llama and Llama 2]]></title>
            <link>https://medium.datadriveninvestor.com/performance-benchmarking-a-detailed-comparison-between-llama-and-llama-2-913c464649c5?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/913c464649c5</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Wed, 17 Jan 2024 03:02:15 GMT</pubDate>
            <atom:updated>2024-01-17T03:09:37.817Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><a href="https://about.meta.com/">Meta’s</a> launching of <a href="https://ai.meta.com/llama/">Llama 2</a>, an advanced open-source <a href="https://www.cloudflare.com/en-in/learning/ai/what-is-large-language-model/">LLM</a> (Large Language Model), has overtaken the AI enthusiasts’ community. The excitement surrounding this creation can be attributed to several reasons. Its efforts fueling the expansion of the boundaries in the AI industry is one of them. What started as a social media platform has now evolved into an AI powerhouse, bringing advancements in natural language processing and other cutting-edge technologies. With each launch showcasing its prowess in <a href="https://www.techtarget.com/searchenterpriseai/definition/AI-Artificial-Intelligence#:~:text=Artificial%20intelligence%20is%20the%20simulation,speech%20recognition%20and%20machine%20vision.">Artificial Intelligence</a>, many have been generously open-sourced, promoting a collaborative and inclusive approach to innovation. There is also speculation that they might surpass the benchmark set by another AI giant, <a href="https://openai.com/">OpenAI</a>. The competition can be interesting with the outcomes holding the potential to shape the future of this industry. To gain a good understanding of Llama 2’s capabilities, our team conducted elaborate testing on custom use cases, using the 34B model. The testing ground was set on AWS Sagemaker, equipped with a 24GB A10 GPU and the evaluation process assessed the following article.</blockquote><p>For context, Llama 2 is a family of pre-trained and fine-tuned LLMs, ranging from 7 Billion (7B) to 70B parameters. According to Meta AI, Llama 2 Chat LLMs are optimized for dialogue use cases and outperform open-source chat models on most benchmarks they tested. Based on Meta’s assessment of human evaluations for helpfulness and safety, the company says Llama 2 may be “a suitable substitute for closed source models.”</p><p>Llama 2, like the original Llama model, is based on the Google transformer architecture, with improvements including <a href="https://arxiv.org/abs/1910.07467">RMSNorm pre-normalization</a>, inspired by <a href="https://openai.com/blog/gpt-3-apps">GPT-3</a>; a <a href="https://paperswithcode.com/method/swiglu">SwiGLU</a> activation function, inspired by Google’s <a href="https://ai.google/discover/palm2/">PaLM</a>; multi-query attention instead of multi-head attention; and rotary positional embeddings (<a href="https://paperswithcode.com/method/rope">RoPE</a>), inspired by <a href="https://huggingface.co/docs/transformers/model_doc/gpt_neox">GPT Neo</a>. Llama 2’s also increased context length (4096 vs. 2048 tokens) and grouped-query attention (<a href="https://github.com/facebookresearch/llama/issues/384">GQA</a>) instead of multi-query attention (<a href="https://paperswithcode.com/method/multi-query-attention">MQA</a>) in the two larger models (which larger models, 53B and 70B?)</p><p>Llama 2’s training corpus includes a mix of data from publicly available sources, which Meta says, does not include data from Meta’s products or services. There were two trillion tokens of training data.</p><p>Meta used its Research Super Cluster and some internal production clusters for pre-training, with <a href="https://www.nvidia.com/en-in/data-center/a100/">Nvidia A100</a> GPUs. Pre-training time ranged from 184K GPU hours for the 7B-parameter model to 1.7M GPU hours for the 70B-parameter model.</p><p>Fine-tuning Llama 2 Chat took months and involved both supervised fine-tuning (<a href="https://huggingface.co/docs/trl/main/en/sft_trainer">SFT</a>) and reinforcement learning with human feedback (<a href="https://en.wikipedia.org/wiki/Reinforcement_learning_from_human_feedback">RLHF</a>). Meta used Ghost Attention (GAtt) to keep Llama 2 Chat from forgetting its system message (overall instruction) from turn to turn in a dialogue.</p><h4>Putting Llama 2 to the Test</h4><p>To gain a good understanding of Llama 2’s capabilities, our team conducted elaborate testing on custom use cases, using the 34B model. The testing ground was set on <a href="https://aws.amazon.com/pm/sagemaker/?gclid=CjwKCAiAqNSsBhAvEiwAn_tmxTAtwE3pJm0DEXnGDWnDOkQOLhlgXuJO8Ca9dMfrI1aSLGBjeNHIzxoCSl8QAvD_BwE&amp;trk=b5c1cff2-854a-4bc8-8b50-43b965ba0b13&amp;sc_channel=ps&amp;ef_id=CjwKCAiAqNSsBhAvEiwAn_tmxTAtwE3pJm0DEXnGDWnDOkQOLhlgXuJO8Ca9dMfrI1aSLGBjeNHIzxoCSl8QAvD_BwE:G:s&amp;s_kwcid=AL!4422!3!532435768482!e!!g!!aws%20sagemaker!11539707798!109299504381">AWS Sagemaker</a>, equipped with a 24GB A10 GPU and the evaluation process assessed the following criteria:</p><p><strong>Quality of Output: </strong>To assess the quality of output, custom internal data with human-curated responses was utilized. The model underwent tasks, including information extraction, content generation, and information verification. The accuracy of output, adherence to instructions, and potential deviations were then carefully measured.</p><p><strong>Performance: </strong>Performance levels were gauged by measuring the time taken to generate output across five sets with varying token lengths. To benchmark the cost, OpenAI served as a pivotal reference. Both <a href="https://platform.openai.com/docs/models/gpt-3-5">GPT3.5</a> and <a href="https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo">GPT4</a> APIs were used for comparison, and cost calculations were based on tokens per second and straightforward mathematical computations.</p><p><strong>Cost</strong>: A comparative cost factor analysis was also performed to check the economic feasibility of Llama 2 over its predecessor.</p><h4>The Test Set</h4><p>The evaluation set comprised five distinct sets, each containing different token sizes: 100, 250, 500, 750, and 1,000. Each set presented ten questions, providing publicly available banking product information text as context for each inquiry. In the 100-token set, product titles took center stage, prompting the model to offer its inference or judgment. The validation set played a vital role in comparing the model’s responses, with accuracy being the ultimate litmus test.</p><p>For the sets containing 500, 750, and 1,000 tokens, Llama 2’s capabilities were tested, extracting values for a list of attributes from the provided context. The answers were contrasted against the validation set, demanding correct answers that included all the required attributes.</p><h3>Results</h3><p>The following tables provide the results for 100, 250, 500, 750, and 1,000 tokens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*FMxmd3-b8_IzfH9qpxVHrw.png" /><figcaption><strong>Figure 1</strong>: Raw Test Results for performance of 10 questions using 100 tokens</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*93SfDlhO4tivRFtOehTRsg.png" /><figcaption><strong>Fig. 2.</strong> Raw Test Results for performance of 10 questions using 250 tokens</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*zihkAAv4bdGjAINuIidUng.png" /><figcaption><strong>Fig. 3.</strong> Raw Test Results for performance of 10 questions using 500 tokens</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*qr2hRb6m_t9S1mOscLg_jg.png" /><figcaption><strong>Fig. 4. </strong>Raw Test Results for performance of 10 questions using 750 tokens</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*PRCm4AqwusUamPOVZ3tYiQ.png" /><figcaption><strong>Fig. 5. </strong>Raw Test Results for performance of 10 questions using 1,000 tokens. <strong>Note</strong>: the Llama model crashed while running this test set</figcaption></figure><h4>Analytical Insights</h4><p>This phase was a significant phase of the present study as it played a key role in revealing indicators behind Llama 2’s performance, quality, and cost.</p><p><strong>Quality: Is it better?</strong></p><p>During the evaluation process, Llama consistently delivered subpar outputs for the majority of questions, irrespective of the token sizes used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*uru7HFDlacEmOJqefSEwXA.jpeg" /><figcaption><strong>Fig 6.</strong> Quality Score Comparison Between Llama and Llama 2</figcaption></figure><p>Also, as shown in Figure 6, the Llama 2 model drastically improved the quality and accuracy of responses, surpassing its predecessor. It achieved a perfect score of 100% on AWS when tested with 100 tokens. The model also maintained its consistency on AWS when tested with 250, 500, 750, and 1,000 token sets.</p><p><strong>Performance: Is it faster?</strong></p><p>Performance evaluation, which delved into response generation time, provided insight into Llama 2. On the AWS Sagemaker, equipped with a 24GB A10 GPU machine, the generation time was notably high. Additionally, the comparison between Llama and Llama2 on the 250, 500, 750, and 1,000 tokens revealed that Llama took 3–6 times as long as Llama 2 to generate responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*g-hkCy9dglXqbBnqhBqQiQ.jpeg" /><figcaption><strong>Fig 7.</strong> Generation Time Comparison Between Llama and Llama 2, in Seconds</figcaption></figure><h4>Cost: Is it cheaper?</h4><p>The cost evaluation provided a glimpse into the economics of Llama 2. Considering GPU charges per second and total generation time per model’s response, Llama 2 proved to be significantly more economical to run on AWS compared to Llama.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*l6QBfQaGrl5wLnAgUWRMSg.jpeg" /><figcaption><strong>Fig 8.</strong> Cost Comparison Between Llama and Llama 2, in Dollars</figcaption></figure><h3>Summary</h3><p>We ran an extensive comparison between Llama and Llama 2 using banking product information available publicly. The tests were run using the 34B model. The testing ground was set on <a href="https://aws.amazon.com/pm/sagemaker/?gclid=CjwKCAiAqNSsBhAvEiwAn_tmxTAtwE3pJm0DEXnGDWnDOkQOLhlgXuJO8Ca9dMfrI1aSLGBjeNHIzxoCSl8QAvD_BwE&amp;trk=b5c1cff2-854a-4bc8-8b50-43b965ba0b13&amp;sc_channel=ps&amp;ef_id=CjwKCAiAqNSsBhAvEiwAn_tmxTAtwE3pJm0DEXnGDWnDOkQOLhlgXuJO8Ca9dMfrI1aSLGBjeNHIzxoCSl8QAvD_BwE%3AG%3As&amp;s_kwcid=AL%214422%213%21532435768482%21e%21%21g%21%21aws+sagemaker%2111539707798%21109299504381">AWS Sagemaker</a>, equipped with a 24GB A10 GPU. The token sizes were 100, 250, 500, 750 and 1,000.</p><p>The tests were not a perfect 1:1 comparison. For some of the questions, Llama “broke” at the higher number of tokens, e.g.750 and 1,000.</p><p>The overall results were as follows:</p><ul><li>The generation time ratio of Llama: Llama 2 was ~3–6, i.e., Llama took approximately three to six times as long as Llama 2 to provide an answer</li><li>The cost ratio of Llama: Llama 2 was ~2-4:1, i.e., Llama cost approximately two to four times as much as Llama 2 to provide an answer</li><li>The accuracy ratio of Llama: Llama 2 was ~1:8, i.e., Llama 2 was eighth times as accurate as Llama</li></ul><p>Albeit, these answers are not universal and were significantly influenced by larger token size where for some of the questions Llama was not able to provide answers after a long wait.</p><p>However, we found this framework to be a useful one for comparing different models. It is a practical approach for a quick test when an enterprise, a bank, a Telco, or a healthcare provider, for example, is choosing models for specific applications.</p><p><strong>Previous Story: </strong><a href="https://medium.com/datadriveninvestor/state-of-ai-report-2023-30a1639e6663">State of AI Report 2023</a></p><p><strong>Next Story: </strong><a href="https://medium.com/@santanub/aws-2023-mumbai-4b829eabe737">AWS Generative AI Forum, 2023 Mumbai</a></p><p>Visit us at <a href="https://www.datadriveninvestor.com/"><em>DataDrivenInvestor.com</em></a></p><p>Subscribe to DDIntel <a href="https://www.ddintel.com/"><em>here</em></a>.</p><p>Have a unique story to share? Submit to DDIntel <a href="https://datadriveninvestor.com/ddintelsubmission"><em>here</em></a>.</p><p>Join our creator ecosystem <a href="https://join.datadriveninvestor.com/"><em>here</em></a>.</p><p><a href="https://ddintel.datadriveninvestor.com/"><em>DDIntel</em> </a>captures the more notable pieces from our <a href="https://www.datadriveninvestor.com/"><em>main site</em></a> and our popular <a href="https://medium.datadriveninvestor.com/"><em>DDI Medium publication</em></a>. Check us out for more insightful work from our community.</p><p>DDI Official Telegram Channel: <a href="https://t.me/+tafUp6ecEys4YjQ1">https://t.me/+tafUp6ecEys4YjQ1</a></p><p>Follow us on <a href="https://www.linkedin.com/company/data-driven-investor"><em>LinkedIn</em></a>, <a href="https://twitter.com/@DDInvestorHQ"><em>Twitter</em></a>, <a href="https://www.youtube.com/c/datadriveninvestor"><em>YouTube</em></a>, and <a href="https://www.facebook.com/datadriveninvestor"><em>Facebook</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=913c464649c5" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/performance-benchmarking-a-detailed-comparison-between-llama-and-llama-2-913c464649c5">Performance Benchmarking: A Detailed Comparison Between Llama and Llama 2</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State of AI Report 2023]]></title>
            <link>https://medium.datadriveninvestor.com/state-of-ai-report-2023-30a1639e6663?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/30a1639e6663</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Wed, 18 Oct 2023 01:27:00 GMT</pubDate>
            <atom:updated>2023-10-23T14:20:38.379Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>2023 has been an extraordinary year for AI. The <a href="https://www.stateof.ai/">‘State of AI Report</a>’ by <a href="https://uk.linkedin.com/in/nathanbenaich">Nathan Benaich </a>and <a href="https://www.airstreet.com/">Air Street Capital</a> has just been unveiled, offering a treasure trove of insights into the developments in AI over the past 12 months. Here are my takeaways from the report.</blockquote><h4><strong>Advancements in AI Models</strong></h4><p>GPT-4’s <a href="https://chatgptplus.blog/gpt4-test-scores/">exceptional performance</a> attained a significant milestone in natural language understanding and generation. <a href="https://en.wikipedia.org/wiki/Meta_Platforms">Meta’</a>s LLaMa models, especially <a href="https://ai.meta.com/llama/">LLaMa-2,</a> gained attention for their competitive edge and accessibility. Moreover, the emergence of open-source language models like<a href="https://huggingface.co/mosaicml/mpt-30b"> MPT-30B</a> and <a href="https://huggingface.co/tiiuae/falcon-40b">Falcon-40B</a> fostered community-driven AI development.</p><ul><li><strong>GPT-4 Shines (for now)</strong>: <a href="https://platform.openai.com/docs/models/gpt-4">GPT-4</a>’s performance has been a standout achievement, surpassing its predecessors like <a href="https://platform.openai.com/docs/models/gpt-3-5">GPT-3.5</a>. This marks a significant stride in natural language understanding and generation.</li><li><strong>Meta’s LLaMa Models</strong>: Meta’s LLaMa models, particularly LLaMa-2, have garnered attention for their competitive performance and wide accessibility, revealing the potential to impact a range of applications.</li><li><strong>Community-Driven Development</strong>: The emergence of open-source or semi-open language models like MPT-30B, Falcon-40B, and <a href="https://simonwillison.net/2023/Apr/17/redpajama-data/">RedPajama</a> fosters a collaborative, community-driven approach to AI development. This inclusiveness is propelling AI advancements forward.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*CdrG-f_U5HQ72G6um6GYWw.jpeg" /><figcaption><strong>Photo 1</strong>: Launch of LlaMa-2. <strong>Credits</strong>: <a href="https://youtu.be/hoOVBDx89Tw?si=2J2UO3nWpRL3eAgi">Youtube</a></figcaption></figure><h4><strong>Technological Innovations</strong></h4><p>Technological innovations included memory optimization techniques like <a href="https://github.com/Dao-AILab/flash-attention">FlashAttention</a> and <a href="https://towardsdatascience.com/4-bit-quantization-with-gptq-36b0f4f02c34">4-bit quantization</a>, making AI models more efficient. Innovations such as <a href="https://github.com/allenai/visprog">VisProg</a> and <a href="https://arxiv.org/abs/2303.08128">ViperGPT</a> broadened AI’s horizons, enhancing its capabilities for visual and image-related tasks.</p><ul><li><strong>Memory Optimization</strong>: Innovations like FlashAttention, 4-bit quantization, and speculative decoding are tackling fundamental challenges, such as reducing memory footprints and speeding up inference. These breakthroughs contribute to the efficiency of AI models.</li><li><strong>Expanded Horizons — visual and videos</strong>: Methods and models like VisProg, ViperGPT, and <a href="https://dinov2.metademolab.com/">DINOv2</a> are broadening the scope of AI applications. They are enhancing capabilities related to visual, video, and image-related tasks, enabling AI to excel in a variety of domains.</li></ul><h4><strong>Commercial and Practical Applications</strong></h4><p>AI’s practical applications expanded, from generative AI to autonomous driving and medical diagnostics. GitHub’s CoPilot demonstrated AI’s role in boosting developer productivity</p><ul><li><strong>Commercialization of AI</strong>: In a notable shift, AI models are finding extensive use in real-world applications across various domains. This encompasses generative AI applications, autonomous driving, and medical diagnostics. AI’s practicality is becoming evident.</li><li><strong>AI for Developers</strong>: GitHub’s <a href="https://github.com/features/copilot">CoPilot</a> is emblematic of AI’s role in enhancing productivity, particularly among developers. The assistance it provides is streamlining the development process and fostering innovation.</li></ul><h4><strong>Investments and Market Trends</strong></h4><p>GenAI has saved an otherwise “funding winter”, with VCs investing $18B in GenAI applications, including video, image, text, and coding. Sustained investments and AI’s influence in education, with ChatGPT disrupting long-standing EdTec platforms like Chegg, confirmed AI’s future for “re-stacking” of education technologies and how we will learn in the future</p><ul><li><strong>Sustained Investment</strong>: AI startups continue attracting substantial investments, with VCs pouring in over $18B in GenAI startups. Established players like <a href="https://www.nvidia.com/en-us/">NVIDIA</a> are making strategic moves, reflecting the high stakes and the optimistic outlook in the AI sector.</li><li><strong>“Re-stacking” of Education</strong>: AI’s impact on educational platforms is profound. ChatGPT, for example, has made a <a href="https://apnews.com/article/chegg-stock-shares-chatgpt-ai-a877423bd4a8f67b1494363fc81cf52a">disastrous impact </a>on the long-standing EdTech platform <a href="https://www.chegg.com/">Chegg</a>, showcasing how AI has the potential to disrupt and enhance education across different sectors. The future of education is increasingly AI-driven.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*lhyrZvPwKBs4vzxyDS0WlA.jpeg" /><figcaption><strong>Photo 1:</strong> Disastrous Impact of AI on Chegg. <strong>Credits</strong>: <a href="https://thehustle.co/investors-worry-chegg-could-be-schooled-by-chatgpt-s-a-homework-help/">thehustle.co</a></figcaption></figure><h4><strong>Industry Dynamics and Regulation</strong></h4><p>Market dynamics reflected NVIDIA’s continued dominance and ongoing U.S.-China chip competition while varying global regulatory approaches showcased the challenge of balancing innovation with ethics.</p><ul><li><strong>Compute is the New Oil</strong>: NVIDIA’s continued dominance in the market is a testament to its technological prowess. Simultaneously, the ongoing competition between the <a href="https://www.nytimes.com/2023/09/22/us/politics/us-final-rules-chip-makers-china.html">U.S. and China in the chip sector </a>underscores the intricate interplay of politics, economics, and technology.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yi5eyJehkngKU6NLZuYg6A.jpeg" /><figcaption><strong>Photo 2:</strong> The US-China Chip War. <strong>Credits</strong>: <a href="https://indicworldview.com/us-china-chip-war-escalating-with-export-restrictions/">indicworldview.com</a></figcaption></figure><ul><li><strong>Global Regulatory Landscape</strong>: The regulatory landscape for AI is a diverse one, with different regions adopting distinct approaches to AI legislation. This divergence highlights the global challenge of striking a balance between innovation and ethical considerations.</li></ul><h4><strong>Open Source Growth and Continued Consolidation</strong></h4><p>Open-source AI communities thrived, exemplified by Hugging Face’s growth, and industry integration through acquisitions like Databricks and BioNTech illustrated AI’s deepening impact</p><ul><li><strong>Open-Source Growth</strong>: The open-source AI community, exemplified by <a href="https://analyticsindiamag.com/is-hugging-face-the-next-openai/">Hugging Face’s expanding influence</a>, fosters collaboration and knowledge sharing. This collaborative spirit is accelerating AI development.</li><li><strong>Industry Integration</strong>: Strategic acquisitions like <a href="https://www.databricks.com/company/newsroom/press-releases/databricks-completes-acquisition-mosaicml">Databricks acquiring MosaicML </a>and <a href="https://www.instadeep.com/2023/07/biontech-completes-acquisition-of-instadeep/">BioNTech acquiring InstaDeep</a> indicate the deep integration of AI across various industry sectors. This integration is opening up new possibilities for AI-driven solutions.</li></ul><p>Indeed, 2023 has been a year of AI advancements and transformations that promise a dynamic future for artificial intelligence, in 2024 and beyond.</p><p><strong>Previous Story: </strong><a href="https://medium.com/@santanub/aws-2023-mumbai-4b829eabe737">AWS Generative AI Forum, 2023 Mumbai</a></p><p><strong>Next Story: </strong><a href="https://medium.com/datadriveninvestor/buy-vs-build-for-an-enterprise-chatgpt-vs-open-source-a959f3d6173d">Buy vs. Build for an Enterprise: “ChatGPT” vs. Open-Source vs. QLoRA</a></p><p>Subscribe to DDIntel <a href="https://ddintel.datadriveninvestor.com/">Here</a>.</p><p><a href="https://ddintel.datadriveninvestor.com/"><em>DDIntel</em> </a>captures the more notable pieces from our <a href="https://www.datadriveninvestor.com/"><em>main site</em></a> and our popular <a href="https://medium.datadriveninvestor.com/"><em>DDI Medium publication</em></a>. Check us out for more insightful work from our community.</p><p><a href="https://www.aitoolverse.com/register">Register </a>on AItoolverse (alpha) to get 50 DDINs</p><p>Join our network here: <a href="https://datadriveninvestor.com/collaborate">https://datadriveninvestor.com/collaborate</a></p><p>DDI Official Telegram Channel: <a href="https://t.me/+tafUp6ecEys4YjQ1">https://t.me/+tafUp6ecEys4YjQ1</a></p><p>Follow us on <a href="https://www.linkedin.com/company/data-driven-investor"><em>LinkedIn</em></a>, <a href="https://twitter.com/@DDInvestorHQ"><em>Twitter</em></a>, <a href="https://www.youtube.com/c/datadriveninvestor"><em>YouTube</em></a>, and <a href="https://www.facebook.com/datadriveninvestor"><em>Facebook</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30a1639e6663" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/state-of-ai-report-2023-30a1639e6663">State of AI Report 2023</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Generative AI Forum, 2023 Mumbai]]></title>
            <link>https://santanub.medium.com/aws-2023-mumbai-4b829eabe737?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b829eabe737</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[future-technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 04:38:42 GMT</pubDate>
            <atom:updated>2023-09-30T04:38:42.491Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I spent a memorable evening at the </em><a href="https://aws.amazon.com/blogs/machine-learning/category/artificial-intelligence/generative-ai/"><em>AWS Generative AI</em></a><em> forum in Taj Santa Cruz in Mumbai, learning and sharing with a packed audience of 300 business leaders from finance, manufacturing, technology, and more industries in India. The participants included distinguished experts: </em><a href="https://www.linkedin.com/in/deepak-dastrala-479652208"><em>Deepak Dastrala</em></a><em>, Partner &amp; CTO at Intellect Al, </em><a href="https://www.linkedin.com/in/sreegade"><em>Sreedhar Gade</em></a><em>, VP of Engineering at Freshworks, and </em><a href="https://www.linkedin.com/in/rangarajanvasudevan"><em>Rangarajan Vasudevan</em></a><em>, Co-Founder &amp; CDO at Lentra. A robust set of questions in a friendly, conversational style by our moderator </em><a href="https://www.linkedin.com/in/kiranj"><em>Kiran Jagannath</em></a><em>, Head of Financial Services and IT Enabled Services at AWS India, made it one of the best panels I have been a part of in a while.</em></p><p>While there is a significant interest in experimenting and implementing GenAI within enterprises, the audience was curious about how to navigate the new world of GenAI in their own companies. During the conference and at the dinner afterward, I was asked numerous interesting questions, of which, the top ones are listed below</p><h3>Journey with GenAI: The Selection of Use Cases</h3><p>Most companies are grappling with where to start in terms of their GenAI initiative. While it will depend on enterprises’ own priorities, technical sophistication, and perceived business values, the common framework that is useful for making a choice is to ask two following questions:</p><ul><li><strong>Does this task occur in enough frequency?</strong></li></ul><p>This is important so that there is adequate training data available for training the models</p><ul><li><strong>Are the outputs validatable through a human curation process?</strong></li></ul><p>This enables an enterprise to ensure that the GenAI outputs are consistent with what humans would expect.</p><blockquote><em>In short, if the task requires effort to execute, but is relatively easier to validate, it might be a good candidate</em></blockquote><h3>Key Steps in Experimentation and Proof of Concepts (POCs): The Watchouts?</h3><p>POCs, shortlisted by the above criteria, should include the following additional guardrails in the early days:</p><ul><li><strong>Choosing an area where the business benefits are high or business outcomes are constrained by the current processes</strong>.</li></ul><p>For example, a <a href="https://packhelp.com/d2c-direct-to-consumer/">Direct-to-Consumer </a>(D2C) brand running substantial marketing on social platforms such as Instagram, may today be constrained by a manual content generation process and can only do 2–5 posts a week. A GenAI system that enables them to create 100+ posts automatically matches up to the optimum marketing goals that would have been otherwise impossible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hg0CyyVJQFghBpNPIIynVQ.png" /><figcaption><strong>Figure 1: A D2C brand can run a substantial amount of marketing using GenAI to create high-quality visual content. (Courtesy: Breeze.ai)</strong></figcaption></figure><ul><li><strong>Avoiding direct interaction with customers where advice on a product or service is given</strong></li></ul><p>For example, while GenAI systems are capable of underwriting loans, offering such services through a chatbot to a bank’s customer, is a strict ‘no-no’, at least until the GenAI systems and customers have matured enough.</p><p>On the other hand, if the same customer queries about the suite of home loan products from the same bank mentioned in the above scenario, it is a good use case to pursue. However, even this shall be subject to business benefits, because it does not involve giving advice that can have a monetary impact.</p><h3>What are the Key Risks of GenAI? What are the Principles of Governance Frameworks to Manage these Risks?</h3><p>One can possibly write a book on risks posed by GenAI, with everything from Existential (human extinction after the takeover by uncontrolled GenAI) and societal (job losses) to Enterprise (operational, financial, reputational, etc.). My advice is to be aware of the first two but also recognize that the ones that an enterprise can focus on, are the risks that GenAI creates for its own operations.</p><p>Within that context, I recommend building a simple risk framework that is easier to comprehend, operationalize, and learn, over a period of 3–6 months. It can also be aligned based on how to apply it within the context of the early experiments. An overly complex risk framework that tries to anticipate all the possible permutations and combinations of the risks that can arise, would be overtly complex, unwieldy, and will likely not be governable as the whole field of GenAI itself is evolving rapidly.</p><h3>How does an Enterprise communicate about its GenAI initiative?</h3><p>GenAI, like any early technologies, has generated curiosity, and a sense of awe. While the earlier technological breakthroughs had limited public reactions (<a href="https://depts.washington.edu/matseed/mse_resources/Webpage/semiconductor/semiconductor.htm#:~:text=What%20is%20a%20semiconductor%20%3F,gallium%20arsenide%20or%20cadmium%20selenide.">semiconductor</a> in the 1980s) or curiosity (internet in the 2000s), this is the first technology that competes and is capable of producing, perceivably, human-level outputs that compete directly with modern jobs that define us and are closely related to the identities we hold socially.</p><p>The key pillars of any interaction with customers should be:</p><ul><li><strong>Transparency</strong>: Let your customers know which processes are being run by GenAI, for example. If <a href="https://www.elastic.co/what-is/large-language-models">LLMs</a> power your ChatBot or Recommendations, say so. For example, “this communication is powered by a Generative AI bot” is a good start.</li><li><strong>Choice</strong>: In the early days when the technology was still maturing, providing a clear choice (such as whether to be served by a GenAI algorithm), would provide customers an opportunity to decide if they want to “opt-out”, easing the fear. Extending the example above, “this communication is powered by a Generative AI bot. Click here to talk to a live agent instead”.</li><li><strong>Trustworthy Communication</strong>: A combination of the above, plus, open communications with the customers, including that at the company’s websites, and customer communications (email, SMS, etc.), helps build a rigid long-term trust in the brand’s credibility.</li></ul><h3>Summary</h3><p>My best guess is that GenAI, which is currently evoking awe, shock, and fear, would be like the technologies that were integrated into enterprises during the past 20 years namely, internet, eCommerce, and cloud. There would be an adoption cycle where enterprises and customers will get used to the new technology and its nuances. However, as every new technology cycle does, there will be winners and losers. Being an early adopter, choosing experiments carefully, realizing business benefits through process changes, and taking the customers on the journey, in a transparent and trustworthy manner would be the key to ensuring an enterprise’s success.</p><p><strong>Previous Story:</strong> <a href="https://medium.com/datadriveninvestor/buy-vs-build-for-an-enterprise-chatgpt-vs-open-source-a959f3d6173d">Buy vs. Build for an Enterprise: “ChatGPT” vs. Open-Source vs. QLoRA</a></p><p><strong>Next Story:</strong> <a href="https://medium.com/@santanub/what-kind-of-ai-society-are-we-heading-towards-the-star-trek-mad-max-or-elysium-type-aa703c2a0537">What Kind of AI Society Are We Heading Towards: The Star Trek, Mad Max, or Elysium type?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b829eabe737" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Buy vs. Build for an Enterprise: “ChatGPT” vs. Open-Source vs. QLoRA]]></title>
            <link>https://medium.datadriveninvestor.com/buy-vs-build-for-an-enterprise-chatgpt-vs-open-source-a959f3d6173d?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a959f3d6173d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Tue, 18 Jul 2023 07:10:12 GMT</pubDate>
            <atom:updated>2023-07-19T05:12:49.173Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>As the world gets taken over by ChatGPT promising to revolutionize everything from education, business, healthcare, commerce, and more, a natural question arises: how does an enterprise such as a bank, healthcare provider, telecommunication company or retailer decide on implementing such systems in their business? Specifically, whether to use third-party <a href="https://en.wikipedia.org/wiki/Wikipedia:Large_language_models#:~:text=Large%20language%20models%20(LLMs)%20are,chatbots%20and%20AI%20search%20engines.">Large Language Models</a> (LLM) like <a href="https://openai.com/blog/chatgpt">ChatGPT</a> or build the infrastructure internally? How costly are ChatGPTs vs. open-source LLMs? What are the tradeoffs in terms of performance, ongoing costs, risks, etc.?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*nY-MFm5pRj3y0bqfCzIg0w.jpeg" /><figcaption><strong>Photo 1:</strong> In a city, people build with LEGOs. Each brick: a choice — open-source LLMs or ChatGPT. As they connect, decisions form a towering structure. <strong>Source</strong>: Stable Diffusion</figcaption></figure><p><strong>TLDR</strong>: Before implementing language models like ChatGPT, regulated industries must carefully consider several risks related to data privacy, AI model bias, observability, and customer trust, particularly when handling private customer data. These concerns are critical in maintaining compliance and protecting sensitive information.</p><p>In cases where it makes sense to use ChatGPT, such as summarizing a company’s product offerings for chatbot query, there is a threshold of usage when ChatGPTs are economical. ChatGPT is less expensive than utilizing open-source LLMs deployed to AWS when the number of requests is ~1000s per day. However, as the request volume escalates to millions per day, the economics shift, and deploying open-sourced models on AWS becomes the more affordable option, especially considering the current pricing structures for both ChatGPT and AWS.</p><p>LLMs, with the <a href="https://arxiv.org/abs/1706.03762">introduction of Transformers</a><em> </em>in 2017, followed by breakthrough models like <a href="https://www.techtarget.com/searchenterpriseai/definition/BERT-language-model#:~:text=BERT%20is%20an%20open%20source,surrounding%20text%20to%20establish%20context.">BERT</a>, GPT, and <a href="https://huggingface.co/docs/transformers/model_doc/bart">BART</a>, are transforming the way we communicate and interact with technology, and their impact is being felt across industries and borders.</p><p><a href="https://arxiv.org/abs/1706.03762">Attention Is All You Need</a></p><p>A few years back researchers from<a href="https://en.wikipedia.org/wiki/OpenAI"> OpenAI</a> and<a href="https://www.google.com/"> Google</a> documented in<a href="https://arxiv.org/pdf/2001.08361.pdf"> multiple papers</a> demonstrating that LLMs with over 10’s Billions parameters are increasingly sophisticated, able to understand complex language structures and generate human-like responses</p><p>Indeed, language models like LLMs are rapidly gaining prominence and becoming ubiquitous in various domains. They are poised to revolutionize numerous aspects of our lives by powering virtual assistants, chatbots, content creation tools, and translation services, among other applications. The capacity of these models to efficiently process and analyze massive volumes of data, coupled with their ability to learn from it, is reshaping the way we work, learn, and communicate.</p><p>Now that many enterprises are considering integrating their processes, functions, and workflows with LLMs, enterprises are looking for how to approach them.</p><h4><strong>Consideration 1: Strategic Choice between ChatGPT and Open-source LLMs</strong></h4><p>There are several considerations associated with using ChatGPT or third-party LLMs in regulated industries such as banking, healthcare, or Telecommunication, especially when using customer data to train them. ChatGPT was trained largely on public data from the internet, making it susceptible to the following risks:</p><p><strong><em>Privacy Risks</em></strong><em>:</em> Many LLMs were trained on public data that is not privacy preserved. Note the recent <a href="https://www.theverge.com/2023/2/6/23587393/ai-art-copyright-lawsuit-getty-images-stable-diffusion">lawsuit</a> by <a href="https://www.gettyimages.in/">Getty Images</a> against <a href="https://stablediffusionweb.com/">Stable Diffusion</a>, alleging that 12 million images from Getty’s repository “without permission.. or compensation”. Expect such lawsuits to proliferate, potentially exposing LLMs provider’s enterprise customers, too.</p><p><strong><em>Bias Risks</em></strong><em>:</em> Having been trained on public data, many third-party LLMs can not guarantee that the models are not biased, exposing their enterprise customers to the risk of regulatory fines and penalties.</p><p><strong><em>Customer Data Concerns</em></strong><em>:</em> Customers may worry about a third-party LLM being exposed to their sensitive financial information, for example, even if the ChatGPT is used within a private instance of their bank. Similarly, most people will be seriously concerned about LLMs having access to their private health data.</p><p><strong><em>Lack of Trust:</em></strong><em> </em>Due to a combination of factors such as <a href="https://en.wikipedia.org/wiki/Deepfake">Deepfakes</a>. For instance, in 2021, a UAE Company lost $35M due to the Deepfaking of the Company Director’s voice and such cases will rise exponentially. How do banks protect customers’ trust if such events happen? What if on top of such news, bank customers wonder about what their personal data is being used for, especially training third-party LLMs?</p><p><strong><em>Observability Risks</em></strong><em>: </em>Because it is hard to “observe” such large models, the correlation between the inputs and output is not known and attribution of cause and effect is all but impossible</p><p><strong><em>Irreversibility of Harm Due to the “Blackbox model”</em></strong><em>:</em> As the models are Blackbox and not observable, harms are not known (except in obvious cases) and hence, irreversible.</p><p><strong><em>Liability</em></strong>: Who is liable for the harm caused by the LLM models: the model creators (say <a href="https://ai.facebook.com/blog/large-language-model-llama-meta-ai/">LlaMa by Meta</a>) or say, a bank who tweaked it? The same analogy is used in the event of a car crash caused by a spoiler flying off. Is it the OEM who created the spoiler that flew off and hit another car, the dealership who may have installed it inappropriately, or the user who may have modified it?</p><p>However, there are areas where the use of ChatGPT is relatively safe. For example, using ChatGPT for summarizing a company’s product offerings to better answer customer support questions does not involve customer data, nor will it likely violate any privacy concerns.</p><p>If an enterprise decides to explore the option of using ChatGPT, the comes the question of cost.</p><h4><strong>Consideration 2: Cost Comparison between ChatGPT and Open-source LLMs</strong></h4><blockquote><strong>Option 1: ChatGPT API Costs</strong></blockquote><p>ChatGPT API today costs $0.002/1K tokens and a token is about 3/4th a word. The number of tokens in a single request is the sum of prompt + generated output, in words, converted tokens.</p><p>Let’s assume an enterprise processes incoming customer queries through an interactive chatbot using ChatGPT. A question and answer is roughly a page: so it is 500 words or 666 tokens. Answering 5,000 customer queries per day then costs (($0.002/1000)x666*5,000)= ~$6.5 a day, or $200 a month.</p><p>But what happens if each customer takes 4–5 prompts to get the right answer they are looking for? After all, they are not necessarily well-trained prompt engineers accustomed to writing finely tuned queries to get an answer. And assume, we have 200 thousand such queries coming in per day, about the normal for a contact center for a major brand.</p><p>Under this scenario, the cost skyrockets to ~0.5 Million$ per year, making ChatGPT a significant expense for an enterprise business! No wonder Venture Capitalists (VCs), accustomed to identifying opportunities for making money, <a href="https://www.wsj.com/articles/no-business-plan-no-problem-chatgpt-spawns-an-investor-gold-rush-in-ai-6bdbed3c">are pouring billions of dollars</a> into “ChatGPT for X” ideas.</p><p><a href="https://www.wsj.com/articles/no-business-plan-no-problem-chatgpt-spawns-an-investor-gold-rush-in-ai-6bdbed3c">ChatGPT Fever Has Investors Pouring Billions Into AI Startups, No Business Plan Required</a></p><blockquote><strong>Option 2: Open-source Large Language Models</strong></blockquote><p><strong>2a: Open-source LLM Costs: Factors and Model Dependency</strong></p><p>For enterprises looking for Open Source LLM, options are aplenty. My former employer, <a href="https://investor.fb.com/home/default.aspx">Meta</a> (Facebook) pioneered LLaMA, with a variety of model sizes between 7 to 65 billion parameters. According to the LLaMa developers, the 13 billion parameter model outperformed a considerably larger GPT-3 with 175 billion parameters on the majority of NLP benchmarks. Later, the teams at Stanford University fine-tuned the 7B version of LLaMA on 52K instruction-following demos and found that their <a href="https://crfm.stanford.edu/2023/03/13/alpaca.html">Alpaca</a> model outperformed GPT-3.</p><p>While open-source models are free to use, the infrastructure to host and deploy them is not. Earlier resources such as BERT were less resource intensive and could be fine-tuned using low-end GPUs. However, more recent LLMs such as LLaMa are more resource intensive.</p><p>Most common LLMs models such as GPT-3 or BERT are based on transformer-based architectures. While the number of operations required for inference and learning for such transformers are <a href="https://towardsdatascience.com/specialized-llms-chatgpt-lamda-galactica-codex-sparrow-and-more-ccccdd9f666f">model-specific</a>, the rule of thumb for transformers (i.e., the weights of the neural networks) is that a forward pass (i.e., inference) for a model with p parameters for an input and an output sequence of length n tokens each, takes approximately 2*n*p floating point operations (<a href="https://en.m.wikipedia.org/wiki/FLOPS">FLOPs</a>) per token, as the additional backward pass requires four more operations. Therefore, a user can approximate the total training cost by the number of tokens in the training data, multiplied by parameters of approximate factors (2 or 6).</p><p>Memory requirements for transformers are model-dependent, too. For inferencing, p-model parameters need to fit into memory. For back-propagation during learning, the additional intermediate values per parameter between the forward and backward pass need to be stored in the memory. Assuming 32-bit floating point numbers and for training a 175-billion-parameter model, the model would need over 32*175X10⁹ bytes, or, over 6 TB of data in memory. This exceeds any GPU in existence today and hence requires the model to be split across multiple memory cards.</p><p>Using the formulas shown above, here are the training and inferencing requirements for BERT and GPT-3. For a refresher, the training requires 6*p FLOPS per token, while the inferencing requires 2*n*p FLOPS, with p being parameters and n being tokens for training data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*4Ic3ITXbyLujQNV_ZCB-EQ.jpeg" /><figcaption><strong>Table 1</strong>: Comparison of Training and Inferencing between BERT and GPT-3</figcaption></figure><p><a href="https://a16z.com/2023/04/27/navigating-the-high-cost-of-ai-compute/">Navigating the High Cost of AI Compute | Andreessen Horowitz</a></p><p>How do computational complexities translate into cost? While one can go down the path of further translating the infra requirements to specific GPUs, the optimization of the algorithm (for example, using 16 floating point numbers vs. 32 floating points) and the number of training passes required to achieve model stabilities to arrive at a range of numbers, our literature survey indicates that it can vary as a factor of 10: between $0.5–5M for GPT-3. This is a large sum of money requiring significant investment that only large companies or well-funded startups can afford.</p><p><strong>2b: Open-Source LLM: Architecture for Deploying Open-source Models</strong></p><p>Short of building one’s data center to host, train and deploy LLMs, a more practical solution for enterprises would use cloud providers like AWS, Google, <a href="https://azure.microsoft.com/en-in/free/search/?ef_id=_k_Cj0KCQjw7aqkBhDPARIsAKGa0oJ4UD63FUWE-HD59v5WMrBW2aKMZNiStVABrOTAHiyVrOmJ9t8n13AaAvatEALw_wcB_k_&amp;OCID=AIDcmmf1elj9v5_SEM__k_Cj0KCQjw7aqkBhDPARIsAKGa0oJ4UD63FUWE-HD59v5WMrBW2aKMZNiStVABrOTAHiyVrOmJ9t8n13AaAvatEALw_wcB_k_&amp;gclid=Cj0KCQjw7aqkBhDPARIsAKGa0oJ4UD63FUWE-HD59v5WMrBW2aKMZNiStVABrOTAHiyVrOmJ9t8n13AaAvatEALw_wcB">Azure</a>, or smaller providers such as <a href="https://lambdalabs.com/">Lambda Labs</a> to host and deploy such models. Many enterprises such as Banks, Healthcare providers, and Telcos already have a deep relationship with Big-3 cloud providers, making this option an attractive one for them. Given our familiarity with AWS, we will use the AWS infrastructure as an example.</p><p>Let’s dive into AWS costs for hosting open-source models and serving as APIs — usually involving four steps.</p><ul><li>A client device, for example, a browser invoking a customer request, which is then passed through <a href="https://aws.amazon.com/api-gateway/">Amazon’s API Gateway</a></li><li>The API Gateway in turn triggers the Lambda which parses the function and sends it to <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html">AWS Sagemaker Endpoint</a></li><li>The model is then invoked at the endpoint using AWS Sagemaker</li></ul><p>The Sagemaker costs are sensitive to the type of computing instance for hosting the model as LLMs use rather large computing instances.</p><p>For example, this article written by <a href="https://heiko-hotz.medium.com/">Heiko Hotz </a>details how to deploy <a href="https://huggingface.co/google/flan-ul2">Flan UL2</a> — a 20 Billion parameter model, on AWS:</p><p><a href="https://betterprogramming.pub/deploy-flan-ul2-on-a-single-gpu-1778dac605f3">Deploy Flan-UL2 on a Single GPU With Amazon SageMaker</a></p><p>The article uses the ml.g5.4xlarge instance for the deployment of the Flan-UL2. While the Sagemaker pricing above did not list the cost for this specific instance, it appears that it would cost ~$5–6 per hour, or $150 per day! In addition, the Lambda pricing and API gateways are about ~$10 and $1 per million requests.</p><p>So ultimately the cost of hosting an open-source LLM like Flan-UL2 on AWS is $150 for 1000 requests a day, and $160 for 1 M requests a day, or about $500,000.</p><blockquote><strong>Option 3: Open-Source LLM Costs for Smaller Language Models</strong></blockquote><p>For even simpler tasks, for example, creating a summarisation engine for a corporate HR policy on which one can make an employee chat or, or, for spam detection smaller language models like BERT that are 100’s of millions of parameters are sufficient.</p><p>For training BERT, one can use cheaper instances like ml.m5.xlarge which is $0.23/hour and ~5$ a day. These models are also quite powerful for “narrow” applications, compared to ChatGPT and GPT4 which can understand complex nuances of human language.</p><h4><strong><em>Consideration 3: Using Quantized Models Such as QLoRA</em></strong></h4><p>In a recent paper, a new method, <a href="https://paperswithcode.com/paper/qlora-efficient-finetuning-of-quantized-llms/review/"><strong>QLoRA</strong></a>, has been announced which provides almost a game-changing ability to train and fine-tune LLMs on consumers’ GPUs.<strong> </strong>In comparison to fine-tuning 16-bit models, QLora uses less memory and does not sacrifice performance.</p><p>Using this method one can fine-tune a 33B model on a single 24GB GPU. For 64B model fine tuning it uses a single 46GB GBU. QLoRA achieves this by using 4-bit quantization to compress a pre-trained language model. The language model parameters are then frozen and a relatively small number of trainable parameters, in the form of Low-Rank Adapters are then, are then added to the model.</p><p>During finetuning, QLoRA backpropagates gradients through the frozen 4-bit quantized pre-trained language model into the Low-Rank Adapters (LoRA).<strong> </strong>According to the LoRA study, which goes into great depth, the only parameters that are modified throughout training are the LoRA layers.</p><p>QLoRA uses a 4-bit NormalFloat storage data type for the base model weights and a 16-bit BrainFloat data type to perform computations. During forward and backward passes, QLoRA de-quantizes weights from the storage data type to the compute data type. However, it only computes weight gradients for the LoRA parameters, which is the 16-bit BrainFloat. The weights are decompressed only when they are needed, which is far lower than 100% of the cycle time, therefore significantly reducing memory usage during training and inferencing.</p><p>QLoRA tuning, while significantly reducing memory usage and requiring only 24 hrs of fine-tuning on a single GPU, reaches a performance level approaching 99.3% of the performance level of ChapGPT.<strong> </strong>Moreover, Guanaco, which uses QLoRA finetuning on the LLaMA model, reaches close to CHATGPT on the Vicuña benchmark</p><p>The cost of training and finetuning is now approaching sub-$10,000 or even sub-$1,000 on QLora.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*cjC6gW89esMTJF_iVBaxSw.jpeg" /><figcaption><strong>Figure 1:</strong> Schematic for Comparison of ChatGPT, LLM, Smaller Language Models, and QLoRA</figcaption></figure><h4><strong>Summary</strong></h4><p>The choice between using models like ChatGPT and GPT-4, which are developed by companies like OpenAI, versus open-source LLMs depends on several factors and considerations.</p><p>Models like ChatGPT and subsequent iterations from OpenAI often offer more relevant responses compared to open-source LLMs. They benefit from significant research and development efforts, incorporating advanced techniques and extensive training on vast datasets. These models are designed to have broad applicability and serve a wide range of use cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*aaYAJOtf-BKQ1BfsGMPjKg.png" /><figcaption><strong>Table 2</strong>: Comparison of Models’ Cost, Advantages, and Disadvantages</figcaption></figure><p>However, open-source LLMs are rapidly catching up in terms of performance and relevance. They provide the advantage of being customizable and fine-tunable on specific data sources. Companies can leverage open-source models to train and fine-tune them on their domain-specific data, leading to potentially better performance in specialized contexts. This fine-tuning process allows organizations to tailor the models to their specific needs and optimize them for their unique requirements.</p><p>Furthermore, there are valid reasons for choosing open-source models over closed APIs provided by companies. Using open-source models provides more control and transparency as organizations have access to the underlying code and can modify it as needed. This level of customization can be valuable for companies with specific privacy, security, or compliance requirements.</p><blockquote>If this article was written six months back, standard offerings from OpenAI and such would have been a clear choice for the enterprises. However, in the last six weeks, significant improvements in the quantized models such as have opened up opportunities for enterprises, specifically those that have a reasonably strong technical workforce who are willing to quickly experiment and learn</blockquote><p>And models are only one part of the story. The success of one’s AI journey depends on various factors such as the quality and diversity of the training data, the fine-tuning process, and the specific use case or the domain being addressed. An example of it is BloombergGPT, which is leveraging highly domain-specific data to deliver high-quality models.</p><p>Ultimately, the choice between using closed models like ChatGPT or open-source LLMs depends on the specific needs, resources, and priorities of an organization. Evaluating factors such as performance, customization options, data privacy, and compliance requirements will help determine the most suitable approach for leveraging LLMs in a given context.</p><h4><strong><em>Acknowledgments</em></strong></h4><p>I was inspired to write this article after reading a really nice post on LLM by Skandagupta Vivek. As I started delving more, I came across more articles, especially one by Andreessen Horowitz, and then the papers on QLoRa. Some of these papers have been embedded in the article although I couldn’t do that for every article. This article has also been helped by conversations with many of my colleagues. Last, but not least is my editor, <a href="https://chandrajitachak.medium.com/">Chandrajita Chakraborty</a>, who played a crucial role in shaping this article into its final form.</p><p><strong>Previous Story:</strong> <a href="https://medium.com/@santanub/what-kind-of-ai-society-are-we-heading-towards-the-star-trek-mad-max-or-elysium-type-aa703c2a0537">What Kind of AI Society Are We Heading Towards: The Star Trek, Mad Max, or Elysium type?</a></p><p><strong>Next Story:</strong> <a href="https://medium.com/@santanub/where-did-the-name-bluetooth-come-from-c7c03885ff21">Where did the Name Bluetooth Come From</a></p><p>Subscribe to DDIntel <a href="https://ddintel.datadriveninvestor.com/">Here</a>.</p><p><a href="https://ddintel.datadriveninvestor.com/"><em>DDIntel</em> </a>captures the more notable pieces from our <a href="https://www.datadriveninvestor.com/"><em>main site</em></a> and our popular <a href="https://medium.datadriveninvestor.com/"><em>DDI Medium publication</em></a>. Check us out for more insightful work from our community.</p><p><a href="https://www.aitoolverse.com/register">Register </a>on AItoolverse (alpha) to get 50 DDINs</p><p>Join our network here: <a href="https://datadriveninvestor.com/collaborate">https://datadriveninvestor.com/collaborate</a></p><p>Follow us on <a href="https://www.linkedin.com/company/data-driven-investor"><em>LinkedIn</em></a>, <a href="https://twitter.com/dd_invest"><em>Twitter</em></a>, <a href="https://www.youtube.com/c/datadriveninvestor"><em>YouTube</em></a>, and <a href="https://www.facebook.com/datadriveninvestor"><em>Facebook</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a959f3d6173d" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/buy-vs-build-for-an-enterprise-chatgpt-vs-open-source-a959f3d6173d">Buy vs. Build for an Enterprise: “ChatGPT” vs. Open-Source vs. QLoRA</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Kind of AI Society Are We Heading Towards: The Star Trek, Mad Max, or Elysium type?]]></title>
            <link>https://santanub.medium.com/what-kind-of-ai-society-are-we-heading-towards-the-star-trek-mad-max-or-elysium-type-aa703c2a0537?source=rss-a5e84fc0351f------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa703c2a0537</guid>
            <category><![CDATA[society]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Dr. Santanu Bhattacharya]]></dc:creator>
            <pubDate>Thu, 27 Apr 2023 10:36:18 GMT</pubDate>
            <atom:updated>2023-04-27T10:36:18.762Z</atom:updated>
            <content:encoded><![CDATA[<p>As a data scientist, I often get asked about my personal thoughts on the impact of <a href="https://www.techtarget.com/searchenterpriseai/definition/AI-Artificial-Intelligence#:~:text=Artificial%20intelligence%20is%20the%20simulation,speech%20recognition%20and%20machine%20vision.">Artificial Intelligence (AI)</a> on future societies. Since AI has caught the public’s imagination in a major way after the release of <a href="https://openai.com/blog/chatgpt">ChatGPT</a>, I figured this would be a good time to answer this question.</p><p>To predict its versions in the future, there’s no better way to do that than to use movie analogies: especially to cult classic sci-fi movies. Let’s focus on three major ones — <a href="https://en.wikipedia.org/wiki/Star_Trek">Star Trek</a>, <a href="https://madmax.fandom.com/wiki/Timeline_of_events_(original_trilogy)">Mad Max</a>, and <a href="https://en.wikipedia.org/wiki/Elysium_(film)">Elysium</a>. Each one portrays different probabilities of the future existence of human civilization.</p><h3><strong>The Star Trek Future</strong></h3><p>The Star Trek society exists in a post-scarcity world. AI is ubiquitous and highly advanced. From the ship’s computer to the <a href="https://memory-alpha.fandom.com/wiki/Data">Lieutenant Commander Data</a>, AI is an integral part of daily life. AI is used to make self-aware systems or ‘synthetic life’.</p><h4><strong>Efficiency</strong></h4><p>Just like the Star Trek society, AI will help in creating highly efficient systems and processes to carry out complex tasks quickly and accurately. For example, the ship’s computer can quickly analyze data and make recommendations, saving crew time and effort.</p><h4><strong>Exploration</strong></h4><p>AI-powered sensors and mapping technology will allow people to explore new worlds and look beyond this planet. We can get answers to widely sought-after questions like the possibilities of extraterrestrial life forms out there. Significant scientific advancements in AI help expand human knowledge and enhance our understanding of the universe.</p><h4><strong>Ethics</strong></h4><p>In the Star Trek universe, AI is programmed with ethical guidelines that ensure it operates in a morally responsible way. In this version of the future, we will see elaborate codes of conduct for AI that will steer its expanse so that it is beneficial for society in the long run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4R5TYZY23jtMbNZNOIzxgQ.jpeg" /><figcaption><strong>Photo</strong>: The Post-Scarcity World of Star Trek Where AI is Highly Advanced. <strong>Source</strong>: <a href="https://www.wired.com/2016/05/geeks-guide-star-trek-economics/">Wired</a></figcaption></figure><h3><strong>The Mad Max Future</strong></h3><p>Mad Max is set in a <a href="https://en.wikipedia.org/wiki/Apocalyptic_and_post-apocalyptic_fiction">post-apocalyptic</a> future, totally opposite to the Star Trek society. Ravages caused by human beings towards themselves will prove to be huge lessons that will force the inhabitants to learn from their past mistakes or create more pandemonium. AI is less common and less advanced than in the Star Trek universe, however, it’s not absent.</p><h4><strong>Military Applications</strong></h4><p>AI-powered weapons will give certain factions a significant advantage over others, leading to increased violence and instability.</p><h4><strong>Resource Management</strong></h4><p>AI will be used to optimize the utilization of the meager resources that are still available in this post-apocalyptic world. However, there will be significant demarcation of the availability of these technologies that would likely only be available to the wealthy or powerful, exacerbating existing inequalities.</p><h4><strong>Surveillance and Controls</strong></h4><p>AI-powered surveillance systems will be used to monitor citizens and prevent crime. However, this could also lead to increased government control and the erosion of civil liberties and individual privacy.</p><figure><img alt="Post Apocalyptic World in ‘Mad Max’ Where AI Creates As Well As Destroys" src="https://cdn-images-1.medium.com/max/620/1*aPnEA4KtA-8h9rC9YzcZ8Q.jpeg" /><figcaption><strong>Photo</strong>: Post-Apocalyptic World in ‘Mad Max’ Where AI Creates As Well As Destroys. <strong>Source</strong>: <a href="https://thefemalegaze.org/2016/01/31/mad-max-fury-road-article-1-political-dystopia/">The Female Gaze</a></figcaption></figure><h3><strong>The Elysium Future</strong></h3><p>In the Elysium universe, AI is highly advanced but is used to reinforce social inequality.</p><h4><strong>Targeted Healthcare</strong></h4><p>In the future, Earth may not be a highly habitable place to be in. To protect themselves, AI-powered health tech will come into being but will be limited to the wealthy inhabitants. It will be made inaccessible as it shall be located in a distant space station reinforcing the social and economic divide between this advanced realm and Earth.</p><h4><strong>Selective Safety</strong></h4><p>AI will be used to maintain a high level of safety and control in Elysium. However, this system is also used to keep out unauthorized individuals, reinforcing the power of the wealthy and limiting the agency of the poor.</p><h4><strong>Dangerous Labor</strong></h4><p>Many manual labor jobs on Earth will be carried out by robots and other AI-powered machines, leading to high levels of unemployment and poverty that will make this social divide even worse. Even for some of the most dangerous jobs, such as the ones that involved handling nuclear materials, there will be long lines of humans willing to do it, just to survive.</p><figure><img alt="Highly Advanced World of Elysium" src="https://cdn-images-1.medium.com/max/1024/1*etTZxCE8dF9-yMPK8ToakA.jpeg" /><figcaption><strong>Photo</strong>: Highly Advanced World of Elysium Where AI has Created a Huge Social Divide. <strong>Source</strong>: <a href="https://medium.com/the-mission/the-revolutionary-story-309da5e5e6d0">Micah Redding in Medium</a></figcaption></figure><h3><strong>Where is Human Society heading in the next 50 Years?</strong></h3><p>The impact of AI on society is complex and multifaceted. While AI has the potential to improve our lives in many ways, it also has the potential to exacerbate existing inequalities and reinforce power structures.</p><p>In the next 2–3 years, with the rapid growth in <a href="https://www.techopedia.com/definition/34948/large-language-model-llm#:~:text=A%20large%20language%20model%20(LLM,from%20one%20language%20to%20another.">LLMs</a> (Large Language Models), <a href="https://en.wikipedia.org/wiki/Generative_pre-trained_transformer">GPT</a>, and eventually <a href="https://digitalreality.ieee.org/publications/what-is-augmented-intelligence#:~:text=Augmented%20intelligence%20is%20a%20subsection,in%20response%20to%20improved%20decisions.">AGI</a> (Augmented Generalized Intelligence) coupled with the potential lack of privacy policy and regulations, we will set up the foundations for future human societies.</p><p><em>Homo sapiens — </em>humans have become the predominant species on the planet by a series of favored evolutions, (accidental) quirks of history, and most recently, a prudent set of decisions that have guided the growth and prosperity of the species. The lack of prudence, coupled with hypergrowth may soon become our undoing — only time will tell.</p><p><strong>Previous Story: </strong><a href="https://medium.com/@santanub/where-did-the-name-bluetooth-come-from-c7c03885ff21">Where Did the Name Bluetooth Come From</a>?</p><p><strong>Next Story: </strong><a href="https://medium.com/@santanub/ai-predictions-2023-the-year-ai-stole-every-households-imagination-97bddc308ce5">AI Predictions 2023: The Year AI Stole Every Household’s Imagination</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa703c2a0537" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>