Unitention: Attend a sample to the dataset
Abstract
We propose an end-to-end trainable module termed Unitention, an abbreviation for universal-individual cross-attention, to improve deep features of a given neural network by attending the feature of a data sample to those of the entire dataset. This innovation is motivated by two key observations: (i) traditional visual encoding methods, such as Bag of visual Words, encode an image by using a universal dataset-wide codebook, while (ii) deep models typically process every individual data sample in isolation, without explicitly using any universal information. Our Unitention can bridge this gap by attentively merging universal and individual features, thus complementing and enhancing the given deep model. We evaluate its efficacy on various classification benchmarks and model architectures. On ImageNet, Unitention improves the accuracy of different ConvNets and Transformers. In particular, some \knn classifiers with Unitention can even outperform baseline classifiers. Improvements in fine-grained tasks are more substantial (up to 2.3%). Further validations on other modalities also confirm Unitention's versatility. In summary, Unitention reveals the potential of using dataset-level information to enhance deep features. It opens up a new backbone-independent direction for improving neural networks, orthogonal to the mainstream research on backbone architecture design.
BibTeX
@misc{tian2024unitention,
author = {Keyu Tian and Lu Chi and Yi Jiang and Chen Lin and Yansong Tang and Song Bai and Zehuan Yuan and Hengshuang Zhao},
title = {{Unitention: Attend a sample to the dataset}},
year = {2024},
url = {https://openreview.net/forum?id=HBFzStNrS9},
howpublished = {OpenReview},
note = {Submitted to ICLR 2024},
}Ask Althea to put this paper to the test.
Loading related content...