知能は無料になった、今後はどうするか?エージェントのためのデータシステム
Berkeley AI Research は、AI インフラコストが劇的に低下し「知能が無料」になる時代において、データシステムがエージェントのために設計され、エージェントによって構築されるべきだと提唱している。
キーポイント
インフラコストの劇的低下とパラダイムシフト
GPT-4 クラスの推論コストが過去数年で最大 900 倍低下し、実質的に無料に近い状態になったことで、データシステムの主要なワークロードが従来のクエリから「AI エージェント」へと移行する。
3 つの新たなデータシステムのアプローチ
記事は、エージェントのためのデータシステム(for agents)、エージェント自身によるデータシステム(of agents)、そしてエージェントが生成・構築するデータシステム(by agents)という 3 つの方向性を提案している。
技術的課題:メモリ、推論コスト、最適化
大規模なエージェントワークロードを支えるためには、構造化された長期記憶(structured memory)、効率的なクエリ最適化、そして低コストでの推論実行が不可欠な技術的課題として挙げられている。
エージェント向けデータシステムの再設計
エージェントがエンドユーザーの要求に応じて大量に起動されるため、人間や従来のアプリケーションとは異なる特性を持つエージェントのためのデータシステムを再設計する必要がある。
アジェンシーの管理と協調のための基盤
長期タスクにおける状態管理、複数エージェント間の調整・合意形成、および障害対応を信頼性高く効率的に行うための新しいデータシステムの基盤が求められている。
エージェントによるカスタムシステム生成の検証
エージェントが個々のワークロード用に独自のデータシステムを一括して構築できるようになる一方で、そのシステムが意図した通りに動作するかを検証・信頼できる仕組みが必要となる。
Agentic Speculation の特性
エージェントは人間や BI ツールとは異なり、スキーマの探索からクエリ形成までを含む高ボリュームで多様な「アジェンティック・スペキュレーション」を実行し、1 つのユーザー要求が数千個の SQL クエリに膨れ上がる可能性がある。
重要な引用
At this rate, we are soon entering the era of virtually free intelligence
As the cost of intelligence approaches zero, agents will become the dominant workload for data systems.
We explore three challenges and opportunities: data systems for agents, of agents, and by agents.
Agents will soon become the dominant workload for data systems—with swarms of agents spun up in response to each end-user request.
What does it take to let agents synthesize data systems we can actually trust?
An agent querying a database doesn't behave like a person or a BI tool. It performs what we call agentic speculation: a high-volume, heterogeneous stream of work spanning schema introspection, columnar exploration, partial and then full query formulation.
影響分析・編集コメントを表示
影響分析
この論文は、AI エージェントの普及に伴い、データインフラの設計思想そのものを根本から見直す必要性を指摘しており、データベース業界にとって極めて重要な転換点を示唆しています。特に「エージェントがシステムを構築する」という概念は、従来の静的なインフラ管理から動的・自律的な運用へのパラダイムシフトを意味し、長期的にはデータプラットフォームのあり方を再定義する可能性があります。
編集コメント
コスト低下が技術的ボトルネックから「システム設計の再定義」へと議論の焦点を移した、非常に示唆に富む視点です。特に「エージェントによるデータシステムの構築」という未来像は、実装レベルでの研究開発が急務であることを示しています。
*...人民の、人民による、人民のための政府...*
— アブラハム・リンカーン、ゲティスバーグ演説(1863 年)
AI のコストは急速に低下しています。2023 年初頭には GPT-4 クラスの能力が約 100 万トークンあたり 30 ドル程度でしたが、現在では同じものが 1 ドル未満で利用可能であり、一部のプロバイダーは 0.10 ドル未満への価格引き下げを推進しています。ベンチマーク全体を通じて、推論価格は年間 9 倍から 900 倍の幅で低下しており、その中央値は約 50 倍の低下です。さらに重要な点として、「ノーベル賞受賞者並みの天才レベル」の知能がまだ実現していないとしても、知識労働の大部分に十分な知能はすでに今日存在しており、毎月さらに安価になっています。このペースでいけば、私たちはまもなく実質的に無料の知能(**日常の知識労働には十分すぎるほどのもの)の時代へと突入します。

