[Feat] Confidence-gated deferral: hand low-confidence browser steps to the chat model and measure the trade-off
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start with s1a/browser/decision_model.py and trace how browser steps use confidence, pass candidates, and call the fallback chat model; read the related issues #89, #91, and #63 for context. The scope also calls for an offline calibration helper, tests with fakes, and a live comparison recorded under docs/results/. Done means the off by default behavior stays unchanged, deferrals are auditable and validated, and the results report success, wall time, cost, and deferral rate.
索引モデルが issue の本文から書いたものです。
説明
Why
The README's pitch is that a System 1 decision model answers each step with probabilities, so "calling code can act above a threshold and escalate below it". In the browser front today nothing does that: BrowserDecisionModel (s1a/browser/decision_model.py) always acts on the decision model's top choice, and the wrapped chat model (fallback) is only used for non-browser turns, typed values and the bounded-recovery plan. The per-step confidence is recorded but never used.
Recent work shows the gate is where most of the cost/quality trade-off sits:
- ReDAct: Uncertainty-Aware Deferral for LLM Agents (arXiv:2604.07036): a small model acts by default and defers a step to a large model when its uncertainty exceeds a threshold calibrated on 100 episodes for a target number of large-model calls per episode. On ALFWorld, deferring about 15% of decisions matches using the large model throughout.
- Think Short, Defer Smart (arXiv:2607.26865): calibrates the deferral rule on whole-episode trajectories (Learn-Then-Test) to get finite-sample guarantees on both reward and cloud-call rate.
- SearchJev (arXiv:2610.05107), already cited in #89, does confidence-gated System-1 to System-2 delegation with Jev.
#89 lists exactly this as its follow-up ("Adding a confidence gate or System-2 fallback ... once the number means one thing"), and #91 makes confidence = max_k p_k on every backend, so the number is now comparable across Jev, Laya, CLM and Cua.
Proposed scope (one PR, off by default)
- A browser-front policy setting, e.g.
--defer-below P/S1A_DEFER_BELOW(unset = today's behaviour). When the settled step'sconfidenceis belowP, the step is decided by the chat model already wired asfallback, given the same candidates the decision model saw, and must return one of them (same validation as today). - Step records gain
deferred: true|false, the decision model's choice and confidence, and the chat model's choice, so every deferral can be audited and the "would it have been right" question answered from the trace. - An offline calibration helper over saved runs: for a target deferral rate (e.g. 10%, 15%, 25% of steps), report the threshold that gives it on that backend. No live calls.
- One live comparison on an existing task (e.g. the WebVoyager Allrecipes task in the README, or the deterministic local search scenario from #63): decision model only, chat model only, and deferral at one calibrated rate; success, wall time, cost and the deferral rate, with the runs committed under
docs/results/.
Acceptance criteria
- With the setting unset, behaviour and records are unchanged (existing tests pass as-is).
- Offline tests with fakes: a low-confidence step goes to the fallback, a high-confidence one does not, a fallback answer outside the candidates is rejected the same way a bad decision is.
- Thresholds are documented as backend-specific and not calibrated probabilities (per #89).
- Results table shows the cost/speed/score trade-off honestly, including if deferral does not help.
Out of scope
- Deferral in the desktop, games and robotics fronts (follow-ups once the browser result is in).
- Learned or conformal calibration (TSDS-style guarantees); a plain empirical threshold is enough for a first measurement.
References
- ReDAct: https://arxiv.org/abs/2604.07036
- Think Short, Defer Smart: https://arxiv.org/abs/2607.26865
- SearchJev: https://arxiv.org/abs/2610.05107
- Related: #89 / #91 (confidence semantics), #16 / #31 (bounded recovery uses the chat model as planner), #63 (local search scenario)
- 主要言語
- Python
- スター
- 120
- フォーク
- 21
- 平均マージ
- 17時間 13分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ThinkFlowLab/system1-agents のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
ThinkFlowLab/system1-agents#129 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
ThinkFlowLab/system1-agents#130 ·
メンテナーはふだん 1 日以内に返信
-
[Eval] Measure cross-question interference when decide_many bundles questions対応中かも @Birfy が 3 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
ThinkFlowLab/system1-agents#127 ·
メンテナーはふだん 1 日以内に返信
-
[Feat] Add Cloudflare Clef / Clef-flash as a System One decision backend対応中かも @Birfy が今日担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
ThinkFlowLab/system1-agents#126 ·
メンテナーはふだん 1 日以内に返信
-
[Eval] Measure a pre-execution tool-call gate (Jev noul on BEFORE_TOOL_CALL) on TS-Bench step-level labels対応中かも @Birfy が 10 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
ThinkFlowLab/system1-agents#122 ·
メンテナーはふだん 1 日以内に返信
ThinkFlowLab/system1-agents の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capture対応中かも @jianyx1 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
volcengine/OpenViking#8354 ·
メンテナーはふだん 1 日以内に返信
-
comp/tools P2 tool/skills type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#159541 ·
メンテナーはふだん 1 日以内に返信
-
bot-triaged module: correctness (silent) module: cpu module: empty tensor module: loss triage review
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
request-theme
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
LizardByte/ThemerrDB#10167 · コメント 1 件 ·