TLDR: A new training method called State-aware Reasoning (StaR) significantly improves how multimodal agents interact with GUI toggle controls. Existing agents often fail to correctly handle toggles, especially when the desired state matches the current state, leading to unnecessary actions or missed actions. StaR teaches agents to explicitly perceive the current toggle state, analyze the desired state from instructions, and then decide whether to act. This approach boosts toggle execution accuracy by over 30%, reduces erroneous toggling, and also enhances general task performance in both static and dynamic environments, making agents more reliable for real-world GUI interaction.
Multimodal agents, powered by advanced language models, are becoming increasingly adept at interacting with graphical user interfaces (GUIs), acting as helpful assistants for various digital tasks. However, a significant challenge remains: their inconsistent performance when dealing with “toggle” controls. These are the ubiquitous on/off switches found in mobile settings, smart homes, and automotive systems that allow users to enable or disable features.
Researchers have identified that existing agents often struggle with toggle instructions, especially when the desired state (e.g., “turn on Wi-Fi”) already matches the current state (Wi-Fi is already on). This can lead to two types of errors: “false negatives,” where the agent fails to toggle when it should, and “false positives,” where it unnecessarily toggles an already correctly set control. These erroneous actions can cause tasks to fail and even have critical consequences in applications requiring precise control.
Introducing State-aware Reasoning (StaR)
To overcome this limitation, a team of researchers from Shanghai Jiao Tong University and Beijing Institute of Technology has proposed a novel training method called State-aware Reasoning (StaR). StaR is designed to teach multimodal agents to think more like humans when encountering toggle controls. The method focuses on refining the agent’s reasoning process into three explicit steps:
- Perceiving: The agent learns to accurately identify the current state of a toggle (e.g., “on” or “off”) directly from a screenshot.
- Analyzing: It then analyzes the user’s instruction to understand the desired state for that toggle.
- Deciding: Finally, based on a comparison between the current and desired states, the agent decides whether a toggle action is actually necessary. If the states differ, it clicks; if they match, it completes the task without action.
This structured approach eliminates the need for external annotators or complex multi-agent collaborations, enhancing the agent’s inherent ability to handle toggle instructions accurately.
Building a New Benchmark and Demonstrating Effectiveness
To rigorously evaluate agent performance on toggle controls, the researchers first constructed a new “state control benchmark.” This benchmark includes binary toggle instructions derived from various public datasets, with precise annotations for toggle states and positions. Initial evaluations on this benchmark revealed that most existing agents, including powerful proprietary models like GPT-5 and GPT-4o, achieved less than 50% accuracy, confirming the severity of the problem. Open-source models performed better but still fell short of satisfactory levels.
When StaR was applied to three representative open-source multimodal agents (OS-Atlas-7B, UI-TARS-7B, and AgentCPM-GUI-8B), the results were remarkable. StaR improved toggle instruction execution accuracy by over 30% on some benchmarks. For instance, OS-Atlas-7B saw its overall action match rate (O-AMR) improve by 35.77%. The method significantly reduced false positives, meaning agents were much less likely to unnecessarily toggle controls that were already in the correct state. Importantly, StaR-enhanced agents with fewer parameters even outperformed larger, zero-shot baselines like Qwen-2-VL-72B, demonstrating its efficiency.
Also Read:
- Advancing GUI Automation with Semi-online Reinforcement Learning
- InfraMind: A New Framework for Automating Industrial Management with Intelligent GUI Agents
Beyond Toggles: Generalization and Real-World Impact
The benefits of StaR extend beyond just toggle controls. Evaluations on general agentic benchmarks, which involve complex, long-chain tasks, showed that StaR consistently preserved or even improved performance. This suggests that the state-aware reasoning chain helps agents make more precise decisions in broader contexts. Furthermore, tests in dynamic, real-world mobile environments using an Android emulator highlighted StaR’s practical applicability, with substantial increases in task success rates.
A compelling case study involved an agent instructed to “turn Wi-Fi on” when Wi-Fi was already enabled. Without StaR, the agent mistakenly perceived Wi-Fi as off, repeatedly toggling it and failing the task. With StaR, the agent correctly identified Wi-Fi as already on and completed the task without unnecessary action, showcasing its enhanced precision.
The development of StaR represents a significant step forward in making multimodal agents more reliable and effective at interacting with GUIs. By teaching agents to “see, think, and act” with a deeper understanding of toggle states, this research paves the way for more intelligent and user-friendly digital assistants. You can find the full research paper at arXiv:2509.13615.


