Cost-Aware Adaptive Threshold Calibration and Unsupervised Benign-Region Masking
Replace static perception thresholds and hardcoded screen masks with an adaptive controller that tunes trigger sensitivity to each application and agent speed.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In Section 3.3, Appendix A (Controller and Table 7), and Table 8, NightWatch fixes all intervention thresholds (interrupt 0.5, void 0.8, wake 0.99, loading 0.5, benign 0.6), caps interrupts/voids at 2 per step, and hardcodes an OSWorld-specific pixel-gate exception ignoring the top-bar clock.
“They are fixed once and shared across applications, benchmarks, and agents.”
Limitation
Globally fixed thresholds and OS-specific pixel-gate heuristics cannot adapt to varying VLM reasoning latencies, application update patterns, or non-OSWorld UI layouts, contributing to success drops on specific desktop domains such as LibreOffice Impress (54.2% vs. 64.6% PUSV) and Operating System tasks (62.5% vs. 70.8% Vanilla).
Proposed Solution
Replace static global thresholds with an online contextual-bandit or Bayesian threshold controller that adjusts per-stage thresholds conditioned on observed VLM inference latency, recent premature/stale rates, and application identity to directly minimize the Equation (1) idle-plus-staleness cost. In parallel, replace the hardcoded OSWorld clock mask with a lightweight exponential-moving-average pixel-entropy map learned online per episode to automatically suppress recurring benign regions (clocks, tickers, blinking carets).
Why This Matters
Adaptive thresholding and learned spatial masking should reduce needless cancellations on slower or desktop-heavy tasks and eliminate brittle OS-specific engineering when porting the harness to new operating systems or browsers.
How to Get Started
How to test it: Test whether per-task adaptive thresholding and online benign-region masking improve avg@3 success on LibreOffice Impress and OSWorld Operating System subsets while maintaining overall non-reasoning time savings against the fixed-threshold NightWatch baseline; stop if online adaptation increases wasted-time share or destabilizes wake timing.
- Instrument the NightWatch controller in the released codebase to log per-application false-interrupt, premature-wake, and wasted-time statistics across OSWorld-Verified domains.
- Implement an online spatial change-frequency accumulator to replace the hardcoded OSWorld top-bar clock mask and verify equivalent pixel-gate trigger behavior on OSWorld and DynaCU-Bench.
- Formulate a latency-aware contextual bandit update rule over the discrete threshold vector using episode-level wasted time and stale-action proxies as rewards.
- Benchmark the adaptive controller against fixed Table 7 thresholds across both MiMo-V2.6-Flash and Qwen3.8-27B backbones on OSWorld-Verified.
Code linked to this paper on Hugging Face: github.com/SuJQ0722/NightWatch
Suggested by AI. Adapt it to your setup.
Has This Been Done?
The listed works explore GUI agents, anomaly detection, and calibration in different domains (such as medical imaging and IoT), but none propose cost-aware adaptive threshold calibration combined with unsupervised online pixel-entropy benign-region masking for GUI agents.
We searched OpenAlex and arXiv for “adaptive event-triggered control thresholds GUI agent perception” and “Cost-Aware Adaptive Threshold Calibration and Unsupervised Benign-Region Masking” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Don't Sleep, Keep Watch: Proactive Perception for Computer-Use AgentsJiaqi Su, Jie-Jing Shao, Yichen Liu +2 more · 2026
This paper introduces NightWatch, a plug-and-play perception harness that endows vision-language computer-use agents with continuous, proactive situational awareness without altering the underlying agent model, prompt, or action space. By pairing an unmodified VLM agent with a lightweight 0.8B System-1 watcher, the framework monitors a 10 Hz screen stream to interrupt obsolete reasoning, void stale pending actions, and wake the agent as soon as the interface settles, cutting non-reasoning time by 33% on OSWorld-Verified and boosting success from 39.5% to 44.2% on dynamic web tasks in DynaCU-Bench.
Related Ideas
- Latency-Masking Exploration Priors for Single-Attempt Survival in Unseen Hostile Real-Time EnvironmentsAutoPILOT: A Visual Agent Harness for Real-Time Gameplay🟡Fairly easy
- Uncertainty-Aware Learned Anomaly Detection and Dynamic Verification SchedulingInnata-0: A Native Embodied World System with Model-Agent Co-Design🟠Medium
- Purely Visual Reset and Modal-Screen Detection to Eliminate Privileged Game-State HooksAutoPILOT: A Visual Agent Harness for Real-Time Gameplay🟡Fairly easy
- Dual-Layer Asynchronous Controller Hot-Swapping for Non-Blocking Model ReasoningAutoPILOT: A Visual Agent Harness for Real-Time Gameplay🟠Medium
- Continuous Soft-Masking for Cautious Weight DecayCautious Weight Decay🟡Fairly easy