Rust in Everything
← Papers

Thinking Fast, Anywhere: One System-1 for the Decision Points of Any Agent Workflow

Rui Li, Liyang He, Zheng Zhang, Zhenya Huang, Qi Liu

2026-11-19▲ 12arXiv 2611.23751v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

AnyS1 mines decision points from procedural skills and trains one calibrated 4B pointer System-1 that resolves routine agent decisions in one forward pass and defers uncertain ones to System-2, cutting cost and latency on unseen workflows.

Problem

Autonomous LLM agents invoke a large System-2 model at every step, causing cost and latency to escalate even when many actions choose among a small set of known candidates. Existing dual-system agents offload such choices to a System-1 model, but their decision points are manually hard-coded for a single fixed workflow. When a general agent faces diverse tasks governed by new workflows without pre-declared hooks, every judgment falls back to System-2.

Method

AnyS1 mines decision-point templates from unstructured SKILL.md prose across over 1,000 public skills. It executes synthesized tasks in isolated containers to collect authentic runtime states and teacher-consensus labels, forming Any-DP with 17,865 typed decision points and 25,986 execution states. It trains a single calibrated 4B pointer System-1 with label smoothing. At run time, compiled workflows run deterministic steps as code, keep open generation on System-2, and use System-1 for enumerable decisions in one forward pass. A confidence gate adopts System-1 choices above a threshold and defers uncertain cases to System-2; the threshold is calibrated on unlabeled development runs in AnyS1 warm or transferred zero-shot in AnyS1 cold.

Results

  • AnyS1 warm preserves task reliability while cutting episode cost by 75–91% and model-call time by 63–92% relative to an uncompiled System-2 agent across three unseen benchmarks and two System-2 model families. §Abstract
  • On SOPBench with DeepSeek, AnyS1 warm reaches Pass 84.3 with 91% episode cost savings and 15.6 s critical-path model time, while compiled All-S2 reaches Pass 83.2 with 25.0 s. §4.2
  • AnyS1 cold achieves mean savings of 87% and 81% on DeepSeek and GPT-6, with macro-average primary metric within 0.1 and 0.8 points of All-S2. §4.287% (not found in the paper)81% (not found in the paper)
  • Training on authentic Any-DP container-executed states outperforms LLM-written synthetic states on the held-out container development set, 83.8 versus 65.0, a gain of 18.8 points; on benchmark dev splits it gives 93.5 versus 91.7 on ALF E and 68.9 versus 63.6 on SOP E. §4.3
  • Label smoothing yields mean ECE 0.094 and gated agreement 97.7%, versus ECE 0.146 and agreement 92.4% for hard-label CE. §4.397.7% (not found in the paper)92.4% (not found in the paper)
  • All-S1 degrades ALFWorld to 40.3 from 95.5 for AnyS1 warm, with cost 0.04 versus 0.12 times the uncompiled agent. §4.3

Limitations

  • AnyS1 warm uses about 50 development episodes per workflow in which System-2 answers every E node to achieve the largest cost reductions.
  • Large episode-level cost savings rely on compiling procedural skills into explicit programs.
  • Adapting deferral thresholds online from deferred System-2 calls and automatically compiling open-ended repository skills are left as next steps.

Key points

  • Prior dual-system agents rely on manually pre-defined decision points for one fixed workflow and collect supervision only at those hooks. §1
  • Procedural skills specify branches and checks that implicitly define where to judge and among which options, making them a workflow-agnostic source of decision points. §1
  • AnyS1 mines grounded enumerable decisions across over 1,000 public skills and releases Any-DP with 17,865 typed decision points and 25,986 teacher-consensus execution states. §1
  • Any-DP is built by executing synthesized tasks in isolated containers to collect authentic runtime states and consensus labels. §3.2
  • Online, deterministic steps run as code, open generation goes to System-2, and System-1 answers enumerable steps unless confidence falls below a threshold. §3
  • AnyS1 warm calibrates the gate threshold on unlabeled development runs, while AnyS1 cold transfers one global threshold zero-shot. §1
  • Training on authentic container-executed states outperforms LLM-fabricated states by 18.8 points on the held-out container development set. §4.3
  • Calibration and confidence gating prevent cascading search failures and capture nearly the full savings ceiling set by each workflow's enumerable-step share. §1

Mind map

AnyS1
Problem
System-2 called every step
Workflow-specific hooks
New workflows fall back to System-2
Any-DP data
Mine skills over 1,000
17,865 typed decisions
25,986 consensus states
Container execution
System-1 training
4B pointer model
Label smoothing
Teacher consensus labels
Runtime execution
D steps as code
G steps on System-2
E steps on System-1
Confidence gate defers
Evaluation
SOPBench
ALFWorld
WebShop
DeepSeek and GPT-6
Warm and cold thresholds
Limitations
Warm needs 50 dev episodes
Savings need compiled programs
Online threshold adaptation open