開示:本稿は、カリフォルニア大学バークレー校の EECS 准教授であり EPIC データラボの共同ディレクターである Aditya G. Parameswaran が主導する見解です。彼の協力者たちと共に執筆された本稿は、景観調査と見解の両方の側面を持ち、以下で議論されるいくつかの研究方向(エージェントによる推測、構造化メモリ、ゼロからカスタムデータシステムを構築することなど)には、著者自身の進行中の研究が反映されています。
では、このほぼ無料の知能という新時代は、データシステムに何を意味するのでしょうか?私たちは、推論コストがほぼゼロになることから生じる3つの新たな課題と機会があると信じています:
エージェントのためのデータシステム。エージェントはまもなくデータシステムの主要なワークロードとなり、各エンドユーザーのリクエストに応じて多数のエージェント群が起動されるようになるでしょう。人間(またはその代理人として行動するアプリケーション)との特性の違いを踏まえ、*このようなエージェンシーを持つユーザーのためにデータシステムをどのように再設計すべきでしょうか?*
エージェントによるデータシステム。エージェントが知識労働の大部分を引き受けるようになると、長期にわたるタスクで状態を管理し、調整して合意形成を図り、障害に対処するために、数千のエージェントを支える新たな基盤が必要となります。*信頼性が高く効率的にエージェント群を実行・管理するデータシステムとはどのようなものなのでしょうか?*
エージェントによって構築されるデータシステム。 エージェントは急速に、一度に完全なデータシステムを合成する能力を獲得しており、这意味着私たちは新しいワークロードごとにカスタムシステムを再構築できるようになります。こうしたシステムが意図した通りに動作することを検証することは課題です。*実際に信頼できるデータシステムをエージェントに合成させるには、何が必要なのでしょうか?*

- エージェントのための、エージェントによる、そしてエージェントによって構築されるデータシステム *
次に、それぞれをより詳細に議論し、特に 3 つの課題が交差する点において、データシステムとエージェントの絡み合った未来について議論します。
エージェントのためのデータシステム
データベースを照会するエージェントは、人間や BI ツールとは異なる振る舞いを示します。私たちはこれを エージェンティック・スペキュレーション(代理的な推測)と呼びます。これは、スキーマの内部構造調査、列ごとの探索、部分的なそして最終的な完全なクエリ作成にわたる、高ボリュームで多様なワークロードのストリームです。複数のエージェントが仮説空間の各部分を探索する中で、1 つのユーザー要求が数千個の個別の SQL クエリに相当することさえあります。現在、ユーザーは「高レベル」のデータタスクを発行できます。例えば、根本原因分析(例:「なぜ今年のベルギーでのコーヒー販売は減少したのか?」)や、探索的コホート分析(例:「来期に離脱する可能性が最も高いユーザーセグメントはどれか?」)などです。これらには、結合、集計、フィルタの組み合わせにおける組み合わせ空間が関与します。

*
エージェントの推論をより効果的に支援するために再設計されたデータシステム
*
これらのエージェントからのリクエストには、最適化の様々な機会があります。例えば、複数のエージェントが各タスクに挑戦するテキストから SQL へのベンチマークでは、サブプランのわずか 10〜20% が固有のものであり、残りの 80〜90% のサブクエリは重複した作業を実行しています。同じ実験では、エージェントによる試行回数が増えるにつれてタスクの成功率が大幅に向上することが示されており、この冗長性は実際には有益です。しかし、データシステムの観点から見れば、これは無駄な作業となります。
エージェントファーストのデータシステムは、このような特性を活用して、エージェントがより迅速に進捗を達成できるよう支援できます。重複するサブプラン間で結果を再利用し、数十年にわたる マルチクエリ最適化 や 共有スキャン に関する古くからの文献の知見を援用できます。あるいは、データシステムは「満足できる解」を目指すアプローチ(*satisfice*)を試み、エージェントが進捗を達成するのに十分な近似回答を返すことで、AQP に関する 文献 の研究成果を活用できます。あるいは、最終または中間演算子の結果をストリーミングして、残りのデータを見る必要があるか有益であるかをエージェントが判断できるよう支援することも可能です。
ここで再考すべき別の機会として、クエリインターフェースそのものを根本から見直すことが挙げられます。エージェントが一度に単一の SQL クエリを発行するのではなく、それぞれに独自の近似要件を持つ一連のクエリをバッチ処理で発行できるようにするのです。前述の根本原因分析やコホート分析の例のように、指数関数的な探索空間を列挙することは、エージェントの推論能力を有効活用する方法とは言えません。むしろ、データシステムは各 SQL クエリを明示的にリストアップすることを要求するのではなく、より高レベルなプリミティブをサポートすべきでしょう。その一つのアイデアとして、DBT スタイルの Jinja マクロ を活用し、ループ処理に基づくプリミティブを提供して、エージェントがデータシステムと対話できるようにする案があります。

