Home Technology peripherals AI TRIBE achieves domain adaptation robustness and reaches SOTA's AAAII 2024 in multiple real-life scenarios.

TRIBE achieves domain adaptation robustness and reaches SOTA's AAAII 2024 in multiple real-life scenarios.

Jan 01, 2024 am 10:38 AM
project

The purpose of Test-Time Adaptation is to adapt the source domain model to the test data in the inference phase, and has achieved excellent results in adapting to unknown image damage fields. However, many current methods lack consideration of the test data flow in real-world scenarios, for example:

  • The test data flow should be time-varying distribution ( Rather than a fixed distribution in traditional domain adaptation)
  • The test data stream may have local class correlations (rather than completely independent and identically distributed sampling)
  • The test data stream still shows global category imbalance for a long time

Recently, South China University of Technology, A* The STAR and CUHK-Shenzhen teams have proven through a large number of experiments that test data flows in these real scenarios will bring huge challenges to existing methods. The team believes that the failure of state-of-the-art methods is first caused by indiscriminately adjusting the normalization layer based on imbalanced test data.

To this end, the research teamproposed an innovative Balanced BatchNorm Layer(Balanced BatchNorm Layer) to replace the conventional inference phase Batch normalization layer. At the same time, they found that relying solely on self-training (ST) to learn in unknown test data streams can easily lead to over-adaptation (pseudo-label category imbalance, target domain is not a fixed domain), resulting in poor performance in a changing domain. .

Therefore, the team recommends regularizing model updates through anchored loss (Anchored Loss), thereby improving self-reliance under continuous domain transfer Training helps to significantly improve the robustness of the model. In the end, the model TRIBE stably achieved state-of-the-art performance under four data sets and multiple real-world test data stream settings, and significantly surpassed existing advanced methods. Research paper has been accepted by AAAI 2024.

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

Paper link: https://arxiv.org/abs/2309.14949
Code link: https://github.com/Gorilla-Lab- SCUT/TRIBE

Introduction

The success of deep neural networks relies on generalizing the trained model to i.i.d. assumptions in the test domain . However, in practical applications, the robustness of out-of-distribution test data, such as visual damage caused by different lighting conditions or severe weather, is a concern. Recent research shows that this data loss can seriously affect the performance of pre-trained models. Importantly, the corruption (distribution) of test data is often unknown and sometimes unpredictable before deployment.

Therefore, adjusting the pre-trained model to adapt to the test data distribution in the inference phase is a worthy new topic, namely test-time domain adaptation (TTA). Previously, TTA was mainly implemented through distribution alignment (TTAC, TTT), self-supervised training (AdaContrast) and self-training (Conjugate PL), which have brought significant and robust improvements in a variety of visual damage test data.

Existing test-time domain adaptation (TTA) methods are usually based on some strict test data assumptions, such as stable class distribution, samples obey independent and identically distributed sampling, and fixed domain offset. These assumptions have inspired many researchers to explore real-world test data flows, such as CoTTA, NOTE, SAR, and RoTTA.

Recently, research on real-world TTA, such as SAR (ICLR 2023) and RoTTA (CVPR 2023), has mainly focused on the challenges posed by local class imbalance and continuous domain shift to TTA. Local class imbalance usually results from the fact that the test data is not sampled independently and identically distributedly. Direct indiscriminate domain adaptation will lead to biased distribution estimates.

Recent research has proposed exponentially updated batch normalized statistics (RoTTA) or instance-level discriminative updated batch normalized statistics (NOTE) to solve this challenge. The research goal is to transcend the challenge of local class imbalance, considering that the overall distribution of test data may be severely imbalanced and the distribution of classes may also change over time. A diagram of a more challenging scenario can be seen in Figure 1 below.

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

