Ajay Dholakia (@ajaydholakia) profile picture

Technologist (AI/ML, Data Analytics, Blockchain, Edge, Quantum Computing). Musician. Yoga teacher. Reader. Foodie. Traveler. Tweets are mine

Cary, NC
Joined July 2009
Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)Photo by Ajay Dholakia (@ajaydholakia)
Excellent post and POV @AndrewYNg ! The argument about writing requiring iterative refinement also applies to code assistance use case.
I think AI agentic workflows will drive massive AI progress this year — perhaps even more than the next generation of foundation models. This is an important trend, and I urge everyone who works in AI to pay attention to it. Today, we mostly use LLMs in zero-shot mode, prompting a model to generate final output token by token without revising its work. This is akin to asking someone to compose an essay from start to finish, typing straight through with no backspacing allowed, and expecting a high-quality result. Despite the difficulty, LLMs do amazingly well at this task! With an agentic workflow, however, we can ask the LLM to iterate over a document many times. For example, it might take a sequence of steps such as: - Plan an outline. - Decide what, if any, web searches are needed to gather more information. - Write a first draft. - Read over the first draft to spot unjustified arguments or extraneous information. - Revise the draft taking into account any weaknesses spotted. - And so on. This iterative process is critical for most human writers to write good text. With AI, such an iterative workflow yields much better results than writing in a single pass. Devin’s splashy demo recently received a lot of social media buzz. My team has been closely following the evolution of AI that writes code. We analyzed results from a number of research teams, focusing on an algorithm’s ability to do well on the widely used HumanEval coding benchmark. You can see our findings in the diagram below. GPT-3.5 (zero shot) was 48.1% correct. GPT-4 (zero shot) does better at 67.0%. However, the improvement from GPT-3.5 to GPT-4 is dwarfed by incorporating an iterative agent workflow. Indeed, wrapped in an agent loop, GPT-3.5 achieves up to 95.1%. Open source agent tools and the academic literature on agents are proliferating, making this an exciting time but also a confusing one. To help put this work into perspective, I’d like to share a framework for categorizing design patterns for building agents. My team AI Fund is successfully using these patterns in many applications, and I hope you find them useful. - Reflection: The LLM examines its own work to come up with ways to improve it. - Tool use: The LLM is given tools such as web search, code execution, or any other function to help it gather information, take action, or process data. - Planning: The LLM comes up with, and executes, a multistep plan to achieve a goal (for example, writing an outline for an essay, then doing online research, then writing a draft, and so on). - Multi-agent collaboration: More than one AI agent work together, splitting up tasks and discussing and debating ideas, to come up with better solutions than a single agent would. I’ll elaborate on these design patterns and offer suggested readings for each next week. [Original text: deeplearning.ai/the-batch/is…]
52
Ajay Dholakia retweeted
I think AI agentic workflows will drive massive AI progress this year — perhaps even more than the next generation of foundation models. This is an important trend, and I urge everyone who works in AI to pay attention to it. Today, we mostly use LLMs in zero-shot mode, prompting a model to generate final output token by token without revising its work. This is akin to asking someone to compose an essay from start to finish, typing straight through with no backspacing allowed, and expecting a high-quality result. Despite the difficulty, LLMs do amazingly well at this task! With an agentic workflow, however, we can ask the LLM to iterate over a document many times. For example, it might take a sequence of steps such as: - Plan an outline. - Decide what, if any, web searches are needed to gather more information. - Write a first draft. - Read over the first draft to spot unjustified arguments or extraneous information. - Revise the draft taking into account any weaknesses spotted. - And so on. This iterative process is critical for most human writers to write good text. With AI, such an iterative workflow yields much better results than writing in a single pass. Devin’s splashy demo recently received a lot of social media buzz. My team has been closely following the evolution of AI that writes code. We analyzed results from a number of research teams, focusing on an algorithm’s ability to do well on the widely used HumanEval coding benchmark. You can see our findings in the diagram below. GPT-3.5 (zero shot) was 48.1% correct. GPT-4 (zero shot) does better at 67.0%. However, the improvement from GPT-3.5 to GPT-4 is dwarfed by incorporating an iterative agent workflow. Indeed, wrapped in an agent loop, GPT-3.5 achieves up to 95.1%. Open source agent tools and the academic literature on agents are proliferating, making this an exciting time but also a confusing one. To help put this work into perspective, I’d like to share a framework for categorizing design patterns for building agents. My team AI Fund is successfully using these patterns in many applications, and I hope you find them useful. - Reflection: The LLM examines its own work to come up with ways to improve it. - Tool use: The LLM is given tools such as web search, code execution, or any other function to help it gather information, take action, or process data. - Planning: The LLM comes up with, and executes, a multistep plan to achieve a goal (for example, writing an outline for an essay, then doing online research, then writing a draft, and so on). - Multi-agent collaboration: More than one AI agent work together, splitting up tasks and discussing and debating ideas, to come up with better solutions than a single agent would. I’ll elaborate on these design patterns and offer suggested readings for each next week. [Original text: deeplearning.ai/the-batch/is…]
184
1,207
199
5,151
841,130
Start of the #AI conference of the year … #gtc24 @nvidia @Lenovo … What will we learn this week?
1
110
#GenerativeAI journey from #LLMs to #SLMs … Small (Large) Language Models will be key to Enterprise adoption of #AI in the “front-end” (CHI) systems! Wonder if there are #InformationTheory bounds on how small SLMs can be …
25
Exactly the customer conversations I am having over the past few months …
How enterprises are using open source LLMs: 16 examples. Many use Llama-2: Brave, Wells Fargo, IBM, The Grammy Awards, Perplexity, Shopify, LyRise, Niantic.... Quote: “A lot of customer are asking themselves: Wait a second, why am I paying for super large model that knows very little about my business? Couldn’t I just use one of these open-source models, and by the way, maybe use a much smaller, open-source model for that (information retrieval) workflow?” venturebeat.com/ai/how-enter…
44
Excited to participate and present at the #SoftwareTesting23 summit in #Berlin Germany! Not surprisingly, #AI and #Automation are top of mind! @Lenovo
2
64
Vancouver, Canada! #TPCTC2023 workshop co-located with #VLDB2023 conference. Leading a panel on #Holistic #Benchmarking of #GeneraiveAI systems. Esteemed colleagues DavidEllison MiroslavHodak @dedutta and CarstenBinnig as panelists. @raghu_nambiar @MeikelPoess
2
79
At #Intelvision2023 event in Orlando FL! Speaking on Supply Chain Optimization using Blockchain tomorrow. @Lenovo @intel @Microsoft @MicronTech
1
1
152
Ready for the Diwali event @Lenovodc - Happy Diwali
1
4
Greetings from Sydney! Here for #TPCTC2022 and #VLDB2022. Today presenting paper on comparison of AI benchmarks TPCx-AI and MLPerf, and moderating a panel on benchmarking consideration for Trustworthy and Responsible AI. @Lenovodc @Lenovo
7
Excellent panel @michelenull
Great advice from @NRaimundo - CIO for Town of Cary - about looking at IoT use cases from real world perspective and not a narrow vertical one. @IoTslam @IoTCommunity @Lenovo @SASanalytics
1
1
Great advice from @NRaimundo - CIO for Town of Cary - about looking at IoT use cases from real world perspective and not a narrow vertical one. @IoTslam @IoTCommunity @Lenovo @SASanalytics
Great advice from @NRaimundo - CIO for Town of Cary - about looking at IoT use cases from real world perspective and not a narrow vertical one. @IoTslam @IoTCommunity @Lenovo @SASanalytics
Closing keynote at #RedHatSummit 2022 - Bozoma Saint John (ex CMO at Netflix) talking to Leigh Day, CMO of Red Hat. @RedHat @Lenovodc @RedHatPartners
1
Day 2 keynote at #RedHatSummit 2022 - Chris Wright - It’s about data, not just SW. Only 30% of available data being used. @Lenovodc @RedHat @RedHatPartners
1
First time at an in person conference since early March 2020! #RedHatSummit 2022 @RedHat @Lenovodc
3
Excited to be in a classroom teaching a guest lecture at @UNCchapelkill - Research Beyond Academia! @Lenovodc
9