paper-with-me

Papers

Token-Label Alignment for Vision Transformers

2022-10-12 · ICCV 2023 1 · Han Xiao, Wenzhao Zheng, Zheng Zhu, Jie zhou, Jiwen Lu

Data mixing strategies (e.g., CutMix) have shown the ability to greatly improve the performance of convolutional neural networks (CNNs). They mix two images as inputs for training and assign them with a mixed label with the same ratio. While they are shown effective for vision transformers (ViTs), we identify a token fluctuation phenomenon that has suppressed the potential of data mixing strategies. We empirically observe that the contributions of input tokens fluctuate as forward propagating, which might induce a different mixing ratio in the output tokens. The training target computed by the original data mixing strategy can thus be inaccurate, resulting in less effective training. To address this, we propose a token-label alignment (TL-Align) method to trace the correspondence between transformed tokens and the original tokens to maintain a label for each token. We reuse the computed attention at each layer for efficient token-label alignment, introducing only negligible additional training costs. Extensive experiments demonstrate that our method improves the performance of ViTs on image classification, semantic segmentation, objective detection, and transfer learning tasks. Code is available at: https://github.com/Euphoria16/TL-Align.

📄 PDF Abstract BibTeX arXiv:2210.06455

Code (1)

euphoria16/tl-align 공식 구현 pytorch

Tasks

image-classificationImage ClassificationSemantic SegmentationTransfer Learning

Similar Papers 제목 키워드 기반

Multimodal Token Fusion for Vision Transformers

2022-04-19 · journal 2022 7 · Yikai Wang, Xinghao Chen, Lele Cao, Wenbing Huang 외

Many adaptations of transformers have emerged to address the single-modal vision tasks, where self-attention modules are stacked to handle input sources like images. Intuitively, feeding multiple modalities of data to vi…

3D Object DetectionImage-to-Image Translationobject-detectionObject Detection+1

Residual Connections and the Causal Shift: Uncovering a Structural Misalignment in Transformers

2026-02-16 · Jonathan Lys, Vincent Gripon, Bastien Pasdeloup, Axel Marmoret 외 arxiv

Large Language Models (LLMs) are trained with next-token prediction, implemented in autoregressive Transformers via causal masking for parallelism. This creates a subtle misalignment: residual connections tie activations…

All Tokens Matter: Token Labeling for Training Better Vision Transformers

2021-04-22 · NeurIPS 2021 12 · Zihang Jiang, Qibin Hou, Li Yuan, Daquan Zhou 외

In this paper, we present token labeling -- a new training objective for training high-performance vision transformers (ViTs). Different from the standard training objective of ViTs that computes the classification loss …

AllEfficient ViTsGeneral Classificationimage-classification+2

Zero-shot Sequence Labeling for Transformer-based Sentence Classifiers

2021-03-26 · ACL (RepL4NLP) 2021 8 · Kamil Bujel, Helen Yannakoudakis, Marek Rei

We investigate how sentence-level transformers can be modified into effective sequence labelers at the token level without any direct supervision. Existing approaches to zero-shot sequence labeling do not perform well wh…

Sentence

Cross-domain Detection Transformer based on Spatial-aware and Semantic-aware Token Alignment

2022-06-01 · Jinhong Deng, Xiaoyue Zhang, Wen Li, Lixin Duan

Detection transformers like DETR have recently shown promising performance on many object detection tasks, but the generalization ability of those methods is still quite challenging for cross-domain adaptation scenarios.…

Domain Adaptationobject-detectionObject Detection