A Distributed Framework for Privacy-Enhanced Vision Transformers on the Edge
Zihao Ding, Mufeng Zhu, Zhongze Tang, Sheng Wei, Yao Liu
TL;DR
The paper tackles privacy risks in edge-to-cloud vision by distributing Vision Transformer computations across multiple non-colluding cloud servers, while keeping the global attention and final embedding on a trusted edge. It repurposes ViT window-based attention into a partitioned offloading framework and demonstrates PED-SAM, an adaptation of SAM, achieving near-baseline segmentation with strong privacy guarantees. Implemented with PyTorch, Docker, and gRPC, the approach shows notable latency reductions for constrained edges and robust resistance to reconstruction and object-detection attacks under various partitioning schemes. Limitations include fixed partitioning and potential video-frame risks, with future work targeting adaptive partitioning and temporal privacy enhancements.
Abstract
Nowadays, visual intelligence tools have become ubiquitous, offering all kinds of convenience and possibilities. However, these tools have high computational requirements that exceed the capabilities of resource-constrained mobile and wearable devices. While offloading visual data to the cloud is a common solution, it introduces significant privacy vulnerabilities during transmission and server-side computation. To address this, we propose a novel distributed, hierarchical offloading framework for Vision Transformers (ViTs) that addresses these privacy challenges by design. Our approach uses a local trusted edge device, such as a mobile phone or an Nvidia Jetson, as the edge orchestrator. This orchestrator partitions the user's visual data into smaller portions and distributes them across multiple independent cloud servers. By design, no single external server possesses the complete image, preventing comprehensive data reconstruction. The final data merging and aggregation computation occurs exclusively on the user's trusted edge device. We apply our framework to the Segment Anything Model (SAM) as a practical case study, which demonstrates that our method substantially enhances content privacy over traditional cloud-based approaches. Evaluations show our framework maintains near-baseline segmentation performance while substantially reducing the risk of content reconstruction and user data exposure. Our framework provides a scalable, privacy-preserving solution for vision tasks in the edge-cloud continuum.