- 興奮したエージェントの軍隊が、あなたのデータタスクを疲れ知らずで完遂する準備を整えています *
ここで最後の機会として、データシステムをクエリの受動的な実行体と考えるのをやめることです。データシステムは 能動的 になり得ます。なぜなら、エージェントが事前に持っていない可能性のあるデータやシステム特性に関するより深い基盤を持っているからです。彼らはエージェントを異なる方向へ誘導したり、関連するクエリの結果を提供したり、パフォーマンスレベルのフィードバック(例えば、高コストなクエリを実行する代わりに、まずエージェントにレイテンシの見積もりを提供するなど)を提供することもできます。過去とは異なり今これが可能なのは、エージェントがあらゆる形式のテキストフィードバックを受け入れられ、厳密な SQL クエリの結果を期待していないからです。実際、データシステムはエージェントのために事前に関数化されたビューと仮想ビューの両方を準備し、これらをコンテキストの一部としてエージェントに提供することもできます。これは、エージェントがそれらを作成したり使用したりするよりも安価で効果的である可能性があるためです。
エージェントのためのデータシステム
以前は、エージェントがデータシステムとどのように相互作用するかについて焦点を当てていました。今では、エージェントが動作し続けるために必要な他のすべての要素、つまり彼らが住む場所、記憶する方法、互いと協調する方法、そして互いの障害に対処する方法について考察します。この「アジェンティック・サブストレート(基盤)」は、生来の知能を駆動する推論スタックとは別物です。ただし、推論スタック自体も、API を通じて(例えば OpenAI や Anthropic から)、あるいはオープンウェイトモデルの場合は低レベルの詳細を隠す serving frameworks によって抽象化されつつあります。これまでのところ、アジェンティック・サブストレートは、Claude Code や Codex といったハーンネスを通じて管理されており、記憶を store し retrieve するためのさまざまなメカニズムと組み合わされています。
まず、メモリに関する現状の知見では、ファイル がすべて必要であると考えられています。エージェントは構造化されていないマークダウン(MD)ファイルに書き込み、その後、grep による検索や埋め込みベースの検索によってそれらを検索します。実際、多くの人が、継続的な学習に対する解決策として、エージェントが膨大な量(例えば、コードベース全体、Slack、企業のウィキなど)を消費し、その学びを MD ファイルに書き込むことで、必要に応じて選択的にそれらを取得するべきだと主張しています。確かに、ファイルシステム、Bash スクリプト、MD ファイルは、そしてこれからもエージェントにとって重要であり続けるでしょう。しかし、スケールした規模において、エージェントが知識作業の大部分を担当するようになると、このアプローチはもはや効果的ではなくなります。
コンテキストウィンドウに限りがあるため、関連する可能性のあるすべての MD ファグメントを取得してコンテキストに詰め込むことは、いずれ限界を迎えます。コンテキストウィンドウがさらに拡大し続けたとしても、すべての情報をコンテキストに入れることによる遅延のメリットを無視することはできません。また、多くの場合、例えば知識作業が大規模データベースやコードベースとの対話を伴う場合、関連するすべてのデータをシリアライズしてコンテキストに含めることは現実的ではありません。