Since the class prevalence in the test data is unknown before the inference stage, and the model may be biased towards the majority class through blind test time adjustments, this renders existing TTA methods ineffective. Based on empirical observations, this problem becomes particularly prominent for methods that rely on the current batch of data to estimate global statistics for updating the normalization layer (BN, PL, TENT, CoTTA, etc.).

This is mainly due to:
1. The current batch of data will be affected by local category imbalance, resulting in a biased overall distribution estimate;
2. Estimate a single global distribution from the entire test data with global class imbalance. The global distribution can easily be biased towards the majority class, causing internal covariate shifts.

In order to avoid biased batch normalization (BN), the team proposed a balanced batch normalization layer (Balanced Batch Normalization Layer), which is The distribution of each individual class is modeled and the global distribution is extracted from the class distribution. The balanced batch normalization layer allows obtaining class-balanced estimates of distributions under locally and globally class-imbalanced test data streams.

Domain shifts occur frequently in real-world test data over time, such as gradual changes in lighting/weather conditions. This brings another challenge to existing TTA methods, the TTA model may become inconsistent when switching from domain A to domain B due to over-adaptation to domain A.

In order to alleviate over-adaptation to a certain short-term domain, CoTTA randomly restores parameters, and EATA uses fisher information to regularize the parameters. Nonetheless, these methods still do not explicitly address the emerging challenges in the field of test data.

This article introduces an anchor network (Anchor Network) to form a three-network self-training model (Tri-Net Self-Training) based on the two-branch self-training architecture. The anchor network is a frozen source model but allows tuning statistics rather than parameters in the batch normalization layer via test samples. And an anchoring loss is proposed to use the output of the anchor network to regularize the output of the teacher model to avoid the network from over-adapting to the local distribution.

The final model combines a three-net self-training model and a balanced batch normalization layer (TRI-net self-training with BalancEd normalization, TRIBE) to perform well in a wider range of adjustable learning rates. Consistently superior performance. It shows substantial performance improvements under four data sets and multiple real-world data streams, demonstrating the unique stability and robustness.

Method introduction

##The paper method is divided into three parts:
  • Introducing the TTA protocol in the real world;
  • Balanced batch normalization;
  • Three-network self-training model.

TTA protocol in the real world

The author uses a mathematical probability model to model the real-world test data flow with local class imbalance and global class imbalance, as well as the domain distribution that changes over time. As shown in Figure 2 below.

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

Balanced batch normalization

In order to correct the unbalanced test data for BN To estimate the bias generated by statistics, the author proposes a balanced batch normalization layer, which maintains a pair of statistics for each semantic class, expressed as:

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

To update category statistics, the author applies an efficient iterative update method with the help of pseudo-label prediction, as shown below:

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA


Use pseudo-labels to separately count the sampling points of each category of data, and re-obtain the overall distribution statistics under category balance through the following formula, so as to align the source with category balance A good feature space for data learning. AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA
In some special cases, the author found that when the number of categories is largeAAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA or the pseudo-label accuracy is low (accuracy

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

Through further analysis and observation, the author found that when γ=1 When γ = 0, the entire update strategy degenerates into the RobustBN update strategy in RoTTA. When γ = 0, it is a purely category-independent update strategy. Therefore, when γ takes a value of 0 to 1, it can be adapted to various situations.

Three network self-training model

The author is now Based on some student-teacher models, an anchoring network branch is added, and anchoring loss is introduced to constrain the prediction distribution of the teacher network. This design was inspired by TTAC. TTAC points out that relying solely on self-training on the test data stream will easily lead to the accumulation of confirmation bias. This problem is more serious on the real-world test data stream in this article. TTAC uses statistical information collected from the source domain to implement domain alignment regularization, but for the Fully TTA setting, this source domain information is not collectible.

At the same time, the author also gained another revelation. The success of unsupervised domain alignment is based on the assumption that the two domain distributions have a relatively high overlap rate. Therefore, the author only adjusted the frozen source domain model of the BN statistic to regularize the teacher model to prevent the teacher model's prediction distribution from deviating too far from the source model's prediction distribution (this destroyed the previous experience of high coincidence rate between the two distributions) observation). A large number of experiments prove that the discoveries and innovations in this article are correct and robust. The following is the expression of anchoring loss:

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

