STAG: Structural Test-time Alignment of Gradients for Online Adaptation

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Shin, Juhyeon, Oh, Yujin, Lee, Jonghyun, Lee, Saehyung, Park, Minjun, Lee, Dongjun, Hwang, Uiwon, Yoon, Sungroh
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915779296886784
author Shin, Juhyeon
Oh, Yujin
Lee, Jonghyun
Lee, Saehyung
Park, Minjun
Lee, Dongjun
Hwang, Uiwon
Yoon, Sungroh
author_facet Shin, Juhyeon
Oh, Yujin
Lee, Jonghyun
Lee, Saehyung
Park, Minjun
Lee, Dongjun
Hwang, Uiwon
Yoon, Sungroh
contents Test-Time Adaptation (TTA) adapts pre-trained models using only unlabeled test streams, requiring real-time inference and update without access to source data. We propose StructuralTest-time Alignment of Gradients (STAG), a lightweight plug-in enhancer that exploits an always-available structural signal: the classifier's intrinsic geometry. STAG derives class-wise structural anchors from classifier weights via self-structural entropy, and during adaptation analytically computes the predicted-class entropy gradient from forward-pass quantities, aligning it to the corresponding anchor with a cosine-similarity loss. This closed-form design incurs near-zero memory and latency overhead and requires no additional backpropagation beyond the underlying baseline. Across corrupted image classification and continual semantic segmentation, STAG provides broadly applicable performance gains for strong TTA baselines on both CNN and Transformer architectures regardless of the underlying normalization scheme, with particularly large gains under challenging online regimes such as imbalanced label shifts, single-sample adaptation, mixed corruption streams and long-horizon continual TTA.
format Preprint
id arxiv_https___arxiv_org_abs_2402_09004
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle STAG: Structural Test-time Alignment of Gradients for Online Adaptation
Shin, Juhyeon
Oh, Yujin
Lee, Jonghyun
Lee, Saehyung
Park, Minjun
Lee, Dongjun
Hwang, Uiwon
Yoon, Sungroh
Computer Vision and Pattern Recognition
Machine Learning
Test-Time Adaptation (TTA) adapts pre-trained models using only unlabeled test streams, requiring real-time inference and update without access to source data. We propose StructuralTest-time Alignment of Gradients (STAG), a lightweight plug-in enhancer that exploits an always-available structural signal: the classifier's intrinsic geometry. STAG derives class-wise structural anchors from classifier weights via self-structural entropy, and during adaptation analytically computes the predicted-class entropy gradient from forward-pass quantities, aligning it to the corresponding anchor with a cosine-similarity loss. This closed-form design incurs near-zero memory and latency overhead and requires no additional backpropagation beyond the underlying baseline. Across corrupted image classification and continual semantic segmentation, STAG provides broadly applicable performance gains for strong TTA baselines on both CNN and Transformer architectures regardless of the underlying normalization scheme, with particularly large gains under challenging online regimes such as imbalanced label shifts, single-sample adaptation, mixed corruption streams and long-horizon continual TTA.
title STAG: Structural Test-time Alignment of Gradients for Online Adaptation
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2402.09004