BatchFormer: Learning to Explore Sample Relationships for Robust Representation Learning
Not on the map. Why?
Abstract (arXiv)
Despite the success of deep neural networks, there are still many challenges in deep representation learning due to the data scarcity issues such as data imbalance, unseen distribution, and domain shift. To address the above-mentioned issues, a variety of methods have been devised to explore the sample relationships in a vanilla way (i.e., from the perspectives of either the input or the loss function), failing to explore the internal structure of deep neural networks for learning with sample relationships. Inspired by this, we propose to enable deep neural networks themselves with the ability to learn the sample relationships from each mini-batch. Specifically, we introduce a batch transformer module or BatchFormer, which is then applied into the batch dimension of each mini-batch to implicitly explore sample relationships during training. By doing this, the proposed method enables the collaboration of different samples, e.g., the head-class samples can also contribute to the learning of the tail classes for long-tailed recognition. Furthermore, to mitigate the gap between training and testing, we share the classifier between with or without the BatchFormer during training, which can thus be removed during testing. We perform extensive experiments on over ten datasets and the proposed method achieves significant improvements on different data scarcity applications without any bells and whistles, including the tasks of long-tailed recognition, compositional zero-shot learning, domain generalization, and contrastive learning. Code will be made publicly available at https://github.com/zhihou7/BatchFormer.
Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). Builds on 65 of its 89 references that are in the map. First posted on arXiv 3 Mar 2022.
Builds on
65 of 89 references.
References · 65
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
38 more
- 2019Invariant Risk Minimizationcited by 1,832
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
- 2018Learning deep representations by mutual information estimation and maximizationcited by 1,265
- 2019Class-Balanced Loss Based on Effective Number of Samplescited by 1,239
- 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,194
- 2017Deep Hashing Network for Unsupervised Domain Adaptationcited by 1,181
- 2017Deeper, Broader and Artier Domain Generalizationcited by 983
- 2019Decoupling Representation and Classifier for Long-Tailed Recognitioncited by 806
- 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 762
- 2021Domain Generalization: A Surveycited by 760
- 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 737
- 2019Large-Scale Long-Tailed Recognition in an Open Worldcited by 704
- 2018Recognition in Terra Incognitacited by 655
- 2020Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentationcited by 595
- 2021Domain Generalization with MixStylecited by 563
- 2017Zero-Shot Learning -- A Comprehensive Evaluation of the Good, the Bad and the Uglycited by 536
- 2017VisDA: The Visual Domain Adaptation Challengecited by 432
- 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 431
- 2020Self-Challenging Improves Cross-Domain Generalizationcited by 426
- 2019BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognitioncited by 403
- 2020Balanced Meta-Softmax for Long-Tailed Visual Recognitioncited by 397
- 2019Bridging Theory and Algorithm for Domain Adaptationcited by 332
- 2020Learning to Generate Novel Domains for Domain Generalizationcited by 296
- 2020Equalization Loss for Long-Tailed Object Recognitioncited by 285
- 2020Long-tailed Recognition by Routing Diverse Distribution-Aware Expertscited by 270
- 2018Generalizing Across Domains via Cross-Gradient Trainingcited by 268
- 2018What is the Effect of Importance Weighting in Deep Learning?cited by 250
- 2019Cross Attention Network for Few-shot Classificationcited by 218
- 2021Parametric Contrastive Learningcited by 217
- 2021Improving Calibration for Long-Tailed Recognitioncited by 212
- 2018Learning to Propagate Labels: Transductive Propagation Network for Few-shot Learningcited by 208
- 2020Learning From Multiple Experts: Self-paced Knowledge Distillation for Long-tailed Classificationcited by 175
- 2020Rethinking Class-Balanced Methods for Long-Tailed Visual Recognition from a Domain Adaptation Perspectivecited by 143
- 2020Efficient Domain Generalization via Common-Specific Low-Rank Decompositioncited by 134
- 2021Contrastive Learning based Hybrid Networks for Long-Tailed Image Classificationcited by 130
- 2020Visual Compositional Learning for Human-Object Interaction Detectioncited by 129
- 2020Learning to Balance Specificity and Invariance for In and Out of Domain Generalizationcited by 128
- 2019Task-Driven Modular Networks for Zero-Shot Compositional Learningcited by 121
50 most cited of 65 All 65 (JSON)
Built on by
Citing papers per year: 2022: 4; 2023: 13; 2024: 10; 2025: 1; 2026: 1.
29 papers.
Sort:
By area:
- 2024Probabilistic Contrastive Learning for Long-Tailed Visual Recognitioncited by 42
- 2022Learning Imbalanced Data with Vision Transformerscited by 34
- 2023Long-Tailed Visual Recognition via Self-Heterogeneous Integration with Knowledge Excavationcited by 22
- 2024SFC: Shared Feature Calibration in Weakly Supervised Semantic Segmentationcited by 19
- 2023Document Flattening: Beyond Concatenating Context for Document-Level Neural Machine Translationcited by 15
- 2023NCL++: Nested Collaborative Learning for Long-Tailed Visual Recognitioncited by 14
- 2024CrossGLG: LLM Guides One-shot Skeleton-based 3D Action Recognition in a Cross-level Mannercited by 11
- 2023Class-level Structural Relation Modelling and Smoothing for Visual Representation Learningcited by 9
- 2023Domain Generalization Guided by Gradient Signal to Noise Ratio of Parameterscited by 9
- 2024TimeFormer: Capturing Temporal Relationships of Deformable 3D Gaussians for Robust Reconstructioncited by 9
- 2023Multimodal Transformers for Wireless Communications: A Case Study in Beam Predictioncited by 8
- 2024Sentiment-oriented Transformer-based Variational Autoencoder Network for Live Video Commentingcited by 7
17 more
- 2023Uncertainty-Aware Source-Free Adaptive Image Super-Resolution with Wavelet Augmentation Transformercited by 6
- 2024Decoupled Contrastive Learning for Long-Tailed Recognitioncited by 6
- 2024Learning Generalizable Models via Disentangling Spurious and Enhancing Potential Correlationscited by 5
- 2023LatentDR: Improving Model Generalization Through Sample-Aware Latent Degradation and Restorationcited by 4
- 2022BatchFormerV2: Exploring Sample Relationships for Dense Representation Learningcited by 3
- 2023PrototypeFormer: Learning to Explore Prototype Relationships for Few-shot Image Classificationcited by 3
- 2022Rethinking Batch Sample Relationships for Data Representation: A Batch-Graph Transformer based Approachcited by 2
- 2023Geometric Data Augmentations to Mitigate Distribution Shifts in Pollen Classification from Microscopic Imagescited by 2
- 2024Beyond Isolated Frames: Enhancing Sensor-Based Human Activity Recognition through Intra- and Inter-Frame Attentioncited by 2
- 2025StreamSTGS: Streaming Spatial and Temporal Gaussian Grids for Real-Time Free-Viewpoint Videocited by 2
- 2023NP-Match: Towards a New Probabilistic Model for Semi-Supervised Learningcited by 1
- 2023I2SRM: Intra- and Inter-Sample Relationship Modeling for Multimodal Information Extractioncited by 1
- 2024Generalizable autoregressive modeling of time series through functional narrativescited by 1
- 2022Generalization Beyond Feature Alignment: Concept Activation-Guided Contrastive Learningcited by 0
- 2023Heterogenous Memory Augmented Neural Networkscited by 0
- 2024Dual Relation Mining Network for Zero-Shot Learningcited by 0
- 2026Towards Automated Differential Diagnosis of Skin Diseases Using Deep Learning and Imbalance-Aware Strategiescited by 0
- 2026Towards Automated Differential Diagnosis of Skin Diseases Using Deep Learning and Imbalance-Aware Strategies1 Jan 2026
- 2025StreamSTGS: Streaming Spatial and Temporal Gaussian Grids for Real-Time Free-Viewpoint Video8 Nov 2025
- 2024TimeFormer: Capturing Temporal Relationships of Deformable 3D Gaussians for Robust Reconstruction18 Nov 2024
- 2024Generalizable autoregressive modeling of time series through functional narratives10 Oct 2024
- 2024Beyond Isolated Frames: Enhancing Sensor-Based Human Activity Recognition through Intra- and Inter-Frame Attention21 May 2024
- 2024Dual Relation Mining Network for Zero-Shot Learning6 May 2024
- 2024Sentiment-oriented Transformer-based Variational Autoencoder Network for Live Video Commenting19 Apr 2024
- 2024CrossGLG: LLM Guides One-shot Skeleton-based 3D Action Recognition in a Cross-level Manner15 Mar 2024
- 2024Probabilistic Contrastive Learning for Long-Tailed Visual Recognition11 Mar 2024
- 2024Decoupled Contrastive Learning for Long-Tailed Recognition10 Mar 2024
- 2024SFC: Shared Feature Calibration in Weakly Supervised Semantic Segmentation22 Jan 2024
- 2024Learning Generalizable Models via Disentangling Spurious and Enhancing Potential Correlations11 Jan 2024
17 more
- 2023Geometric Data Augmentations to Mitigate Distribution Shifts in Pollen Classification from Microscopic Images18 Nov 2023
- 2023Heterogenous Memory Augmented Neural Networks17 Oct 2023
- 2023Domain Generalization Guided by Gradient Signal to Noise Ratio of Parameters11 Oct 2023
- 2023I2SRM: Intra- and Inter-Sample Relationship Modeling for Multimodal Information Extraction10 Oct 2023
- 2023PrototypeFormer: Learning to Explore Prototype Relationships for Few-shot Image Classification5 Oct 2023
- 2023Multimodal Transformers for Wireless Communications: A Case Study in Beam Prediction21 Sep 2023
- 2023LatentDR: Improving Model Generalization Through Sample-Aware Latent Degradation and Restoration28 Aug 2023
- 2023Class-level Structural Relation Modelling and Smoothing for Visual Representation Learning8 Aug 2023
- 2023NCL++: Nested Collaborative Learning for Long-Tailed Visual Recognition29 Jun 2023
- 2023Long-Tailed Visual Recognition via Self-Heterogeneous Integration with Knowledge Excavation3 Apr 2023
- 2023Uncertainty-Aware Source-Free Adaptive Image Super-Resolution with Wavelet Augmentation Transformer31 Mar 2023
- 2023Document Flattening: Beyond Concatenating Context for Document-Level Neural Machine Translation16 Feb 2023
- 2023NP-Match: Towards a New Probabilistic Model for Semi-Supervised Learning31 Jan 2023
- 2022Learning Imbalanced Data with Vision Transformers5 Dec 2022
- 2022Rethinking Batch Sample Relationships for Data Representation: A Batch-Graph Transformer based Approach19 Nov 2022
- 2022Generalization Beyond Feature Alignment: Concept Activation-Guided Contrastive Learning13 Nov 2022
- 2022BatchFormerV2: Exploring Sample Relationships for Dense Representation Learning4 Apr 2022
- 2024Probabilistic Contrastive Learning for Long-Tailed Visual Recognitioncited by 42
- 2022Learning Imbalanced Data with Vision Transformerscited by 34
- 2024SFC: Shared Feature Calibration in Weakly Supervised Semantic Segmentationcited by 19
- 2023Document Flattening: Beyond Concatenating Context for Document-Level Neural Machine Translationcited by 15
- 2023NCL++: Nested Collaborative Learning for Long-Tailed Visual Recognitioncited by 14
- 2024CrossGLG: LLM Guides One-shot Skeleton-based 3D Action Recognition in a Cross-level Mannercited by 11
- 2023Class-level Structural Relation Modelling and Smoothing for Visual Representation Learningcited by 9
- 2023Domain Generalization Guided by Gradient Signal to Noise Ratio of Parameterscited by 9
- 2024TimeFormer: Capturing Temporal Relationships of Deformable 3D Gaussians for Robust Reconstructioncited by 9
- 2023Multimodal Transformers for Wireless Communications: A Case Study in Beam Predictioncited by 8
- 2024Sentiment-oriented Transformer-based Variational Autoencoder Network for Live Video Commentingcited by 7
- 2023Uncertainty-Aware Source-Free Adaptive Image Super-Resolution with Wavelet Augmentation Transformercited by 6
12 most cited of 28 All 28 (JSON)
- 2026Towards Automated Differential Diagnosis of Skin Diseases Using Deep Learning and Imbalance-Aware Strategies1 Jan 2026
- 2025StreamSTGS: Streaming Spatial and Temporal Gaussian Grids for Real-Time Free-Viewpoint Video8 Nov 2025
- 2024TimeFormer: Capturing Temporal Relationships of Deformable 3D Gaussians for Robust Reconstruction18 Nov 2024
- 2024Generalizable autoregressive modeling of time series through functional narratives10 Oct 2024
- 2024Beyond Isolated Frames: Enhancing Sensor-Based Human Activity Recognition through Intra- and Inter-Frame Attention21 May 2024
- 2024Dual Relation Mining Network for Zero-Shot Learning6 May 2024
- 2024Sentiment-oriented Transformer-based Variational Autoencoder Network for Live Video Commenting19 Apr 2024
- 2024CrossGLG: LLM Guides One-shot Skeleton-based 3D Action Recognition in a Cross-level Manner15 Mar 2024
- 2024Probabilistic Contrastive Learning for Long-Tailed Visual Recognition11 Mar 2024
- 2024Decoupled Contrastive Learning for Long-Tailed Recognition10 Mar 2024
- 2024SFC: Shared Feature Calibration in Weakly Supervised Semantic Segmentation22 Jan 2024
- 2024Learning Generalizable Models via Disentangling Spurious and Enhancing Potential Correlations11 Jan 2024
12 newest of 28 All 28 (JSON)