*データシステム:マルチエージェント群れのための基盤として*
知識グラフ表現を利用することも可能ですが、構造化された検索機能の欠如により、知識グラフも非構造化 MD ベースのメモリと同様の制約に直面します。必要なのは、関心のある複数の属性(または側面)にわたって、タスクに関連するメモリのみを抽出できることです。例えば、不安定なテストのデバッグを行うエージェントは、キーワードや埋め込み類似性に基づく検索ではなく、関連するモジュール、言語、フレームワーク、および失敗モードでタグ付けされたメモリのみを取得できるようにする必要があります。別の問題として、実際に何を取得すべきかという点があります。ミスを伴う生のエージェントトレースはあまり有用ではなく、これらはエージェントが同じミスを繰り返す原因となるためです。むしろ、取得されるメモリは修正的なものであるべきです。
私たちは最近、構造化メモリ という関連する概念を探求しました。ここでは、メモリをさまざまな属性にわたって整理し、各属性は * を設定して普遍的な適用性を示すか、一致させるべき値のリストとして設定します。データエージェントにとって、次元には列やテーブル、操作の種類、そして最終的に自由記述形式の自然言語による修正指示などが含まれます。つまり、特定の種類の操作(例:「日付・時刻操作を行う際は、暦年ではなく会計年度を使用する」)や特定のテーブル(例:「製品名で照会する際は、列 product_cleaned を列 product より優先する」)にのみ適用されるメモリを含めることができます。一つの未解決の課題は、「アプリケーション固有の構造化メモリ」、あるいは他者がメモリのための世界モデルと呼ぶものを定義することです。私たちはこれを、各アプリケーションのためのスキーマを定義することに akin(類似)していると考えます。おそらくエージェント自身も、時間とともにそれを定義・洗練させるのを助けてくれるでしょう。

