AI21、オープンモデルとフロンティアモデルの組み合わせでコスト削減を提案
本文の状態
日本語全文を表示中
詳細モードで約9分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
AI21 Engineering
AI21 は、安価なモデルで文脈を探索・抽出し、最後に高機能モデルが修正パッチを作成するパイプライン設計により、SWE-Bench Pro で 80.8% の解決率を達成しながらタスクあたりのコストを 5.99 ドルに抑えることに成功した。
AI深層分析を開く2026年8月4日 18:39
AI深層分析
キーポイント
エグゼキューター・オーケストレーターアーキテクチャの再評価
計算リソースを節約するために、フロンティアモデルが計画を立て、安価なエグゼキューターモデルにタスクを割り当てる構成が見直されている。
AI21 の独自パイプライン設計
コスト効率の高いモデルを最初に呼び出してトークン量の多い文脈の探索と抽出を行い、高品質な文脈を確保してからフロンティアモデルを最終的に呼ぶ戦略を採用した。
SWE-Bench Pro での高性能・低コスト達成
このアーキテクチャにより、タスクあたりの費用を 5.99 ドルに抑えつつ、80.8% という最先端の解決率を実現した。
他社アプローチとの品質比較
Fireworks AI の「ワーカー+アドバイザー」実験と比較し、コスト削減を追求するあまり品質が低下した事例に対し、AI21 は両立に成功したことを示した。
モデルの役割分担によるコスト削減と品質向上
探索・試行には低コストなオープンモデル(ジュニア)を、文脈抽出には中規模モデル(シニア)を、最終パッチ作成には高能力なフロンティアモデル(プリンシパル)をそれぞれ最適に割り当てる。
重要な引用
cheaper models are called first to handle token heavy context exploration and extraction, optimized to surface the highest quality context.
This is the architecture that allowed us to reach a state-of-the-art 80.8% resolve rate on SWE-Bench Pro while spending just $5.99 per task
quality has suffered in the pursuit of cost savings.
Our solution was to think intentionally about how we built our pipeline.
編集コメントを表示
編集コメント
AI21 のアプローチは、単にモデルを組み合わせるだけでなく、パイプラインの順序と役割分担を最適化することでコスト削減を実現した点で示唆に富む。業界全体が「安さ」だけを追求するのではなく、品質を維持したまま効率化する道筋を示す重要な事例と言える。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
要点
フロントエンドの計算リソースを節約する手法として、エグゼキューターとオーケストレーターを組み合わせるアーキテクチャへの注目が再び高まっています。このアプローチでは、最先端モデルがタスクを評価し計画を立てた上で、より小さく安価なエグゼキューターモデル群を指揮して解決策を導き出します。
しかし、私たちはパイプライン全体の構築方法を見直すことで、さらなるコスト削減が可能だと考えています。
私たちの設定では、まず安価なモデルを呼び出してトークン量の多い文脈の探索と抽出を行います。これにより、最も質の高いコンテキストを優先的に取り出すように最適化されています。その結果、最後に最先端モデルが呼ばれた時点では、すでに必要なコンテキストが揃っており、たった 1 回の呼び出しで正確なパッチを生成することが可能になります。
このアーキテクチャこそが、タスクあたりわずか$5.99 のコストで SWE-Bench Pro において80.8% という最高水準の解決率を達成した要因です。一方、Fireworks AI が最近発表した「ワーカー+アドバイザー」の実験のような他のハイブリッド手法では、コスト削減を追求するあまり品質が低下するという課題がありました。

