TL;DR
Mobile AI agents currently face a painful dilemma: either upload every single smartphone screen to a giant cloud model (accurate, but pricey and terrible for privacy) or have the cloud write a complete action plan upfront (cheap and private, but prone to failing because the cloud doesn't actually know what your apps look like). SeaPilot escapes this trade-off by turning execution failures into structured, device-local "cheat sheets" about how your phone actually works. By feeding just the right local quirks to the cloud before it plans, SeaPilot gets better-than-step-by-step accuracy at one-shot prices.
What Problem Does This Paper Address?
Suppose you ask an AI agent on your phone to "Delete the dentist appointment next Tuesday in Calendar." Small, on-device models struggle with long-horizon reasoning, while massive cloud LLMs excel at it. Combining the two (cloud–edge collaboration) makes sense, but leaves engineers choosing between two flawed paradigms:
- Step-by-step interaction: Your phone sends a screenshot to the cloud at every tap. The cloud sees everything in real time, keeping accuracy high, at the cost of massive token bills, high latency, and broadcasting your private UI screens to external servers.
- One-shot planning: The cloud generates high-level milestones upfront based only on your prompt, leaving a small local model to execute the taps. It’s cheap and private, until the cloud hallucinates a feature your specific app doesn't have—like assuming your Calendar app supports searching by date when it only searches by event title.
The authors formalize this root cause as the Environment Assumption Gap (EAG): the mismatch between the cloud's generic mental model of an app and the ground-truth reality of your specific device, app versions, and configurations.
Methods
SeaPilot operates in the low-cost, one-shot paradigm (using GPT-4o in the cloud and quantized 2B–4B Qwen models on the edge), but bridges the EAG using a failure-driven learning loop built on three novel components:
- Failure-Driven Hypothesis Induction: When the local executor gets stuck on a milestone, it doesn't just blindly retry. It sends a compact text summary of the failed actions and visible UI elements (~50–100 tokens, no raw pixels) to the cloud. The cloud diagnoses whether this was a clumsy local tap or a strategic EAG failure. If it’s an EAG failure, the cloud distills the lesson into a structured environment hypothesis $h = (c, e, r)$: applicable scope ($c$), inferred environment constraint ($e$, e.g., "date search unsupported"), and recommended adaptation ($r$, e.g., "search by title instead").
- Device-Local Hypothesis Memory: Rather than storing raw action trajectories (which don't generalize well), the edge device stores these abstract hypotheses locally alongside track-record counters: how many times each was used ($n_i$) and how many times the resulting task succeeded ($v_i$).
- Uncertainty-Aware Hypothesis Selection: Before sending a new task to the cloud, the phone searches its local memory in two stages. First, a lightweight semantic filter grabs the top-$K$ hypotheses relevant to the current prompt. Second, because a newly induced hypothesis might be a fluke, SeaPilot models each candidate's reliability using a Beta distribution and applies Thompson Sampling—a classic multi-armed bandit technique. This balances exploiting proven rules with exploring under-tested ones, attaching the winning hypothesis to the cloud's prompt.
Datasets
SeaPilot is evaluated on two existing Android benchmarks (no new datasets are introduced, as the system learns online from zero-prior task execution rather than offline training):
- AndroidWorld: The primary testbed, featuring 116 tasks across 20 real Android apps on a Pixel 6 emulator, graded by deterministic programmatic validators.
- AndroidLab: Used for supplementary cross-domain generalization checks, relying on human verification.
Key Insights and Ideas
- Abstracting environment quirks beats memorizing actions: Standard agent memory saves past trajectories ("tap X, then Y"). SeaPilot instead saves constraints of the world. Knowing what an app cannot do transfers cleanly across totally different tasks within the same app.
- Failures are a one-time tuition fee: In a diagnostic breakdown of 60 failed tasks, 21 involved EAG errors. While a standard one-shot agent repeats these strategic blunders forever, SeaPilot pays a tiny diagnostic token cost once to turn a blind spot into permanent local knowledge.
- Relevance isn't reliability: Ablations show that picking hypotheses purely by semantic similarity drops success rates from 40.5% down to 31.0%. Pairing semantic retrieval with Thompson Sampling lets the device naturally weed out bad or over-specific hypotheses through real execution feedback.
Key Results
On AndroidWorld, SeaPilot-Pro (GPT-4o cloud + Qwen3-VL-2B & Qwen3-4B edge) achieves a standout Pareto improvement across accuracy, cost, and privacy:
- Higher Accuracy: Reaches a 40.5% task success rate, beating representative one-shot baseline EcoAgent (27.6% — a 46.7% relative jump) and even outperforming step-by-step cloud–edge agent UGround (32.8%).
- Drastically Lower Cloud Cost: Consumes ~1.9k cloud tokens per task—23.6× fewer than UGround (~45k) and 45× fewer than pure-cloud M3A (~87k).
- Self-Refining Gains: Starting with an empty memory yields 28.45% success; accumulating hypotheses over 5 rounds steadily pushes accuracy to 40.52% while shrinking average step counts (10.43 to 9.94) and token usage (2,111 to 1,934).
- Privacy Preservation: Achieves a 73.2% reduction in uploaded UI elements compared to a pure GPT-4o baseline (and an 89.6% privacy cost improvement over collaborative baseline CORE).
Limitations and Future Work
- Local bottlenecks remain: SeaPilot fixes bad plans, not clumsy hands. In the authors' failure analysis, edge-side visual grounding errors (29/60) and broken accessibility trees (11/60) were still major hurdles that better cloud prompts cannot fix.
- Diagnostic dependence: The system relies on the cloud LLM accurately diagnosing why a task failed. Bad diagnoses can inject noisy hypotheses, which Thompson Sampling suppresses over time but doesn't strictly delete.
- App updates and drift: Real-world apps change their UIs with updates. Managing long-term memory decay and adapting when old constraints become obsolete remain open directions for future work.
Summary updated