coolnow commited on
Commit
79fa875
·
verified ·
1 Parent(s): abba2fe

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: answerdotai/ModernBERT-base
4
+ tags: [gui-agent, android, accessibility, on-device, androidcontrol]
5
+ ---
6
+ # Milo Pointer (149M)
7
+
8
+ Paper: *A Small First Tier for Phone Agents: A Pre-Registered Offline Study of Routing Step-Instructed Actions to a 149M Local Model*
9
+ (Chaitanya Talapalli, 2026). Code, per-step results and the registration log: https://github.com/chayworks/milo-pointer
10
+
11
+ A 149M-parameter model that picks the next action on an Android screen from its accessibility tree, in about 0.3 s on a laptop.
12
+ It is meant to sit **in front of** a frontier agent: it answers the steps it is sure about and returns `defer: true` for the rest.
13
+
14
+ ## Result (pre-registered, fresh data)
15
+
16
+ 1,000 AndroidControl test steps (episodes not used in any earlier frontier comparison), each with a human-written step instruction;
17
+ offline, from the recorded history. The routing threshold was fixed on a separate sample and committed before Claude saw these steps
18
+ (`paper/PREREGISTRATION.md`, AC-Router). The pointer itself was selected on the test split during development, so its own score is
19
+ mildly optimistic. Costs: billed tokens, Batch API prices (50% off); double them for standard real-time calls.
20
+
21
+ | System | Run 1 | Run 2 | Steps on device | API $ per 1k steps (Batch) |
22
+ |---|---|---|---|---|
23
+ | Milo Pointer alone | 869 | 869 | 100% | 0 |
24
+ | Claude Opus 5.5 + 16 retrieved examples | 882 | 879 | 0% | 9.54 |
25
+ | **Milo Pointer, defer to Opus 5.5** | **892** | **890** | **70.7%** | **2.82** |
26
+ | Claude Sonnet 5.5 + 16 retrieved examples | 857 | 862 | 0% | 4.80 |
27
+ | **Milo Pointer, defer to Sonnet 5.5** | **881** | **889** | **70.7%** | **1.41** |
28
+
29
+ The cascade is non-inferior to Opus alone (+1.0 points, 95% CI [-0.2, +2.2]; not significantly better, p = 0.14) and uses 29% of
30
+ its calls. On the steps the pointer keeps it is right 94.9% of the time, against 93.5% for Opus on the same steps.
31
+
32
+ Full AndroidControl test set (8,444 steps, strict metric): 88.5% step accuracy; IDD 89.8, unseen app 87.9, unseen task 87.2,
33
+ unseen category 86.7.
34
+
35
+ What it does **not** do: it is not better than Opus given the same data (878 vs 893 on another sample, p = 0.17). Live on
36
+ AndroidWorld, a cascade of this kind (deferring to Gemini 3.5 Flash) completed fewer tasks than the frontier agent alone (41.9% vs
37
+ 54.8%, p = 0.008): offline step accuracy does not carry over to live tasks where errors compound. Both the pointer and the few-shot
38
+ Claude arms use AndroidControl's 74k labelled training steps; on your own apps expect to need similar data.
39
+
40
+ ## Use
41
+
42
+ ```python
43
+ # pip install torch transformers safetensors huggingface_hub
44
+ from huggingface_hub import snapshot_download
45
+ path = snapshot_download("coolnow/milo-pointer")
46
+ import sys; sys.path.insert(0, path)
47
+ from milo_pointer import MiloPointer
48
+ m = MiloPointer.load(path)
49
+ a = m.predict(goal="Turn on dark mode", instruction="Open display settings",
50
+ elements=[{"cls": "TextView", "text": "Display", "b": [0, 400, 1080, 520], "click": 1}, ...],
51
+ width=1080, height=2400, last_step="new step")
52
+ if a["defer"]:
53
+ ... # send this step to your frontier agent
54
+ else:
55
+ ... # a = {'action_type': 'click', 'element': 3, 'x': 540, 'y': 460, 'confidence': 0.998, 'defer': False}
56
+ ```
57
+
58
+ Actions: click, long_press, input_text (text copied from the instruction), scroll_up/down/left/right, navigate_back,
59
+ navigate_home, open_app (name copied from the instruction), wait. `last_step` describes the previous step; see
60
+ `bench/ac_frontier.py:test_rows` for the format used in training ("new step", or "repeat of last step (last action click), screen
61
+ 80% unchanged").
62
+
63
+ ## Speed and memory
64
+
65
+ | Hardware | Median per step | Memory |
66
+ |---|---|---|
67
+ | Apple M2 laptop GPU (PyTorch, fp16) | 0.29 s | ~2 GB process |
68
+ | Pixel 6a CPU, ONNX Runtime 1.20, 4 threads, fp32 | 4.5 s (p90 11.9 s) | 1.94 GB |
69
+ | Pixel 6a CPU, ONNX Runtime 1.20, 4 threads, int8 | 3.4 s (p90 11.2 s) | 1.45 GB (agrees with fp32 on 34/40 steps) |
70
+ | Same, empty layout containers removed from the input | 1.18 s (p90 4.9 s) | 1.45 GB (0.8 points lower accuracy, routing intact) |
71
+
72
+ Phone CPU latency is not yet sub-second. `android/` has the export, the benchmark and a live demo.
73
+
74
+ ## Limits
75
+
76
+ Text only (no screenshot), so icons without labels are hard. Trained on AndroidControl only; expect lower accuracy on very
77
+ different apps (on a strict holdout of 72 unseen apps, 86.2 to 82.6). English instructions. Frontier comparisons are single runs.
78
+
79
+ ## Training
80
+
81
+ ModernBERT-base encoder, three heads (action type, element pointer, copy span), 2 epochs on the 74,714 AndroidControl TRAIN steps,
82
+ a single Kaggle GPU session. Source: `training/ac/pointer_v2/src/v2.py`.