実験設定とベースライン
コーディングエージェントのベンチマークには、従来の設定を採用しています(詳細は以前のブログ記事をご覧ください)。エージェントは自然言語で記述された課題を受け取り、対象リポジトリを格納した Docker コンテナ内で動作します。ターミナルコマンドを通じて操作を行い、非公開のテストに対して評価される Git パッチを出力します。
ベースラインとして採用したのは、従来の ReAct(推論+行動)ループです。このモデルが利用可能なツールは Docker ターミナルのみです。オープンソースの MiniMax-M3 を単一パスで実行した結果、公開されている SWE-Bench Pro の全セットにおいて 57% の解決率を達成しました。これは堅牢なベースラインですが、さらに性能を向上させるには、より高度なオーケストレーションが必要です。
エージェントの性能向上に向けたマルチモデルパイプラインの構築
解決率を上げるための単純な答えとして、MiniMax-M3 を最先端モデルに置き換える選択肢がありました。しかし、私たちの目標は品質向上だけでなく、現在の最先端結果と比較して計算コストも削減することでした。もし最先端のエージェントを使用していた場合、探索と生成の両方に予算を費やす必要があり、コストが大幅に増加するところでした。
そこで私たちは、パイプライン構築の方法について意図的に考え直すことにしました。
以前、従来のコーディングエージェントパイプラインの順序を変更することで精度と効率の両方が向上したことを測定しました。つまり、まずコンテキストを抽出してから解決策を生成するのではなく、大規模に解決策を生成し、その候補を活用してより良いコンテキスト抽出を行うアプローチです。
今回は、コーディングエージェントパイプラインを効果的に設計することで、タスクあたりの総コストを削減しながら品質を劇的に向上させる方法についてさらに探ります。私たちが提案する2 つの重要なポイントは以下の通りです。第一に、各工程をその作業に対して最も効率的なモデルに割り当てること。第二に、最終的なパッチ作成のためにフロンティアモデルが呼び出される時点で、最適なコンテキストを提供できるようにエージェントを設計することです。
これはチームに例えるとわかりやすいでしょう。ジュニア、シニア、そしてプリンシパルメンバーで構成されたチームです。ここでジュニアモデルはリポジトリ全体を並列に探索し、修正を試行し、テストを実行します。すべての試みが成功するわけではありませんが、それらを総合することで修正が必要な場所の全体像が浮かび上がります。シニアモデルはその試行結果を受け継ぎ、変更されたコードを深く分析して、実際の修正に必要な要素——関連する関数やその呼び出し元、そしてテストケース——を明確に整理します。そして最後に、準備された要約に基づいてプリンシパルモデルが一度だけ正確なパッチを作成します。
これが私たちのパイプラインです。ジュニアとして MiniMax-M3 を、シニアとして GPT-5.2 を起用し、単一のステップで結果を決定づけるスキルが必要な局面にのみ、フロントティアモデル(Opus 4.8 または Fable 5)を主幹として投入します。

コードカバレッジ効率の評価:適切なコンテキストが提示されているか?
このパイプラインにおける効率性の源泉の一つは、パッチ生成時にフロントティアモデルに対して最も関連性が高く高品質なコンテキストのみを提供し、焦点を維持させることにあります。解決策のパッチは数万トークンに達することもあり、無関係なコンテキストがノイズとなってモデルの方向性を逸らし、適切な解から遠ざけてしまう恐れがあります。その結果、コストが増大してしまいます。
そのため、最終的な生成(ステップ 3)の前には、構築したコンテキストに修正に必要なコードが含まれているかを確認しました。具体的には、ベンチマークの正解パッチ(gold patches)と比較して測定を行いました。各タスクにおいて、「正解パッチが触れる行のうち、私たちの構築したコンテキストに含まれる割合」を算出したのです。この指標は以下の 2 つの方法で追跡しています。
並列ロールアウト(ジュニアモデル):各ロールアウトとは、オープンソースのドラフター(MiniMax-M3)による問題解決への単一の完全な試行です。図 3 の横軸を進むにつれ、より多くの試行が関連するコードに触れることで、プールは 1→10 と拡大していきます。
コンテキスト抽出(シニアモデル)
候補となるパッチに加え、GPT-5.2 は修正に依存する周囲のコードも引き出します。チャート内の塗りつぶされた領域は、この抽出ステップによってロールアウト単体で得られるものに加わった効果を示しています。

