ConcatPlexer : Additional Dim1 Batching for Faster ViTs

Donghoon Han, Seunghyeon Seo, Donghyeon Jeon, Jiho Jang, Chaerin Kong, Nojun Kwak · DOI

Abstract

Efficiently scaling Vision Transformers (ViTs) is hindered by the quadratic computational cost of self-attention. We present ConcatPlexer, a method for "multiplexed image classification" that compresses and concatenates multiple images into a single token sequence. This allows a Transformer backbone to process multiple inputs in a single forward pass. By replacing overlapping representations with a concatenation-based approach and utilizing CLIP-based distillation, ConcatPlexer achieves a 23.5% reduction in GFLOPs compared to a standard ViT-B/16, offering a high-throughput alternative for resource-constrained environments.

Introduction

While Vision Transformers (ViTs) have set new benchmarks in computer vision, their deployment is often limited by high computational demands. Traditional batching increases memory footprint, while sequence-level optimizations often sacrifice accuracy. Inspired by Data Multiplexing (DataMUX) in NLP, which processes multiple text sequences simultaneously, we explore its application to the visual domain. However, unlike text, visual data is highly redundant, and simple superposition of image features leads to significant disentanglement issues.

Methodology

ConcatPlexer addresses the limitations of standard multiplexing by shifting from feature superposition to sequence concatenation.

Overall architecture comparison between baseline multiplexing (a) and the proposed ConcatPlexer (b).

Transformer Encoder (TrE) Patchifier

To reduce redundancy before merging, ConcatPlexer employs a TrE Patchifier. Instead of a simple linear projection, a stacked transformer encoder layer extracts high-level features from individual image patches. This preliminary processing ensures that the tokens being merged carry dense semantic information.

The C-Multiplexer

The core of the architecture is the C-Multiplexer, which manages the transition from individual image sequences to a single multiplexed sequence.

Detailed view of the multiplexer mechanisms: (a) standard superposition-based multiplexer vs. (b) the proposed concatenation-based C-Multiplexer.

The C-Multiplexer performs two primary operations:

  1. Token Reduction: A 1D convolution is applied to each image's token sequence to reduce its length ($L$).
  2. Concatenation: The shortened sequences from $N$ images are concatenated along the sequence dimension (dim1). This allows the backbone to process $N$ images as a single extended sequence, effectively increasing throughput without a proportional increase in GPU memory.

CLIP Distillation

To mitigate information loss during compression, the model is trained using CLIP distillation. The output representations of the ConcatPlexer are forced to align with features from a pre-trained CLIP vision encoder, providing a strong supervisory signal that preserves semantic integrity.

Experimental Results

The model was evaluated on ImageNet1K, CIFAR100, and Flickr30K.

Efficiency and Throughput

ConcatPlexer(3), which multiplexes three images, reduces computational complexity to 13.45 GFLOPs—a 23.5% improvement over the ViT-B/16 baseline (17.58 GFLOPs). This reduction translates directly to higher images-per-second throughput on standard hardware.

Accuracy Trade-offs

On ImageNet1K, ConcatPlexer(3) achieved 69.5% accuracy compared to the 77.9% baseline. While a performance gap exists, the gap narrows on transfer learning tasks like CIFAR100 (83.4% vs 87.1%). The "Concat Point"—the depth at which images are merged—was found to be a critical hyperparameter, with deeper independent processing yielding better results.

Conclusion

ConcatPlexer demonstrates that "dim1 batching" via concatenation is a viable path for accelerating ViTs. By leveraging visual redundancy and smart token reduction, the framework provides a tunable trade-off between accuracy and efficiency. Future work will focus on more sophisticated token selection methods and extending multiplexing to multimodal contexts.

Summary updated

BibTeX
@misc{han2023concatplexer,
  author = {Donghoon Han and Seunghyeon Seo and Donghyeon Jeon and Jiho Jang and Chaerin Kong and Nojun Kwak},
  title = {{ConcatPlexer : Additional Dim1 Batching for Faster ViTs}},
  year = {2023},
  eprint = {2308.11199},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.11199},
}
Figure