Toward Efficient Inference Attacks: Shadow Model Sharing via Mixture-of-Experts
Li Bai, Qingqing Ye, Xinwei Zhang, Sen Zhang, Zi Liang, Jianliang Xu, Haibo Hu
TL;DR
This paper addresses the high computational cost of shadow-model-based inference attacks by introducing SHAPOOL, an MoE-based shadow pool that trains shared sub-networks in a single process. It incorporates three modules—pathway-choice routing, pathway regularization, and pathway alignment—to ensure randomized data allocation, diversity among shared models, and alignment with independently trained target models. The approach yields substantial reductions in shadow-model training cost while maintaining competitive attack performance across multiple attacks (e.g., LiRA, RMIA) and datasets, including CIFAR-100/10, CINIC-10, and TinyImageNet. By enabling efficient, scalable attack construction, SHAPOOL also supports model auditing and privacy risk assessment in practical deployment scenarios.
Abstract
Machine learning models are often vulnerable to inference attacks that expose sensitive information from their training data. Shadow model technique is commonly employed in such attacks, such as membership inference. However, the need for a large number of shadow models leads to high computational costs, limiting their practical applicability. Such inefficiency mainly stems from the independent training and use of these shadow models. To address this issue, we present a novel shadow pool training framework SHAPOOL, which constructs multiple shared models and trains them jointly within a single process. In particular, we leverage the Mixture-of-Experts mechanism as the shadow pool to interconnect individual models, enabling them to share some sub-networks and thereby improving efficiency. To ensure the shared models closely resemble independent models and serve as effective substitutes, we introduce three novel modules: path-choice routing, pathway regularization, and pathway alignment. These modules guarantee random data allocation for pathway learning, promote diversity among shared models, and maintain consistency with target models. We evaluate SHAPOOL in the context of various membership inference attacks and show that it significantly reduces the computational cost of shadow model construction while maintaining comparable attack performance.
