Paper deep dive
PEAM: On-device Communication Agent for Personalized, Efficient and Autonomous Mobile Network Configuration
Haowen Wan, Shangzhuo Xie, Syue-Ju Syue, Xianyue Wu, Runhua Li, Qianqian Yang
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:The growing deployment of compact large language models on smartphones is enabling autonomous on-device decision-making, such as emerging mobile GUI agents. However, many mobile decisions, such as network configuration when users switch apps or connectivity conditions change, must satisfy stringent latency constraints to preserve user experience. In this paper, we propose PEAM, an on-device LLM-based communication agent that autonomously generates personalized network-configuration rules executable within milliseconds. Specifically, PEAM first fine-tune the on-device LLM with a dataset constructed from manually annotated real-user data to integrate the communication knowledge into the local model. PEAM then operates in two phases. In the rule-generation phase, which is performed when the device is idle, such as overnight, PEAM analyzes historical network-configuration records in batches and reflects across batches to consolidate consistent evidence, reduce local bias, and derive robust configuration rules. To enable more accurate and stable rule generation over time, PEAM further constructs a user profile from high-confidence rules to capture the user's network preferences and incorporates this profile into each rule-generation cycle. In the rule-execution phase, PEAM is invoked when the communication context changes, such as when users switch apps or connectivity conditions change, and searches the rule library to identify and execute the appropriate rule. Experiments demonstrate that PEAM, based on a fine-tuned 4B model, achieves 99.13% correct network configuration decisions, while 92.50% of the rules generated by PEAM are valid, outperforming the traditional expert-rule based method by 4.41% and 84.50%, respectively.
Tags
Links
- Source: https://arxiv.org/abs/2610.14855v1
- Canonical: https://arxiv.org/abs/2610.14855v1
Trouble viewing inline? Open PDF directly ā
Full Text
66,642 characters extracted from source content.
Expand or collapse full text
PEAM: On-device Communication Agent for Personalized, Efficient and Autonomous Mobile Network Configuration Haowen Wan 1,2 , Shangzhuo Xie 2 , Syue-Ju Syue 3 , Xianyue Wu 3 , Runhua Li 3 , Qianqian Yang 2 1 Polytechnic Institute, Zhejiang University 2 College of Information Science and Electronic Engineering, Zhejiang University 3 OPPO Abstract The growing deployment of compact large language models on smartphones is enabling autonomous on-device decision- making, such as emerging mobile GUI agents. However, many mobile decisions, such as network configuration when users switch apps or connectivity conditions change, must satisfy stringent latency constraints to preserve user experience. In this paper, we propose PEAM, an on-device LLM-based com- munication agent that autonomously generates personalized network-configuration rules executable within milliseconds. Specifically, PEAM first fine-tune the on-device LLM with a dataset constructed from manually annotated real-user data to integrate the communication knowledge into the local model. PEAM then operates in two phases. In the rule-generation phase, which is performed when the device is idle, such as overnight, PEAM analyzes historical network-configuration records in batches and reflects across batches to consolidate consistent evidence, reduce local bias, and derive robust con- figuration rules. To enable more accurate and stable rule gener- ation over time, PEAM further constructs a user profile from high-confidence rules to capture the userās network prefer- ences and incorporates this profile into each rule-generation cycle. In the rule-execution phase, PEAM is invoked when the communication context changes, such as when users switch apps or connectivity conditions change, and searches the rule library to identify and execute the appropriate rule. Exper- iments demonstrate that PEAM, based on a fine-tuned 4B model, achieves 99.13% correct network configuration de- cisions, while 92.50% of the rules generated by PEAM are valid, outperforming the traditional expert-rule based method by 4.41% and 84.50%, respectively. Introduction Recent advances in large language models (LLMs) have significantly improved their reasoning, planning, and au- tonomous decision-making capabilities. Meanwhile, the growing deployment of compact models on mobile and edge devices has made LLM-based intelligence increasingly ac- cessible in resource-constrained environments (Jiang et al. 2020; Chen et al. 2025; Zhang et al. 2024), as demonstrated by emerging mobile GUI agents(Wen et al. 2025; Zhang et al. 2025b; Yang et al. 2025). These trends open up new Qianqian Yang is responsible for correspondence regarding this paper. Email: qianqianyang20@zju.edu.cn. Figure 1: Modeling personalized mobile network configu- ration from historical decision records. PEAM infers why a user prefers a particular configuration and determines what configuration action should be executed. opportunities for using on-device LLMs to support com- plex decision-making tasks in mobile systems. One repre- sentative task is mobile network configuration, which dy- namically selects and adjusts communication resources and settings, such as access networks, WiFi access points, and SIM cards, according to application requirements, network conditions, device states, and user contexts. Unlike many of- fline decision-making tasks, mobile network configuration directly affects user experience and often lies on a latency- critical execution path. A practical solution should therefore be personalized, because different users may prefer differ- ent configurations under similar communication conditions; efficient, because configuration decisions must often be com- pleted within stringent latency constraints; and autonomous, because the device should learn and apply user preferences without repeated manual intervention. Existing network-configuration methods mainly fall into three categories: expert-rule (ER)-based, supervised- learning (SL)-based, and reinforcement-learning (RL)-based methods. ER-based methods remain widely used in practi- cal systems. They encode communication knowledge into hand-crafted constraints over metrics such as signal strength, uplink/downlink latency, and quality of service (QoS), and then map such conditions to switching actions(Sunita, Soni, and Baghla 2015; Miyim, Umar, and Kiyawa 2021; Wu et al. 1 arXiv:2610.14855v1 [cs.AI] 10 Oct 2026 2022). Although ER-based methods are efficient at runtime, their strategies are primarily determined by expert-designed heuristics, making them difficult to personalize according to individual user behavior. To improve adaptability, recent studies have explored SL-based and RL-based methods. SL- based methods learn correlations between communication observations and user actions from labeled data(Masi and Wac 2020; Paropkari, Thantharate, and Beard 2022; Peng et al. 2023), whereas RL-based methods formulate network switching as a sequential decision process and optimize poli- cies through reward-driven interaction(Tan et al. 2010; Wang et al. 2024; Xie, Zhu, and Li 2023; Lu et al. 2025; Wu et al. 2024; He et al. 2023). However, in these methods, user pref- erences are still implicitly encoded in hand-crafted rules, training labels, reward functions, or model parameters. As a result, they are difficult to interpret, update, and continually adapt as user behavior evolves. More recently, researchers have begun to apply LLMs to network-configuration tasks. Existing studies have ex- plored LLM-based solutions for WiFi roaming(Lee, Lu, and Doppler 2025; Nagai et al. 2026) and cellular handover(Li et al. 2026; Jeong et al. 2026), demonstrating the potential of LLMs to interpret heterogeneous communication observa- tions and generate corresponding decisions. However, these approaches largely employ LLMs as reactive decision en- gines that directly map current observations to configuration actions. They do not systematically distill long-term user be- havior into persistent, interpretable configuration rules, and they still rely on LLM inference during the decision-making path. Consequently, existing LLM-based methods struggle to simultaneously achieve personalization, efficiency, and au- tonomy for on-device mobile network configuration. To address these limitations, we propose PEAM, an on- device LLM-based communication agent for personalized, efficient, and autonomous mobile network configuration. The key idea of PEAM is to decouple complex LLM reasoning from latency-critical execution. Instead of invoking the LLM for every online configuration decision, PEAM performs LLM-based reasoning offline when the device is idle, dis- tills historical user behavior into persistent conditionāaction rules, and executes these rules online through lightweight retrieval. As illustrated in Figure 1, PEAM models personal- ized network configuration as two coupled problems: under- standing why a user prefers a particular configuration from historical records and determining what configuration action should be executed under the current communication context. This design introduces two key challenges on resource- constrained devices. First, how can a compact on-device LLM reliably infer user intents and generate con- figuration rules from long and heterogeneous histori- cal records? General-purpose LLMs lack communication- specific knowledge. Moreover, on-device compact models usually have limited context capacity. PEAM addresses this challenge by constructing a task-specific dataset from manu- ally annotated real-user network-switching records and per- forming supervised fine-tuning to integrate communication knowledge into the local model. PEAM then partitions long histories into coherent batches, analyzes each batch indepen- dently, and performs cross-batch reflection over the inter- mediate outputs. This divide-and-consolidate process keeps each inference within the modelās context window while in- tegrating distributed evidence, reducing locally biased con- clusions, and producing more reliable configuration rules. Second, how can we continually capture evolving user preferences and improve the accuracy and stability of rule generation over time? Static rules cannot adequately represent preferences that change with user behavior. PEAM therefore updates rule confidence according to whether the user accepts or rejects the configuration proposed by the retrieved rule, and discards rules whose confidence falls be- low a predefined threshold. Beyond maintaining individual rules, PEAM constructs a semantic user profile from high- confidence rules. This profile summarizes both scenario- specific preferences, such as preferred configurations under particular applications, times, locations, and network condi- tions, and broader behavioral tendencies, such as sensitivity to data usage and preference for connection quality. Rather than directly inheriting the previous profile, PEAM periodi- cally regenerates the profile from the latest reliable rules and incorporates it into the next rule-generation cycle, providing an up-to-date preference context for more accurate and stable personalization. The main contributions of this paper are summarized as follows: ⢠We propose PEAM, an on-device communication agent that distills offline LLM reasoning into persis- tent conditionāaction rules and executes them through lightweight online retrieval. This design decouples com- plex deliberation from latency-critical execution, pro- viding a practical architecture for LLM-based decision- making on resource-constrained devices. ⢠We design a divide-and-consolidate reasoning mecha- nism that decomposes long, heterogeneous interaction histories into coherent batches and consolidates dis- tributed evidence across batches, enabling compact on- device LLMs to generate personalized rules beyond a single context window. ⢠We develop a rule-based hybrid memory that combines executable rule memory with semantic preference mem- ory. By reconstructing user profiles from high-confidence rules and feeding them into subsequent reasoning cycles, PEAM supports interpretable and behavior-based person- alization over time. ⢠We construct benchmarks based on real-user and simulated-user records for comprehensive evaluation. Ex- tensive results, together with a smartphone deployment of a quantized 4B model, demonstrate PEAMās effectiveness and practical on-device feasibility. Related Work On-device LLM-based Agent On-device LLM agents have recently attracted increasing attention for enabling au- tonomous perception, reasoning, and interaction directly on mobile devices. Advances in mobile inference and collabora- tive model customization provide important technical foun- dations for such agents. For example, MNN (Jiang et al. 2 1 2 ļ¼ ............ ļ¼ ļ¼ ļ¼ When watching live streams during the day, the user uses SIM 2 to ensure smooth playback ... Condition : Live Stream & Daytime Action : Switch to SIM card2 When watching live streams at night, the user uses SIM 2 to reduce latency ... Condition : Live Stream & Night Action : Switch to SIM card2 When watching live streams, user typically uses SIM 2 to get a good experience ...... Condition : Live Stream Action : Switch to SIM card2 User Profile : Recurring usage rules strongly suggests that this user is likely not particularly data-cost-sensitive. Instead, his/her daily usage priorities tilt toward ensuring a smooth experience, ...... Record Acquisition Snapshots Record Analysis Reflection User Profiling Rule Base Condition : Live Stream Action : Switch to SIM 2 1 2 Rule Retrieval Device User Scenario Matched Strategy Action User-Level Local Memory Real-time Execution Periodic Updating Data Clustering User Profile (Last Period) Update Figure 2: Overview of PEAM. The framework contains four stages: (1) Record Acquisition collects user-initiated configuration records; (2) Periodic Update performs clustering, batch-wise record analysis, and cross-batch reflection to generate personalized rules; (3) User-Level Local Memory maintains the rule base and user profile; and (4) Real-Time Execution retrieves and executes matched rules without invoking the LLM. 2020) supports efficient neural network inference across het- erogeneous mobile hardware, while Confidant (Chen et al. 2025) enables collaborative customization of Transformer- based LLMs across multiple mobile devices.At the applica- tion level, mobile GUI automation has become a represen- tative direction for on-device agents. AutoDroid (Wen et al. 2025) formulates GUI automation as code generation, allow- ing an on-device SLM to generate executable programs for multi-step operations. AgentCPM-GUI (Zhang et al. 2025b) develops a mobile-use agent through GUI grounding, su- pervised fine-tuning, and reinforcement fine-tuning, while Ferret-UI Lite (Yang et al. 2025) explores a compact end- to-end agent for interacting with mobile, web, and desk- top interfaces. These studies demonstrate the growing ca- pability of compact language models to support complex autonomous interactions on resource-constrained devices. In contrast, PEAM focuses on latency-sensitive communication decision-making, where on-device LLM reasoning must be translated into executable network-configuration actions. LLM-based Network Configuration Recent advances in LLMs have also motivated their application to network con- figuration and mobility management. Lee et al.(Lee, Lu, and Doppler 2025) deployed an on-device LLM to interpret WiFi roaming observations and generate corresponding control actions. Nagai et al.(Nagai et al. 2026) further investigated prompt refinement for real-time WLAN handover and eval- uated their method using a quantized Llama-3.1-8B model on edge devices. Beyond WiFi roaming, Li et al.(Li et al. 2026) developed a GPT-2-based framework to model the temporal evolution of reference signal received power, sup- porting proactive cellular handover. Jeong et al.(Jeong et al. 2026) incorporated visual environmental context through a multi-modal LLM to estimate channel capacity along candi- date user paths and assist mobility decisions. These studies show that language models can interpret heterogeneous com- munication observations and support context-aware network decisions. Methodology As illustrated in Figure 2, PEAM consists of four mod- ules: Record Acquisition, Periodic Update, User-Level Local Memory, and Real-Time Execution. We consider personal- ized mobile network configuration over a sequence of update periods indexed by t. In each period, PEAM first collects user-initiated configuration records, then performs offline LLM-based rule generation when the device is idle, updates the local rule and profile memories, and finally executes matched rules online without invoking the LLM. Record Acquisition The Record Acquisition module runs continuously in the background and monitors user-initiated network- configuration operations. Once an operation is detected, PEAM records the communication context immediately be- fore the operation, the configuration action selected by the user, and the resulting context after the operation. The records collected during the t-th update period are represented as D t = d t i N t i=1 , d t i = x t,ā i ,a t i ,x t,+ i ,(1) where N t denotes the number of collected records; x t,ā i and x t,+ i denote the communication contexts immediately be- 3 fore and after the i-th operation, respectively; and a t i denotes the configuration action selected by the user. Each context contains information such as time, location, foreground ap- plication, device configuration, and network conditions. All records are stored locally until the next periodic update. The collected record set D t , together with the user profile p tā1 generated in the previous period, serves as the input to Peri- odic Updating, which is then used to infer the userās underly- ing decision intents and generate personalized configuration rules. Periodic Updating Data Clustering Records collected within an update pe- riod are heterogeneous and may exceed the context capac- ity of the on-device LLM. PEAM therefore groups D t into batches using feature-weighted HDBSCAN(Campello et al. 2015). For two records d a and d b , the dissimilarity of the k-th feature and their overall weighted Gower distance are defined as Ī“ k (d a ,d b ) =    |x k a ā x k b | R k , k āF num , I(x k a Ģø= x k b ), k āF cat , dist W (d a ,d b ) = P m k=1 w k Ī“ k (d a ,d b ) P m k=1 w k . (2) where R k is the range of the numerical feature k, F num and F cat denote the numerical and categorical feature sets, and w k controls the contribution of each feature. The fea- ture weights W and HDBSCAN hyperparameters Ī are jointly optimized once on labeled training data using the Tree-structured Parzen Estimator(Akiba et al. 2019). Let c ā denote the ground-truth intent labels and Ė c ā” Ė c(W, Ī) de- note the clustering assignments. The optimization objective is Q(W, Ī) = Ī» 1 ARI c ā , Ė c + Ī» 2 NMI c ā , Ė c , (W ā , Ī ā ) = arg max W,Ī Q(W, Ī). (3) where Ī» 1 + Ī» 2 = 1. The optimized parameters are fixed after training and reused during deployment. Applying them toD t yields a cluster setC t =C t,j M t j=1 , where each cluster forms an independent analysis batch and sparse observations are treated as noise. Record Analysis Although clustering reduces the input length and groups records with similar contexts, raw de- vice logs remain difficult for a compact LLM to interpret directly. PEAM therefore converts each cluster into a con- cise semantic representation before inference. Stable device attributes, such as SIM information and data-usage settings, are presented once as shared configuration context. Dynamic attributes, such as time, location, and network conditions, are summarized using the mean for numerical features and the mode for categorical features. Each contextual transition is then represented as K : V ā ā V + , where K denotes an attribute and V ā and V + denote its values before and after the configuration operation, respectively. As illustrated in Figure 3, the record-analysis prompt com- bines semantic records with the content constraint Ī c , the You are a mobile agent for network configuration. Your task is: Analyzing switching records, finding userās preference and generating rules for network configuration During analyzing records, you should follow these insturctions : When generating rules, you should follow these structual insturctions: [Structural Constraint] <Intents> <Rules> <FinalSummary> User profile generated from last period is as follows: [User Profile] Here are the device configuration and switching snapshots: [Semanticized Records] [Content Constraint] <Confidence Setting> <Condition Selection> <Rule Exclusivity> <Device Configuration> SIM1: <Operator> <PLMN> ... SIM2: <Operator> <PLMN> ... <Switching Snapshots> Time: year-month-date h-m-s <DayType> Location: <GeoFence><POI> Action: <Network1> ā <Network2> ... Figure 3: Prompt template for Record Analysis. The yellow boxes contain fixed task and output constraints, the blue box contains the user profile generated in the previous update pe- riod, and the green box contains the semantic representations of the current records. structural constraint Ī s , and the previous user profile p tā1 . The content constraint guides the model to identify shared behavioral patterns, infer the most plausible user intent and rationale, determine corresponding decision conditions, and verify the compatibility of the resulting configuration ac- tion. The structural constraint Ī s enforces a consistent output comprising the inferred intents, confidence scores, rationales, condition-action rules, and a summary. For the j-th cluster, the record-analysis process is formulated as Ė I t,j , Ė R t,j = LLM Ī c , Ī s , p tā1 , Sem(C t,j ) . (4) where Sem(Ā·) denotes semantic transformation, and Ė I t,j and 4 Ė R t,j denote the locally inferred intents and candidate con- figuration rules, respectively. Reflection Clustering cannot guarantee that all records as- sociated with the same underlying intent fall into a single batch. As a result, batch-level outputs may contain incom- plete intents, redundant rules, or conflicting actions caused by limited local evidence. PEAM address this problem through cross-batch reflection(Shinn et al. 2023; Madaan et al. 2023). Guided by a fixed reflection constraint Ī r , the LLM identi- fies intents and rules with shared semantics across batches, merges recurring strategies and complementary conditions to consolidate distributed evidence. It further examines can- didate rules with overlapping conditions but incompatible actions, suppressing conclusions supported only by isolated batches. Semantically duplicated rules are also eliminated to prevent fragmented observations from being misinterpreted as independent user preferences. The cross-batch reflection process is formulated as (I t ,R t ) = LLM Ī r , ( Ė I t,j , Ė R t,j ) M t j=1 ,(5) where I t and R t denote the consolidated user intents and configuration rules for the current update period. User-Level Local Memory PEAM maintains a user-level local memory consisting of a personalized rule base and a semantic user profile. Each rule r contains a conditionāaction pair and a confidence score q r . When a rule is retrieved for execution, PEAM asks the user whether to accept the proposed configuration. Acceptance increases the rule confidence, whereas rejection decreases it. Rules whose confidence falls below a predefined threshold are discarded. This feedback mechanism allows PEAM to retain reliable strategies while removing rules that no longer match the userās preferences. Detailed rule states and transi- tion mechanisms are provided in the Appendix. To summarize user preferences beyond individual condition-specific rules, PEAM periodically constructs a se- mantic user profile from high-confidence rules. The pro- file captures both scenario-specific preferences, such as pre- ferred configurations under particular applications, times, locations, and network conditions, and broader behavioral tendencies, such as sensitivity to data usage and preference for connection quality. Let B hc t denote the high-confidence rules maintained during the t-th update period. Guided by a fixed profile-generation constraint Ī p , PEAM generates the profile as p t = LLM Ī p ,B hc t ,(6) wherep t denotes the updated user profile. PEAM regenerates the profile from the latest reliable rules and incorporates it into the next offline rule-generation cycle, providing higher- level preference context for subsequent record analysis. Real-Time Execution When the communication context changes, PEAM cap- tures the current application, temporal, spatial, device- configuration, and network conditions, and retrieves applica- ble active rules from the local rule base. Since these rules are generated in advance during periodic updates, the real-time execution path does not invoke the LLM. Instead, PEAM directly compares the current context with the conditions specified by each rule and retrieves the rules whose condi- tions are satisfied. If multiple rules match, PEAM resolves the conflict using a two-level priority scheme. It first selects the rule with the largest number of matched condition pred- icates, since this rule provides the more specific description of the current context. If multiple rules contain the same number of matched conditions, the rule with the highest con- fidence is selected. Finally, PEAM applies the action associ- ated with the selected rule to the device. This retrieval-based design avoids costly real-time model inference and enables millisecond-level online decision-making. Evaluation Datasets We construct three mutually disjoint datasets for model train- ing and evaluation: a simulated-user dataset, a real-user dataset, and a task-level dataset. Simulated-User Dataset We first collected one month of network-configuration records from 51 real users, together with additional records obtained in controlled laboratory set- tings. These records are manually annotated to identify 20 high-frequency communication intents and their correspond- ing configuration templates. Based on these annotations, we generate 300 simulated users with diverse spatiotemporal contexts, applications, device configurations, and network conditions, and use DeepSeek-V3.2(Liu et al. 2025) to an- notate the simulated data. Among these users, 200 are used exclusively to optimize the feature weights and HDBSCAN hyperparameters, while the remaining 100 are reserved for end-to-end evaluation. Real-User Dataset We further collect approximately two months of network-configuration records from 82 held-out real users. For each user, the records are chronologically divided into two periods. The first period is used to gener- ate personalized rules, while the second is used to evaluate whether these rules correctly predict subsequent user deci- sions. Task-Level Dataset We construct a dialogue dataset cover- ing Record Analysis, Cross-Batch Reflection, and User Pro- filing. The training set contains 5,000 samples, including 2,000 for Record Analysis, 2,000 for Cross-Batch Reflec- tion, and 1,000 for User Profiling. The test set contains 300 held-out samples, with 100 samples for each task. Baselines and Implementation Details Baselines We compare PEAM with two groups of base- lines. The first is an expert-rule method consisting of 11 manually designed rules for common network-switching sce- narios. Each rule specifies when a switch should be trig- gered, while the target action for each user is determined by the configuration most frequently observed in that userās historical records. The second group includes three general- purpose LLMs: Qwen3.5-Flash (Qwen-Team 2026), Gemini- 3-Flash (Google-DeepMind 2025), and GPT-5.2 (OpenAI 2025). In the end-to-end evaluation, these models directly 5 MethodSimulated User DatasetReal User DatasetModel Pricing REARCRTRRJMSREARCRTRRInputOutput Expert Rules94.726.068.0022.1548.682.922.56-- Qwen3.5-Flash86.5825.9356.8651.9074.9912.4951.35 (19/37)0.0280.278 Gemini-3-Flash92.2454.7980.1964.5572.5115.4749.02 (25/51)0.5003.000 GPT-5.287.5657.2587.4755.7271.8720.9638.89 (14/36)1.75014.00 PEAM99.1360.5892.5081.3272.3425.8638.10 (24/63)-- Improvement+4.41+3.33+5.03+16.77-+4.90--- Table 1: End-to-end performance on the simulated-user and real-user datasets, together with API pricing for the cloud-based LLM baselines. REA, RCR, and TRR are reported as percentages. Values in parentheses denote the number of triggered rules over the total number of generated rules. The Improvement row reports the absolute gain over the strongest baseline for each metric. Input and output prices are reported in USD per million tokens. Bold and underlined values denote the best and second- best results, respectively. MethodRecord AnalysisReflectionUser Profiling SSJMSITSSJMSITSSJMSIT Qwen3.5-Flash0.745174.358.730.657766.917.340.872687.982.57 Gemini-3-Flash0.697379.694.740.643364.8817.310.859385.542.58 GPT-5.20.741881.0613.800.837773.059.760.858289.896.59 PEAM0.836186.6815.640.895584.1213.980.911287.105.31 Improvement+0.0910+5.62-+0.0578+11.07-+0.0386-- Table 2: Task-level performance on Record Analysis, Cross-Batch Consolidation, and User Profiling. IT is reported in seconds. The Improvement row reports the absolute gain over the strongest baseline for each metric. Bold and underlined values denote the best and second-best results, respectively. process complete historical records and generate personal- ized configuration rules under the same output format as PEAM. Implementation Details PEAM uses Qwen3-4B as its de- fault backbone and is fine-tuned with LoRA (Hu et al. 2022) on a single NVIDIA A100 GPU. For the deployment anal- ysis, we additionally train an AndesVL-4B-based variant (AndesVL-Team 2025). Its full-precision version is evalu- ated on the A100 server, while its W4A16-quantized version is deployed on an OPPO Find X9 Pro smartphone equipped with the MediaTek Dimensity 9500. Detailed configurations are provided in the Appendix. Evaluation Metrics We evaluate different methods from three perspectives: rule effectiveness, generation quality, and efficiency. Rule Effectiveness We use three metrics to evaluate the effectiveness of rules generated from historical records. Rule Execution Accuracy (REA) measures the proportion of cor- rect actions among all triggered rule executions. Rule Cov- erage Ratio (RCR) measures the proportion of subsequent- period records that trigger at least one generated rule, reflect- ing the behavioral coverage of the rule set. Triggered Rule Ratio (TRR) measures the proportion of generated rules that are triggered by at least one record in the subsequent evalua- tion period, indicating whether a method produces excessive inactive rules. Generation Quality We use Semantic Similarity (S) and Judge Model Score (JMS) to measure the discrepancy be- tween generated outputs and their reference labels, where higher scores indicate better generation quality. S eval- uates embedding-level semantic similarity using Qwen3- Embedding-0.6B (Zhang et al. 2025a), while JMS uses DeepSeek-V3.2 to assign a score from 0 to 100 based on their overall consistency. The evaluation criteria for these tasks are summarized in the Appendix. Efficiency Inference Time (IT) measures the time required to complete a single inference for a given task. For cloud- based LLM baselines, we also report the input and output prices per million tokens. Since PEAM performs inference locally, it incurs no external API cost. Experiments and Results Table 1 reports the end-to-end rule performance on the simulated-user and real-user datasets. On the simulated-user dataset, PEAM achieves the best REA, RCR, TRR, and JMS, demonstrating a strong balance among execution ac- curacy, behavioral coverage, and rule usability. In contrast, the expert-rule method attains high accuracy only within a small set of predefined scenarios, as reflected by its substan- tially lower RCR and TRR, while the general-purpose LLMs show less consistent performance across metrics. On the real-user dataset, all methods degrade because of more het- erogeneous and less repetitive user behaviors. Nevertheless, PEAM achieves the highest RCR of 25.86%, corresponding to a 4.90% improvement over the strongest baseline, while maintaining an REA of 72.34% that remains comparable to the cloud-based LLMs. Its lower TRR should be interpreted 6 MethodRecord AnalysisReflectionUser ProfilingReal-time Execution SSJMSITSSJMSITSSJMSITRetrieval Time PEAM0.8413 84.0635.530.8563 75.2132.620.8952 84.6411.87- PEAM-Q0.8132 80.8033.170.8608 72.0959.290.7991 64.568.9500.5730 Table 3: Task-level performance of AndesVL-based PEAM under two deployment configurations. PEAM denotes the full- precision model evaluated on an NVIDIA A100 GPU, whereas PEAM-Q denotes the quantized model deployed on a smartphone. Inference time (IT) is reported in seconds, while retrieval time is reported in milliseconds. VariantREARCRTRRJMS PEAM99.1360.5892.5081.32 - w/o Clustering98.6149.5791.7965.80 - w/o Reflection92.4467.9643.2170.43 - w/o User Profiling 97.3661.3185.2675.27 Table 4: Ablation results for the major components of PEAM. REA, RCR, and TRR are reported as percentages. together with the size of the generated rule library: PEAM produces 63 rules, of which 24 are triggered in the subsequent period, nearly matching Gemini-3-Flash despite maintain- ing a broader candidate set. This lower TRR mainly reflects PEAMās broader rule exploration, while inactive rules do not affect user experience. Moreover, unlike cloud-based LLMs, PEAM incurs no recurring API cost, yielding a favorable trade-off among accuracy, coverage, and deployment cost. Table 2 evaluates PEAM on the three offline reasoning tasks: Record Analysis, Cross-Batch Reflection, and User Profiling. PEAM achieves the highest semantic similarity across all three tasks and the best judge scores for Record Analysis and Cross-Batch Reflection, indicating stronger alignment with reference outputs when interpreting commu- nication records and consolidating intermediate results. The clear advantage in Cross-Batch Reflection supports the effec- tiveness of task-specific fine-tuning for merging distributed evidence and resolving inconsistent rules. For User Profiling, PEAM obtains the best semantic similarity and remains com- petitive in judge score, suggesting that its generated profiles closely capture reference user preferences. Although PEAM introduces moderate offline inference overhead, these tasks are performed during periodic updates, which occur when the mobile device is idle, and therefore do not affect latency- critical rule execution. Table 3 compares PEAM under full-precision server in- ference and W4A16-quantized smartphone deployment. The quantized model largely preserves the quality of Record Analysis and Cross-Batch Reflection, achieving S values of 0.8132 and 0.8608, respectively. Its reflection similarity is slightly higher than that of the full-precision model, although the corresponding JMS decreases, suggesting that quantiza- tion preserves overall semantics but may affect finer-grained generation quality. User Profiling exhibits a more noticeable degradation, indicating that higher-level preference abstrac- tion is more sensitive to quantization than record-level anal- ysis and rule consolidation. Offline inference latency also varies across tasks, showing that quantization does not pro- vide a uniform speedup across the entire pipeline. Most im- portantly, PEAM-Q completes rule retrieval in only 0.5730 ms on the smartphone. This result directly validates effec- tiveness of PEAMās separation of offline LLM deliberation and online rule execution in real-time network configuration. Table 4 evaluates the contribution of each major com- ponent in PEAM. Removing clustering reduces RCR from 60.58% to 49.57% and decreases JMS from 81.32 to 65.80, while REA and TRR remain relatively high. This is due to that clustering primarily improves evidence organization, be- havioral coverage, and generation quality by grouping coher- ent records before LLM inference. Removing Cross-Batch Reflection increases RCR to 67.96%, but substantially de- creases REA, TRR, and JMS to 92.44%, 43.21%, and 70.43, respectively. The increased coverage therefore comes at the cost of many redundant, conflicting, or weakly supported rules, confirming that reflection acts as an essential relia- bility filter. Removing User Profiling leaves coverage nearly unchanged, but reduces REA, TRR, and JMS to 97.36%, 85.26%, and 75.27. This pattern shows that user profiling mainly improves the consistency and personalization of gen- erated rules rather than simply increasing their number. Over- all, the three components provide complementary benefits and jointly contribute to PEAMās performance. Conclusion In this paper, we presented PEAM, an on-device communi- cation agent for personalized mobile network configuration. PEAM decouples LLM-based deliberation from latency- critical execution by distilling historical user decisions into persistent conditionāaction rules during offline updates and retrieving matched rules online without invoking the LLM. To support compact on-device reasoning over long and het- erogeneous histories, PEAM combines batch-wise analysis with cross-batch reflection, while a rule-grounded hybrid memory connects executable rules with semantic user pro- files for cross-cycle personalization. Evaluations on task- level, simulated-user, and held-out real-user benchmarks demonstrate competitive performance in rule execution, cov- erage, triggering, and generation quality, while smartphone deployment of a quantized 4B model confirms its practical on-device feasibility. Overall, PEAM demonstrates that on- device LLM agents can support latency-critical mobile sys- tem decisions by shifting complex reasoning offline and ex- ecuting personalized decisions through efficient local rules. 7 References Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; and Koyama, M. 2019. Optuna: A Next-generation Hyperparameter Opti- mization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discov- ery and Data Mining, 2623ā2631. ACM. AndesVL-Team. 2025. AndesVL Technical Report: An Efficient Mobile-side Multimodal Large Language Model. arXiv:2510.11496. Campello, R. J. G. B.; Moulavi, D.; Zimek, A.; and Sander, J. 2015. Hierarchical Density Estimates for Data Clustering, Visualization, and Outlier Detection. ACM Transactions on Knowledge Discovery from Data, 10(1): 1ā51. Chen, Y.; Yan, Y.; Ge, S.; Qin, Y.; Zheng, Y.; Yang, Q.; He, S.; Shi, Z.; Chen, J.; and Shu, Y. 2025. Confidant: Customiz- ing Transformer-based LLMs via Collaborative Training on Mobile Devices. In Proceedings of the 31st Annual Inter- national Conference on Mobile Computing and Networking, 483ā497. ACM. Google-DeepMind. 2025.Gemini3 Flash Doc. https://docs.cloud.google.com/gemini-enterprise-agent- platform/models/gemini/3-flash. Accessed:2026-7-10. He, J.; Xiang, T.; Wang, Y.; Ruan, H.; and Zhang, X. 2023. A Reinforcement Learning Handover Parameter Adaptation Method Based on LSTM-Aided Digital Twin for UDN. Sen- sors, 23(4): 2191ā2211. Hu, E. J.; Shen, Y.; Wallis, P.; Zhu, Z. A.; Li, Y.; Wang, S.; Wang, L.; and Chen, W. 2022. LoRA: Low-rank adap- tation of large language models. In Proceedings of the 10th International Conference on Learning Representations. Jeong, S.; Shin, S.; Kim, S.; Wu, J.; and Shim, B. 2026. Large Multimodal Model-Based Environment-Aware Mo- bility Management. arXiv:2607.09795. Jiang, X.; Wang, H.; Chen, Y.; Wu, Z.; Wang, L.; Zou, B.; Yang, Y.; Cui, Z.; Cai, Y.; Yu, T.; et al. 2020. MNN: A Universal and Efficient Inference Engine. Proceedings of Machine Learning and Systems, 2: 1ā12. Lee, J.; Lu, Y.; and Doppler, K. 2025. On-Device LLM for Context-Aware Wi-Fi Roaming. arXiv:2505.04174. Li, W.; Chen, W.; Ai, B.; Zhang, Y.; Peng, Y.; and Matthaiou, M. 2026. LLM-Empowered Wireless Channel Quality Pre- diction for Reliable Cell Handover. IEEE Wireless Commu- nications, 1ā8. Liu, A.; Mei, A.; Lin, B.; Xue, B.; Wang, B.; Xu, B.; Wu, B.; Zhang, B.; Lin, C.; Dong, C.; et al. 2025. Deepseek- v3. 2: Pushing the frontier of open large language models. arXiv:2512.02556. Lu, Y.; Qi, J.; Zhang, S.; Luo, G.; Zhu, A.; Wu, J.; and Qian, Z. 2025. ABUV: Adaptive Bitrate and Upsampling for Video Streaming on Mobile Devices. Computer Networks, 257: 1ā11. Madaan, A.; Tandon, N.; Gupta, P.; Hallinan, S.; Gao, L.; Wiegreffe, S.; Alon, U.; Dziri, N.; S., P.; Yang, Y.; Gupta, S.; Majumder, B. P.; Hermann, K.; Welleck, S.; Yazdanbakhsh, A.; and Clark, P. 2023. Self-Refine: Iterative Refinement with Self-Feedback. Advances in Neural Information Processing Systems, 36: 46534ā46594. Masi, A. D.; and Wac, K. 2020. Towards Accurate Models for Predicting Smartphones Applicationsā QoE with Data from A Living Lab Study. Quality and User Experience, 5(10): 1ā18. Miyim, A. M.; Umar, K.; and Kiyawa, A. I. 2021. A Fuzzy- Based AHP Approach to Handover Decision for Mobility Management in Heterogeneous Wireless Network. SLU Journal of Scientific Research and Management, 2(2): 46ā 57. Nagai, S.; Le, T. M.; Le, N. P.; Nguyen, K.; and Sekiya, H. 2026. Toward Real-Time On-Device WLAN Handover Control via Prompt Refinement. In Proceedings of IEEE Conference on Computer Communications, 1ā5. IEEE. OpenAI. 2025.GPT-5.2 System Card.https:// deploymentsafety.openai.com/gpt-5-2. Accessed:2026-7- 10. Paropkari, R. A.; Thantharate, A.; and Beard, C. 2022. Deep- Mobility: A Deep Learning Approach for an Efficient and Reliable 5G Handover. In Proceedings of International Con- ference on Wireless Communications Signal Processing and Networking, 244ā250. IEEE. Peng, F.; Lu, B.; Song, L.; Xie, R.; Liu, Y.; and Chen, Y. 2023. PACC: Perception Aware Congestion Control for Real-time Communication. In Proceedings of the IEEE International Conference on Multimedia and Expo, 978ā983. IEEE. Qwen-Team. 2026. Qwen3.5: Accelerating Productivity with Native Multimodal Agents. https://qwen.ai/blog?id=qwen3. 5. Accessed:2026-7-10. Shinn, N.; Cassano, F.; Gopinath, A.; Narasimhan, K.; and Yao, S. 2023. Reflexion: Language Agents with Verbal Re- inforcement Learning. Advances in Neural Information Pro- cessing Systems, 36: 8634ā8652. Sunita, E.; Soni, E. S.; and Baghla, E. S. 2015. Fuzzy Logic Based Handover Decision and Neccessity Estimation scheme for Heterogeneous Wireless Network. International Journal of Scientific Research and Management, 3(6): 3234ā3238. Tan, H.; Li, Y.; Chen, Y.; Tan, L.; and Li, Q. 2010. A Novel Access Network Selection Scheme Using Q-learning Algo- rithm for Cognitive Terminal. In Proceedings of 5th Interna- tional ICST Conference on Communication and Networking in China, 1ā5. IEEE. Wang, W.; Yang, H.; Li, S.; Liu, X.; and Wan, Z. 2024. Adap- tive UE Handover Management with MAR-Aided Multivari- ate DQN in Ultra-Dense Networks. Journal of Network and Systems Management, 33(17): 1ā17. Wen, H.; Tian, S.; Pavlov, B.; Du, W.; Li, Y.; Chang, G.; Zhao, S.; Liu, J.; Liu, Y.; Zhang, Y.; et al. 2025. Autodroid- v2: Boosting slm-based gui agents via code generation. In Proceedings of the 23rd Annual International Conference on Mobile Systems, Applications and Services, 223ā235. Wu, B.; Li, T.; Luo, C.; Quyang, C.; Du, X.; and Wang, F. 2022. AutoPlex: Inter-Session Multiplexing Congestion Control for Large-Scale Live Video Services. In Proceed- ings of ACM SIGCOMM Workshop on Network-Application Integration, 1ā6. ACM. 8 Wu, W.; Yuan, J.; Ma, S.; and Yang, M. 2024. AP-assisted Adaptive Video Streaming in Wireless Networks with High- density Clients. Computer Communications, 219: 53ā63. Xie, J.; Zhu, B.; and Li, C. 2023. Research of 5G HUDN Network Selection Algorithm Based on Dueling-DDQN. EURASIP Journal on Wireless Communication Networks, 2023(113): 1ā27. Yang, Z.; Dou, Z.-Y.; Feng, D.; Huang, F.; Nguyen, A.; You, K.; Attia, O.; Yang, Y.; Feng, M.; Zhang, H.; et al. 2025. Ferret-ui lite: Lessons from building small on-device gui agents. arXiv:2509.26539. Zhang, S.; Ma, Y.; Fang, L.; Jia, H.; DāAlfonso, S.; and Kostako, V. 2024. Enabling On-Device LLMs Personaliza- tion with Smartphone Sensing. In Proceedings of ACM In- ternational Joint Conference on Pervasive Ubiquitous Com- putation, 186ā190. ACM. Zhang, Y.; Li, M.; Long, D.; Zhang, X.; Lin, H.; Yang, B.; Xie, P.; Yang, A.; Liu, D.; Lin, J.; Huang, F.; and Zhou, J. 2025a. Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models. arXiv:2506.05176. Zhang, Z.; Lu, Y.; Fu, Y.; Huo, Y.; Yang, S.; Wu, Y.; Si, H.; Cong, X.; Chen, H.; Lin, Y.; Xie, J.; Zhou, W.; Xu, W.; Zhang, Y.; Su, Z.; Zhai, Z.; Liu, X.; Mei, Y.; Xu, J.; Tian, H.; Wang, C.; Chen, C.; Yao, Y.; Liu, Z.; and Sun, M. 2025b. AgentCPM-GUI: Building Mobile-Use Agents with Rein- forcement Fine-Tuning. In Proceedings of the 2025 Confer- ence on Empirical Methods in Natural Language Processing: System Demonstrations, 155ā180. 9 Appendix A Supplementary Experiments Training Details We fine-tune Qwen3-4B and AndesVL-4B through multi-task supervised fine-tuning using LoRA on a single NVIDIA A100 GPU, with a rank of 32, a scaling factor of 32, and a dropout rate of 0.1. We train the model for 5 epochs using AdamW with a learning rate of 5Ć 10 ā5 , cosine decay, a warmup ratio of 0.05 and a batch size of 4. We jointly train the model on Record Analysis, Cross-Batch Reflection, and User Profiling. A task-aware sampler enforces a 2:1:1 allocation within each effective batch, corresponding to 2, 1, and 1 samples from the three tasks, respectively. All tasks use equal sample-level loss weights. We further adopt field-aware token weighting to emphasize task-critical outputs. Prompt tokens are excluded from loss computation; within the responses, tokens in the rules field of Record Analysis and the result field of Cross-Batch Reflection are assigned a weight of 10, while all remaining response tokens retain a weight of 1. The weighted token losses are normalized within each sample before being averaged across the batch. This design emphasizes the structured outputs directly used for rule generation and consolidation without uniformly amplifying the loss of an entire task. Baseline Details To fully compare PEAM with different methods, we design an expert-rule method consisting of 11 manually designed rules for common network-switching scenarios. Each rule specifies when a switch should be triggered, while the action for each user is determined by the configuration most frequently observed in that userās historical records. The detailed expert rules are shown in Table A1. IntentCondition Optimize cellular network usage for smooth meeting scenarios. app_scene=Meeting, WiFi_QoE< 4, cellular_scoreā„ 80 Optimize cellular network usage for smooth video call scenarios. app_scene=VIDEO_CALL, WiFi_QoE< 4, cellular_scoreā„ 80 Optimize cellular network usage for smooth voice call scenarios. app_scene=VOICE_CALL, WiFi_QoE< 4, cellular_scoreā„ 80 Optimize cellular network usage for smooth game-playing scenarios. app_scene=GAME_PLAYING, WiFi_QoE< 4, cellular_scoreā„ 80 Optimize cellular network usage for smooth game lobby scenarios. app_scene=GAME_LOBBY, WiFi_QoE< 4, cellular_scoreā„ 80 Save cellular data in live-streaming scenarios. app_scene=LIVE_STREAM, WiFi_QoEā„ 4 Save cellular data in long-video scenarios. app_scene=LONG_VIDEO, WiFi_QoEā„ 4 Save cellular data in short-video scenarios. app_scene=SHORT_VIDEO, WiFi_QoEā„ 4 Save cellular data in download scenarios. app_scene=DOWNLOAD Switch to cellular network when Wi-Fi quality is poor. WiFi_QoE< 3, cellular_scoreā„ 80 Switch to Wi-Fi when cellular network quality is poor. cellular_score⤠60, WiFi_QoEā„ 4 Table A1: Rule Conditions for Network Switching Intents For the general-purpose models, we design task-specific prompts and retain each modelās default temperature and input/output token limits to reflect its out-of-the-box performance without model-specific tuning. During evaluation, we disable thinking mode for all models to ensure practical and comparable response latency. On-Device Deployment To validate on-device deployment, we ran a PEAM variant based on quantized AndesVL on an OPPO Find X9 Pro (MediaTek Dimensity 9500 processor, 16 GB of RAM, Android 16). The model adopts mixed-precision quantization: the backbone linear layers use W4A16, with 4-bit asymmetric weights and 16-bit symmetric activations; the KV cache uses INT8; RMSNorm, the final normalization layer, and logits use INT16; and the embedding and softmax layers retain floating-point precision. The left side of Figure A1 shows the logs produced when PEAM analyzes a userās network-switching records and generates personalized strategies. The right side illustrates how PEAM automatically applies a previously generated strategy when the same context recurs, such as when the user launches a particular application. The overall performance results demonstrate the feasibility of on-device inference and real-time rule execution on consumer-grade hardware. We further evaluated rule-execution efficiency on a device running PEAM. During the experiment, participants first performed several prescribed network switches, allowing PEAM to generate corresponding rules. After rule generation, they triggered the same scenarios again so that PEAM could retrieve and execute the matched rules. As shown in Table A2, the average rule-retrieval latency during real-time execution was 0.573 ms. Applying the selected 10 Figure A1: On-device deployment of PEAM. rule required an average of 614.2 ms for switching between cellular networks and 93.57 ms for switching between cellular and Wi-Fi networks. Overall, PEAM completed rule retrieval and application within one second in all tested scenarios, satisfying usersā responsiveness requirements. MetricRetrieval TimeExecution Time Cellular-to-CellularCellular-to-Wi-Fi Time (ms)0.573614.293.57 Table A2: Runtime of strategy retrieval and execution. All times are reported in milliseconds. Real Examples We continuously monitored several users and collected at least one month of data from their mobile devices. In subse- quent interviews, we asked the users to explain their motivations for performing network switches. We then compared the interview findings with the results produced by PEAM. The detailed comparison is presented in Tables A3āA8. Generation Quality Evaluation For Judge Model Score (JMS), DeepSeek-V3.2 compares each generated output with its reference answer and assigns an overall score from 0 to 100. For Record Analysis and Cross-Batch Reflection, the evaluation considers decision- structure completeness, intent-identification accuracy, and agreement of the generated network decisions with the reference. For User Profiling, it considers semantic consistency and information completeness, factual accuracy of network preferences and scenario descriptions, and naturalness and fluency of expression. 11 IntentObjective EvaluationSubjective Evaluation Interview Results When using Douyin at two regular home locations, prefer connecting to the home Wi-Fi network; switch to cellular data when Wi-Fi is unavailable. ā When using Nike Run Club at home, prefer connecting to Wi-Fi.ā At home, prefer connecting to the home Wi-Fi network regardless of the app being used.ā PEAM Analysis Results Switch to the cellular network when using Douyin or watching short videos at specific locations such as POI-1 and POI-2 to ensure a smooth viewing experience. Fully Compliant (55)Fully Compliant Prefer connecting to a specific Wi-Fi network, SSID-1, at specific locations such as POI-1 and POI-3 to save cellular data or obtain a better network experience. Fully Compliant (64)Fully Compliant Table A3: Comparison Between User Interview Results and PEAM Analysis Results for User 001 IntentObjective EvaluationSubjective Evaluation Interview Results Use the China Mobile app for faster login; switch to the corresponding carrier SIM when opening the app, and switch back to Wi-Fi after login. ā Connect to Wi-Fi when downloading apps from the app store to save cellular data.ā Switch to the SIM 1 cellular network before using Alipay to ensure network stability.ā Connect to the commonly used Wi-Fi network when entering a regular location.ā Switch back to a more stable cellular network when Wi-Fi quality is poor.ā Prefer using the cellular network when using the TeamTalk app at home.ā PEAM Analysis Results Prefer connecting to SSID-1 at home, POI-1, on holiday afternoons.Fully Compliant (7)Partially Compliant Prefer connecting to the company Wi-Fi network, SSID-2, at the office location POI-2 on weekday afternoons. Fully Compliant (13)Partially Compliant Switch to the cellular network when the Wi-Fi user experience score is poor or relatively low to obtain a stable network connection. Fully Compliant (31)Fully Compliant Connect to SSID-1 at POI-3 on holiday mornings.Non-Compliant (0)Partially Compliant Connect to SSID-1 when using Sina Weibo on holiday afternoons.Partially Compliant (1)Not Mentioned Table A4: Comparison Between User Interview Results and PEAM Analysis Results for User 002 IntentObjective EvaluationSubjective Evaluation Interview Results When using Xiaohongshu in the first regular area at home, prefer manually connecting to the home Wi-Fi network. ā When using Bilibili in the first regular area at the office, prefer manually connecting to an available Wi-Fi network; switch to cellular when the network quality is poor. ā PEAM Analysis Results Connect to the cellular network when entering the company location.Partially Compliant (2)Not Mentioned Habitually switch to Wi-Fi when using Xiaohongshu at the company location POI-1.Partially Compliant (1)Not Mentioned Habitually switch to SIM 1 when using system tools such as Performance Monitor at POI-2.Partially Compliant (1)Not Mentioned Table A5: Comparison Between User Interview Results and PEAM Analysis Results for User 003 12 IntentObjective EvaluationSubjective Evaluation Interview Results Prefer using SIM 1 for Douyin short videos, possibly because SIM 1 has sufficient cellular data. ā Switch to SIM 2 for Douyin and TeamTalk when the SIM 1 network quality is poor.ā Switch to the cellular network when Wi-Fi quality is poor while using apps such as Youdao Dictionary and WeChat. ā Proactively switch to the cellular network before leaving a regular location, likely to avoid lag caused by weak signals near the edge of Wi-Fi coverage. ā Connect to another phoneās hotspot for internet access during phone data backup or data migration. ā Prefer using Wi-Fi when updating or downloading apps to save cellular data.ā PEAM Analysis Results Habitually switch to the cellular network when using Douyin at night.Mostly Non-Compliant (0)Partially Compliant Prefer using the cellular network when using WeChat on weekday mornings.Fully Compliant (11)Not Mentioned Prefer connecting to SSID-1 at home, POI-1.Fully Compliant (9)Not Mentioned Prefer using the cellular network when using TeamTalk on weekday afternoons.Fully Compliant (10)Partially Compliant Table A6: Comparison Between User Interview Results and PEAM Analysis Results for User 004 IntentObjective EvaluationSubjective Evaluation Interview Results When cellular data becomes stuck, prefer switching to a Wi-Fi network with better signal quality to continue using apps. ā Manually connect to the in-building Wi-Fi network at POI-1.ā Prefer using the company Wi-Fi network when using TeamTalk at the office.ā Use cellular data to access Tencent News when Wi-Fi is unavailable.ā When playing DNF Mobile, switch to cellular data if the connected Wi-Fi network has poor quality. ā PEAM Analysis Results Switch to the SIM 1 cellular network when the Wi-Fi user experience score is poor or relatively low to obtain a stable network connection. Fully Compliant (4)Partially Compliant Table A7: Comparison Between User Interview Results and PEAM Analysis Results for User 005 IntentObjective EvaluationSubjective Evaluation Interview Results When using Douyin, switch to cellular data if the connected Wi-Fi network becomes stuck.ā PEAM Analysis Results Switch to the SIM 2 cellular network when the Wi-Fi user experience score is poor or relatively low to obtain a stable network connection. Fully Compliant (4)Partially Compliant Switch to the cellular network when watching Douyin live streams on holiday mornings to ensure smooth viewing and avoid lag. Partially Compliant (2)Partially Compliant Connect to SSID-1 at POI-1.Fully Compliant (9)Not Mentioned Table A8: Comparison Between User Interview Results and PEAM Analysis Results for User 006 13 B Dataset Real-World Record Acquisition To characterize the communication contexts in which users perform network switches, we recruited more than 1,00 participants and, with their consent, installed a data-collection application on their smartphones. To comprehensively describe each communication context, we collected multiple types of data covering spatiotemporal information, foreground applications, network access states, cellular network quality, and Wi-Fi network quality, as detailed in Table A9. It is worth noting that all collected records are conducted with the participantsā explicit consent and authorization. Reocrds are strictly encrypted both at rest and in transit to safeguard user privacy and prevent unauthorized disclosure. CategoryFeatures Spatiotemporal ContextTimestamp, POI, geofence Foreground ApplicationApp package name, app scene, app foreground dwell time, app-scene foreground dwell time Network Access StatusNetwork access type, data SIM slot, PLMN, roaming status Cellular NetworkCellular network type, RSRP, RSRQ, SINR, cellular signal level, network quality score Wi-Fi NetworkSSID, BSSID, frequency band, bandwidth, RSSI, QoE score, Wi-Fi signal level OthersTraffic configuration, VPN configuration, battery status Table A9: Contextual Features Used for Network Intent Modeling The data-collection application operates similarly to the Record Acquisition module in PEAM. When a user initiates a network switch, the application records the buffered data from the preceding Ī“ (T ) seconds at one-second granularity and continues collecting data for Ī“ (T ) seconds after the switch. The two temporal windows are combined into a snapshot of a single switching event and stored locally on the device. After operating for a predefined collection period, the application automatically encrypts and uploads the accumulated snapshots, which constitute the userās network-switching records for that period. Data Preprocessing Because the communication context is recorded at one-second granularity, even a single switching record can result in a lengthy textual representation. Meanwhile, each per-second snapshot provides only an instantaneous view, making it difficult for an LLM to directly identify temporal changes. We therefore statistically summarize the raw data before presenting it to the model. We categorize the collected fields into three types: stable fields, continuously varying fields (e.g., RSRP and RSRQ), and discretely varying fields (e.g., SSID). Stable fields mainly include temporal and location-related information, which typically exhibits no significant change around a network switch. We therefore use the value observed at the switching moment as the representative value for the entire snapshot. For continuously varying fields, we compute the mean separately over the pre-switch and post-switch windows. For discretely varying fields, we use the mode within each window. Because the foreground application provides the most direct indication of userādevice interaction, we preserve the complete foreground-application trace throughout the observation window rather than aggregating it. Figure A2 illustrates an example of the resulting standardized data representation. The statistically summarized data still cannot be directly provided to the model, as compact LLMs often struggle to interpret raw numerical communication metrics. We therefore apply a semantic transformation to make the underlying context and its changes more explicit. For each record, the transformation program first reads the pre-switch and post-switch values and then processes each field individually. For the temporal field, it extracts the switching time and determines whether the date is a working day and which period of the day the event belongs to. Location is represented by combining geofence and point-of-interest (POI) information. For foreground applications, the program maps package names to human-readable application names and lists the application changes over time line by line. Numerical network-quality metrics are converted into qualitative descriptions, allowing the model to interpret changes in network conditions more intuitively. Following this procedure, each field transition is expressed in the form Aā B, producing a semantic representation of the complete switching process. An example of the standardized semantic representation is shown below. Simulation We construct simulated-user records from templates derived from real-world network-switching samples, together with user-specific contexts and annotated intent rules. The simulated users vary in their spatiotemporal contexts, applications, device configurations, and network conditions. Each record represents a beforeāafter network-state transition associated with a conditionāaction rule, retaining the general structure of the collected records. The resulting data provide explicit intent and rule annotations for optimizing clustering on the simulated training users and evaluating personalized rule generation on the disjoint simulated test users. 14 "before": "pkg_name1": "data_times": "2026-06-21 00:36:45.743", "poi": "POI-X", "geo_fence_id": "001", "latitude": x x x , "longitude": x x x , "app_details": "name": null, "duration": 6, "time_range": "1-6" , "pkg_name2": ānameā: āapp_Aā, ādurationā: 3, "time_range": "7-9", "app_scene1": "name": "COMMON","duration": 3 , "pkg_name3": "name": "app_B", "duration": 4, "time_range": "10- 13", "app_scene1": "name": "COMMON", "duration": 4 , "way_to_access_internet": "CELLULAR", "fps": 45.0, "delay": 120.0, "sim1Plmn": x x x x x , "sim2Plmn": x x x x x , "sim1Roaming": 0.0, "sim2Roaming": 0.0, "sim1_network_type": "LTE", "sim2_network_type": "NR_SA", "data_slot_id": 1, "trad_score": 62.0, "sim1_rsrp": -104.2, "sim2_rsrp": -108.0, "sim1_rsrq": -12.0, "sim2_rsrq": -17.0, "sim1_sinr": 6.8, "sim2_sinr": -2.0, "wifi_ssid": null, "wifi_bssid": null, "wifi_frequency": null, "wifiBandwidth": null, "wifiQoeLevel": null, "wifi_rssi": null, "wifiSignalLevel": null, "battery_level": 23.0, "batteryStatus": 3.0 , "after": "pkg_name1": "data_times": "2026-06-21 00:37:00.603", "poi": "POI-X", "geo_fence_id": "001", "latitude": x x x , "longitude": x x x , "app_details": "name": "app_C", "duration": 10, "time_range": "1-10", "app_scene1": "name": "COMMON", "duration": 10 , "way_to_access_internet": "WIFI", "fps": 58.0, "delay": 35.0, "sim1Plmn": x x x x x , "sim2Plmn": x x x x x , "sim1Roaming": 0.0, "sim2Roaming": 0.0, "sim1_network_type": "LTE", "sim2_network_type": "NR_SA", "data_slot_id": 1, "trad_score": 100.0, "sim1_rsrp": -101.9, "sim2_rsrp": -96.0, "sim1_rsrq": -11.0, "sim2_rsrq": -12.0, "sim1_sinr": 9.2, "sim2_sinr": 5.0, "wifi_ssid": "X", "wifi_bssid": "x:x:x:x:x:x", "wifi_frequency": 2412.0, "wifiBandwidth": 0.0, "wifiQoeLevel": 5.0, "wifi_rssi": -60.2, "wifiSignalLevel": 4.0, "battery_level": 23.0, "batteryStatus": 3.0 Figure A2: An example of the resulting standardized data representation 15 ## Log 1 Time: 2026-06-21 00:36:45.743 (Rest, Early Morning) Location Label: 001 (POI_A) Network Decision: SIM2āWiFi (x:x:x:x:x:x) ** Foreground Applications ** 00s-06s: None 07s-09s: App_A (System) (General) 10s-13s: App_B (System) (General) Network Switch Occurs 16s-25s: App_C (General) Frame Rate: 45.0ā58.0 Latency: 120.0ā35.0 ** Cellular Network ** Network Type: NR_SA Algorithm Score: FairāGood RSRP: PoorāFair RSRQ: FairāGood SINR: PoorāFair ** Data Usage ** SIM1 Data Usage: Unknown SIM2 Data Usage: Unknown ** WiFi Network ** Frequency: Noneā2412.0 Bandwidth: Noneā0.0 Signal Level: NoneāFairUser Experience Score: NoneāGood RSSI: NoneāGood ** VPN ** VPN Status: None VPN Name: None ** Battery ** Battery Level: 23.0% Figure A3: An example of the standardized semantic representation. 16 C Clustering Algorithm We employ a Tree-structured Parzen Estimator (TPE)-based hyperparameter optimization strategy on the simulated training users to jointly optimize the feature weights and HDBSCAN parameters. The clustering objective combines the Adjusted Rand Index (ARI) and Normalized Mutual Information (NMI) with weights of 0.7 and 0.3, respectively. TPE iteratively searches for the parameter configuration that maximizes the average clustering score across users. We then apply the optimized parameters to the simulated test users to evaluate clustering performance. The results show that the resulting clustering configuration can effectively separate records associated with different latent user intents, thereby improving input coherence and reducing noise in the data provided to the model. Figure A4: Clustering results of optimized parameters on simulated users. D User-Level Local Memory Management Each rule r is represented by a conditionāaction pair, an LLM-assigned confidence score q r , and a state s r ā silent, active, invalid. Although the LLM provides an initial confidence score q 0 r during rule generation, every newly generated rule enters the rule base in the silent state. A silent rule can participate in condition matching but cannot recommend or execute its action. Instead, when its condition is satisfied, PEAM passively observes the network configuration selected by the user without presenting a recommendation. If the userās choice agrees with the rule action, the observation is regarded as positive evidence; otherwise, it is treated as negative evidence. A new rule is activated only after two consecutive positive observations, which prevents rules supported by incidental or noisy records from being immediately applied. PEAM updates rule confidence using fixed positive and negative steps. Lety r ā0, 1 denote the feedback associated with a matched rule, where y r = 1 indicates positive evidence and y r = 0 indicates negative evidence. The confidence update is defined as q r ā q r + ā + , y r = 1, q r ā ā ā , y r = 0, (A1) where ā + and ā ā denote the confidence increase and decrease steps, respectively. For a silent rule,y r is determined by whether the user independently selects the same network configuration as the rule action. Any inconsistent observation resets the consecutive-match counter. For an active rule, PEAM presents the retrieved configuration to the user and asks whether it should be accepted. Acceptance is treated as positive feedback, whereas rejection or the absence of feedback is treated as negative feedback. The configuration is executed only after explicit acceptance. Active rules are eligible for real-time recommendation and execution. When the confidence of an active rule falls below the activation threshold Ļ a , the rule returns to the silent state and is subsequently evaluated through passive observations. Unlike newly generated rules, a previously active rule can be reactivated once its confidence recovers to Ļ a , without requiring two additional consecutive matches. If the confidence falls below the invalidation threshold Ļ i , the rule becomes invalid and is permanently excluded from subsequent matching, execution, and user-profile construction. Thus, active and silent states are mutually reversible, whereas the invalid state is irreversible. When multiple active rules match the current context, PEAM first selects the rule whose condition contains the largest number of matched fields. If several rules have the same number of matched fields, the rule with the highest confidence is selected. Only the selected rule receives the current user feedback and updates its confidence. The user profile is periodically reconstructed using active rules only, ensuring that it is grounded in validated and currently reliable configuration preferences. 17