cv usk (@cv_usk) header
cv usk (@cv_usk) profile picture

AI / Software Research Notes AI Agent, LLMOps, MLOps, Software Architecture https://teapawt.net/t.co/eGSvqsqAS6 https://teapawt.net/t.co/lgfhWqHv7e https://teapawt.net/t.co/1IZjTWrux6 投稿は個人の意見です。

Japan
Joined May 2026
Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)Photo by cv usk (@cv_usk)
Pinned Tweet
3冊目の自著『LLM・AIエージェントシステムベストプラクティス』を発売します! amzn.asia/d/06j48XE4 発売日は8/20です! 内容はここ数年いろいろ試してきたLLMをソフトウェアに組み込む方法やAIエージェントのアーキテクチャ、その他LLM関連のエンジニアリングを設計検証したプラクティス集です。 サンプルコードも一緒に公開します。 ご興味ある方はぜひご一読いただけると幸いです! #LLM #技術書
3
6
2
43
5,988
Can plain supervised learning, with no RL, win at multi-step retrieval over 10M tokens? S2LMR: Supervised Sequential Long-Context Multi-Step Retriever arxiv.org/pdf/2611.28995 📌 Overview From the University at Buffalo: a simple supervised bi-encoder for multi-step retrieval over long contexts. ⚠️ Problem The authors argue supervised retrievers lag not because supervision is weak, but because of three train/inference misalignments: easy negatives, noisy prefixes, and position-agnostic scoring. 🧩 Method ・A contrastive loss that uses all not-yet-retrieved chunks in the same context as negatives ・Teacher forcing with gold prefixes ・History-adaptive positions measured relative to already-retrieved chunks 📊 Results ・Over 95% average accuracy on BabiLong even at 10M tokens ・BabiLong QA3 trains in about 2.25 hours (Q-RAG reproduction: 54.4 hours) ・Average answer EM on HotpotQA and MuSiQue is 0.52 vs. Q-RAG's 0.50 ・Switching to in-batch negatives drops fact EM from 0.99 to 0.28 Some baselines come from the original papers, and Beam Retriever beats it on HotpotQA fact EM (as reported). #RAG #InformationRetrieval
17
RLなしの教師あり学習だけで、1000万トークンの多段階検索に勝てるのでしょうか。 S2LMR: Supervised Sequential Long-Context Multi-Step Retriever arxiv.org/pdf/2611.28995 📌 概要 University at Buffaloによる、長いコンテキスト上の多段階検索を教師ありの単純なバイエンコーダで解く手法です。 ⚠️ 解決する課題 教師ありのリトリーバーが劣るのは、教師が弱いからではなく、簡単すぎる負例、ノイズのあるプレフィックス、位置を考慮しないスコアという、学習と推論の3つのずれのせいだと主張します。 🧩 提案手法 ・同じコンテキスト内の未取得チャンク全部を負例にする対照損失 ・正解のプレフィックスで学習する教師強制 ・取得済みチャンクからの相対位置で測る履歴適応的な位置 📊 実験結果 ・BabiLongで1000万トークンでも平均精度95%超 ・BabiLong QA3の学習は約2.25時間(Q-RAG再現は54.4時間) ・HotpotQAとMuSiQueのanswer EM平均は0.52で、Q-RAGの0.50を上回る ・負例をバッチ内にするとfact EMは0.99から0.28に低下 ただし、一部のベースラインは元論文の値で、HotpotQAのfact EMはBeam Retrieverが上回ります(報告値)。 #RAG #情報検索
23
🤖 You ask a robot to walk, then switch to "wave your hand" while it is still moving. Interactive control like this means generating motion window by window without knowing the next instruction. Memory is the hard part. Keeping only recent context in attention drops older information, while keeping everything makes compute and storage grow without end. Diffusion also denoises each window many times, which adds execution overhead. 💡 This is what "Motion Mamba 2.0: Autoregressive Diffusion Mamba for Long-Horizon Humanoid Control" tackles. arxiv.org/pdf/2611.29897 It generates root trajectory and body motion in two diffusion stages, mixes local attention with a resumable Mamba-3 branch, and adds a persistent memory that lets attention read content from the Mamba side. History stays frozen during denoising, and only accepted windows are written. Optimizations such as CUDA Graphs also cut median generation time for a 2.08 s window from 1685 ms to 276 ms. 📏 On 39.52 s HiPHI rollouts, it had the lowest position errors among baselines retrained by the authors. On a real Unitree G1, it succeeded in 94 of 100 trials with no observed falls. Generation ran on a remote RTX 4090, though, some baselines win on certain metrics, and several are faster. #Robotics #Mamba
32
🤖 ロボットに「歩いて」と頼み、動いている途中で「手を振って」と指示を変える。そんな対話的な制御では、次の指示がわからないまま、動きを区間ごとに作り続ける必要があります。 そこで難しいのが記憶です。直近だけをアテンションに残すと古い情報は消え、すべて残すと計算も保存量も増え続けます。拡散モデルは同じ区間を何度もノイズ除去するため、実行の手間もかさみます。 💡 この課題に取り組んだのが「Motion Mamba 2.0: Autoregressive Diffusion Mamba for Long-Horizon Humanoid Control」です。 arxiv.org/pdf/2611.29897 体の軌道と姿勢を2段階で生成する拡散モデルに、局所アテンションと再開可能なMamba-3を組み合わせ、Mamba側の内容をアテンションから読める持続メモリを加えています。ノイズ除去中は履歴を固定し、採用した区間だけを書き込むのがポイントです。CUDA Graphなどの最適化で、2.08秒分の生成時間も中央値1685msから276msに短縮しました。 📏 HiPHIの39.52秒の生成では、著者らが再学習した比較手法の中で位置誤差が最小でした。実機のUnitree G1でも100回中94回成功し、観測された転倒はありません。ただし生成は外部のRTX 4090で行っており、指標によっては比較手法が上回り、より速い手法も複数あります。 #Robotics #Mamba
35
# AIエージェントをソフトウェアに組み込むプラクティス # Input/Output Guardrail Sandwich|入出力ガードレール 🎯 入力だけ守っても出力が有害になり、出力だけ守ってもインジェクションで検証ごと回避されます。LLMの前後を「挟む」のが正解です。 🔥 解決する課題 LLMは自然言語を攻撃面として持ち、悪意ある入力がそのまま通れば権限昇格や情報漏洩につながります。出力側ではハルシネーションによる誤情報生成やスキーマ不適合が下流システムを壊します。片面だけのガードでは確率的障害の表面積を十分に縮小できません。 💡 提案パターン LLM呼び出しの前に入力ガードレール(インジェクション検出・トピック分類・PII検出・意図検証)を、後に出力ガードレール(スキーマ検証・有害性チェック・事実性チェック・ポリシー準拠)を配置します。各チェックのアクションはblock/warn/logの3段階で、経路ごとの失敗コストに応じて設定します。高リスク経路は全量インラインでblock、低リスク経路は標本検査に留めます。検証系統は生成系統と分離し、同一LLMの共通モード故障を防ぎます。 ✅ 選定条件 使うとき: - エンドユーザや外部システムからの信頼できない入力をLLMに渡す - LLMの出力が外部公開されるか副作用のトリガーになる - 有害出力・インジェクション成功が実害を生む失敗コストがある 使わないとき: - 入力が完全に内部生成で信頼でき、出力は人間が目視確認する開発ツール用途 - レイテンシ要件が200ms以下で検証コストを許容できない ⚠️ 落とし穴 - 入力と出力の両方で同じLLMを使うと、インジェクションがガードレール自体を回避する共通モード故障になります - ガードレールの誤検知率が高いと正常リクエストを大量に棄却しUXが悪化します。本番前に偽陽性率1%以下を目標に測定してください - 独立したチェックは並列実行しないとレイテンシが積み上がります 🔧 実装方針 - 入力ガードレール(インジェクション検出・PII検出・トピック分類)と出力ガードレール(スキーマ検証・有害性チェック・事実性チェック)の両方を設計に含めます - 検証系統(ガードレール)は生成系統(メインLLM)と別モデルまたは別系統にし、共通モード故障を防ぎます - 独立したチェック(インジェクション検出とPII検出等)は並列実行してレイテンシの積み上がりを防止します - 各チェックのアクション(block/warn/log)は経路ごとの失敗コストに応じて設定し、高リスク経路は全量インライン、低リスク経路は標本検査とします - 本番投入前に代表的な正常入力で偽陽性率を測定し、概ね1%以下を目標にチューニングします #AIエージェント #ソフトウェアアーキテクチャ
1
143
# Practices for Embedding AI Agents in Software # Policy-as-Code Guardrail 🎯 The Hook "Please don't output personal data" in a prompt is a suggestion, not a safeguard. Safety constraints belong in code, not in natural language wishes. 🔥 The Problem Prompt-based safety instructions are probabilistic at best. Prompt injection can override them, model updates can weaken them, and context bloat can dilute them. For auditable systems, you need proof that rules were enforced -- but constraints buried in prompts can't be versioned, tested, or verified. 💡 The Pattern Enforce safety constraints, compliance requirements, and business rules through executable code or a policy engine (OPA/Rego, Cedar, or custom). Policies are Git-versioned, unit-tested, and deployed via CI/CD. Every evaluation returns allow, deny, or require_approval. On deny, the reason is returned to the agent to prevent retry loops. Prompts guide "what the agent should do." Code enforces "what it must never do." This complementary split is the foundation of agent safety design. ✅ When to Use Use when: - Rule violations cause legal risk, financial loss, or safety issues - Audit trails with rule version history are required - The same rules must apply consistently across multiple agents or models Don't use when: - Constraints are about behavioral style ("be polite," "show empathy") rather than deterministic conditions - Failure cost is low and recovery is easy - Only 1-2 rarely-changing rules exist (hardcoded conditionals suffice) ⚠️ Pitfalls - Never delegate policy evaluation to the LLM. Asking "does this violate policy?" defeats the entire purpose - Always return denial reasons to the agent, or it will retry the same forbidden action in a loop - Don't forget output-side policies (PII detection, prohibited terms). Input gating alone is insufficient 🔧 Implementation Approach - Implement policy rules in a policy engine (OPA/Rego, Cedar) or deterministic code -- never delegate evaluation to the LLM - Every rule evaluation returns allow, deny, or require_approval; deny always includes a reason string to prevent agent retry loops - Define explicit conflict resolution priority when multiple rules match the same operation (deny > require_approval > allow) - Version-control policies in Git and run unit tests and regression tests in CI, treating policies as production code - Cover both input-side policies (operation requests) and output-side policies (PII detection, prohibited terms) in the same framework #AIAgents #SoftwareArchitecture
2
1
3
99
# Practices for Embedding AI Agents in Software # Input/Output Guardrail Sandwich 🎯 The Hook Guard only the input and harmful output slips through. Guard only the output and injection attacks bypass your checks entirely. You need to sandwich the LLM from both sides. 🔥 The Problem LLMs have natural language as their attack surface. Malicious input can lead to privilege escalation or data leaks. On the output side, hallucinations generate misinformation and schema violations break downstream systems. Single-sided protection leaves too much probabilistic failure surface exposed. 💡 The Pattern Place input guardrails (injection detection, topic classification, PII detection, intent verification) before the LLM call, and output guardrails (schema validation, toxicity check, factuality check, policy compliance) after it. Each check uses a three-level action: block, warn, or log, calibrated by failure cost per pathway. High-risk paths get full inline blocking; low-risk paths use sampled post-hoc checks. Keep the validation model separate from the generation model to avoid common-mode failure where an injection defeats both. ✅ When to Use Use when: - Untrusted input from end users or external systems reaches the LLM - LLM output is published externally or triggers side-effecting operations - Harmful output or successful injection causes real damage Don't use when: - Input is fully internal and trusted, output goes through human review (dev tooling) - Latency budget is under 200ms and validation overhead is unacceptable ⚠️ Pitfalls - Using the same LLM for generation and validation creates common-mode failure where injection bypasses both - High false-positive rates in guardrails will block legitimate requests and degrade UX. Target under 1% before production - Run independent checks in parallel, not serial, or latency compounds across the chain 🔧 Implementation Approach - Design both input guardrails (injection detection, PII detection, topic classification) and output guardrails (schema validation, toxicity check, factuality check) -- one side alone is insufficient - Keep the validation model/system separate from the generation model to prevent common-mode failure - Run independent checks (e.g., injection detection and PII detection) in parallel to avoid compounding latency - Calibrate each check's action level (block / warn / log) by failure cost per pathway -- full inline blocking for high-risk, sampled post-hoc checks for low-risk - Measure false-positive rate on representative normal inputs before production, targeting under 1% #AIAgents #SoftwareArchitecture
35
# AIエージェントをソフトウェアに組み込むプラクティス # Policy-as-Code Guardrail|ポリシーのコード化 🎯 「個人情報を出力しないで」とプロンプトでお願いしても、それは確率的な誘導にすぎません。安全制約はコードで強制すべきです。 🔥 解決する課題 LLMに対してプロンプトで安全制約を指示しても、その遵守は確率的です。プロンプトインジェクションで制約が上書きされたり、モデル更新で効力が揺らいだりします。さらに監査対象のシステムでは「ルールが守られていた証拠」を示す必要がありますが、プロンプトに埋め込まれた制約は検証もテストも版管理もできません。 💡 提案パターン 安全制約・コンプライアンス要件・ビジネスルールを、OPA/RegoやCedarなどのポリシーエンジンまたは決定論的コードで強制します。ポリシーはGitで版管理し、ユニットテスト・回帰テストをCIで回します。判定結果はallow/deny/require_approvalの3値で、denyの場合は理由文をエージェントに返してループ防止します。プロンプトは「望ましい振る舞い」を誘導し、コードは「やってはいけないこと」を強制する――この補完関係がエージェント安全設計の基盤です。 ✅ 選定条件 使うとき: - ルール違反が法的リスク・金銭損失・安全上の問題を引き起こす - ルール適用履歴を版管理・監査証跡として残す必要がある - 複数エージェントに同一ルールを一貫して適用したい 使わないとき: - 制約が「丁寧な口調」「ユーザの気持ちに寄り添う」など行動の質に関するもの - 失敗コストが低くリカバリが容易 - ルール数が極少で変更頻度も低い ⚠️ 落とし穴 - ポリシー評価をLLMに委譲してはいけません。「この操作はポリシーに違反していますか?」とLLMに聞くのは本パターンの趣旨に反します - deny時に理由を返さないと、エージェントが同じ操作を繰り返すループに陥ります - 出力側のポリシー(PII検出等)も忘れずに。入力のゲートだけでは不十分です 🔧 実装方針 - ポリシールールはOPA/RegoやCedarなどのポリシーエンジン、または決定論的コードで実装し、LLMには評価を委譲しません - 各ルールの判定結果はallow/deny/require_approvalの3値とし、deny時は必ず理由文をエージェントに返却してループを防止します - 複数ルールが同一操作にマッチした場合の優先順位(deny > require_approval > allow)を明文化します - ポリシーはGitで版管理し、通常のコードと同様にユニットテスト・回帰テストをCIで実行します - 入力側(操作要求)だけでなく出力側(PII検出・禁止語句)のポリシーも同一フレームワークで管理します #AIエージェント #ソフトウェアアーキテクチャ
2
131
SnowflakeのAIで多様な図解やダイアグラムを含む日本語ドキュメントを読み取るプラクティスをまとめました。 【Snowflake の AI 関数で日本語ドキュメントを高精度に読み取る:課題別プラクティス】 zenn.dev/snowflakejp/article…
36
📘 エージェントに渡したスキルには、正しい手順がきちんと書いてあります。それでも答えを間違える。原因は、そもそもスキルが開かれていないことかもしれません。 医療タスクでは、制約を1つ見落とすだけでもっともらしい誤答が生まれます。上海人工智能実験室などのチームは、9つのモデルと Claude Code・Codex の2つのハーネスを組み合わせた18通りで、同じスキルを「自律的に使わせた場合」と「読んで手順に従うよう明示した場合」を比べました。154タスクの平均正答率は、自律利用で 38.38%、明示した場合で 82.32% でした。差は 43.94 ポイントで、18通りすべてで明示した方が上回りました。「スキルを活用して」と一言促しても、この差は 8 ポイントほどしか縮まりません。原因の多くは単純で、Claude Code の自律利用ではスキルが開かれたのは 12.45% にとどまりました。同じ DeepSeek V4 Pro でも、ハーネスが違うだけで正答率が約39ポイント変わりました。 🔧 そこで著者らは、モデルではなくスキルの文章を直すことにしました。同じタスクを自律利用と明示支援の両方で実行し、「読まれなかったのか、読んだのに誤用したのか」を記録から診断します。その上で SKILL.md の説明文と本文を1回だけ改訂します。GLM-5.2 では、87件のテストタスクでの自律利用の正答率が 41.38% から 96.55% に上がりました。改訂したスキルは他のモデルやハーネスでも効きました。説明文を直すだけでも 88.51% に届いたので、「いつ、なぜこのスキルを開くべきか」の書き方が鍵だとわかります。 ⚠️ ただし、ベンチマークは「自律では失敗し、明示すれば解ける」タスクを選んで作られており、大きな差はある程度織り込み済みです。また、一般的な書き換えでもかなり改善し、それに対する上乗せは3回平均で約 10.7 ポイントでした。主表の各セルは1回の実行で、著者らは独立した臨床検証なしに患者ケアに使うべきではないと明記しています。スキルは書いて終わりではなく、エージェントに使われるかまで評価すべきだと示した論文「MedSkill-E2: Evaluating and Evolving Skills for Medical Agents」です。 arxiv.org/pdf/2611.34250 #AIAgents #MedicalAI
1
2
156
📘 The skill you gave your agent spells out the right procedure, yet the agent still gets the answer wrong. The cause may be that it never opened the skill at all. In medical tasks, missing a single constraint can produce a plausible but wrong answer. A team from Shanghai AI Laboratory and partner institutions paired nine models with two harnesses, Claude Code and Codex, for 18 combinations. They compared letting the agent use a skill on its own with explicitly telling it to read the skill and follow its steps. Across 154 tasks, average accuracy was 38.38% on its own and 82.32% when told explicitly. That is a 43.94-point gap, and the explicit version won in all 18 combinations. A generic "use your skills" nudge closes only about 8 points of it. The main cause is simple: under autonomous use in Claude Code, the skill was opened only 12.45% of the time. Even the same DeepSeek V4 Pro moved about 39 points just by switching harnesses. 🔧 So the authors fix the skill's text instead of the model. They run each task both autonomously and with explicit support, and diagnose from the records whether the skill went unread or was read but misapplied. Then they revise the SKILL.md description and body once. For GLM-5.2, autonomous accuracy on 87 held-out test tasks rose from 41.38% to 96.55%. The revised skills also helped other models and harnesses. Editing the description alone reached 88.51%, so how the skill states when and why to open it turns out to be key. ⚠️ There are caveats. The benchmark was built from tasks that fail autonomously but succeed with explicit support, so a large gap is partly baked in. Generic rewriting also improves things a lot, and the method's edge over it averages about 10.7 points across three runs. Each main-table cell is a single run, and the authors state the skills should not be used in patient care without independent clinical validation. "MedSkill-E2: Evaluating and Evolving Skills for Medical Agents" argues that a skill isn't done when it's written; you also have to check whether agents actually use it. arxiv.org/pdf/2611.34250 #AIAgents #MedicalAI
51
TL;DR 画像・動画・多言語テキストを1つの空間に埋め込む1.24Bのオープンな埋め込みモデルです。4B以下の公開モデルとの比較で、画像検索と動画検索の平均がトップでした。 Clipstral: Image, Video, and Multilingual Text Embedder arxiv.org/pdf/2611.40240 ポイント ・🧩 ViT-L(409M)+時空間エンコーダ(50M)+多言語テキストモデル(783M)の構成で、共有の1024次元空間に写します ・🖼️ 画像検索は6ベンチの平均R@1が80.2で、Qwen3-VL-Embedding-2B(77.5)を上回ります ・🎬 動画検索は5ベンチ平均64.0でトップです。ただし動画分類はQwen3-VL-Embedding-2B(57.8)が上です ・🌏 XM3600の36言語検索は59.7で、英語中心のPE-Core-Gは14.8にとどまります ・📜 テキスト長の上限がなく、32〜64トークン上限のモデルが切り詰める長い説明文もそのまま扱えます ・🔍 画像分類は224〜1036pxで精度がほぼ横ばいで、平均79.2はPE-Core-G(81.6)に次ぐ2位です ・🧪 新ベンチV*-classificationでは、切り出し画像で67.5と4B以下でトップですが、元画像全体では40.3とチャンス(36.0)に近い水準です 数値は論文の自己申告で、参照の8Bモデルは多くの項目で上回ります。それでも、1つのモデルで画像・動画・多言語の検索をまとめられるのは実用上の大きな魅力です。 #マルチモーダル #埋め込みモデル
66
TL;DR A 1.24B open embedder that maps images, video, and multilingual text into one space. Among open models up to 4B, it posts the best average scores on image and video retrieval. Clipstral: Image, Video, and Multilingual Text Embedder arxiv.org/pdf/2611.40240 Key points ・🧩 ViT-L (409M) + spatio-temporal encoder (50M) + multilingual text model (783M), projected into a shared 1024-d space ・🖼️ Image retrieval: average R@1 of 80.2 across 6 benchmarks, ahead of Qwen3-VL-Embedding-2B (77.5) ・🎬 Video retrieval: top average of 64.0 across 5 benchmarks, though Qwen3-VL-Embedding-2B leads video classification (57.8 vs 57.0) ・🌏 XM3600 retrieval across 36 languages: 59.7, while the English-centric PE-Core-G gets 14.8 ・📜 No text length cap, so long captions that 32–64-token models truncate stay intact ・🔍 Image classification stays nearly flat from 224 to 1036 px; its 79.2 average ranks second behind PE-Core-G (81.6) ・🧪 On the new V*-classification benchmark it leads models up to 4B with oracle crops (67.5), but scores 40.3 on full images, close to the 36.0 chance level All numbers are self-reported, and the 8B reference model beats it on many tasks. Still, one compact model covering image, video, and multilingual retrieval is very practical. #Multimodal #Embeddings
44
ECの検索では、ブランド名や型番といった「そのままの語」が決め手になります。 LLMをスパース検索に組み込むと、語を増やして取りこぼしを減らせる一方で、肝心のブランド名の重みが下がることがあります。たとえばオイルフィルタの検索で「Elysee」というブランドが軽く扱われたり、曖昧なクエリで無関係な拡張語が出たりします。論文はこれを「語彙拡張の幻覚」と呼んでいます。 そこで提案されたのがPROSPERです。入力に現れる語の重みを、最も強い語に合わせて引き上げる残差の仕組み(Literal Residual Network)と、学習初期に重要な語だけに絞る窓(Lexical Focusing Window)を組み合わせます。 公開データのMulti-CPR E-commerceでは、Hit@1000がSPLADE-v2の89.6%から93.9%に上がりました。Taobao・Tmallのスパースチャネルとして約1%のトラフィックで1か月のA/Bテストを行い、純GMVは+1.5〜1.6%でした。 PROSPER: LLMs as Sparse Retrievers for First-Stage Product Search arxiv.org/pdf/2611.28645 ただし浅い打ち切りでは密検索のBGEが上回る場面もあり、評価はテストクエリ1,000件です。 #ProductSearch #SparseRetrieval
46
In e-commerce search, literal terms like brand names and model numbers make or break a result. Plugging an LLM into sparse retrieval can add terms and reduce misses, but it can also push down the very brand name that matters. In an oil-filter query the brand "Elysee" gets underweighted, and ambiguous queries pick up irrelevant expansion terms. The paper calls this "lexical expansion hallucination". Its answer is PROSPER. A residual mechanism (the Literal Residual Network) lifts the weights of terms that actually appear in the input toward the strongest term, and a window (the Lexical Focusing Window) narrows training to the important terms early on. On the public Multi-CPR E-commerce set, Hit@1000 rises from 89.6% for SPLADE-v2 to 93.9%. As a sparse channel at Taobao and Tmall, a one-month A/B test on about 1% of traffic shows net GMV up 1.5 to 1.6%. PROSPER: LLMs as Sparse Retrievers for First-Stage Product Search arxiv.org/pdf/2611.28645 Note that the dense BGE model still wins at shallow cutoffs, and evaluation uses 1,000 test queries. #ProductSearch #SparseRetrieval
2
42
TL;DR: OS-Omni benchmarks agents that operate computers and phones across 6 platforms. Even the best model averages 68.5%, short of the human 77.3%. OS-Omni: Benchmarking Generalist Computer-Using Agents on Long-Horizon Workflows Across Platforms arxiv.org/pdf/2611.34232 Key points ・🖥 300 tasks across Windows, Ubuntu, macOS, iOS, Android, Web, and cross-device workflows ・✅ Evaluators score the persisted final state, not intermediate screens ・🏆 Claude Opus 5.5 leads the platform average at 68.5%; over all tasks, GPT-6-Astra (67.0%) and Claude (66.7%) are nearly tied ・🐧 On Linux, the top three models all beat the human 74.6% ・🍎 The best iOS result is 41.7% and macOS 54.2%, more than 25 points behind humans ・🔁 Failures include sending the same bank transfer twice, and duplicating one booking while missing another ・⚠️ Only 12 cross-platform tasks, and run counts and variance are not reported A clear sign that being strong in one environment doesn't make an agent general. #ComputerUseAgents #Benchmark
37
TL;DR: 6つのプラットフォームでPC・スマホを操作するエージェントのベンチマークOS-Omni。最良のモデルでも平均68.5%で、人間の77.3%に届きません。 OS-Omni: Benchmarking Generalist Computer-Using Agents on Long-Horizon Workflows Across Platforms arxiv.org/pdf/2611.34232 ポイント ・🖥 Windows、Ubuntu、macOS、iOS、Android、Webと端末横断の計300タスクです ・✅ 途中の画面ではなく、保存された最終状態を評価器で採点します ・🏆 平均ではClaude Opus 5.5が68.5%で首位。全タスクの正解率はGPT-6-Astra 67.0%とClaude 66.7%でほぼ互角です ・🐧 Linuxでは上位3モデルが人間の74.6%を超えました ・🍎 iOSは最良でも41.7%、macOSは54.2%で、人間に25ポイント以上の差があります ・🔁 失敗例は、同じ送金の二重送信や、予約の重複と抜けです ・⚠️ 端末横断は12タスクと少なく、実行回数やばらつきは報告されていません 1つの環境で強くても汎用とは限らない、と実感できる結果です。 #ComputerUseAgents #Benchmark
63
# AIエージェント開発の意思決定ポイント # ワークフロー(決定論) vs エージェント(自律) 🔀 🎯 ポイント 「エージェントにしておけば柔軟だから」-- この理由でエージェント型を選ぶと、テスト容易性・コスト予測性・安全性を不必要に犠牲にします。 制御フローをコードで固定するか、LLMに自律的に選ばせるか。これは「程度」ではなく「質」の違いです。ワークフローなら全経路をユニットテストでカバーできますが、エージェントの経路は実行時に動的生成され、事前の網羅的テストは不可能です。 📋 概要 ワークフロー(決定論)は、処理全体をDAGまたはステートマシンとしてコードで定義し、各ステップの順序・分岐条件・エラー処理を事前に確定させます。各ノード内でLLMを呼ぶことは許されますが、フロー自体はLLMが決めません。エージェント(自律)は、LLMが「観察→思考→行動」のReActループを自律的に繰り返し、次の行動を毎ステップ動的に選択します。ツールセットは事前定義ですが、どのツールをどの順序で呼ぶかはLLMが決めます。 🔍 意思決定のポイント 2つの駆動変数で判定します。 1️⃣ **タスクの変動性(task_variability)** が第一の判定軸 - 低(手順が定型、順序固定) → ワークフロー - 中(基本手順は固定だが一部で動的判断が必要) → ワークフロー骨格+エージェントノード - 高(手順自体を毎回LLMが生成する必要がある) → エージェント 2️⃣ **説明責任(accountability)** が第二の判定軸 - 高(規制下、監査対象) → ワークフロー(不可避な部分のみエージェント) - 低(探索的、プロトタイプ) → エージェントを許容 加えて、不可逆な操作(決済・データ削除・契約締結)を含む場合は **failure_cost** が高く、ワークフローに倒す強い動機があります。 💡 要点と詳細 🟢 **ワークフローの強み**は予測可能性と安全性です。処理がどの経路を辿るかは入力条件で決定論的に定まり、全経路をユニットテストでカバーできます。コスト見積りも各ステップのLLM呼び出し回数が固定のため正確です。権限チェック・予算管理・検証をコードで強制でき、LLMの確率的な逸脱がシステム全体に波及することを防ぎます。 🟡 **エージェントの強み**は柔軟性です。手順が毎回変わるタスク、環境の状態に応じて行動を変える必要があるタスク、そもそも手順が不明なタスクに対応できます。開発者は「何ができるか(ツール)」を定義するだけで「どうやるか(手順)」はLLMに委ねられます。ただし無限ループ・高コストツール連発・禁止操作実行のリスクがあり、予算による律速(ステップ数・トークンコスト・経過時間の上限)が不可欠です。 ⚖️ トレードオフ | 観点 | ワークフロー | エージェント | |---|---|---| | テスト容易性 | 全経路をユニットテスト可 🟢 | 統計的な評価のみ 🔴 | | コスト予測 | 正確(固定ステップ数) | 不正確(2〜10倍のばらつき) | | 安全性 | コードで強制 | 予算による律速が必要 | | 柔軟性 | 事前に列挙した手順のみ | 動的に対応可 | | 監査性 | コードで因果関係を示せる | 「LLMがそう判断した」 | | 開発速度 | 新パターンごとにコード変更 | ツール追加で対応 | 🛠️ ユースケース 🔵 **ワークフローが向くケース**: 定型的な業務処理、規制対象の処理、不可逆操作を含む処理、コスト予測が重要なプロジェクト。 🔴 **エージェントが向くケース**: デバッグ・調査・オープンエンドな生成、手順が不明で探索的に進める必要があるタスク、プロトタイプ開発。 📌 **デフォルト戦略**: できる限りワークフロー(決定論)を選んでください。最も実用的な構成は「決定論的な骨格(ワークフロー)+確率的なノード(エージェント)」のハイブリッドです。全体の制御フローをDAG/ステートマシンで固定し、各ノードの内部を「決定論コード」「単発LLM呼び出し」「ミニエージェント(予算付き自律ループ)」のいずれかに差し替え可能にします。フロー自体のテストと各ノード内のLLM品質評価を分離できるのが大きな利点です。 #AIエージェント #ソフトウェアアーキテクチャ
1
1
233
# Decision Points in AI Agent Development # Workflow (Deterministic) vs Agent (Autonomous) 🔀 🎯 The Hook "Let's make it an agent -- it'll be more flexible." This reasoning sacrifices testability, cost predictability, and safety for no good reason. Whether you fix control flow in code or let the LLM choose autonomously is not a matter of degree -- it is a qualitative difference. Workflows let you unit-test every path. Agent paths are dynamically generated at runtime and cannot be exhaustively tested in advance. 📋 Overview A workflow (deterministic) defines the entire process as a DAG or state machine in code, with step ordering, branching conditions, and error handling fixed in advance. LLM calls are allowed inside each node, but the flow itself is not decided by the LLM. An agent (autonomous) has the LLM autonomously repeating an observe-think-act (ReAct) loop, dynamically choosing the next action at every step. The tool set is predefined, but which tools to call and in what order is the LLM's decision. 🔍 Decision Points Two driving variables determine this choice. 1️⃣ **Task variability** is the primary axis - Low (procedures are routine, ordering is fixed) → Workflow - Medium (base procedure is fixed but some nodes need dynamic judgment) → Workflow skeleton + agent nodes - High (procedures must be generated by the LLM each time) → Agent 2️⃣ **Accountability** is the secondary axis - High (regulated, audited) → Workflow (agent only where unavoidable) - Low (exploratory, prototype) → Agent is acceptable Additionally, when irreversible operations are involved (payments, data deletion, contract execution), **failure cost** is high, creating a strong motivation toward workflows. 💡 Key Details 🟢 **Workflows excel in predictability and safety.** Which path the process takes is deterministically decided by input conditions, and every path can be covered by unit tests. Cost estimation is accurate because each step's LLM call count is fixed. Permission checks, budget management, and validation are enforced by code, preventing LLM's probabilistic deviations from cascading across the system. 🟡 **Agents excel in flexibility.** They handle tasks where procedures change every time, where behavior must adapt to environmental state, or where procedures are unknown and exploration is needed. Developers define "what can be done" (tools) and delegate "how to do it" (procedures) to the LLM. However, risks include infinite loops, excessive expensive tool calls, and execution of forbidden operations. Budget controls (step limits, token cost caps, elapsed time limits) are essential. ⚖️ Trade-offs | Dimension | Workflow | Agent | |---|---|---| | Testability | Every path unit-testable 🟢 | Statistical evaluation only 🔴 | | Cost prediction | Accurate (fixed step count) | Inaccurate (2-10x variance) | | Safety | Enforced by code | Budget throttling required | | Flexibility | Only pre-enumerated procedures | Dynamic adaptation | | Auditability | Causal chains shown in code | "The LLM decided so" | | Development speed | Code changes per new pattern | Tool addition suffices | 🛠️ Use Cases 🔵 **Workflows fit**: Routine business processing, regulated operations, processes involving irreversible actions, projects where cost prediction matters. 🔴 **Agents fit**: Debugging, investigation, open-ended generation, tasks requiring exploratory progress with unknown procedures, prototype development. 📌 **Default strategy**: Choose workflows (deterministic) whenever possible. The most practical architecture is the hybrid: a deterministic skeleton (workflow) with probabilistic nodes (agents). Fix the overall control flow as a DAG or state machine, and make each node swappable between "deterministic code," "single LLM call," or "mini-agent (budgeted autonomous loop)." The key advantage is separating flow-level testing from per-node LLM quality evaluation. #AIAgents #SoftwareArchitecture
1
1
89