Home  >  Article  >  Technology peripherals  >  Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

WBOY
WBOYforward
2023-04-12 18:46:03861browse

Different from traditional object detection problems, few-shot object detection (FSOD) assumes that we have many basic class samples, but only a small number of novel class samples. The goal is to study how to transfer knowledge from basic classes to novel classes, thereby improving the detector's ability to recognize novel classes.

FSOD usually follows a two-stage training paradigm. In the first stage, the detector is trained using rich base class samples to learn the common representations required for object detection tasks, such as object localization and classification. In the second stage, the detector is fine-tuned using only a small number (e.g. 1, 2, 3...) of novel class samples. However, due to the imbalance in the number of basic class and novel class samples, the learned model is usually biased towards the basic class, which leads to the confusion of novel class targets with similar basic classes. Furthermore, since there are only a few samples for each novel class, the model is sensitive to the variance of the novel classes. For example, if you randomly sample novel class samples for multiple trainings, the results will be quite different each time. Therefore, it is very necessary to improve the robustness of the model under small samples.

Recently, Tencent Youtu Lab and Wuhan University proposed a few-sample target detection model VFA based on variational feature aggregation. The overall structure of VFA is based on an improved version of the meta-learning target detection framework Meta R-CNN, and two feature aggregation methods are proposed: Category-independent feature aggregation CAA (Class-Agnostic Aggregation)AndVariational Feature Aggregation VFA (Variational Feature Aggregation).

Feature aggregation is a key design in FSOD, which defines the interaction between Query and Support samples. Previous methods such as Meta R-CNN usually use class-specific aggregation (CSA), that is, features of similar Query and Support samples for feature aggregation. In contrast, the CAA proposed in this paper allows feature aggregation between samples of different classes. Since CAA encourages the model to learn class-independent representations, it reduces the model's bias toward base classes. In addition, interactions between different classes can better model the relationships between classes, thereby reducing class confusion.

Based on CAA, this article proposes VFA, which uses variational encoders (VAEs) to encode Support samples into class distributions and samples new Support from the learned distribution. Features are used for feature fusion. Related work [1] states that intra-class variance (e.g., variation in appearance) is similar across classes and can be modeled by common distributions. Therefore, we can use the distribution of base classes to estimate the distribution of novel classes, thereby improving the robustness of feature aggregation in the case of few samples.

VFA outperforms the best current models on multiple FSOD data sets, Relevant research has Accepted as Oral by AAAI 2023.

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

## Paper address: https://arxiv.org/abs/2301.13411

VFA model details

Stronger baseline method: Meta R-CNN

Current FSOD work It can be mainly divided into two categories: methods based on meta learning and methods based on fine-tuning. Some early works demonstrated that meta-learning is effective for FSOD, but fine-tuning based methods have received increasing attention recently. This article first establishes a baseline method Meta R-CNN based on meta-learning, which narrows the gap between the two methods and even exceeds the method based on fine-tuning in some indicators .

We first analyzed some gaps in implementation between the two methods, taking the meta-learning method Meta R-CNN [2] and the fine-tuning-based method TFA [3] as examples. Although Both methods follow a two-stage training paradigm, with TFA optimizing the model using additional techniques during the fine-tuning stage:

  1. TFA freezes most of the network parameters and only trains the final classification and regression layers so that the model does not overfit the few-shot categories.
  2. Instead of randomly initializing the classification layer, TFA copies the pre-trained weights of the base classes and only initializes the weights of the novel classes.
  3. TFA uses a cosine classifier instead of a linear classifier.

Considering the success of TFA, we built Meta R-CNN. As shown in Table 1 below, meta-learning methods can also achieve good results as long as we handle the fine-tuning stage carefully. Therefore, this paper chooses Meta R-CNN as the baseline method.

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

##Table 1: Comparison and analysis of Meta R-CNN and TFA

Category-independent feature aggregation CAA


Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

##Figure 1: Schematic diagram of category-independent feature aggregation CAA

This article proposes a simple and effective The category-independent feature aggregation method CAA. As shown in Figure 1 above, CAA allows feature aggregation between different classes, thereby encouraging the model to learn class-independent representations, thereby reducing inter-class bias and confusion between classes. Specifically, for each RoI feature of the category Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and a set of Support features Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTARegression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA, we randomly select a class The Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA of the Support feature Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA is aggregated with the Query feature:

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