The following figure shows the frame diagram of the TRIBE network:

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

Experimental part

The author of the paper conducted TRIBE on 4 data sets based on two real-world TTA protocols. verified. Two real-world TTA protocols are GLI-TTA-F where the global class distribution is fixed and GLI-TTA-V where the global class distribution is not fixed.

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

The above table shows the performance of the two protocols in the CIFAR10-C data set under different imbalance coefficients. The following conclusions can be drawn:

1. Only LAME, TTAC, NOTE, RoTTA and the TRIBE proposed in the paper exceed the TEST baseline, indicating the necessity of a more robust TTA method under real test flows.

2. Global class imbalance has brought great challenges to existing TTA methods. For example, the previous SOTA method RoTTA showed an error rate of 25.20% when I.F.=1 But when I.F.=200, the error rate rises to 32.45%. In comparison, TRIBE can stably demonstrate relatively good performance.

3. The consistency of TRIBE has an absolute advantage, surpassing all previous methods, and surpassing the previous SOTA (under the setting of global class balance (I.F.=1) TTAC) about 7%, and achieved a performance improvement of about 13% under the more difficult global class imbalance (I.F.=200) setting.

4. From I.F.=10 to I.F.=200, other TTA methods show a trend of performance decline as the imbalance increases. TRIBE can maintain relatively stable performance. This is attributed to the introduction of a balanced batch normalization layer that better accounts for severe class imbalance and anchoring loss, which avoids over-adaptation across different domains.
For more data set results, please refer to the original paper.

In addition, Table 4 shows the detailed modular ablation, with the following observational conclusions:

AAAI 2024 | 测试时领域适应的鲁棒性得以保证,TRIBE在多真实场景下达到SOTA

1. Only replacing BN with the balanced batch normalization layer (Balanced BN), without updating any model parameters, and only updating the BN statistics through forward can bring about a performance improvement of 10.24% (44.62 -> 34.28), and It surpasses Robust BN's error rate of 41.97%.

2. Anchored Loss combined with Self-Training, whether under the previous BN structure or the latest Balanced BN structure, has improved performance and surpassed EMA Regularization effect of Model.
The rest of this article and the 9-page appendix finally present 17 detailed tabular results, demonstrating the stability, robustness and superiority of TRIBE from multiple dimensions. The appendix also contains a more detailed theoretical derivation and explanation of the balanced batch normalization layer.

Summary and Outlook

##In order to deal with the real world Facing many challenges such as non-i.i.d. test data flow, global class imbalance and continuous domain transfer, the research team deeply explored how to improve the robustness of domain adaptation algorithms at test time. In order to adapt to the unbalanced test data, the author proposed a Balanced Batchnorm Layer to achieve unbiased estimation of statistics, and then proposed a network that includes a student network, a teacher network and an anchor network. Three-layer network structure to standardize TTA based on self-training.

But this article still has shortcomings and room for improvement. Since a large number of experiments and starting points are based on classification tasks and BN modules, there is no need for adaptation to other tasks and Transformer-based models. The extent remains unknown. These issues deserve further research and exploration in follow-up work.

The above is the detailed content of TRIBE achieves domain adaptation robustness and reaches SOTA's AAAII 2024 in multiple real-life scenarios.. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days Jul 17, 2024 am 01:56 AM

