Permutation Equivariance of Transformers and its Applications

Hengyuan Xu, Liyao Xiang, Hang Ye, Dixi Yao, Pengzhi Chu +1 more
2/14/2026

No official code found. Best implementation: Doby-Xu/ST (19 stars, last commit 2024-11-12).

Abstract

Revolutionizing the field of deep learning, Transformer-based models have achieved remarkable performance in many tasks. Recent research has recognized these models are robust to shuffling but are limited to inter-token permutation in the forward propagation. In this work, we propose our definition of permutation equivariance, a broader concept covering both inter- and intra- token per-mutation in the forward and backward propagation of neural networks. We rigorously proved that such permutation equivariance property can be satisfied on most vanilla Transformer-based models with almost no adaptation. We examine the property over a range of state-of-the-art models including ViT, Bert, GPT, and others, with experimental validations. Further, as a proof-of-concept, we explore how real-world applications including privacy-enhancing split learning, and model authorization, could exploit the permutation equivariance property, which implicates wider, intriguing application scenarios. The code is available at https://github.com/Doby-Xu/ST

View on arXivView PDF

Code Implementations(1)

Doby-Xu/STCommunity64%

Official Code for CVPR 2024 paper: Permutation Equivariance of Transformers and Its Applications.

193PythonNov 2, 20231 years ago

Similar Papers

Cite this paper

@article{xu2026permutation,
  title  = {Permutation Equivariance of Transformers and its Applications},
  author = {Hengyuan Xu and Liyao Xiang and Hang Ye and Dixi Yao and Pengzhi Chu and Baochun Li},
  year   = {2026},
  eprint = {2304.07735},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2304.07735},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.07735.svg)](https://codeofpaper.com/paper/2304.07735)

Discussion