*Figure 3. GPT-5.2 のコンテキスト抽出あり・なしにおける、ゴールドパッチのラインカバレッジとロールアウトプールのサイズ。731 の公開 SWE-Bench Pro タスクにおけるインスタンスごとの平均値。
コード行は以下の 2 つの種類に分類して計測します。
- 削除された行:ゴールドパッチによって削除または修正される行で、元のコード内に存在します。このカバレッジが高いことは、「リポジトリ内のどの場所を正しく特定できたか」という問いへの回答になります。並列ロールアウトとコンテキスト抽出を組み合わせることで、この種の行では約 90% のカバレッジを達成できます。
- 追加された行:修正によって新たに導入されるコードです。このカバレッジは、「正しい修正案を提案できたか」を検証する指標となります。ここでは約 71% のカバレッジを達成しています。
コストの内訳を明らかにする
Fable 5 を実行する本パイプラインの費用は、タスクあたり $5.99 です。この価格がパイプライン内でどのように配分されるかを示します。

ここでの核心的な利点は、負荷をフロンティアモデルからシフトできる点にあります。
ソロの Opus 4.8 エージェントが開始から完了まで一貫してタスクを処理する場合、コストは 18.28 ドルになります(Fireworks AI のレポートによる)。一方、私たちのパイプラインでは、最先端モデルが予算の 25% しか消費せず、残りの作業はより安価なモデルが担当します。その結果、全体の品質を Opus 4.8 エージェントを上回る一方で、コストは約 3 分の 1 に抑えられています。
重要なポイント
- 工程ごとに最適なモデルを選定する。 オープンソースで性能が低いモデルは安価であるだけでなく、ロールアウトの生成やリポジトリの検索を効果的に行えるレベルに達しています。最先端モデルの品質は、オープンモデルではまだ苦手とするタスクの難易度の高い部分(ハードテール)に温存しましょう。
- すでに支払ったコストを再利用する。 「ジュニア」たちの並列ロールアウトを「修正マップ」として認識してください。投票後に捨てるのではなく、その信号を文脈抽出プロセスへフィードバックします。
- タスク解決の試行後にソース文脈を集約する。 既知のパッチ間の差別的な文脈を検索することで、次のステップに渡すための、より焦点が絞られ効果的なソース文脈を得ることができます。
- 最先端モデルの計算リソースを節約して使う。 準備された文脈に対して一度だけ最先端モデルで生成を行う方が、最初から最後まで最先端モデルを使うエージェントよりも優れています。高価なモデルは、品質が最も重要となるステップにのみ使用しましょう。
これは、適切なモデル間で最適な実行戦略を組み合わせることでエージェントのパフォーマンスを最適化しようとする広範な取り組みの一部です。次は、ソースコンテキストの抽出ステップをトレーニングして、より高いカバレッジを実現することを目指します。
原文を表示
In brief
There’s been a resurgence of attention on executor-orchestrator architectures as a way to save on frontier compute. There, a frontier model assesses a task, builds a plan, and orchestrates among smaller, cheaper executor models to arrive at a solution. We think those savings can be even greater by examining how the entire pipeline is built.
In our setup, cheaper models are called first to handle token heavy context exploration and extraction, optimized to surface the highest quality context. By the time the frontier model is called at the end, it has the context in hand to write a correct patch after just one call.
This is the architecture that allowed us to reach a state-of-the-art 80.8% resolve rate on SWE-Bench Pro while spending just $5.99 per task, compared with other hybrid approaches, such as Fireworks AI’s recent worker + advisor experiment, where quality has suffered in the pursuit of cost savings.

Experimental setup and baseline
We use the standard coding-agent benchmark setup, covered in detail in our previous work: the agent receives a natural-language issue, works inside a Docker container holding the target repo, acts through terminal commands, and outputs a git patch scored against hidden tests. Our baseline is a classic ReAct (Reasoning + Acting) loop, with the Docker terminal as its only tool. A single pass with the open source MiniMax-M3 resolves 57% of the full public SWE-Bench Pro set. It’s a solid baseline, but raising it requires more sophisticated orchestration.
Engineering a multi-model pipeline to improve agent performance
An easy answer to raising the resolve rate could have been replacing MiniMax-M3 with a frontier model. But our goal wasn’t just raising quality; it was doing while also reducing compute costs compared to the current state-of-the-art result. A frontier agent would have spent its entire budget on both exploring and generating, driving up costs significantly.
Our solution was to think intentionally about how we built our pipeline.
Previously, we’ve measured how switching the order of the conventional coding agent pipeline improved both accuracy and efficiency; instead of first extracting context and then generating a solution, we generate solutions at a large scale and then exploit those candidates for better context extraction.
Now, we continue examining how effectively designing our coding agent pipeline can dramatically improve quality while reducing the overall cost per task. We make two crucial suggestions: first, assigning each step to the model that’s most efficient at the work required. Second, engineering the agents so that, by the time the frontier model is called for the final write, it has the best context to work with.
You can think of it like a team, with junior, senior, and principal members. Here, our junior model fans out across the repo in parallel, searching, trying fixes, running tests. Not every attempt lands, but collectively they map where the fix lives. A senior model picks up their attempts, digs into the code they touched, and writes up exactly what the real fix depends on: the functions involved, their callers, the tests that cover them. Only then does the principal model sit down and write the patch, once, from a prepared brief.
That’s our pipeline: MiniMax-M3 as the juniors, GPT-5.2 as the senior, and the frontier model (Opus 4.8 or Fable 5) as the principal we bring in for the single step where their skill changes the outcome.

