arXiv:2610.27135cs.CROct 2026

Manuscript Offprint

arXiv:2610.27135

Mind Your Boundaries: Boundary-Aware Model Obfuscation against Cross-node Attack

Yuyang Zhang, Yihui Jin, Kangjie Chen, Leyang Wu, Run Wang

Abstract

With the advancement of powerful AI chips, on-device machine learning is gaining traction for its low latency and privacy protection. However, when edge devices are compromised, attackers can obtain white-box access to the deployed models by reversing the apps directly to obtain the knowledge of peer devices, which is known as Cross-Node Attacks, like performing efficient adversarial attacks. Most existing defenses target known vulnerabilities, yet white-box access still enables attackers to uncover more unknown weaknesses. This creates a critical risk for edge-device deployments, where one compromised device can endanger all models distributed from the same source. Motivated by findings that the model robustness is primarily influenced by the curvature of the decision boundary, we investigate how model parameters shape its curvature. In this paper, we propose a novel method, BMO, that obfuscates model parameters to diversify the decision boundary further resisting cross-node attack while preserving its benign accuracy. Specifically, we explore decomposing model parameters into boundary-position and boundary-curvature components based on null-space constraints, then models with differentiated decision boundaries are instantiated by injecting noise into the boundary-curvature component. Across all four major types of adversarial attacks with four widely-deployed on-device models, BMO achieves an average success rate of 68.68% in defense, far exceeding the most competitive baseline, which attains only 22.32% in defending against cross-node attacks. Moreover, BMO achieves comparable performance in benign accuracy compared with baselines.

1. Introduction

In recent decades, deep learning (DL) models have been extensively employed across various cutting-edge fields (e.g., image classification, speech recognition and natural language processing), achieving remarkable and transformative progress [10]. More recently, powered by the highly

Figure

Figure 1. An Illustration of Cross-node Attack. End users install applications with integrated on-device models from app stores to enjoy the provided services. Meanwhile, an adversary can exploit these applications by unpacking them to access the model in white-box settings. Then, the peer devices installed the same model are totally exposed to adversary leading a large-scale compromising.

efficient AI chips and model compression technologies, on-device DL models have been developed and widely assembled into edge devices, such as mobiles [38], to deliver low-latency inference and preserve user privacy to avoid potential leakage [32]. Such edge-based deployments underpin a growing trend of real-time, privacy-sensitive services for end users across various application scenarios.

Despite their benefits, recent studies have revealed that edge devices often operate in untrusted environments. In such settings, an adversary who compromises a single device can extract its installed on-device models [54], gaining white-box access. Once obtained, the models distributed from the same source as the compromised model are totally exposed to the adversary, which enables efficient attacks, such as crafting effective adversarial samples targeting compromised models that show strong transferability among the peer devices [40]. Therefore, in this work, we term this threat as the Cross-Node Attack, exploiting full model internals under white-box conditions, unlike the well-known transfer-based adversarial attack refers to conducting efficient adversarial attacks under black-box scenarios. As presented in Figure 1, such attacks typically involve two phases [53]: ① extracting the on-device model from a compromised node, and ② conducting an efficient attack by leveraging the stolen parameters.

Existing studies show potential in defending the aforementioned cross-node attack, including model enhancement and model asset protection. Model enhancement (e.g., adversarial training [44], input random [3]) aims to either improve its inherent capability by learning malicious samples or detecting samples passively with known anomalous patterns. Unfortunately, both of them are dedicated to known adversarial attacks [23]. In contrast, model asset protection (e.g., model verification [52], obfuscation [51]) investigates how to improve the costs of model extraction, further avoiding the white-box access to the victim models. However, recent studies reveal that such defenses offer no protection once the model is loaded into RAM on compromised nodes, where the parameters remain accessible and can be easily reversed or extracted through memory dumping or dynamic analysis [6]. Consequently, neither model enhancement nor asset protection truly suffices against cross-node attacks that obtain persistent white-box access and uncover unknown vulnerabilities, thereby rendering these approaches unreliable as practical defenses in this scenario [37].

Motivated by the evidence that decision-boundary curvature is central to model robustness, we examine how model parameters shape this curvature [13, 31, 48]. Our preliminary experiment results show that existing defenses overlook the protection of boundary curvature, leaving models susceptible to cross-node attack. Once a curvature is exposed in one model, others with the same curvature can be compromised easily. To address this, we propose Boundary-aware Model Obfuscation (BMO), which obfuscates decision-boundary curvature to address cross-node attacks while preserving model functionality well. Specifically, inspired by Null-Space Constrained [36], BMO begins by decomposing the pre-trained weights into (i) magnitude components, responsible for the prediction of the normal samples off the decision boundary, and (ii) direction components, which shape the model's decision boundary. We then inject controllable noises solely into the direction component to yield models whose decision-boundary curvature differs substantially, whereas the magnitude components ensure clean-input predictions remain intact. This obfuscation requires only a single one-shot computation with negligible cost, unlike baselines that incur additional training or computational overhead. Consequently, BMO substantially reduces the effectiveness of transferring a successful attack from the compromised node to other peer nodes, preventing the further propagation of malicious behavior within the network.

We evaluate BMO across all 4 major types of adversarial attacks and 4 widely deployed on-device models. Our experimental result indicates that BMO effectively resists attacks generated by diverse adversarial techniques, reaching an average 68.68% success rate in cross-node defense while preserving 97.54% benign accuracy ( Δ=−1.08%\Delta = -1.08\%), substantially outperforming the best baseline, which attains only 22.32%. In addition, BMO remains robust under model compression (e.g., quantization), sustaining a 59.63% cross-node defense success rate with 97.54% benign accuracy ( Δ=−1.08%\Delta = -1.08\%). To summarize, our key contributions are as follows:

• We first reveal on-device models are vulnerable to cross-node attack, further present the characterization, detailing attacker capabilities, from extraction to adversarial payload generation, and quantifying transferability risks.

• We introduce a novel defense paradigm for edge systems, BMO, which is a newly designed weight obfuscation strategy to generate device-specific models with distinct decision boundaries, significantly reducing the possibility in compromising other peer devices.

• We introduce a novel defense that decomposes model weights into magnitude (preserving clean accuracy) and direction (shaping decision boundaries) components, where controlled noise are injected into the direction only to effectively create device-specific boundary shifts.

• We integrate BMO into both convolutional and transformer pipelines with minimal overhead, and across four strong attacks and four network architectures demonstrate our method exceeding the strongest baseline by 44% in effectively defending against cross-node attack, while maintaining less than a 1% drop in benign accuracy.

References (51)