Abstract
The rapid advancement of generative AI technologies is driving the integration of diverse AI-powered services into smartphones, transforming how users interact with their devices. To simplify access to predefined AI services, this paper introduces MIRA, a pioneering framework for task instruction recommendation that enables intuitive one-touch AI tasking on smartphones. With MIRA, users can long-press on images or text objects to receive contextually relevant instruction recommendations for executing AI tasks. Our work introduces three key innovations: 1) A multimodal large language model (MLLM)-based recommendation pipeline with structured reasoning to extract key entities, infer user intent, and generate precise instructions; 2) A template-augmented reasoning mechanism that integrates high-level reasoning templates, enhancing task inference accuracy; 3) A prefix-tree-based constrained decoding strategy that restricts outputs to predefined instruction candidates, ensuring coherent and intent-aligned suggestions. Through evaluation using real-world annotated datasets and a user study, MIRA has demonstrated substantial improvements in the accuracy of instruction recommendation.
Introduction
Modern smartphones are equipped with a vast array of AI capabilities, yet accessing these services often involves significant friction. For instance, converting information from a train ticket image into a calendar event typically requires multiple manual steps: taking a screenshot, switching apps, and copying details. While voice assistants exist, they often struggle with the multimodal context of on-screen UI elements.
MIRA (Multimodal Instruction Recommendation Assistant) addresses this gap by enabling "one-touch" AI services. By long-pressing an on-screen object, users trigger a system that analyzes the context and recommends the most relevant AI-driven actions.
Methodology
The MIRA framework relies on three technical pillars to ensure that recommendations are both accurate and actionable within a mobile operating system.
1. Structured Chain-of-Thought (CoT) Reasoning
Rather than directly predicting a service, MIRA follows a structured three-step trajectory. First, it extracts key entities (e.g., dates, locations, prices). Second, it infers the user's likely intent based on these entities. Finally, it generates precise instructions for the underlying AI services.
2. Template-Augmented Reasoning
To mitigate hallucinations and improve extraction accuracy, MIRA utilizes a Reasoning Template Library. When a trigger is activated, the system generates an initial thought, retrieves a high-level "expert" template (e.g., "Hotel Reservation Information Extraction") based on initial reasoning, and then updates its reasoning based on that template. This guides the model to focus on specific, relevant details it might otherwise overlook.
3. Prefix-Tree-Based Constrained Decoding
To ensure that the model only recommends valid, supported services, MIRA employs a prefix-tree (trie) during the decoding phase. This restricts the model's output space to a predefined set of instruction candidates, preventing the suggestion of non-existent applications or nonsensical commands.
Evaluation and Results
The researchers evaluated MIRA using a real-world annotated dataset comprising 4,952 training pairs and 956 testing pairs, collected from 1,000 smartphone users. A library of 80 structured templates was distilled from high-performing models like Qwen2.5VL-Max.
Key findings include:
- Superior Accuracy: MIRA (built on a 7B parameter model) achieved an F1-score of 0.9121, outperforming significantly larger models like GPT-4V (0.879) and Qwen2.5VL-Max (0.861).
- Efficiency: MIRA is highly optimized for mobile, using an average of only 116 tokens per request compared to GPT-4V's 817 tokens. This reduction translates directly to lower latency and improved battery life.
- User Satisfaction: In a study with 100 participants, MIRA's suggestions achieved a validity ratio of 93-95%, indicating high alignment with user expectations.
Discussion and Future Work
While MIRA represents a significant step forward, several challenges remain. Currently, the system primarily processes text and images; future iterations should incorporate audio, video, and broader sensor data for deeper context awareness. Additionally, the authors emphasize the importance of moving toward fully on-device inference to address privacy concerns associated with processing sensitive on-screen content.
Conclusion
MIRA demonstrates that specialized, structured reasoning and architectural guardrails can allow smaller models to outperform general-purpose giants in mobile task recommendation. By streamlining the path from intent to execution, MIRA offers a more seamless and efficient way for users to engage with AI services on their smartphones.
Summary updated