🔍 At a Glance
The Problem
Offloading visual data (like from AR glasses) to the cloud introduces massive privacy risks. If a server is compromised, your full egocentric view—bedroom, screens, faces—is exposed.
Our Solution
We propose a distributed, hierarchical framework. An edge orchestrator (like a phone) partitions the image into independent "windows". Each window is processed by a different non-colluding cloud server. Result: With non-colluding servers, the full image stays on the trusted edge and PED-SAM retains near-baseline segmentation accuracy.
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. This limits what any one external server can infer about the full image.
How It Works
1. Partitioning
The trusted edge device splits the image into non-overlapping w × w windows.
2. Distributed Attention
Windows are sent to separate servers. We leverage ViT Window Attention to process local features without needing the full image.
3. Edge Aggregation
Embeddings return to the edge. The device runs Global Attention layers to merge context and finalize the prediction.
Adapting SAM (Segment Anything)
We applied our framework to the Segment Anything Model (SAM). The original image encoder consists of 32 sequential layers.
- Standard SAM: Interleaves global and window attention layers throughout the model.
- Our PED-SAM: We reorder the layers. The first 28 layers (Window Attention) are offloaded to the cloud.
- Edge Execution: The final 4 layers (Global Attention) run locally on the Edge device.
Results
Privacy Protection
In the paper’s single-window experiments, ViTMAE and Adobe Firefly recovered less of the original scene from 5 × 5 windows than from larger 2 × 2 windows. The threat model assumes a trusted edge device and cloud servers that follow the protocol and do not collude.
Original image
2 × 2 partition
5 × 5 partition
Utility (Accuracy)
On COCO val2017, PED-SAM retains near-baseline segmentation mIoU with the original ViT-Huge weights.
| Model | mIoU (ViT-Huge) |
|---|---|
| Original SAM (Baseline) | 0.584 |
| Gaussian Blur (Obfuscation) | 0.209 |
| Ours (Privacy-Enhanced) | 0.563 |
Latency & Performance
PED-SAM image encoder latency on Jetson Orin Nano (ViT-Base). The timings exclude the mask predictor.
- Local CPU 17,700 ms
- Offload to 3 GPUs 9,624 ms (-46%)
BibTeX
If you use this framework in your research, please cite:
@inproceedings{ding2025distributed,
title={A Distributed Framework for Privacy-Enhanced Vision Transformers on the Edge},
author={Ding, Zihao and Zhu, Mufeng and Tang, Zhongze and Wei, Sheng and Liu, Yao},
booktitle={Proceedings of the Tenth ACM/IEEE Symposium on Edge Computing},
series={SEC '25},
year={2025},
publisher={Association for Computing Machinery},
articleno={8},
numpages={16},
doi={10.1145/3769102.3772714},
url={https://doi.org/10.1145/3769102.3772714}
}
Preprint