Instructions to use dixiyao/Patch-Shuffling-Transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dixiyao/Patch-Shuffling-Transformers with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dixiyao/Patch-Shuffling-Transformers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,6 +9,30 @@ tags:
|
|
| 9 |
- transformers
|
| 10 |
---
|
| 11 |
|
| 12 |
-
**
|
| 13 |
|
| 14 |
-
Paper: https://ieeexplore.ieee.org/abstract/document/10027647
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- transformers
|
| 10 |
---
|
| 11 |
|
| 12 |
+
**Privacy-Preserving Split Learning via Patch Shuffling over Transformers**
|
| 13 |
|
| 14 |
+
Paper: https://ieeexplore.ieee.org/abstract/document/10027647
|
| 15 |
+
|
| 16 |
+
## API of Patch Shuffling
|
| 17 |
+
### PatchShuffle
|
| 18 |
+
function: ```utilsenc.PatchShuffle(x)->y```
|
| 19 |
+
x: input feature; y: outputfeature
|
| 20 |
+
### BatchShuffle
|
| 21 |
+
function: ```utilsenc.BatchPatchPartialShuffle(x,k1)->y```
|
| 22 |
+
x: input feature; k: proportions of patches not to be shuffle; y: outputfeature
|
| 23 |
+
### SpectralShuffle
|
| 24 |
+
The function is the same as PatchShuffle or BatchShuffle, but first turn models into spectral domain. Please see the example as reference.
|
| 25 |
+
|
| 26 |
+
**Citation**
|
| 27 |
+
Bibtex
|
| 28 |
+
```
|
| 29 |
+
@INPROCEEDINGS{patchshuffling,
|
| 30 |
+
author={Yao, Dixi and Xiang, Liyao and Xu, Hengyuan and Ye, Hangyu and Chen, Yingqi},
|
| 31 |
+
booktitle={2022 IEEE International Conference on Data Mining (ICDM)},
|
| 32 |
+
title={Privacy-Preserving Split Learning via Patch Shuffling over Transformers},
|
| 33 |
+
year={2022},
|
| 34 |
+
pages={638-647},
|
| 35 |
+
doi={10.1109/ICDM54844.2022.00074}
|
| 36 |
+
}
|
| 37 |
+
```
|
| 38 |
+
D. Yao, L. Xiang, H. Xu, H. Ye and Y. Chen, "Privacy-Preserving Split Learning via Patch Shuffling over Transformers," 2022 IEEE International Conference on Data Mining (ICDM), Orlando, FL, USA, 2022, pp. 638-647, doi: 10.1109/ICDM54844.2022.00074.
|