iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🐕

AutoGen: The Pioneer of AI Agents [Paper Summary]

に公開

Introduction

Hello! I'm mita, an aspiring AI engineer!

This time, I will summarize and discuss the research paper AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation, which proposes a framework for solving tasks cooperatively through conversations among multiple agents, rather than using a large language model (LLM) alone.

I'll be sharing what I've caught up on, so I'd be honored if this helps you in any way!

https://arxiv.org/pdf/2308.08155

Paper Summary

This paper introduces an open-source framework called AutoGen, primarily developed at Microsoft Research. The key feature of AutoGen is that it provides a mechanism where multiple agents (LLMs, humans, tools) can cooperate through conversation. While traditional LLM applications often follow a "single model input → output" structure, AutoGen makes agent-to-agent conversations programmable, enabling flexible solutions for complex tasks.

Paper Details

Background

  • The application scope of LLMs is expanding rapidly, but standalone models have limitations.
  • Complex tasks are more efficiently solved by "decomposing" them and cooperatively solving them.
  • Therefore, a framework that allows multiple agents to collaborate through conversation was needed.

Paper Content

The paper proposes the following two concepts and presents AutoGen, a multi-agent framework that combines them:

  • Conversable Agent is defined.
    • This is the highest-level abstraction of agents introduced by AutoGen. Its backend can be composed of an LLM, human input, external tools, or a combination thereof.
    • It acts as a "conversational entity" that receives messages → reacts → responds, providing a unified model.
    • Properly configured, it can autonomously engage in multi-turn conversations or request human input only when needed.
  • Conversation Programming is proposed.
    • This expresses a program as a "flow of conversation."
    • It designs who speaks when and which agent responds.
    • Control is possible through both natural language (prompts) and code (Python control).

Results

Using AutoGen, the following application examples were demonstrated:

  1. Math Problem Solving → Improved accuracy.
  2. Retrieval-Augmented Chat (RAG) → Flexible knowledge retrieval.
  3. ALFWorld (Decision-Making Tasks) → Increased success rate.
  4. Multi-Agent Coding → Enhanced safety and efficiency through code generation + review.
  5. Dynamic Group Chat → Dynamically selecting speakers based on conversation flow.
  6. Conversational Chess → Added a checker agent to ensure rule compliance.

This demonstrated that AutoGen is broadly effective in research, practice, and entertainment.


What is Multi-Agent?

A mechanism where multiple agents cooperate to accomplish tasks.
An "agent" here refers to entities such as LLMs, humans, external tools, etc., that participate in conversations and fulfill roles.
In AutoGen, these agents collaborate through natural language.

What is a Programming Paradigm?

A programming paradigm is a concept that describes the mindset and style used to write programs. Examples include:

  • Imperative: Writing steps in order (basic style of C, Python)
  • Functional: Emphasizing function composition and immutable data (Haskell, Scala)
  • Object-Oriented (OOP): Encapsulating data and behavior into objects (Java, Python classes)

AutoGen proposes Conversation Programming as a new programming paradigm.

Personal Impressions

Paper Summary

Traditionally, the mainstream approach was a one-way interaction where a human asks and the LLM provides answers. This led to issues such as decreased accuracy for complex tasks and varying strengths and weaknesses depending on the prompt.

AutoGen was proposed to solve these problems by implementing the concept of Conversable Agent and realizing a new programming paradigm called Conversation Programming.

Conversable Agent is an abstraction that treats not only humans but also LLM agents and external tools as equal participants in a conversation. Each agent has a common conversational interface—"receives messages, reacts, and responds"—and aims to leverage its domain-specific expertise to collaborate with other agents and humans to accomplish advanced tasks.

Conversation Programming is a programming paradigm proposed in this paper, introducing the novel mechanism where the conversation itself becomes the control flow.
In typical imperative programming, control was done via code like if condition: ... else: ....
This programming paradigm delegates that branching to the agents. For example, when solving a problem, it separates the task into an agent that solves the problem and a checker agent that verifies whether the answer meets the user's requirements. The flow is that the checker agent outputs YES or NO, and the subsequent branch changes accordingly.

AutoGen has demonstrated superior performance over conventional single LLMs in six areas including mathematical problem-solving and coding assistance, confirming the significance of dividing agents by expertise and having them collaborate.

Reflections (Personal Thoughts)

This paper was published in August 2023 and is considered a pioneering paper for AI agents.

AI agents have now become quite prevalent in the world, with agents being built using AutoGen, LangGraph, CrewAI, and others. It's surprising that only two years have passed since its writing.
The AI field evolves rapidly, making it challenging to keep up, but it's also an exciting and enjoyable domain because of all the wonder.

I am personally developing AI agents using LangGraph, and I have been writing code that lets the AI decide on node branching, but I was not aware of the concept of Conversation Programming.
When you think about it, it's quite a unique approach, isn't it?

I logically understand that deeply understanding the tools I use will help build the architectural design skills that engineers will need in the future,
but I realized that while developing, my focus becomes too micro and I lose the ability to think from a broader perspective.

It is difficult to solidify the basics while handling real-world tasks and keeping up with the latest examples, but I feel that continuing to capture each aspect leads to knowledge connections. Therefore, I hope to continue repeating input and output going forward.

Discussion