より優れたモデル、劣化したツール
本文の状態
日本語全文を表示中
詳細モードで約2分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Simon Willison Blog
Simon Willison は、Armin が Pi で遭遇した問題について報告している。最新の Claude Opus 4.8 モデルが、編集ツールの呼び出し時に存在しないフィールドを捏造して渡すという不具合が発生している。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Better Models: Worse Tools
Armin は、Pi でのハッキング中に遭遇した奇妙な問題について報告しています。
要約すると、新しい Claude モデルは、ネストされた edits[] アレイ内で余分な、捏造されたフィールドを伴って Pi の編集ツール(edit tool)を呼び出すことがあります。これは Haiku や小規模モデルに限った話ではなく、Opus 4.8 でも発生しています。編集自体は通常正しいのですが、モデルがでたらめなキーを作成するため、引数がスキーマと一致せず、Pi がそのツール呼び出しを拒否して再試行を求めます。
これ自体は、モデルが時折不正な形式のツール呼び出しを行うという点において驚くべきことではありません。特に小規模モデルでは顕著です。私が驚いたのは、この問題が新しい Anthropic モデルになるほど悪化していることです。Opus 4.8 と Sonnet 5 の両方で確認されていますが、古いモデルでは発生しません。つまり、この特定のツールスキーマ(tool schema)においては、そのファミリーの SOTA(State-of-the-Art:最先端)モデルの方が、古参の兄弟モデルよりも劣っているのです。
Armin は、これはより最近の Anthropic モデルが、Claude Code に組み込まれている編集ツールをより効果的に使用するように特別にトレーニングされた(おそらく強化学習(Reinforcement Learning)を通じて)ためだと推測しています。その不幸な結果として、Pi などの他のコーディングハーンセスでは、独自のカスタム編集ツールが誤って使用される可能性が高まることがあります。
Claude の編集ツールは 検索と置換 を使用します。OpenAI の Codex は代わりに パッチ適用メカニズム (apply_patch) を採用しており、OpenAI は過去に自社のモデルがそのツールを効果的に利用するように訓練されていることについて言及したことがあります。
これは、Pi などのサードパーティ製コーディングハーンチスが、ユーザーが選択した基盤モデルに対して最もパフォーマンスの良いものを使用できるようにするために、複数の編集ツールを実装する必要があることを意味しているのでしょうか?
Tags: armin-ronacher, ai, openai, generative-ai, llms, anthropic, llm-tool-use, coding-agents, pi
原文を表示
Better Models: Worse Tools
Armin reports on a weird problem he ran into while hacking on Pi:
The short version is that newer Claude models sometimes call Pi’s edit tool with extra, invented fields in the nested edits[] array. And not Haiku or some small model: Opus 4.8. The edit itself is usually correct but the arguments do not match the schema as the model invents made-up keys and Pi thus rejects the tool call and asks to try again.
That alone is not too surprising as models emit malformed tool calls sometimes. Particularly small ones. What surprised me is that this is getting worse with newer Anthropic models as both Opus 4.8 and Sonnet 5 show it but none of the older models. In other words, the SOTA models of the family are worse at this specific tool schema than their older siblings.
Armin theorizes that this is because more recent Anthropic models have been specifically trained (presumably via Reinforcement Learning) to better use the edit tools that are baked into Claude Code. This has the unfortunate effect that other coding harnesses, such as Pi, may find that their own custom edit tools are more likely to be used incorrectly.
Claude's edit tool uses search and replace. OpenAI's Codex uses an apply_patch mechanism instead, and OpenAI have talked in the past about how their models are trained to use that tool effectively.
Does this mean third-party coding harnesses like Pi should implement multiple edit tools just so they can use the one with the best performance for the underlying model the user has selected?
Tags: armin-ronacher, ai, openai, generative-ai, llms, anthropic, llm-tool-use, coding-agents, pi
News to Guide
ニュースの次に確認する
発表内容を、現在の料金や仕様と照らし合わせられる関連ガイドです。
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み