- 構造化知識を保存し検索する一つの方法 [[こちらから]](https://arxiv.org/abs/2602.13521) *
構造化メモリは、探索空間を効果的に管理するための 進化的 フレームワーク においても有用です。実際、単一のおよび マルチエージェント・トレース の大量データを保存し、構造化し、掘り起こすことは、将来のエージェントをより効率的にするのに役立ちます—これにより、構造化メモリに基づくメカニズムを通じて効果的な再帰的自己改善が可能になる可能性があります。
もう一つの課題は、多数のエージェントが変換処理を行っている際に、共有メモリに対する並行編集や、一般的な並行編集をサポートすることです。マルチバージョン管理 や コピーオンライトセマンティクス のサポートに向けた有用な試みは幾つか存在しますが、数千ものエージェントが同時に共有状態の編集を試みるような状況において、これらの手法で十分かどうかは不明です。例えば、ユーザーリクエストに応答してエージェントがさまざまな潜在的なトランザクションを試行している場合、これらのトランザクションの绝大多数の効果はロールバックされ、唯一「正しい」とされるトランザクションの結果のみが永続化される必要があります。ここで関連するのは、まさに一度だけ実行するセマンティクス(exactly-once semantics)をサポートするための取り組みであり、CRDT やオペレーショナル変換に基づく基盤技術も同様に重要です。メモリのようなファジーなメカニズムへの更新においては、レイテンシを優先して一貫性をある程度犠牲にしつつ完全な正しさを確保できる可能性があります。エージェントはセマンティクスについて推論することで行動の補償やロールバックを行い、最終的にほとんどのタスクを完了させることができますが、主要な課題はプロセス中に相互に足を引っ張り合う度合いにあります。回避すべき重要な失敗モードの一つとして、「ライブロック」と呼ばれる状態があります。これは絶え間ない補償アクションによって、意味のある進捗が全く生じなくなる現象です。
共有状態の他にも、多数のエージェントを支援する際には、エージェントが失敗した場合の対応や、エージェント同士がどのように通信すべきか(直接行うのか、中間の共有状態を介するのか)、また遅延して到着するエージェント(straggler agents)にどう対処するかといった課題が生じます。永続的なマルチエージェント実行をサポートするための取り組みとして Temporal などの開発が進んでいますが、数千規模のエージェント全体でこれらのソリューションが適用可能かどうかは今後の動向次第です。
通信の話題においては、エージェント同士が相互に交渉できるメカニズムが必要です。例えば、共通のスキーマ(schema)について合意形成を図ろうとする 4 つの開発者エージェントを想像してください。これらはそれぞれ明確ではあるが重複する目的を持っています。人間の場合、これは反復的な議論と妥協を伴うプロセスになりますが、エージェント群においては、それぞれの主たる依頼者の根本的な目標を反映した設計に収束させるためのメカニズムを定義する必要があります。あるいは、すべてのエージェントが限られたリソースへのアクセスを要求する場合も同様で、その際には通信が不可欠となります。これが中央集権的な調整を通じて行われるべきか、それとも分散型のアプローチが必要なのかについては、まだ結論が出ていません。
エージェントによるデータシステム
最後に、知能が実質的に無料になったのであれば、この知能を活用してゼロから新しいデータシステムを合成することが可能になります。実際、多くの環境では汎用型データシステムは過剰なほどであり、あらゆるスキーマ、クエリ、ハードウェアターゲットをサポートしなければならないからです。与えられたワークロードに対して、Bespoke OLAP や GenDB などの最近の研究では、エージェントパイプラインを使用して、数分から数時間で、数ドルのコストで、ワークロードに特化した完全な分析エンジンを合成できることが示されています。これらのエンジンは一時的なものであり、ワークロードが変化すれば、単に再生成するだけで済みます。同様に、私たちの研究でも、ワークロードを対象としたカスタム キーバリューストア をゼロから合成できることが示されています。実際、Kiro などの最新の IDE は、システム開発のための仕様を第一級市民として扱えるレベルにまで高めています。

- エージェントはゼロからカスタムデータシステムを合成できる *
しかし、主な問題は仕様書が通常は不完全であり、すべての隅々まで網羅していない点にあります。現在のエージェントは、欠落した仕様を悪用して報酬ハッキングを行い、高いパフォーマンス指標を達成しようとします。私たちのカスタムキーバリューストアにおける研究では、この問題を緩和する一つの方法として、補助的な検証エージェントにテストケースを生成させ、隅々での悪用を検出させることで、実質的に仕様書を拡張するというアプローチがあります。もう一つの手法は、システムの正しさを証明する証明とシステム自体を同時に生成する方法で、これについてはすでに 初期の成功 を見つけていますが、このアプローチを確固たるものにするためにはさらなる取り組みが必要です。さらに、人間が記述した仕様書をどのようにしてシステムに対して最も効果的に引き出すかがまだ不明です。これは反復的な人間-in-the-loop(人間が関与するループ)方式で行うことができるのか、それとも一度きりで不完全な形式に留まるのか。実際、手動で記述されたソフトウェアであっても人間による仕様書は不完全であり、より整合性の取れた未来のエージェントは、設計判断を下す際に次第により優れた判断力を発揮すると予想されます。
原文を表示
*... government of the people, by the people, for the people ...***
— Abraham Lincoln, Gettysburg Address (1863)
The cost of AI is dropping rapidly. GPT-4-class capabilities cost roughly $30 per million tokens in early 2023; today the same runs under $1, and some providers are pushing costs below $0.10. Across benchmarks, inference prices have fallen between 9x and 900x per year, with a median decline near 50x. Even frontier models are getting dramatically cheaper each generation, with open-source models following closely behind. And crucially, even if “Nobel-Prize-winning genius-level” intelligence isn’t here yet, the intelligence that suffices for the vast majority of knowledge work is here today, and getting cheaper by the month. At this rate, we are soon entering the era of virtually free intelligence**—the kind that is more than enough for everyday knowledge work.

Disclosure: This post is a perspective led by Aditya G. Parameswaran—an Associate Professor of EECS and co-director of the EPIC Data Lab at UC Berkeley—together with his collaborators. It is part landscape survey and part perspective, and several of the research directions discussed below (including agentic speculation, structured memory, and synthesizing custom data systems from scratch) draw on the authors' own ongoing work.
So, what does this new era of near-free intelligence mean for data systems? We believe three new challenges—and opportunities—stem from near-zero inference costs:
Data Systems *For* Agents. Agents will soon become the dominant workload for data systems—with swarms of agents spun up in response to each end-user request. Given differences in characteristics between agents and humans—or applications acting on their behalf—*how should we redesign data systems for such agentic users?*
Data Systems *Of* Agents. As agents start taking on the bulk of knowledge work, a new substrate is needed for thousands of agents to manage state over long-running tasks, coordinate and reach consensus, and deal with failures. *What do data systems that reliably and efficiently run and manage agent swarms look like?*
Data Systems *By* Agents. Agents are rapidly becoming capable of synthesizing entire data systems in one go—meaning we can rebuild custom systems for each new workload. Verifying that such systems match intended behavior is a challenge. *What does it take to let agents synthesize data systems we can actually trust?*

*
Data Systems For, Of, and By Agents
*
Next, we will discuss each in more detail, followed by discussing the intertwined future of data systems and agents, especially as the three challenges intersect.
Data Systems For Agents
An agent querying a database doesn’t behave like a person or a BI tool. It performs what we call agentic speculation: a high-volume, heterogeneous stream of work spanning schema introspection, columnar exploration, partial and then full query formulation. With multiple agents each exploring portions of the hypothesis space, each user request could amount to 1000s of individual SQL queries. Now, users can issue ‘high-level’ data tasks, e.g., root-cause analysis—e.g., ‘why did coffee sales in Berkeley drop this year’—or exploratory cohort analysis—e.g., ‘which user segments are most likely to churn next quarter’—each involving a combinatorial space of potential joins, aggregations, and filter combinations.

*
Data Systems Redesigned to More Effectively Support Agentic Speculation
*
The requests from these agents have various opportunities for optimization. For instance, on a text-to-SQL benchmark with multiple agents attempting each task, only 10-20% of the sub-plans are distinct. Thus, 80-90% of sub-queries perform duplicate work. The same experiments show task success rates significantly increasing with more agentic attempts—so the redundancy is actually helpful. But from the data system perspective it’s wasted work.
An agent-first data system can exploit such properties to help agents make progress faster. It can reuse results across overlapping sub-plans, drawing on ideas from decades-old literature on multi-query optimization and shared scans. Or the data system can try to *satisfice*, returning approximate answers that are good enough for agents to make progress, leveraging work from the AQP literature—or streaming the results of the final or intermediate operators to help agents decide if seeing the rest is necessary or helpful.
Another opportunity here is to rethink the query interface entirely: instead of agents issuing a single SQL query at a time, they could instead issue a batch of queries, each with its own approximation requirements. Since enumerating an exponential search space (as in the root cause or cohort analysis examples above) isn’t a good use of agentic reasoning ability, perhaps data systems should support higher-level primitives rather than requiring agents to list each SQL query explicitly. One idea here is to draw on DBT-style Jinja macros to provide looping-based primitives for agents to interact with data systems.

*
A Caffeinated Army of Agents Ready to Tirelessly Complete Your Data Tasks
*
A final opportunity here is to stop thinking of data systems as passive executors of queries; data systems could be proactive, as they possess more grounding in data and system characteristics that agents may lack a priori—they could steer agents in different directions, provide results for related queries, and also provide performance-level feedback (e.g., instead of executing an expensive query, the system could first provide the agent a latency estimate). The reason we can do this now as opposed to the past is that an agent can accept any form of textual feedback and isn’t expecting a strict SQL query result. In fact, the data system could also prepare both materialized and virtual views for an agent in advance, provided to the agent as part of context, as this may be cheaper or more effective than having an agent author or use them.
Data Systems Of Agents
Previously, we focused on how agents interact with data systems. Now, we consider everything else agents need to keep working: where they live, how they remember, how they coordinate with each other, and how they deal with failures of each other. This *agentic substrate* is separate from the inference stack powering raw intelligence. However, the inference stack itself is being abstracted away through APIs (e.g., from OpenAI or Anthropic), or, for open-weight models, through serving frameworks that hide low-level details. So far, the agentic substrate has been managed through harnesses like Claude Code and Codex, coupled with various mechanisms to store and retrieve memory.
First, on the memory front, the current wisdom is that files are all you need; agents write to unstructured markdown (MD) files, which can then be searched using grep, or via embedding-based retrieval. In fact, many argue that the solution to continual learning is having agents consume a lot (e.g., an entire codebase, slack, company wikis, …) and then write their learnings into MD files, which are then retrieved selectively on demand. Indeed, file systems, bash scripting, and MD files are and will still be important for agents. However, at scale, when agents are doing the vast majority of knowledge work, this approach will no longer be effective.
Given limited context windows, retrieving all MD file fragments that may be relevant and stuffing it into the context will break down at some point. Even if context windows continue to grow, there are latency benefits to not put all information into context — and in many cases, e.g., when knowledge work involves interacting with large databases or code bases, it will be infeasible to serialize all relevant data into context.

*
Data Systems As A Substrate for Multi-Agent Swarms
*
One could use a knowledge graph representation, but knowledge graphs suffer from the same limitations as unstructured MD-based memory due to their lack of structured search. What one needs is to be able to retrieve only memory that is pertinent to the task, across multiple attributes (or facets) of interest. For example, an agent debugging a flaky test should be able to pull only the memories tagged with the relevant module, language, framework, and failure mode—rather retrieving based on keywords or embedding similarity. A separate issue is what to actually retrieve; raw agent traces with mistakes are not very useful as they will induce agents to repeat the same mistake—instead, we want the retrieved memory to be corrective.
We recently explored a related notion of structured memory, where we organize memory across various attributes, each of which could be set as * to indicate universal applicability, or set as a list of values to be matched. For a data agent, the dimensions could include the columns and tables, type of operation, and finally, open-ended natural-language corrective instructions. So, we could include memory that only applies to a given type of operation (e.g., ‘when performing date-time operations, use fiscal year as opposed to calendar year conventions’), or a given table (e.g., ‘column product_cleaned is preferred over column product when querying on product name’). One open question is defining an *application-specific structured memory*—or what others have called world models for memory. We believe this is akin to defining a schema for each application—and perhaps agents themselves can help us define and refine it over time.

*
One Possible Way To Store and Retrieve Structured Knowledge [[From Here]](https://arxiv.org/abs/2602.13521)
*
Structured memory will be useful also for evolutionary frameworks to effectively manage search spaces. Indeed, storing, structuring, and mining large volumes of single and multi-agent traces can help future agents become much more efficient—potentially enabling effective recursive self-improvement through structured memory-based mechanisms.
Another challenge is to support concurrent edits to shared memory, and concurrent edits in general, when there are many agents performing transformations. While there have been some useful attempts at supporting multiversioning and copy-on-write semantics, it isn’t clear that such techniques will suffice when thousands of agents are attempting to edit shared state at the same time. For instance, when agents are trying various potential transactions in response to a user request, the effects of the vast majority of these transactions need to be rolled back—with only the one ‘correct’ transaction’s result persisting. Work on supporting exactly-once semantics is relevant here, as are underlying techniques based on CRDTs and operational transformation. For updates to fuzzy mechanisms such as memory, we may be able to sacrifice on consistency for perfect correctness in the interest of latency. While agents can reason about semantics to compensate or roll back their actions to eventually finalize most tasks, the primary challenge lies in the degree to which they step on each other’s toes during the process. An important failure mode to be avoided is a form of “livelock,” where incessant compensating actions prevent any meaningful progress.
Beyond shared state, other concerns emerge when trying to support an army of agents, including what to do when agents fail, how agents should communicate with each other (directly or through intermediate shared state), and how we should deal with straggler agents. There have been some developments in supporting durable multi-agent execution, such as Temporal, but it remains to be seen if such solutions will apply at scale across thousands of agents. On the topic of communication, we need mechanisms to enable agents to negotiate with each other. Imagine four developer agents attempting to reach consensus on a shared schema, with distinct but overlapping objectives. In a human setting, this would involve iterative discussion and compromise; for agentic swarms, we must define the mechanisms that allow them to converge on a design that reflects the underlying goals of their respective principals. Or if agents are all requiring access to a limited resource, again communication will be necessary. It remains to be seen if this is best done via centralized coordination, or if a decentralized approach is necessary.
Data Systems By Agents
Finally, if intelligence is effectively free, then we can employ this intelligence to synthesize new data systems from scratch. Indeed, in many settings, general-purpose data systems may be overkill, as they have to support every schema, query, and hardware target. Given a workload, recent work, including Bespoke OLAP and GenDB, has shown that one can use an agentic pipeline to synthesize a complete, workload-specific analytical engine—in minutes to a few hours, at a cost of a few dollars. The engines are disposable: when the workload shifts, one can simply regenerate them. Analogously, our work has shown that one can synthesize custom key-value stores from scratch, targeted to the workload. In fact, modern IDEs, such as Kiro, elevate specifications for systems development to be a first-class citizen.

*
Agents Can Synthesize Custom Data Systems From Scratch
*
The main issue, however, is that specifications are typically imperfect, and don’t cover all corner cases. Present-day agents will exploit the missing specifications to reward-hack their way to a high performance metric. In our custom key-value store work, we found that one way to alleviate this is to have auxiliary verification agents trying to generate test cases that catch the exploitation of corner cases, essentially expanding the specification. Yet another approach is to both generate a system and a proof for its correctness together, for which we have found some early success, but more needs to be done to solidify the approach. Further, it remains to be seen what is the best way to solicit human-written specifications for a system—can this be done in an iterative, human-in-the-loop manner, as opposed to a one-shot, incomplete one. Indeed, human-written specifications are incomplete even for manually authored software, so one would expect that future agents that are more aligned will increasingly exercise better judgement when making design decisions.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み