# On-Device LLM for Context-Aware Wi-Fi Roaming

arXiv: https://arxiv.org/abs/2505.04174 · HTML: https://mlsanity.com/paper/2505.04174/

## Key facts

- Cited by 3 papers in the map (data through 14 Oct 2026).
- Builds on 12 of its 15 references that are in the map.
- First posted on arXiv 7 May 2025.

## Builds on (most cited first, 12 of 12)

- [Proximal Policy Optimization Algorithms](https://mlsanity.com/paper/1707.06347/) (2017)
- [The Llama 3 Herd of Models](https://mlsanity.com/paper/2407.21783/) (2024)
- [Chain-of-Thought Prompting Elicits Reasoning in Large Language Models](https://mlsanity.com/paper/2201.11903/) (2022)
- [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://mlsanity.com/paper/2305.18290/) (2023)
- [Do As I Can, Not As I Say: Grounding Language in Robotic Affordances](https://mlsanity.com/paper/2204.01691/) (2022)
- [Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agents](https://mlsanity.com/paper/2201.07207/) (2022)
- [Phi-4 Technical Report](https://mlsanity.com/paper/2412.08905/) (2024)
- [On-Device Language Models: A Comprehensive Review](https://mlsanity.com/paper/2409.00088/) (2024)
- [NetLLM: Adapting Large Language Models for Networking](https://mlsanity.com/paper/2402.02338/) (2024)
- [Programmable and Customized Intelligence for Traffic Steering in 5G Networks Using Open RAN Architectures](https://mlsanity.com/paper/2209.14171/) (2022)
- [Handover Protocol Learning for LEO Satellite Networks: Access Delay and Collision Minimization](https://mlsanity.com/paper/2310.20215/) (2023)
- [Machine Learning & Wi-Fi: Unveiling the Path Towards AI/ML-Native IEEE 802.11 Networks](https://mlsanity.com/paper/2405.11504/) (2024)

## Built on by (most cited first, 3 of 3)

- [Efficient On-Device Agents via Adaptive Context Management](https://mlsanity.com/paper/2511.03728/) (2025)
- [PEARL: Peer-Enhanced Adaptive Radio via On-Device LLM](https://mlsanity.com/paper/2509.24085/) (2025)
- [PEAM: On-device Communication Agent for Personalized, Efficient and Autonomous Mobile Network Configuration](https://mlsanity.com/paper/2610.14855/) (2026)

## Abstract (arXiv)

Roaming in Wireless LAN (Wi-Fi) is a critical yet challenging task for maintaining seamless connectivity in dynamic mobile environments. Conventional threshold-based or heuristic schemes often fail, leading to either sticky or excessive handovers. We introduce the first cross-layer use of an on-device large language model (LLM): high-level reasoning in the application layer that issues real-time actions executed in the PHY/MAC stack. The LLM addresses two tasks: (i) context-aware AP selection, where structured prompts fuse environmental cues (e.g., location, time) to choose the best BSSID; and (ii) dynamic threshold adjustment, where the model adaptively decides when to roam. To satisfy the tight latency and resource budgets of edge hardware, we apply a suite of optimizations-chain-of-thought prompting, parameter-efficient fine-tuning, and quantization. Experiments on indoor and outdoor datasets show that our approach surpasses legacy heuristics and DRL baselines, achieving a strong balance between roaming stability and signal quality. These findings underscore the promise of application-layer LLM reasoning for lower-layer wireless control in future edge systems.