Evaluating our code coverage efficiency: Are we surfacing the right context?
One of the primary sources of efficiency in this pipeline is delivering only the most relevant, high-quality context to the frontier model, so it stays focused while generating the patch. Because solution patches can reach tens of thousands of tokens, irrelevant context adds noise that can steer the model away from the right solution and send it wandering, driving up cost.
So before the final generation (step 3), we checked whether the context we assembled actually contains the code the fix needs. We did so by measuring it against the benchmark’s gold patches: For each task, what fraction of the lines the gold patch touches also appears in our assembled context? We track this in two ways:
Parallel rollouts (junior model). Each rollout is one full attempt by the open drafter (MiniMax-M3) to solve the issue. As we move along the x-axis in Figure 3, the pool grows from 1→10 as more attempts collectively touch on more of the relevant code.
Context extraction (senior model). On top of the candidate patches, GPT-5.2 pulls in the surrounding code the fix depends on. The shaded lift in the chart is what this extraction step adds beyond the rollouts

We measure two kinds of code lines separately:
- Removed lines are the lines the gold patch deletes or modifies, and they live in the original code. Coverage here helps answer the question: How well did we find the right “spot” in the repo to fix? With parallel rollouts and context extraction we reach ~90% coverage on this type of line.
- Added lines are the new code the fix introduces. Coverage here helps answer the question: How well did we propose the right fix? On this type of line, we reach ~71% coverage.
Tracing where the money actually goes
Our pipeline, running with Fable 5, costs $5.99/task. Here’s how that price breaks down across the pipeline:

The core advantage here is shifting the load off the frontier model.
When a solo Opus 4.8 agent tackles the whole task, start to finish, it costs $18.28 (as reported by Fireworks AI). In our pipeline, the frontier models consume only 25% of the budget, with the rest of the work being done by cheaper models. As a result, our whole pipeline runs at ~⅓ of the solo Opus 4.8 agent, while surpassing it in quality.
要点
- Match the model to the stage. Open, weaker models are not only cheaper, they’re also now good enough to effectively generate rollouts and search repos. Save frontier quality for the hard tail of tasks that open, weaker models still struggle to perform well.
- Reuse what you’ve already paid for. Recognize the Juniors’ parallel rollouts as the ‘fix map’ they are. Feed that signal into context extraction rather than discarding it after a vote.
- Gather source context after attempts at solving the tasks. Searching for discriminative context between known patches results in much more focused and effective source context to be fed to the next step.
- Spend frontier compute sparingly. A single frontier generation over well-prepared context beats an agent using a frontier model end-to-end. Use the expensive model on the step where quality matters most.
This is one piece of a broader push to optimize agent performance by composing the right execution strategy across the right models. Next up is training the source context extraction step to reach higher coverage.
AI算出
技術分析ainew評価高い
AI コーディングエージェントの最適化手法として「エグゼキューター=オーケストレーター」アーキテクチャの詳細な設計思想と、既存手法との比較による具体的な性能向上データを報じており、開発者が実装に活用できる技術分析記事である。
6つの評価軸を見る
- AI関連度
- 100
- 情報源の信頼性
- 100
- 新規性
- 75
- 調べる価値
- 75
- 重複の少なさ
- 100
- 日本での有用性
- 25
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み