Fast-Path / Slow-Path Architecture¶
Core Idea¶
A system handles the common case via a cheap, narrow fast path and recruits an expensive, broad slow path only when a trigger flags uncertainty — paying the high cost rarely while keeping throughput high on the routine majority.
How would you explain it like I'm…
Quick Way, Careful Way
Call the Manager
Two Paths, One Trigger
Broad Use¶
- Human cognition: Fast intuitive pattern-matching, with slow deliberate reasoning recruited on difficulty or high stakes.
- CPU architecture: Branch prediction with speculative execution pays a rollback cost only on misprediction.
- Network protocols: Routers forward common packets in silicon and route exceptions to control-plane software.
- Compilers: An interpreter runs cold code while a JIT compiles hot paths on execution-count profiling.
- Robotics: A reactive layer is paired with a deliberative planner invoked only when stakes are high.
- Clinical reasoning: Illness-script recognition for typical cases, analytic differential diagnosis for atypical ones.
- Customer service: Tier-1 scripts plus escalation when confidence drops or sentiment markers fire.
Clarity¶
It separates two questions a designer otherwise conflates — what is the right average-case computation and the right worst-case one — licensing two specialists and one signal that routes between them.
Manages Complexity¶
It collapses "how should this system handle everything" into three independent dials — fast-path capability, slow-path capability, and trigger calibration — with expected cost equal to fast-path cost plus escalation probability times slow-path cost.
Abstract Reasoning¶
It trains a reasoner to ask of any cost-versus-correctness system: what is the difficulty skew, what is the cheap handler, what is the expensive one, and what signal detects that the cheap one is unreliable here?
Knowledge Transfer¶
- Compilers to clinics: Watching JIT promotion rates under changing workloads is the same move as watching referral rates under a changing patient population.
- CPUs to organizations: Tuning an escalation threshold and widening the fast path's coverage are one toolkit across silicon and service tiers.
- Robotics to medicine: A self-driving stack's uncertainty-triggered planner mirrors a clinician's diagnostic time-out.
Example¶
A CPU branch predictor speculatively executes the predicted branch (fast path) at full throughput and only flushes-and-restarts (slow path) on a misprediction detected by branch resolution (the trigger), so prediction accuracy is the dominant performance lever.
Not to Be Confused With¶
- Fast-Path / Slow-Path is not Caching because the slow path may compute a different, broader answer, whereas caching's miss merely fetches the same answer the fast path lacked.
- Fast-Path / Slow-Path is not Fallback because the trigger fires on detected uncertainty before any error, whereas fallback fires only after a demonstrable failure.
- Fast-Path / Slow-Path is not an Authority Hierarchy because the paths differ by cost-per-input, not by standing to decide — a CPU has no "senior" path.