yuecao0119 commited on
Commit
6514553
·
verified ·
1 Parent(s): 547dc17

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +178 -3
README.md CHANGED
@@ -1,3 +1,178 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - visual-question-answering
5
+ - text-generation
6
+ language:
7
+ - en
8
+ - zh
9
+ tags:
10
+ - android
11
+ - gui grounding
12
+ - gui agent
13
+ - english app
14
+ - chinese app
15
+ - long-horizon-planning
16
+ pretty_name: AndroidLens
17
+ size_categories:
18
+ - 1K<n<10K
19
+ viewer: false
20
+ ---
21
+
22
+
23
+ # AndroidLens: **Long-latency Evaluation with Nested Sub-targets for Android GUI Agents**
24
+
25
+ AndroidLens is a challenging benchmark for mobile GUI agents, featuring **571 real-world, long-horizon tasks** in both **Chinese and English**, with an average of **26.1 steps per task**. It supports evaluation of critical capabilities:
26
+
27
+ - **Long-horizon planning** under multi-constraint & multi-goal scenarios
28
+ - **298 cross-app tasks and 273 single-app tasks**, covering 74 real-world applications (e.g., WeChat, Google Drive, Taobao, Maps).
29
+ - **Robustness to real anomalies**: ads, permission pop-ups, login redirects
30
+ - **Multi-trajectory ground truth** to reduce path bias
31
+ - **Milestone-based progress tracking** via nested sub-targets
32
+
33
+ This dataset is designed for both **static** (step-wise prediction) and **dynamic** (real-device execution) evaluation.
34
+
35
+ > 📄 **Paper**: [AndroidLens: Long-latency Evaluation with Nested Sub-targets for Android GUI Agents](http://arxiv.org/abs/2512.21302)
36
+ > 💾 **GitHub**: [https://github.com/alibaba/AndroidLens](https://github.com/alibaba/AndroidLens)
37
+ > 🤗 **Hugging Face**: [yuecao0119/AndroidLens](https://huggingface.co/datasets/yuecao0119/AndroidLens)
38
+
39
+ ---
40
+
41
+ ## 🗂️ Dataset Structure
42
+
43
+ Your data is organized as:
44
+
45
+ ```
46
+ test/
47
+ ├─ en/ # English tasks
48
+ │ └─ <episode_id>/
49
+ │ ├─ <episode_id>.json # Full episode trajectory (list of steps)
50
+ │ ├─ <episode_id>_0.png # Screenshot at step 0
51
+ │ ├─ <episode_id>_1.png
52
+ │ └─ ...
53
+ └─ zh/ # Chinese tasks
54
+ └─ <episode_id>/
55
+ ├─ <episode_id>.json
56
+ ├─ <episode_id>_0.png
57
+ └─ ...
58
+ ```
59
+
60
+ Each `<episode_id>.json` file contains a **list of step objects**, with one object per interaction step.
61
+
62
+ ---
63
+
64
+
65
+
66
+
67
+ ### 🏷️ Task Category Codes (`types`)
68
+
69
+ The `types` field uses a hierarchical two-digit code system to classify task complexity and structure.
70
+ These categories align with AndroidLens’s taxonomy of **Multi-goal (1-X)**, **Multi-constraint (2-X)**, and **Domain-specific (3-X)** tasks, enabling fine-grained analysis of agent performance across different challenge dimensions.
71
+
72
+ | Code | Category | Description |
73
+ |------|----------|-------------|
74
+ | **1-1** | Single-app Unrelated Tasks | Multiple independent subtasks within **one app**, with no logical dependency. |
75
+ | **1-2** | Single-app Related Tasks | Multiple **dependent** subtasks within **one app** (e.g., “Search product → add to cart → checkout”) |
76
+ | **1-3** | Cross-app Unrelated Tasks | Independent actions across **multiple apps** (e.g., “Send message on WeChat, then play music on QQ Music”) |
77
+ | **1-4** | Cross-app Related Tasks | **Interdependent** operations across **multiple apps** (e.g., copy link from Chrome → paste in Drive → upload) |
78
+ | **2-1** | Operation-Level Constraints | Tasks requiring precise **widget-level control**, such as exact text input, time/date pickers, or multi-condition filtering |
79
+ | **2-2** | Page-Level Constraints | Tasks with navigation constraints like specific tab/category selection, sort/filter order, or view state |
80
+ | **3-1** | Batch Operation Tasks | Repeated actions on multiple items (e.g., “Empty shopping carts on Taobao, JD, and Pinduoduo”) |
81
+ | **3-2** | Combine with VLM Capabilities | Tasks that **leverage the agent’s built-in multimodal abilities**, such as translation, comparison, summarization, or OCR-to-action |
82
+
83
+ ---
84
+
85
+ ## 📑 Step-level Data Format
86
+
87
+ Each step in the JSON list includes:
88
+
89
+ | Field | Type | Description |
90
+ |------|------|-------------|
91
+ | `episode_id` | `str` | Unique task ID (UUID) |
92
+ | `language` | `str` | `"en"` or `"zh"` |
93
+ | `app` | `List[str]` | Sequence of involved apps (e.g., `["Google Chrome", "Google Drive"]`) |
94
+ | `episode_length` | `int` | Total steps in the full trajectory |
95
+ | `step_id` | `int` | Current step index (0-based) |
96
+ | `instruction` | `str` | High-level user goal (same for all steps in the episode) |
97
+ | `image_path` | `str` | Relative path to screenshot (e.g., `en/.../0.png`) |
98
+ | `image_width`, `image_height` | `int` | Original resolution of the screenshot |
99
+ | `result_action_type` | `List[int]` | Action code (`[4]` = Click; see note below) |
100
+ | `result_touch_yx` | `List[str]` | **Normalized** touch coordinates as string: `"[y, x]"` in range `[0, 1]` |
101
+ | `result_lift_yx` | `List[str]` | End point for swipe (same as `touch` for tap) |
102
+ | `result_action_text` | `List[str]` | Text to input (empty if none) |
103
+ | `duration` | `List[null/float]` | Action hold time (null for tap) |
104
+ | `low_instruction` | `str` | Step-specific guidance (for low-level evaluation) |
105
+ | `milestone` | `dict` | **Nested sub-goal** info (see below) |
106
+ | `types` | `List[str]` | Task category code (e.g., `"1-2"`); see full mapping below. |
107
+
108
+ > 🔍 **Coordinate Note**:
109
+ > - `result_touch_yx` uses **relative coordinates** in `[0, 1]`, with format `"[y, x]"` (note: *y first*).
110
+ > - To convert to absolute pixel:
111
+ > ```python
112
+ > y_abs = float(y_rel) * image_height
113
+ > x_abs = float(x_rel) * image_width
114
+ > ```
115
+
116
+ ---
117
+
118
+ ## 🎯 Milestone Format
119
+
120
+ The `milestone` field enables **fine-grained progress evaluation**:
121
+
122
+ ```json
123
+ {
124
+ "sub-target": "Open Google Chrome and search for 'panda'",
125
+ "idx": 1,
126
+ "bbox": [0.023, 0.121, 0.976, 0.189], // [x1, y1, x2, y2] in normalized coords
127
+ "text": "panda",
128
+ "state": ["selected"]
129
+ }
130
+ ```
131
+
132
+ - `idx`: milestone index (ordered)
133
+ - `bbox`: bounding box of key UI element (normalized, xy format)
134
+ - `text` / `state`: expected content or widget state
135
+
136
+ Milestones support **ordered** and **unordered** sub-goals for complex tasks.
137
+
138
+ ---
139
+
140
+ ## 📊 Action Type Mapping
141
+
142
+ Although the original [AgentCPM-GUI](https://github.com/OpenBMB/AgentCPM-GUI) defines actions via names, your data uses numeric codes in `result_action_type`. Based on AndroidLens annotation practice, the common mapping is:
143
+
144
+ | Code | Action | Required Fields |
145
+ |------|------------------|-------------------------------------|
146
+ | 1 | Wait | `duration` |
147
+ | 3 | Type | `result_action_text` |
148
+ | 4 | Click | `result_touch_yx` |
149
+ | 4 | LongPress | `result_touch_yx`, `duration` |
150
+ | 4 | Swipe | `result_touch_yx`, `result_lift_yx` |
151
+ | 5 | PressBack | — |
152
+ | 6 | PressHome | — |
153
+ | 10 | Terminate | — |
154
+
155
+ > Confirm exact mapping from your annotation code if needed. AndroidLens uses ADB-based actions with explicit start/end for swipe.
156
+
157
+ ---
158
+
159
+ ## 📜 License
160
+
161
+ AndroidLens is released under the **Apache-2.0 License**.
162
+ Screenshots are derived from real app usage for research purposes only. Comply with app store policies and local regulations.
163
+
164
+ ---
165
+
166
+ ## ✏️ Citation
167
+
168
+ If this work is helpful for your research, please consider citing the following BibTeX entry.
169
+
170
+ ```bibtex
171
+ @article{cao2025androidlens,
172
+ title={AndroidLens: Long-latency Evaluation with Nested Sub-targets for Android GUI Agents},
173
+ author={Yue Cao and Yingyao Wang and Pi Bu and Jingxuan Xing and Wei Jiang and Zekun Zhu and Junpeng Ma and Sashuai Zhou and Tong Lu and Jun Song and Yu Cheng and Yuning Jiang and Bo Zheng},
174
+ year={2025},
175
+ journal={arXiv preprint arXiv:2512.21302},
176
+ }
177
+ ```
178
+