##Then we feed the aggregated features


Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA to the detection sub-network

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTATo output the classification score

.

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

Variational Feature Aggregation VFA

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

##Figure 2 VFA model diagram

Previous work usually encodes Support samples into a single feature vector to represent the center of the category. However, when the samples are small and the variance is large, it is difficult for us to make accurate estimates of the class center. In this paper, we first convert the Support features into distributions over classes. Since the estimated class distribution is not biased towards specific samples, features sampled from the distribution are relatively robust to the variance of the samples. The framework of VFA is shown in Figure 2 above.

a) Variational feature learning. VFA employs variational autoencoders VAEs [4] to learn the distribution of categories. As shown in Figure 2, for a Support feature S, we first use the encoder Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA to estimate the distribution parameters Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA , then sample Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA from the distribution Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA through variational inference, and finally obtain the reconstructed value through the decoder Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA Support FeaturesRegression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA. When optimizing VAE, in addition to the common KL LossRegression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and reconstruction LossRegression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA, this article also uses consistency Loss to make the learned distribution retain category information:​

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

b) Variational feature fusion. Since the Support feature is converted into a distribution of categories, we can sample features from the distribution and aggregate them with the Query feature. Specifically, VFA also uses category-independent aggregation CAA, but aggregates Query features Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and variational features Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA. Given the Query feature Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA of class Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and the Support feature Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA of class Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

, we first estimate its distribution Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA , and sample variational features Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA; and then fuse them together by the following formula:

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

Where Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA represents channel multiplication, and sig is the abbreviation of sigmoid operation. In the training phase, we randomly select a Support feature Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA for aggregation; in the testing phase, we average the Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

Support features of the Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA class Value Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA, and estimate the distribution Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA, where Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA. ​

Classification - Regression task decoupling

Typically, the detection subnetwork Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA contains a shared feature extractor Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and two independent networks: the classification subnetwork Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and regression sub-network Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA. In previous work, the aggregated features were input into the detection sub-network for object classification and bounding box regression. But classification tasks require translation-invariant features, while regression requires translation-covariant features. Since the Support feature represents the center of the category and is translation invariant, the aggregated features will harm the regression task.

This article proposes a simple classification-regression task decoupling. Let Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA represent the original and aggregated Query features. The previous method uses Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA for both tasks, where The classification score Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA and the predicted bounding box Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA are defined as:

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

##To decouple these tasks, we adopt a separate feature extractor and use the original Support features Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA for bounding box regression:​

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA


Experimental evaluation

The data sets we used: PASCAL VOC, MS COCO. Evaluation indicators: Novel class average precision nAP, basic class average precision bAP.

Main results

VFA achieved good results on both datasets. For example, on the PASCAL VOC data set (Table 2 below), VFA is significantly higher than previous methods; the 1-shot results of VFA are even higher than the 10-shot results of some methods.

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

Table 2 The effect of VFA on the PASCAL VOC data set

Ablation experiment

a) The role of different modules . As shown in Table 3 below, different modules of VFA can work together to improve the performance of the model.

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

Table 3 The functions of different modules

b) Visual analysis of different feature aggregation methods. As shown in Figure 3 below, CAA can reduce confusion between basic classes and novel classes; VFA further enhances the distinction between classes based on CAA.

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

##Figure 3 Visualization of similarity matrix

c) More accurate category center point estimation. As shown in Figure 4 below, VFA can more accurately estimate the center of the category. And as the number of samples decreases, the accuracy of estimation gradually becomes higher than the baseline method. This also explains why our method performs better when there are few samples (K=1).

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

Figure 4 The distance between the estimated category center and the true category center

d) Result visualization.

Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA

##Figure 5 Visualization ResultsConclusion

This article returns to the feature aggregation method in FSOD based on meta-learning, and proposes category-independent feature aggregation CAA and variational feature aggregation VFA. CAA can reduce class bias and confusion between base classes and novel classes; VFA transforms samples into class distributions to achieve more robust feature aggregation. Experiments on the PASCAL VOC and MS COCO datasets demonstrate the effectiveness of the method proposed in this paper.

The above is the detailed content of Regression meta-learning, few-sample target detection based on variational feature aggregation to achieve new SOTA. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:51cto.com. If there is any infringement, please contact admin@php.cn delete