Connect with us
AWS SVP Peter DeSantis unveils Amazon Ergo at AWS re:Invent in Las Vegas this week. Photo: ARTHUR GOLDSTUCK

Artificial Intelligence

AWS re:Invent: Curbing runaway cost of AI agents

AWS CEO Matt Garman says the unpredictability of AI bills is holding back the adoption of autonomous agents, writes ARTHUR GOLDSTUCK.

The cost of artificial intelligence has become one of the biggest obstacles to its adoption by businesses. This has prompted Amazon Web Services (AWS) to introduce a range of technologies that allow companies to control how much their AI agents spend.

The developments, unveiled during the opening keynote of the annual AWS re:Invent conference in Las Vegas on Tuesday, include a new low-cost AI model developed by Amazon, and a service that allows businesses to impose individual spending limits on users of AI.

“I’ve seen customers put pauses on promising new agentic AI deployments, simply because they don’t have a way to be confident about costs,” said AWS CEO Matt Garman.

The problem arises from the way autonomous AI agents work. A conventional chatbot typically responds to a question or instruction from a user, who then decides what to ask next. An AI agent, on the other hand, can generate hundreds of instructions of its own in the course of completing a single task, querying corporate databases and drawing on different AI models as it works.

Each of these interactions potentially incurs a cost, meaning that a company that has successfully tested an AI agent with a handful of employees could find it difficult to predict the bill when thousands of employees begin using it.

AWS is introducing Amazon Bedrock Gateway to give companies greater control over that expenditure. Bedrock is the AWS platform through which businesses access AI models from a range of providers.

“The gateway lets you choose which teams can use which models, and gives each user and group or application a dollar budget that’s enforced before a request ever gets to the model,” said Garman.

A research and development department, for example, could be allocated a large AI budget to support its investigations, with a far lower spending limit imposed on interns.

Companies would be able to monitor expenditure within minutes, broken down by AI model, provider and the identity of the user or application. They can set budgets that generate alerts or automatically stop further expenditure when a limit is reached.

It brings to enterprise AI something close to the spending controls that companies have long imposed on corporate credit cards.

Paying for intelligence

AWS is also introducing a capability called smart routing, which automatically selects an AI model suited to the complexity of the task it has been given.

One of the more expensive approaches to deploying AI in a business is to give employees access to the most powerful models available, regardless of the work they are doing. A model capable of solving complex scientific problems may also end up being used to summarise routine correspondence.

Matt Garman, AWS CEO. Photo courtesy AWS.

Smart routing allows an AI agent to draw on different levels of intelligence in the course of completing an assignment. It could use an expensive model to diagnose a complex software problem and a cheaper one to implement routine changes to the code.

Amazon’s own AI contender

Amazon is also entering the race to offer some of the world’s most capable AI models at a fraction of the cost of their competitors.

Joining Garman on stage, AWS senior vice-president Peter DeSantis unveiled Amazon Ergo, a model designed specifically for autonomous agents and software development. It has been optimised to run on Amazon’s third-generation AI processor, Trainium3, allowing it to generate 400 tokens a second.

Tokens are the units into which AI models divide information for processing, typically representing words or parts of words. Commercial AI services commonly charge separately for the tokens that go into a model and those that it generates in response.

Amazon is charging $1 per million input tokens and $3 per million output tokens for Ergo. The company is also making the underlying parameters of the model publicly available, allowing businesses to download it, customise it and run it on their own computing infrastructure.

Amazon has developed its own tests of AI capabilities, drawing on the kind of work performed across its businesses. The company says it excluded the material used in these tests from the data on which the model was trained.

“In fact, Ergo performs better than every open weight model that we tested these evals on,” said DeSantis. “And if we compare it to the very best proprietary closed weight models, Ergo holds its own here too. Ergo is not quite as good as the latest generation closed weight models, but it’s close, and it’s ahead of the best models from just a few months ago.”

Incidentally, DeSantis led the 2006 launch of Amazon’s Elastic Compute Cloud (EC2), developed at its Cape Town development centre, which became a cornerstone of Amazon Web Services. He spent two years working in South Africa on the project.

From a pet duck to the future of data

The economics of AI tokens extend to the underlying computer infrastructure. Garman said 80% of Fortune 100 companies now use models running on Amazon’s Trainium processors through Bedrock. AWS plans to introduce servers using its fourth-generation Trainium chips in the second half of 2027, promising twice the power efficiency of the current generation.

The cost of accessing corporate data is another major element of the economics of AI agents. AWS has been studying how agents use databases and discovered a rapid increase in the popularity of an analytics technology called DuckDB. It has overtaken the widely used Apache Spark analytics engine in monthly downloads from PyPI, the public repository of Python software.

“Agents will usually pick the tool for the job that gets them the solution most efficiently, and they love DuckDB,” said Garman.

Joining him on stage was Hannes Mühleisen, co-creator of DuckDB and founder of DuckLabs, who began his career as an academic specialising in database technology.

“Typically an academic in this field writes research papers on databases that maybe a dozen people read,” he said. “My co-founder, Mark, and I learned all the things that science knew about making a database system. We then did something quite unusual for database researchers. We actually talked to data practitioners.

“They told us that they avoided databases because they were clunky. And by all conventional wisdom, they were right. Databases were built to run on a server, looked after by an administrator. But nobody really wants to set up a server to answer a question about data in a spreadsheet.

“We asked a simple question: what if an analytical database system were as easy to use as an app on your phone? It would live right next to you on the computer that you are currently using. That was the whole idea and we decided to name it DuckDB after my pet duck, Wilbur.”

The timing of the development proved fortuitous. The computing power available on individual servers has increased dramatically since Spark was introduced in 2010, when large data analysis jobs typically had to be distributed across numerous machines.

Garman estimates that the effective computing capability of an individual AWS server is now around 200 times greater than it was in 2010. AI agents have also introduced a very different pattern of demand for data.

“They work in an exponential manner, firing off dozens of parallel requests, and the follow up is immediate as they reason over the data at machine speed.”

Much of the infrastructure built for large-scale data analytics has become unnecessarily expensive for these tasks. AWS has incorporated DuckDB into its Amazon Athena data analytics service, with reductions of up to 50% in the cost of queries. Athena can now process tens of terabytes of data in seconds.

The company is also adopting DuckDB’s version of SQL, the language used to interrogate databases, across its analytics services. It will allow AI agents to use a common language when accessing different sources of corporate data.

* Arthur Goldstuck is CEO of World Wide Worx, editor-in-chief of Gadget.co.za, and author of “The Hitchhiker’s Guide to AI – The African Edge”.

Subscribe to our free newsletter
To Top