Instructions to use sef1/android-ui-action-scorer-mmbert-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sef1/android-ui-action-scorer-mmbert-small with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sef1/android-ui-action-scorer-mmbert-small") model = AutoModelForSequenceClassification.from_pretrained("sef1/android-ui-action-scorer-mmbert-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Experimental Android UI action cross-scorer
This is a fine-tuned mmBERT-small sequence-classification checkpoint with one scalar output per candidate action. It is an exploratory, text-only action ranker, not a visual agent or a validated autonomous Android controller.
Model
- Base model: jhu-clsp/mmBERT-small, ModernBERT architecture, approximately 140 M total parameters according to its model card.
- Saved architecture: ModernBertForSequenceClassification,22 layers, hidden 384,6 attention heads, one output label, mean pooling.
- Checkpoint: final model after the second training epoch. It was not selected by a best-checkpoint procedure.
- Saved weight dtype: bfloat 16. CPU deployment precision and quantization have not been benchmarked.
- The trained scoring head is included in model.safetensors. Load the fine-tuned repository, not only the base model.
Inputs and intended use
The training input for a candidate is a tokenized text pair:
- Overall task goal, human-provided low-level step instruction, and a screen-text summary.
- Candidate action text.
The screen summary joins selected candidate texts and is capped at 800 characters. Each encoded pair is truncated/padded to 256 tokens. Up to 32 candidate texts are processed together for one decision.
Screen and candidate text was extracted from Android accessibility-tree text, content descriptions, hint and tooltip fields, and resource-ID tails. No screenshot pixels or OCR outputs were fed to this model. Screenshot dimensions and node bounds were used only to map recorded coordinates to training labels.
The model outputs one score for each input pair. To reproduce ranking, compare the scores within a candidate set; the original evaluation used softmax over that set for confidence. A single score is not a calibrated probability of correct action. Candidate generation is not supplied or solved by the model weights.
Intended use is research on action grounding and candidate ranking with explicit controls. This checkpoint is not ready for safety-sensitive actions, irreversible operations, or unattended device control.
Training data and method
Data source: Google Research AndroidControl, https://github.com/google-research/google-research/tree/master/android_control .
The preparation pipeline processed selected official training and IDD-test episodes from 20 shards:78,611 steps processed,60,402 labeled examples retained,12,777 unmatched steps and 5,432 skipped actions excluded. The final training run used 54,557 screens and evaluated a 2,000-example slice from 2,973 labeled held-out IDD steps. The official IDD test subsplit was used during development and is not a pristine final holdout.
Fine-tuning used listwise candidate cross-entropy, AdamW, two epochs, and a batch of 4 screens per training step. Reported results are from one run. Only English AndroidControl examples were evaluated; base-model multilingual coverage is not established for this fine-tune.
Exploratory evaluation
These numbers describe the original assisted evaluation and must not be treated as clean task-only action-selection performance.
| Retained coverage | Retained examples | Model accuracy |
|---|---|---|
| 100% | 2,000 | 81.05% |
| 90% | 1,800 | 88.17% |
| 80% | 1,600 | 94.06% |
| 70% | 1,400 | 97.50% |
Coverage means retaining the most confident fraction of examples according to the model's own maximum-softmax confidence. It is not an independently validated operational threshold.
Benchmark limitations
- Human low-level step instructions were included. This does not establish performance from a high-level goal alone.
- For node actions, the correct candidate was guaranteed to remain when the list was truncated. Candidate recall was therefore not tested.
- For synthetic-action examples, the construction appended only the ground-truth synthetic action instead of the full valid synthetic-action set. This is a label-dependent shortcut.
- The rules-only baseline and learned model used different candidate constructions and, at partial coverage, different confidence-selected subsets. The numerical gap is not a controlled model-improvement claim.
- Constant gold-position ordering and a training-glob issue were fixed before the reported final run, but the shuffled-label control remains unrun. Those fixes do not resolve the remaining candidate-construction issue.
- The IDD evaluation was repeatedly inspected during development. No fresh final holdout, repeated-seed uncertainty estimate or AitW transfer score is reported.
- There is no phone CPU/NPU measurement, quantized accuracy/size measurement, live Android task-completion result, or safety validation.
The next validation milestone is label-independent candidate generation with matched action sets, task-only and step-conditioned evaluations reported separately, and a fresh held-out test. Shuffled-label testing is a separate diagnostic, not a substitute for repairing the benchmark.
Files and integrity
Expected inference files: model.safetensors, config.json, tokenizer.json, tokenizer_config.json. A safe loading example and dependency pins should be tested before the release is marked usable.
model.safetensors SHA-256: b974466ba35d3c3c0a72824659f9d7b008c62df798ff6107b35f512684082a6d
No training examples, screenshots, logs, private paths, account details, optimizer state or intermediate checkpoints are part of the proposed release.
License and provenance
The base model declares MIT, and its upstream notice is included. AndroidControl's repository states Apache 2.0, while its supplementary datasheet also mentions non-commercial use only. The implications for fine-tuned weights remain unresolved; this release does not claim unrestricted use or specify a separate weight license beyond applicable upstream and platform terms.
Base model: https://huggingface.co/jhu-clsp/mmBERT-small . Base-model license declaration: https://huggingface.co/jhu-clsp/mmBERT-small/blob/main/README.md . Upstream code/license reference: https://github.com/jhu-clsp/mmBERT/blob/main/LICENSE . Training-data source: https://github.com/google-research/google-research/tree/master/android_control . AndroidControl supplementary datasheet, ยง1.1.6: https://proceedings.neurips.cc/paper_files/paper/2024/file/a79f3ef3b445fd4659f44648f7ea8ffd-Supplemental-Datasets_and_Benchmarks_Track.pdf .
Privacy and risks
The inspected preparation and training artifacts show that fine-tuning used the public AndroidControl source; the base model has its own upstream pretraining provenance. No dedicated privacy or memorization audit has been performed. Public availability of source data does not guarantee that a model cannot reproduce sensitive details. Evaluate the risks before handling private UI content or deploying the model to make actions.
- Downloads last month
- 27
Model tree for sef1/android-ui-action-scorer-mmbert-small
Base model
jhu-clsp/mmBERT-small