paper-with-me

Papers

Approximate Nullspace Augmented Finetuning for Robust Vision Transformers

2024-03-15 · Haoyang Liu, Aditya Singh, Yijiang Li, Haohan Wang

Enhancing the robustness of deep learning models, particularly in the realm of vision transformers (ViTs), is crucial for their real-world deployment. In this work, we provide a finetuning approach to enhance the robustness of vision transformers inspired by the concept of nullspace from linear algebra. Our investigation centers on whether a vision transformer can exhibit resilience to input variations akin to the nullspace property in linear mappings, which would imply that perturbations sampled from this nullspace do not influence the model's output when added to the input. We start from the observation that many existing ViTs satisfy this property because their patch embedding layer has a non-trivial nullspace. Then, we extend the notion of nullspace to nonlinear settings and demonstrate that it is possible to synthesize approximate nullspace elements for ViT's encoder blocks through optimization. Finally, we propose a finetuning strategy for ViTs wherein we augment the training data with synthesized approximate nullspace noise. We find that our finetuning approach significantly improves the models' robustness to both adversarial and natural image perturbations.\footnote{Code is available at: https://github.com/Liu-Hy/ns-vit.

📄 PDF Abstract BibTeX arXiv:2403.10476

Code (1)

liu-hy/ns-vit 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Virtual Data Augmentation Virtual Data Augmentation, or VDA, is a framework for robustly fine-tuning pre-trained language model. Based on the original token embeddings, a multinomial mixture for…

Similar Papers 제목 키워드 기반

SiNGER: A Clearer Voice Distills Vision Transformers Further

2025-09-25 · Geunhyeok Yu, Sunjae Jeong, Yoonyoung Choi, Jaeseung Kim 외 arxiv

Vision Transformers are widely adopted as the backbone of vision foundation models, but they are known to produce high-norm artifacts that degrade representation quality. When knowledge distillation transfers these featu…

Knowledge Distillation

NullSpaceNet: Nullspace Convoluional Neural Network with Differentiable Loss Function

2020-04-25 · Mohamed H. Abdelpakey, Mohamed S. Shehata

We propose NullSpaceNet, a novel network that maps from the pixel level input to a joint-nullspace (as opposed to the traditional feature space), where the newly learned joint-nullspace features have clearer interpretati…

SparseMAE: Sparse Training Meets Masked Autoencoders

2023-01-01 · ICCV 2023 1 · Aojun Zhou, Yang Li, Zipeng Qin, Jianbo Liu 외

Masked Autoencoders (MAE) and its variants have proven to be effective for pretraining large-scale Vision Transformers (ViTs). However, small-scale models do not benefit from the pretraining mechanisms due to limited…

Interpretation of High-Dimensional Linear Regression: Effects of Nullspace and Regularization Demonstrated on Battery Data

2023-09-01 · Joachim Schaeffer, Eric Lenz, William C. Chueh, Martin Z. Bazant 외

High-dimensional linear regression is important in many scientific fields. This article considers discrete measured data of underlying smooth latent processes, as is often obtained from chemical or biological systems. In…

regression

Pretrained Transformers as Universal Computation Engines

2021-03-09 · Kevin Lu, Aditya Grover, Pieter Abbeel, Igor Mordatch

We investigate the capability of a transformer pretrained on natural language to generalize to other modalities with minimal finetuning -- in particular, without finetuning of the self-attention and feedforward layers of…