It is also a Tusheng video, but PaintsUndo has taken a different route. ControlNet author LvminZhang started to live again! This time I aim at the field of painting. The new project PaintsUndo has received 1.4kstar (still rising crazily) not long after it was launched. Project address: https://github.com/lllyasviel/Paints-UNDO Through this project, the user inputs a static image, and PaintsUndo can automatically help you generate a video of the entire painting process, from line draft to finished product. follow. During the drawing process, the line changes are amazing. The final video result is very similar to the original image: Let’s take a look at a complete drawing.

Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Jul 17, 2024 pm 10:02 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com The authors of this paper are all from the team of teacher Zhang Lingming at the University of Illinois at Urbana-Champaign (UIUC), including: Steven Code repair; Deng Yinlin, fourth-year doctoral student, researcher

Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Jul 19, 2024 am 01:29 AM

If the answer given by the AI ​​model is incomprehensible at all, would you dare to use it? As machine learning systems are used in more important areas, it becomes increasingly important to demonstrate why we can trust their output, and when not to trust them. One possible way to gain trust in the output of a complex system is to require the system to produce an interpretation of its output that is readable to a human or another trusted system, that is, fully understandable to the point that any possible errors can be found. For example, to build trust in the judicial system, we require courts to provide clear and readable written opinions that explain and support their decisions. For large language models, we can also adopt a similar approach. However, when taking this approach, ensure that the language model generates

From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' Jun 24, 2024 pm 03:04 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com In the development process of artificial intelligence, the control and guidance of large language models (LLM) has always been one of the core challenges, aiming to ensure that these models are both powerful and safe serve human society. Early efforts focused on reinforcement learning methods through human feedback (RL

arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it Aug 01, 2024 pm 05:18 PM

cheers! What is it like when a paper discussion is down to words? Recently, students at Stanford University created alphaXiv, an open discussion forum for arXiv papers that allows questions and comments to be posted directly on any arXiv paper. Website link: https://alphaxiv.org/ In fact, there is no need to visit this website specifically. Just change arXiv in any URL to alphaXiv to directly open the corresponding paper on the alphaXiv forum: you can accurately locate the paragraphs in the paper, Sentence: In the discussion area on the right, users can post questions to ask the author about the ideas and details of the paper. For example, they can also comment on the content of the paper, such as: "Given to

Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Jul 17, 2024 am 10:14 AM

Show the causal chain to LLM and it learns the axioms. AI is already helping mathematicians and scientists conduct research. For example, the famous mathematician Terence Tao has repeatedly shared his research and exploration experience with the help of AI tools such as GPT. For AI to compete in these fields, strong and reliable causal reasoning capabilities are essential. The research to be introduced in this article found that a Transformer model trained on the demonstration of the causal transitivity axiom on small graphs can generalize to the transitive axiom on large graphs. In other words, if the Transformer learns to perform simple causal reasoning, it may be used for more complex causal reasoning. The axiomatic training framework proposed by the team is a new paradigm for learning causal reasoning based on passive data, with only demonstrations

A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated Aug 05, 2024 pm 03:32 PM

Recently, the Riemann Hypothesis, known as one of the seven major problems of the millennium, has achieved a new breakthrough. The Riemann Hypothesis is a very important unsolved problem in mathematics, related to the precise properties of the distribution of prime numbers (primes are those numbers that are only divisible by 1 and themselves, and they play a fundamental role in number theory). In today's mathematical literature, there are more than a thousand mathematical propositions based on the establishment of the Riemann Hypothesis (or its generalized form). In other words, once the Riemann Hypothesis and its generalized form are proven, these more than a thousand propositions will be established as theorems, which will have a profound impact on the field of mathematics; and if the Riemann Hypothesis is proven wrong, then among these propositions part of it will also lose its effectiveness. New breakthrough comes from MIT mathematics professor Larry Guth and Oxford University

The first Mamba-based MLLM is here! Model weights, training code, etc. have all been open source The first Mamba-based MLLM is here! Model weights, training code, etc. have all been open source Jul 17, 2024 am 02:46 AM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com. Introduction In recent years, the application of multimodal large language models (MLLM) in various fields has achieved remarkable success. However, as the basic model for many downstream tasks, current MLLM consists of the well-known Transformer network, which

See all articles