Evaluating and Engineering On-Device AI Assistants for Mobile Phones

    This article examines the shift in mobile AI assistants from answering questions to completing tasks, and what third-party evaluation means for developers. It covers a practical evaluation baseline, why the phone is the primary entry point for personal agents, a device-cloud reference architecture, stability patterns for long-running tasks, and security and compliance requirements. Readers will find YAML, JSON, and Python examples they can adapt into their own verifiable engineering workflow.

    1. The Problem: From “Answering” to “Completing”

    Industry discussion over the past two years has shifted from “can the model produce a good answer” to “can the agent finish the job reliably, over long horizons, and at low cost.” Mobile is where this is most visible: users are no longer satisfied with question answering. They issue a single sentence and expect the device to book a schedule, organize a photo library, move information across apps, or filter notifications by conditions.

    Against this backdrop, a device-side assistant from a phone vendor recently passed a third-party evaluation for mobile AI assistants, which makes it a phenomenon worth analyzing. The boundary needs to be stated first: the public information does not disclose the evaluation criteria, scores, the full list of those that passed, or any cross-comparison ranking, so it cannot be used to infer that the experience is “across-the-board best-in-class.” The genuinely useful signal is that mobile agents have entered a phase of third-party evaluation, engineering acceptance, and standardized description, and the rules of competition are changing.

    2. What Evaluation Actually Means: Turning Experience into Measurable Items

    The value of third-party evaluation is not the label. It is breaking vague experience into measurable dimensions. Common industry frameworks cover roughly four categories of metrics:

    • Task completion rate: the proportion of end-to-end goals achieved under a given instruction;
    • Step efficiency: interaction turns, number of calls, and time consumed to finish a task;
    • Security and compliance: permission boundaries, second confirmation for sensitive operations, data minimization;
    • Stability and recoverability: retry after failure, and the ability to resume after context loss.

    For developers, this means you need your own evaluation baseline rather than relying on a single certification result. A minimal, workable evaluation structure looks like this:

    1. eval_suite:
    2. task: "Move tomorrow morning's meeting to 3 PM and notify the attendees"
    3. metrics:
    4. success_rate: 0.0 # end-to-end success rate
    5. avg_steps: 0 # average number of steps
    6. p95_latency_ms: 0 # tail latency
    7. permission_prompts: 0 # number of permission confirmations triggered
    8. recovery_rate: 0.0 # share of failures recovered automatically
    9. cases:
    10. - id: calendar_01
    11. expect: "Event updated and notification sent"
    12. - id: calendar_02
    13. expect: "On conflict, propose an alternative slot instead of overwriting"

    3. Why the Phone Becomes the Main Entry Point for Personal Agents

    The phone is naturally close to high-frequency context: schedule, communications, location, payments, files, photos, and device control. There is already a view in the industry that “interface-less services” for personal agents will become increasingly important, meaning services no longer have to depend on a fully visible app interface and can instead be invoked, composed, and executed directly by an agent.

    This has two engineering consequences. First, capabilities must be exposed as structured interfaces rather than relying only on simulated UI clicks. Second, the call chain must be observable; otherwise, once a long-horizon task breaks, there is no way to locate the cause. A sketch of a capability description can be written as:

    1. {
    2. "capability": "calendar.update",
    3. "input_schema": {"event_id": "string", "start": "iso8601", "end": "iso8601"},
    4. "requires_confirmation": true,
    5. "side_effects": ["notify.attendees"]
    6. }

    4. A Reference Architecture for Device-Cloud Collaboration

    The sensible shape of a mobile agent is a division of labor between device and cloud, not putting all inference locally or all of it in the cloud:

    1. The device handles low-latency intent recognition, local processing of privacy-sensitive data, and device control;
    2. The cloud handles complex planning, long-context reasoning, and multi-agent coordination;
    3. A middle layer handles permission arbitration, task orchestration, and audit trails.

    The cloud side can be carried by general-purpose managed capabilities: a container platform runs the orchestration services, a message queue decouples tasks and smooths out peaks, object storage holds reusable evaluation corpora, and logging plus monitoring and alerting provide full-chain tracing. If multiple models need to be integrated, routing and fallback should go through a unified gateway to avoid tight coupling to a single model.

    5. Stability Design for Long-Horizon Tasks

    Long-horizon tasks are the main difficulty for mobile agents. Four practices are recommended:

    • Externalize state: write task state to persistent storage so the task can resume after a process restart;
    • Idempotent design: every side-effect operation carries an idempotency key to prevent duplicate charges or duplicate sends;
    • Layered confirmation: read-only operations execute automatically, while write and payment operations require mandatory second confirmation;
    • Budget control: set upper limits on step count, number of calls, and elapsed time, and abort and report once a limit is exceeded.
    1. def run_task(task, budget):
    2. state = load_or_init(task.id)
    3. for step in plan(task, state):
    4. if budget.exceeded():
    5. return report_incomplete(task, reason="budget_exceeded")
    6. result = executor.invoke(step, idem_key=step.key)
    7. state = advance(state, result)
    8. save(state)
    9. return verify(task, state)

    6. The Security and Compliance Baseline

    The phone carries the most sensitive personal information, so data minimization and least privilege must be followed: request permissions temporarily per task and revoke them when done; desensitize sensitive fields on the device before they reach the cloud; keep auditable records of all cross-app actions, and present users with a clear execution trace and an undo entry point.

    7. Conclusion

    A device-side assistant passing a third-party evaluation is a signal that the industry is moving toward standardization, not proof that one party has won the experience battle. Developers should focus on four things: the evaluation baseline, the device-cloud division of labor, long-horizon stability, and security and compliance, and build their own verifiable, reusable engineering method. To further lower the barrier to integration and operations, it is worth looking at how Baidu AI Cloud approaches general-purpose capabilities such as container platforms, message queues, and logging with monitoring and alerting.