TransCL: Transformer Makes Strong and Flexible Compressive Learning

Chong Mou, Jian Zhang
7/25/2022
40 citations
cs.CV
transformer-attention

Official code: MC-E/TransCL (37 stars, Python, last commit 2022-12-06).

Abstract

Compressive learning (CL) is an emerging framework that integrates signal acquisition via compressed sensing (CS) and machine learning for inference tasks directly on a small number of measurements. It can be a promising alternative to classical image-domain methods and enjoys great advantages in memory saving and computational efficiency.

Show full abstract

However, previous attempts on CL are not only limited to a fixed CS ratio, which lacks flexibility, but also limited to MNIST/CIFAR-like datasets and do not scale to complex real-world high-resolution (HR) data or vision tasks. In this paper, a novel transformer-based compressive learning framework on large-scale images with arbitrary CS ratios, dubbed TransCL, is proposed. Specifically, TransCL first utilizes the strategy of learnable block-based compressed sensing and proposes a flexible linear projection strategy to enable CL to be performed on large-scale images in an efficient block-by-block manner with arbitrary CS ratios. Then, regarding CS measurements from all blocks as a sequence, a pure transformer-based backbone is deployed to perform vision tasks with various task-oriented heads. Our sufficient analysis presents that TransCL exhibits strong resistance to interference and robust adaptability to arbitrary CS ratios. Extensive experiments for complex HR data demonstrate that the proposed TransCL can achieve state-of-the-art performance in image classification and semantic segmentation tasks. In particular, TransCL with a CS ratio of $10\%$ can obtain almost the same performance as when operating directly on the original data and can still obtain satisfying performance even with an extremely low CS ratio of $1\%$. The source codes of our proposed TransCL is available at \url{https://github.com/MC-E/TransCL/}.

View on arXivView PDF

Code Implementations(1)

MC-E/TransCLOfficial100%

Accepted by TPAMI 2022

373PythonJul 22, 20223 years ago

Similar Papers

Cite this paper

@article{mou2022transcl,
  title  = {TransCL: Transformer Makes Strong and Flexible Compressive Learning},
  author = {Chong Mou and Jian Zhang},
  year   = {2022},
  eprint = {2207.11972},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.11972v1}
}

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/2207.11972.svg)](https://codeofpaper.com/paper/2207.11972)

Discussion