Organizations: China University of Geosciences (Beijing) · Shenzhen University · Hong Kong University of Science and Technology · City University of Hong Kong
Battery life remains a critical challenge for mobile devices, yet existing power management mechanisms rely on static rules or coarse-grained heuristics that ignore user activities and personal preferences. We present PowerLens, a system that tames the reasoning power of Large Language Models (LLMs) for safe and personalized mobile power management on Android devices. The key idea is that LLMs' commonsense reasoning can bridge the semantic gap between user activities and system parameters, enabling zero-shot, context-aware policy generation that adapts to individual preferences through implicit feedback. PowerLens employs a multi-agent architecture that recognizes user context from UI semantics and generates holistic power policies across 18 device parameters. A PDL-based constraint framework verifies every action before execution, while a two-tier memory system learns individualized preferences from implicit user overrides through confidence-based distillation, requiring no explicit configuration and converging within 3--5 days. Extensive experiments on a rooted Android device show that PowerLens achieves 81.7% action accuracy and 38.8% energy saving over stock Android, outperforming rule-based and LLM-based baselines, with high user satisfaction, fast preference convergence, and strong safety guarantees, with the system itself consuming only 0.5% of daily battery capacity.
Figures & tables
Figure 1. Traditional power saver vs. PowerLens. Global rules degrade navigation by throttling GPS and dimming brightness; PowerLens preserves critical resources and learned preferences.
Figure 2. Preliminary studies on challenges of mobile power management.
Category
Power ¶
Parameter
HW Component
Range
Default †
Control API
Granularity
Root
Latency
∣S∣
Impact ‡
Display
42%
Brightness
OLED panel
0–4096
Auto
Settings.System
Continuous
—
< 1 s
4,097
H
Refresh rate
Display controller
{30, 60, 90, 120} Hz
120 Hz
Settings.System
Discrete
—
< 1 s
4
H
Screen timeout
Display controller
15 s–30 min
30 s
Settings.System
Discrete
—
Deferred
7
M
Dark mode
OLED panel
On/Off
Off
UiModeManager
Binary
—
< 1 s
2
L
Auto-rotation
Gyroscope/Accel.
On/Off
On
Settings.System
Binary
—
< 1 s
2
L
Connectivity
25%
Wi-Fi
Wi-Fi radio (WCN7851)
On/Off
On
Settings.Global
Binary
—
1–3 s
2
M
Table 1. Parameters controlled by PowerLens. 18 parameters across 5 categories, spanning a joint state space of >1017 configurations.
Figure 3. Hardware activated during navigation. A single app engages components across the mainboard and daughter board, spanning all five parameter categories in Table 1 .
Figure 4. PowerLens system overview. Each cycle: ➊ Accessibility captures UI tree, ➋ Activity Agent recognizes context, ➌ Policy Agent generates strategy, ➍➎ Execution Agent verifies and applies via shell commands, ➏ Feedback Agent detects user overrides. The Memory System stores preferences for personalization.
Figure 5. Decision cycle example. The Policy Agent generates a structured JSON policy for an Instagram browsing session; the Execution Agent validates actions against PDL constraints and translates approved actions into root shell commands.
Figure 6. A Two-tier memory system. STM maintains session-scoped state; the Extractor distills observations into LPM with confidence-based rule promotion.
Figure 7. Personalization journey. Repeated user overrides accumulate confidence ( c=0.50→0.665→0.818 ) until the rule is promoted to LPM.
Figure 8. PowerLensBench overview. 7 app categories with representative screenshots.
Figure 9. Energy saving across app categories (relative to Stock Android, higher is better).
Method
Acc.
ES
Viol.
UES
Battery Saver
48.3
4.6
0.8
3.6
Rule-Based
63.5
19.9
1.2
3.4
Single-Agent LLM
52.1
48.4
12.5
2.5
PowerLens
81.7
38.8
0.6
4.3
Table 2. Comparison with baselines (all relative to Stock Android, ES = 0%). Acc.: Action Accuracy (%), ES: Energy Saving (%), Viol.: Violation Rate (%), UES: User Experience Score (1–5).
Figure 10. Preference learning and adaptation.
Figure 11. Memory effect.
Battery
Nav.
Video
Meet.
Social
Music
Feed
Read.
Avg.
High (80%)
23.6
26.4
18.7
38.2
21.5
42.3
48.1
31.3
Mid (45%)
27.4
30.8
22.3
45.7
25.1
49.6
56.8
36.8
Low (15%)
30.8
35.3
26.5
50.6
28.9
53.2
60.4
40.8
Table 3. Context sensitivity: energy saving (%) by battery level.