by simonw · 1y ago · 0 comments
> An agent is something that acts in an environment; it does something. Agents include worms, dogs, thermostats, airplanes, robots, humans, companies, and countries.
https://artint.info/3e/html/ArtInt3e.Ch1.S1.html
I think of this as the "academic" definition, or sometimes the "thermostat" definition (though maybe I should call it the "worms and dogs" definition).
Another common variant of it is from Peter Norvig and Stuart Russell's classic AI text book "Artificial Intelligence: A Modern Approach": http://aima.cs.berkeley.edu/4th-ed/pdfs/newchap02.pdf
> Anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators
Objects in OOP - something which can have properties/attributes, and methods (verbs/commands). Usually modeled after a real-life/domain enitites.
Aggregates in Domain-Driven Design (DDD) - transactional clusters of objects modeling a collections of entities in the domain.
Actors in Actor Model / Active Objects - a something we can sen messages to, and receive messages from, and which may have some business logic.
Agent-Based Modeling and Simulations (ABM) defines agents as a proxy for a decision maker.
Digital Twins - a more realistic proxy/replica for a real life person, object, or process.
Multi-Agent Systems (MAS) in how to use asgents to solve or optimize a real problem in production.
RL/MARL (Muti-Agent Reinforcement Learning) on how to train an ML algorithm without supervision (i.e. a labeled dataset), by placing agents in an environment capable to automatically provide rewards/punishment feedback.
LLM Agents - dynamically generated intelligent business process workflows (including Robotic Process Automation - RPA aka Tool Use/Function Call).
Smart Contracts - agents with an attached cryptocurrency wallet/account/address, capable to receive and make payments autonomously.
Another interesting word that is quite out fashion nowadays is "cybernetics": "Cybernetics is the transdisciplinary study of circular causal processes such as feedback and recursion, where the effects of a system's actions (its outputs) return as inputs to that system, influencing subsequent action." [1]
Having studied Control Engineering in college, to me, all these things are feedback control loops. [2]
[1] https://en.wikipedia.org/wiki/Cybernetics [2] https://en.m.wikipedia.org/wiki/Feedback
Same way we have many definitions of life (virus is alive or not? It’s very agentic, COVID killed millions but the shape, intelligence is small. Same with computer viruses), we have many definitions of agency, better to use the broadest and most physical one.
Intelligence - space-like, matter-like (LLM is a bunch of vectors, a static geometric shape, you just need memory to store it). It’s a static geometric shape. It can have analogs of volume, mass and density. The static 4D spacetime of the universe or multiverse is maximally intelligent but non-agentic.
I think it's better to imagine agent as something that physically placed inside the Environment, and actually modifying/changing/mutating it in place.
> An email filter is an agent. A database trigger is an agent.
you're missing the "I" (Intelligence) part - the filtering logic in the email filter, or a business logic in the DB trigger/stored procedure/CGI script/AWS Lambda function/etc.
But yes, an agent doesn't have to be Intelligent, it can be a Dumb Agent / NPC / Zero-Intelligence Trader.
Useful abstaractions:
- FSM/State Machines
- Behavior Trees
- Behavior Action Trees
- Workflow Orchestration
- Dataflow (mostly for pipelines transforming LLM Prompt into LLM Reponse)
Another option is to outsource it to a Human, like it was in the ALICE program[1], e.g. Human-in-the-Loop, Participatory Simulation, RLHF, Whole-brain computer simulation, like in The Age of Em[2] (SciFi).See:
https://news.ycombinator.com/item?id=43409240
---
1. https://www.media.mit.edu/projects/participatory-simulations...
(2) Daemons are predefined and can't adapt to changes easily -- this is a function of narrow AI vs general AI (not to be confused with AGI)
(3) Daemons have few interactions with the environment while for the agent the environment (tools, sensors, plans, memory, and context) is everything.
These are just a few from the top of my head.
In contrast, "agent" discusses a huge range of scientific concepts, and I have yet to see a single definition of agent that holds up to scientific scrutiny. This book has managed to define "agent" in a way that is entirely equivalent to "physical object" - putting worms and thermostats in the same category broadens the category to utter uselessness. By this definition, Jupiter is an agent.
The only utility of definitions like this is for dishonest people to cheat at arguments: claiming simple tools are agents, then arguing they are like dogs and humans, which are also agents. It's a total waste of time, coming from AI's shameless disrespect for scientific standards.
Is it? What task was it designed to carry out autonomously? Where are the inputs and the logic hiding?
> for dishonest people to cheat at arguments
Only if the goal is to deceive. If the communication is well intentioned then there is nothing inherently wrong with it despite it not being to your liking.
The definition is just incoherent! "Sometimes an agent is deterministic and in this case the term only includes manmade tools, other times an agent is an apparently nondeterministic automaton and in this case we can include natural life." It only allows "agent" to be labelled ad hoc, and in particular blurs the distinction between "nondeterministic tool" and "lifeform" in ways that are scientifically unjustifiable. The only people this pointless word game benefits are liars like Sam Altman and Mustafa Suleyman; if people are well-intentioned then these definitions bring nothing but confusion.