FireAnt: Frugal Inference and Resource-Efficient Agent for On-device Phone Control

Qualcomm AI Research

*Core contributor†Project leads

TL;DRFireAnt is an API-first framework for agentic phone control: the agent plans and acts over structured APIs, trained in lightweight mocked environments and deployed on-device through a Portable Action Layer.

System

The FireAnt framework

FireAnt system overview: application world modeling, task and state generation, expert trajectories, training, and an agent harness with a Portable Action Layer for mocked and real on-device environments.
End-to-end system. Mock application servers support data generation and training. The Portable Action Layer connects the trained policy to either the mock environment or real on-device applications.

APIs are a more efficient interface than GUIs. FireAnt models each target app as a lightweight FastAPI server, so the agent plans and acts through structured API calls instead of screenshots. Compact text observations typically use less context than screen images, and the agent needs no vision-language backbone, which lowers compute per step.

The Portable Action Layer separates policy from implementation. The action contract is shared between mocked training environments and real on-device applications. Deployment changes the implementation behind that contract, allowing the same trained policy to run in either environment without retraining.

A pipeline adaptable to various benchmarks and environments. Our pipeline generates tasks, initial application states, programmatic success checks, and expert trajectories, including tasks that span multiple apps. It can be targeted at a specific benchmark, a set of apps, or both. A policy trained this way can be deployed on the target benchmark or environment without needing training data from it.

Agent runs fully on-device. The agent runs inside our Android application, with the model executing locally on the Snapdragon NPU through Qualcomm's GenieX SDK. An agent loop dispatches actions to native executors, which use either Android platform APIs or official Google web APIs.

Results

Effective phone control with fewer generated tokens

We first compare fine-tuned FireAnt models with popular GUI agents, then isolate the effect of the interface through paired evaluations. Generated tokens count all tokens emitted by the policy during an episode, including reasoning; means are computed over all episodes, including failures.

Small API agents compete with larger GUI agents

By acting through structured APIs, Qwen3 models fine-tuned with FireAnt achieve success rates comparable to larger GUI-based agents while generating fewer tokens. We compare against UI-Venus, GUI-Owl, MAI-UI, OpenMobile2, MAI-Gym, UI-TARS, and Qwen3.5 GUI baselines.

Success rate versus mean generated tokens on MobileWorld and MobileGym. Qwen3 plus FireAnt models occupy the low-token region; the 4B model achieves 47.5% and 43.0% success respectively.
Task completion versus generation cost. Each point represents a model; labels indicate parameter counts. FireAnt models use APIs, and the other agents use GUI actions. Moving toward the upper left means higher success with fewer mean generated tokens.
  • Strong results with a 4B model. On MobileWorld, FireAnt reaches 47.5% success with 748 mean generated tokens, compared with 42.1% and 2,393 tokens for OpenMobile2 27B: higher success with about 3.2× fewer tokens.
  • Competitive success on MobileGym. FireAnt 4B reaches 43.0% with 1,601 mean generated tokens. OpenMobile2 27B reaches 51.0% with 2,241 tokens: FireAnt uses about 29% fewer tokens with an 8.0 percentage-point gap in success. MAI-Gym 9B achieves the highest success among these GUI baselines (55.4%), using 11,598 tokens on average.
  • A range of compact policies. FireAnt supports Qwen3 students from 0.6B to 4B. The 4B results use on-policy distillation (OPD); the 1.7B and 0.6B results use supervised fine-tuning (SFT).

Comparing GUI and API interfaces to solve the same task

We evaluate each model on the same tasks through either GUI actions or API actions, spanning frontier models, large open-weight models, and smaller backbones across MobileWorld, MobileGym, and MobileGym++.

Paired GUI and API comparisons across three benchmarks. Most success-rate points lie above the equality diagonal, and most mean generated-token points lie below it. Blue horizontal lines show FireAnt reference results where available.
Isolating the interaction interface. GUI measurements are on the horizontal axis and API measurements on the vertical axis. The top row compares success rates; the bottom row compares mean generated tokens on logarithmic axes. Gray diagonals indicate equality. Blue horizontal lines show FireAnt reference results, which are not paired GUI/API measurements.
  • APIs generally improve task completion. Most success-rate points lie above the diagonal. For example, Qwen3.5 27B rises from 33.3% to 85.1% on MobileWorld; Claude Opus 5.5 rises from 44.2% to 80.9% on MobileGym.
  • APIs generally reduce generated tokens. Most token points lie below the diagonal. On MobileGym, GPT 5.5 drops from 8,654 to 816 mean generated tokens while success increases from 51.0% to 80.9%.
  • The benefit depends on the model. Some 2B models lose success or use more tokens through APIs. GPT 6.1-sol has slightly lower success through APIs on MobileGym (80.9% GUI vs. 79.3% API), while mean generated tokens fall from 1,420 to 513. Generated-token savings do not imply lower peak context length.
Deployment

FireAnt on Qualcomm Snapdragon

FireAnt runs locally on a Snapdragon 8 Elite Gen 5 device, bringing API-based phone control to a standalone Android application.

Animated demonstration of FireAnt controlling phone applications on a Qualcomm Snapdragon device.
FireAnt on device. Our agent executes phone actions locally. In this case a calendar event is generated based on a lookup through email. At the end both the mail and calendar applications are opened manually to show the new calendar appointment is created, and matches the content of the email. Select the animation to view it at full size.
  • The application. The agent runs fully on device in the Android application, with native executors handling actions. Qualcomm’s GenieX SDK is used to run the model on the NPU.
  • The action registry. A single registry of agent actions is used for both training and execution on device, with parity tests checking the on-device harness against the training harness, keeping behavioral differences confined to tool implementations behind the Portable Action Layer.
  • The model. The model is based on Qwen3-4B-instruct-2507 with a fine-tuned LoRA adapter and quantized to 8-bit weights with 16-bit activations using Qualcomm’s AI Model Efficiency Toolkit (AIMET). The model is executing with an 8,192-token context and uses about 4 GB of NPU context binaries plus a 0.37 GB embedding table.