Datasets:
Commit ·
6eb86fa
0
Parent(s):
AndroidFlux RM Eval
Browse files- .gitattributes +60 -0
- README.md +307 -0
- android_flux_recovery_action_preference/images.parquet +3 -0
- android_flux_recovery_action_preference/samples.parquet +3 -0
- androidflux_system_prompt.txt +15 -0
- code/load_from_hf.py +95 -0
- ui_genie_pairwise/images.parquet +3 -0
- ui_genie_pairwise/samples.parquet +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: AndroidFlux RM Eval
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-text-to-text
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- android
|
| 9 |
+
- gui-agents
|
| 10 |
+
- qwen3-vl
|
| 11 |
+
- reward-model
|
| 12 |
+
- preference
|
| 13 |
+
- parquet
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: ui_genie_pairwise
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: ui_genie_pairwise/samples.parquet
|
| 19 |
+
- config_name: ui_genie_pairwise_images
|
| 20 |
+
data_files:
|
| 21 |
+
- split: train
|
| 22 |
+
path: ui_genie_pairwise/images.parquet
|
| 23 |
+
- config_name: android_flux_recovery_action_preference
|
| 24 |
+
data_files:
|
| 25 |
+
- split: train
|
| 26 |
+
path: android_flux_recovery_action_preference/samples.parquet
|
| 27 |
+
- config_name: android_flux_recovery_action_preference_images
|
| 28 |
+
data_files:
|
| 29 |
+
- split: train
|
| 30 |
+
path: android_flux_recovery_action_preference/images.parquet
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
# AndroidFlux RM Eval
|
| 34 |
+
|
| 35 |
+
Two pairwise evaluation sets for GUI-agent reward models, packed as self-contained
|
| 36 |
+
parquet. Screenshots travel with the rows as bytes, so nothing depends on paths from
|
| 37 |
+
the machine that built them: `sha256(encoded_bytes) == image_id` for every image, with
|
| 38 |
+
no re-encoding.
|
| 39 |
+
|
| 40 |
+
Both sets are scored by [`AndroidFlux/rm_benchmark`](https://github.com/glim-arc/AndroidFlux).
|
| 41 |
+
|
| 42 |
+
## Configs
|
| 43 |
+
|
| 44 |
+
| Config | Rows | Images | A row is |
|
| 45 |
+
|---|---|---|---|
|
| 46 |
+
| `ui_genie_pairwise` | 1,000 | 3,552 | A UI-Genie `(prompt, chosen, rejected)` preference pair |
|
| 47 |
+
| `android_flux_recovery_action_preference` | 100 | 403 | A recovery-action preference pair: two candidate t+1 actions from the **same** checkpoint, ranked by how many of 12 independent continuation models succeeded after taking each one |
|
| 48 |
+
|
| 49 |
+
```
|
| 50 |
+
android_flux_recovery_action_preference/samples.parquet 100 rows
|
| 51 |
+
android_flux_recovery_action_preference/images.parquet 403 images, 107 MB
|
| 52 |
+
ui_genie_pairwise/samples.parquet 1,000 rows
|
| 53 |
+
ui_genie_pairwise/images.parquet 3,552 images, 2.26 GB
|
| 54 |
+
androidflux_system_prompt.txt the system turn both sets use
|
| 55 |
+
code/load_from_hf.py runnable loading example
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Input format
|
| 59 |
+
|
| 60 |
+
Both configs render a row the same way, so a score from one is comparable with a score
|
| 61 |
+
from the other:
|
| 62 |
+
|
| 63 |
+
```
|
| 64 |
+
system the mobile_use tool spec, carrying this row's screen size
|
| 65 |
+
user goal + executed history, screenshots interleaved
|
| 66 |
+
assistant one closed <tool_call> holding the candidate action
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
A scalar-head reward model reads the score at the last token of the assistant turn;
|
| 70 |
+
nothing is appended after it. Classifier and generative variants append one more user
|
| 71 |
+
turn asking for a single `<|+|>` / `<|-|>` token and read its probability. Which one
|
| 72 |
+
applies is a property of the model, not of the data.
|
| 73 |
+
|
| 74 |
+
### System turn
|
| 75 |
+
|
| 76 |
+
`androidflux_system_prompt.txt` is the template, verbatim. Only
|
| 77 |
+
`The screen's resolution is WxH.` varies, carrying the row's `screen_width` x
|
| 78 |
+
`screen_height`. Every row in both configs uses it:
|
| 79 |
+
|
| 80 |
+
```
|
| 81 |
+
sha256(androidflux_system_prompt.txt, trailing newline stripped)
|
| 82 |
+
= b465a698e4da74f443c563334d6c80bf59e2f9ec07b54e89077c21f1d63911ee
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
It is the UI-Genie tool spec the reward-model bases were trained against. Nine actions
|
| 86 |
+
are declared — `key`, `click`, `long_press`, `swipe`, `type`, `system_button`, `open`,
|
| 87 |
+
`wait`, `terminate` — and `swipe` declares a `direction` parameter alongside
|
| 88 |
+
`coordinate` / `coordinate2`. The spec is kept as the bases saw it rather than widened
|
| 89 |
+
to match the corpora; the consequences are listed under *Candidate turn*.
|
| 90 |
+
|
| 91 |
+
### User turn
|
| 92 |
+
|
| 93 |
+
```
|
| 94 |
+
The user query: {goal}
|
| 95 |
+
Task progress (You have done the following operation on the current device): Step1: {entry}
|
| 96 |
+
<image>
|
| 97 |
+
Step2: {entry}
|
| 98 |
+
<image>
|
| 99 |
+
Step3: {entry}
|
| 100 |
+
<image>
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
* Every executed step appears as text, oldest first, numbered from 1.
|
| 104 |
+
* A step that has a screenshot is preceded by `<image>` on its own line. Only the most
|
| 105 |
+
recent steps carry one, so the markers form a suffix of the history.
|
| 106 |
+
* The trailing `<image>` is the state being judged, and is always present. In
|
| 107 |
+
`ui_genie_pairwise` it is written `; <image>`, upstream's own separator, kept verbatim.
|
| 108 |
+
* `user_content.count('<image>') == n_images == len(image_ids)`, and `image_ids` is in
|
| 109 |
+
the order the markers appear. The judged frame is **last**.
|
| 110 |
+
* `history_entries` holds the same steps as a list, marker-free apart from one wart
|
| 111 |
+
noted under *Checks a reader can run*.
|
| 112 |
+
|
| 113 |
+
History entries are natural language, matching the policy's own action history, not a
|
| 114 |
+
serialized tool call. `android_flux_recovery_action_preference` writes coordinates,
|
| 115 |
+
every one of its 636 inside the declared screen; `ui_genie_pairwise` describes the
|
| 116 |
+
target element instead:
|
| 117 |
+
|
| 118 |
+
```
|
| 119 |
+
Step1: Swipe from (539, 1783) to (539, 677) on the screen.
|
| 120 |
+
Step2: Click on the point (415, 834) of the screen.
|
| 121 |
+
|
| 122 |
+
Step1: Go back to the screen.
|
| 123 |
+
Step2: Click on the plus icon at top right of the screen.
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
One recovery history entry is `{}`: the source trajectory recorded a parse failure at
|
| 127 |
+
that step, and the training corpus renders it the same way.
|
| 128 |
+
|
| 129 |
+
### Candidate turn
|
| 130 |
+
|
| 131 |
+
```
|
| 132 |
+
<tool_call>
|
| 133 |
+
{"name": "mobile_use", "arguments": {"action": "click", "coordinate": [539, 2193]}}
|
| 134 |
+
</tool_call>
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
Every candidate in both configs parses as exactly one `<tool_call>` naming
|
| 138 |
+
`mobile_use` — 200 recovery candidates, 2,000 UI-Genie candidates, no exceptions. What
|
| 139 |
+
sits inside the call is a model output, so it is not guaranteed to honour the spec, and
|
| 140 |
+
the deviations are kept rather than repaired:
|
| 141 |
+
|
| 142 |
+
| | `android_flux_recovery_action_preference` | `ui_genie_pairwise` |
|
| 143 |
+
|---|---|---|
|
| 144 |
+
| action outside the declared enum | 16 `answer` (11 chosen, 5 rejected) | 11: `left_click` 4, `open_app` 2, `scroll`, `go_to`, `search`, `Open`, `auto_suggest_popup_click` |
|
| 145 |
+
| `swipe` written as `direction` | 0 of 14 | 84 of 348 |
|
| 146 |
+
| a declared-required argument missing | 4 | 86 |
|
| 147 |
+
| coordinate outside the declared screen | 0 | 2 |
|
| 148 |
+
|
| 149 |
+
The recovery candidates are selected pairs, so they are clean apart from `answer`, which
|
| 150 |
+
the generators emit for steps whose goal is to read something off the screen. UI-Genie is
|
| 151 |
+
repacked unchanged: its rejected side is meant to contain bad outputs, and `direction` is
|
| 152 |
+
declared in the spec precisely because its swipes use it.
|
| 153 |
+
|
| 154 |
+
### Coordinates
|
| 155 |
+
|
| 156 |
+
Pixels in the logical screen the system turn declares — the same space the history
|
| 157 |
+
entries use. Not normalized to 0..1000, not 0..1 floats. A row's screenshots may differ
|
| 158 |
+
in pixel size from the declared logical screen; the declared size is the space the
|
| 159 |
+
coordinates are in, and readers resize images independently.
|
| 160 |
+
|
| 161 |
+
### Checks a reader can run
|
| 162 |
+
|
| 163 |
+
```
|
| 164 |
+
system_prompt == the template with this row's resolution 1,100 / 1,100 rows
|
| 165 |
+
user_content.count('<image>') == n_images == len(image_ids) 1,100 / 1,100 rows
|
| 166 |
+
every image_id resolves, sha256(bytes) == image_id 3,955 / 3,955 images
|
| 167 |
+
candidate parses to one mobile_use tool call 2,200 / 2,200 candidates
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
One known wart, in `history_entries` only: for the 848 `ui_genie_pairwise` rows that
|
| 171 |
+
have history, the last entry carries the trailing `; <image>` marker that the split
|
| 172 |
+
should have removed. `user_content` and `prefix_messages_json` — what a model is
|
| 173 |
+
actually scored on — are unaffected, so the column is left as published rather than
|
| 174 |
+
rewritten under the released hashes.
|
| 175 |
+
|
| 176 |
+
## Schema
|
| 177 |
+
|
| 178 |
+
Both configs share one core schema in `samples.parquet`:
|
| 179 |
+
|
| 180 |
+
| Column | Meaning |
|
| 181 |
+
|---|---|
|
| 182 |
+
| `schema_version` | `android_flux_recovery_action_preference_v3` / `android_flux_rm_eval_v1` |
|
| 183 |
+
| `sample_id` | keys the whole `(prompt, chosen, rejected)` triple |
|
| 184 |
+
| `exclusion_fingerprint` | hash of `(user_content, rejected_response)`; UI-Genie uses it to exclude its 64k training split. Not unique — two UI-Genie pairs share a prompt and a rejected response and differ only in the chosen one |
|
| 185 |
+
| `source` | `ui-genie` / `android-flux-recovery` |
|
| 186 |
+
| `in_reduced` | member of the 512-pair quick-run subset |
|
| 187 |
+
| `goal` | the user task |
|
| 188 |
+
| `system_prompt`, `user_content`, `prefix_messages_json` | the prompt; the json holds the verbatim `[system, user]` turns |
|
| 189 |
+
| `chosen_response`, `rejected_response` | the two candidates |
|
| 190 |
+
| `image_ids`, `n_images` | screenshot window, in `<image>` order, judged frame last |
|
| 191 |
+
| `screen_width`, `screen_height` | the logical screen the coordinates live in |
|
| 192 |
+
| `history_entries` | every executed step as text, oldest first |
|
| 193 |
+
|
| 194 |
+
`android_flux_recovery_action_preference` adds ten columns:
|
| 195 |
+
|
| 196 |
+
| Column | Meaning |
|
| 197 |
+
|---|---|
|
| 198 |
+
| `outcome` | `error_path` / `clean_path` — whether the replayed prefix was seeded with a real error |
|
| 199 |
+
| `error_type` | the seeded error's type, or `none` |
|
| 200 |
+
| `case_type` | `success_rate` for every row: pairs are selected by raw panel success count |
|
| 201 |
+
| `margin` | the panel-success gap between the two candidates |
|
| 202 |
+
| `origin` | which pass the pair came from |
|
| 203 |
+
| `task_name`, `step_idx` | the source trajectory and the step both candidates replay from |
|
| 204 |
+
| `model_name` | `<chosen generator>_vs_<rejected generator>` |
|
| 205 |
+
| `source_model`, `source_model_key` | the agent that authored the source trajectory |
|
| 206 |
+
|
| 207 |
+
`images.parquet` is a deduplicated binary sidecar: `image_id` (SHA-256),
|
| 208 |
+
`encoded_bytes`, `mime_type`, `width`, `height`, `source_path`. Screenshots are
|
| 209 |
+
referenced by `image_id`, never by path.
|
| 210 |
+
|
| 211 |
+
## What `android_flux_recovery_action_preference` contains
|
| 212 |
+
|
| 213 |
+
Two candidate actions are replayed forward from the same checkpoint — same state, same
|
| 214 |
+
step — and scored by how many of 12 independent continuation models finished the task
|
| 215 |
+
after taking that action. The panel is complete for every row, so all rows share a
|
| 216 |
+
denominator, and neither candidate's own generator sits on the panel. A pair survives at
|
| 217 |
+
`margin >= 2`; candidate actions within 25 px of each other are dropped as
|
| 218 |
+
indistinguishable, and on an error path the candidates are limited to
|
| 219 |
+
`first_error + 1..3`.
|
| 220 |
+
|
| 221 |
+
100 pairs over 26 source tasks, `step_idx` 0..22.
|
| 222 |
+
|
| 223 |
+
| | |
|
| 224 |
+
|---|---|
|
| 225 |
+
| `outcome` | `error_path` 72, `clean_path` 28 |
|
| 226 |
+
| `error_type` | `none` 28, `incomplete_execution` 23, `stagnation` 18, `goal_irrelevant` 17, `goal_regression` 14 |
|
| 227 |
+
| `origin` | `first_error_1k_tplus_panel` 64 (all `error_path`), `rm_test_v1` 36 (28 `clean_path`, 8 `error_path`) |
|
| 228 |
+
| `margin` | 2 → 50, 3 → 30, 4 → 13, 5 → 3, 6 → 1, 7 → 1, 8 → 2 |
|
| 229 |
+
| `n_images` | 5 → 75, 4 → 7, 3 → 15, 2 → 3 |
|
| 230 |
+
| `in_reduced` | true for all 100 — the set is smaller than the 512 cap |
|
| 231 |
+
|
| 232 |
+
Five generators produced the candidates, in 20 ordered combinations; no pair puts a
|
| 233 |
+
generator against itself.
|
| 234 |
+
|
| 235 |
+
| Generator | chosen | rejected |
|
| 236 |
+
|---|---|---|
|
| 237 |
+
| `qwen3vl_2b` | 22 | 19 |
|
| 238 |
+
| `mai_ui_8b` | 20 | 23 |
|
| 239 |
+
| `guiowl15_8b` | 20 | 19 |
|
| 240 |
+
| `qwen3vl_8b` | 19 | 22 |
|
| 241 |
+
| `gui_owl_7b` | 19 | 17 |
|
| 242 |
+
|
| 243 |
+
The source trajectories come from ten agents: Qwen3-VL 4B 24, Qwen3-VL 8B 24, MAI-UI 8B
|
| 244 |
+
17, Qwen3-VL 2B 13, MobileAgentV3 7B 7, Qwen3-VL 32B 7, GUI-Owl 1.5 2B 4, GUI-Owl 1.5 8B
|
| 245 |
+
2, GUI-Owl 1.5 32B 1, GUI-Owl 7B 1.
|
| 246 |
+
|
| 247 |
+
Frame provenance differs by position, deliberately: the judged frame is reused verbatim
|
| 248 |
+
from the replay capture, so it is intentionally not byte-equal to any frame of the source
|
| 249 |
+
trajectory, while the history frames come from that trajectory. A few episodes were
|
| 250 |
+
captured at a slightly different resolution than their replay, so frame sizes can vary
|
| 251 |
+
within one window.
|
| 252 |
+
|
| 253 |
+
### The candidates were chosen from one frame
|
| 254 |
+
|
| 255 |
+
The history window sits in front of a judged frame that is byte-identical to what the
|
| 256 |
+
panel saw. The candidate actions were selected against that single frame; the preceding
|
| 257 |
+
states were added so the reward model reads the same window it reads everywhere else.
|
| 258 |
+
|
| 259 |
+
That matters against a training corpus that closed the gap. `AndroidFlux_RM_train` asks
|
| 260 |
+
every generator with the 3–5 frames the reward model reads, so a model trained there
|
| 261 |
+
scores actions chosen with context and is measured here on actions chosen without it.
|
| 262 |
+
State the asymmetry when you report a train/eval delta; it is a property of the
|
| 263 |
+
benchmark, not of the model.
|
| 264 |
+
|
| 265 |
+
## What `ui_genie_pairwise` contains
|
| 266 |
+
|
| 267 |
+
1,000 pairs from the UI-Genie reward dataset (`UI-Genie-RM-517k`,
|
| 268 |
+
`reward_data_rm_pairs_last5`), with the 64k training split excluded. Four logical screen
|
| 269 |
+
sizes; `n_images` is 1 → 152, 2 → 136, 3 → 119, 4 → 107, 5 → 486. The 152 single-image
|
| 270 |
+
rows carry no history. 512 rows are marked `in_reduced`.
|
| 271 |
+
|
| 272 |
+
## Usage
|
| 273 |
+
|
| 274 |
+
```python
|
| 275 |
+
from datasets import load_dataset
|
| 276 |
+
|
| 277 |
+
samples = load_dataset("Gyubeum/AndroidFlux_RM_Eval", "ui_genie_pairwise", split="train")
|
| 278 |
+
images = load_dataset("Gyubeum/AndroidFlux_RM_Eval", "ui_genie_pairwise_images", split="train")
|
| 279 |
+
|
| 280 |
+
by_id = {r["image_id"]: r["encoded_bytes"] for r in images}
|
| 281 |
+
row = samples[0]
|
| 282 |
+
screenshots = [by_id[i] for i in row["image_ids"]] # in <image> placeholder order
|
| 283 |
+
```
|
| 284 |
+
|
| 285 |
+
The image sidecars are large. To pull only the screenshots you need, stream
|
| 286 |
+
`images.parquet` with `pyarrow` instead:
|
| 287 |
+
|
| 288 |
+
```bash
|
| 289 |
+
pip install huggingface_hub pyarrow
|
| 290 |
+
python code/load_from_hf.py
|
| 291 |
+
python code/load_from_hf.py --config android_flux_recovery_action_preference
|
| 292 |
+
```
|
| 293 |
+
|
| 294 |
+
`code/load_from_hf.py` reads the sample table, resolves screenshots out of the sidecar
|
| 295 |
+
without loading it whole, and rebuilds the reward-model prompt. The 512-pair quick-run
|
| 296 |
+
subset is a filter, not a separate file:
|
| 297 |
+
|
| 298 |
+
```python
|
| 299 |
+
reduced = samples.filter(lambda r: r["in_reduced"])
|
| 300 |
+
```
|
| 301 |
+
|
| 302 |
+
## Sources
|
| 303 |
+
|
| 304 |
+
AndroidWorld error-detected trajectories, the t+1 panel-continuation pass over
|
| 305 |
+
first-error checkpoints, and the UI-Genie reward dataset. `ui_genie_pairwise` is an
|
| 306 |
+
external benchmark repacked unchanged; `android_flux_recovery_action_preference` is
|
| 307 |
+
built from the continuation pass.
|
android_flux_recovery_action_preference/images.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53ca81c92b2f575155bda74623c3c14a7e98303701b47d7c7b92f84ec36a20c6
|
| 3 |
+
size 107075845
|
android_flux_recovery_action_preference/samples.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d02d9872a72eaef014d9ee249651e455906a9f1cb06604e5d05bc0c03d9f9ab
|
| 3 |
+
size 78560
|
androidflux_system_prompt.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are a helpful assistant.
|
| 2 |
+
|
| 3 |
+
# Tools
|
| 4 |
+
|
| 5 |
+
You may call one or more functions to assist with the user query.
|
| 6 |
+
|
| 7 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 8 |
+
<tools>
|
| 9 |
+
{"type": "function", "function": {"name_for_human": "mobile_use", "name": "mobile_use", "description": "Use a touchscreen to interact with a mobile device, and take screenshots.\n* This is an interface to a mobile device with touchscreen. You can perform actions like clicking, typing, swiping, etc.\n* Some applications may take time to start or process actions, so you may need to wait and take successive screenshots to see the results of your actions.\n* The screen's resolution is 504x1120.\n* Make sure to click any buttons, links, icons, etc with the cursor tip in the center of the element. Don't click boxes on their edges unless asked.", "parameters": {"properties": {"action": {"description": "The action to perform. The available actions are:\n* `key`: Perform a key event on the mobile device.\n - This supports adb's `keyevent` syntax.\n - Examples: \"volume_up\", \"volume_down\", \"power\", \"camera\", \"clear\".\n* `click`: Click the point on the screen with coordinate (x, y).\n* `long_press`: Press the point on the screen with coordinate (x, y) for specified seconds.\n* `swipe`: Swipe from the starting point with coordinate (x, y) to the end point with coordinates2 (x2, y2), or with direction ("up"/"down"/"left"/"right").\n* `type`: Input the specified text into the activated input box.\n* `system_button`: Press the system button.\n* `open`: Open an app on the device.\n* `wait`: Wait specified seconds for the change to happen.\n* `terminate`: Terminate the current task and report its completion status.", "enum": ["key", "click", "long_press", "swipe", "type", "system_button", "open", "wait", "terminate"], "type": "string"}, "coordinate": {"description": "(x, y): The x (pixels from the left edge) and y (pixels from the top edge) coordinates to move the mouse to. Required only by `action=click`, `action=long_press`.", "type": "array"}, "coordinate2": {"description": "(x, y): The x (pixels from the left edge) and y (pixels from the top edge) coordinates to move the mouse to. Required only by `action=swipe`.", "type": "array"}, "direction": {"description": "The direction of swiping the screen. Required only by `action=swipe`.", "type": "string", "enum": ["up", "down", "left", "right"]}, "text": {"description": "Required only by `action=key`, `action=type`, and `action=open`.", "type": "string"}, "time": {"description": "The seconds to wait. Required only by `action=long_press` and `action=wait`.", "type": "number"}, "button": {"description": "Back means returning to the previous interface, Home means returning to the desktop, Menu means opening the application background menu, and Enter means pressing the enter. Required only by `action=system_button`", "enum": ["Back", "Home", "Menu", "Enter"], "type": "string"}, "status": {"description": "The status of the task. Required only by `action=terminate`.", "type": "string", "enum": ["success", "failure"]}}, "required": ["action"], "type": "object"}, "args_format": "Format the arguments as a JSON object."}}
|
| 10 |
+
</tools>
|
| 11 |
+
|
| 12 |
+
For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
|
| 13 |
+
<tool_call>
|
| 14 |
+
{"name": <function-name>, "arguments": <args-json-object>}
|
| 15 |
+
</tool_call>
|
code/load_from_hf.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import argparse
|
| 5 |
+
import json
|
| 6 |
+
import os
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
REPO_ID = "Gyubeum/AndroidFlux_RM_Eval"
|
| 10 |
+
CONFIGS = ["ui_genie_pairwise", "android_flux_recovery_action_preference"]
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def get_parquet(config: str, name: str, local_dir: str | None, token: str | None) -> str:
|
| 14 |
+
if local_dir:
|
| 15 |
+
return str(Path(local_dir) / config / name)
|
| 16 |
+
from huggingface_hub import hf_hub_download
|
| 17 |
+
return hf_hub_download(
|
| 18 |
+
repo_id=REPO_ID, repo_type="dataset",
|
| 19 |
+
filename=f"{config}/{name}", token=token,
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def main() -> None:
|
| 24 |
+
ap = argparse.ArgumentParser()
|
| 25 |
+
ap.add_argument("--config", default="ui_genie_pairwise", choices=CONFIGS)
|
| 26 |
+
ap.add_argument("--subset", default="full", choices=["full", "reduced"])
|
| 27 |
+
ap.add_argument("--n", type=int, default=2)
|
| 28 |
+
ap.add_argument("--local_dir", default=None,
|
| 29 |
+
help="Read the parquet from here instead of the Hub")
|
| 30 |
+
ap.add_argument("--image_dir", default="/tmp/rm_eval_images",
|
| 31 |
+
help="Where to write screenshots")
|
| 32 |
+
args = ap.parse_args()
|
| 33 |
+
token = os.environ.get("HF_TOKEN")
|
| 34 |
+
|
| 35 |
+
import pyarrow.parquet as pq
|
| 36 |
+
|
| 37 |
+
print("=" * 68)
|
| 38 |
+
print(f"1. {args.config}/samples.parquet")
|
| 39 |
+
print("=" * 68)
|
| 40 |
+
table = pq.read_table(get_parquet(args.config, "samples.parquet", args.local_dir, token))
|
| 41 |
+
rows = table.to_pylist()
|
| 42 |
+
if args.subset == "reduced":
|
| 43 |
+
rows = [r for r in rows if r["in_reduced"]]
|
| 44 |
+
print(f" {len(rows)} rows ({args.subset}), {len(table.schema)} columns")
|
| 45 |
+
print(f" columns: {', '.join(table.schema.names)}")
|
| 46 |
+
|
| 47 |
+
rows = rows[: args.n]
|
| 48 |
+
for r in rows:
|
| 49 |
+
print(f"\n sample_id : {r['sample_id']}")
|
| 50 |
+
print(f" goal : {r['goal'][:90]}")
|
| 51 |
+
print(f" images : {r['n_images']} screen: {r['screen_width']}x{r['screen_height']}")
|
| 52 |
+
print(f" chosen : {r['chosen_response'][:80].replace(chr(10), ' ')}")
|
| 53 |
+
print(f" rejected : {r['rejected_response'][:80].replace(chr(10), ' ')}")
|
| 54 |
+
if args.config != "ui_genie_pairwise":
|
| 55 |
+
print(f" outcome : {r['outcome']} margin: {r['margin']} {r['model_name']}")
|
| 56 |
+
|
| 57 |
+
print("\n" + "=" * 68)
|
| 58 |
+
print("2. Resolving screenshots from images.parquet")
|
| 59 |
+
print("=" * 68)
|
| 60 |
+
wanted: set[str] = set()
|
| 61 |
+
for r in rows:
|
| 62 |
+
wanted |= set(r["image_ids"])
|
| 63 |
+
images_path = get_parquet(args.config, "images.parquet", args.local_dir, token)
|
| 64 |
+
out_dir = Path(args.image_dir) / args.config
|
| 65 |
+
out_dir.mkdir(parents=True, exist_ok=True)
|
| 66 |
+
|
| 67 |
+
resolved: dict[str, Path] = {}
|
| 68 |
+
for batch in pq.ParquetFile(images_path).iter_batches(batch_size=32):
|
| 69 |
+
for row in batch.to_pylist():
|
| 70 |
+
if row["image_id"] not in wanted or row["image_id"] in resolved:
|
| 71 |
+
continue
|
| 72 |
+
suffix = ".png" if row["mime_type"] == "image/png" else ".jpg"
|
| 73 |
+
path = out_dir / f"{row['image_id']}{suffix}"
|
| 74 |
+
if not path.is_file():
|
| 75 |
+
path.write_bytes(row["encoded_bytes"])
|
| 76 |
+
resolved[row["image_id"]] = path
|
| 77 |
+
if len(resolved) == len(wanted):
|
| 78 |
+
break
|
| 79 |
+
print(f" wrote {len(resolved)}/{len(wanted)} screenshots -> {out_dir}")
|
| 80 |
+
|
| 81 |
+
print("\n" + "=" * 68)
|
| 82 |
+
print("3. Rebuilding the reward-model prompt")
|
| 83 |
+
print("=" * 68)
|
| 84 |
+
r = rows[0]
|
| 85 |
+
prefix = json.loads(r["prefix_messages_json"])
|
| 86 |
+
for candidate, label in ((r["chosen_response"], "chosen"), (r["rejected_response"], "rejected")):
|
| 87 |
+
messages = prefix + [{"role": "assistant", "content": candidate}]
|
| 88 |
+
print(f" {label:8} -> {len(messages)} turns, {len(r['image_ids'])} image(s)")
|
| 89 |
+
print(f" placeholders={r['user_content'].count('<image>')} "
|
| 90 |
+
f"n_images={r['n_images']} image_ids={len(r['image_ids'])}")
|
| 91 |
+
print(f" image order: {[str(resolved[i].name) for i in r['image_ids']]}")
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
if __name__ == "__main__":
|
| 95 |
+
main()
|
ui_genie_pairwise/images.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e009181a0aa7c42c45ecf9f0b5f583f1d1d42b87b8f4ecdf05001bf97b3353ad
|
| 3 |
+
size 2263604295
|
ui_genie_pairwise/samples.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c856b544fedac681f0f7ce77c36d0ae74f83aa70d8e80faf38b566105a5c107
|
| 3 |
+
size 1171634
|