# feature_intertwiner_for_object_detection__1602cc0e.pdf Published as a conference paper at ICLR 2019 FEATURE INTERTWINER FOR OBJECT DETECTION Hongyang Li1, Bo Dai2, Shaoshuai Shi1, Wanli Ouyang3 & Xiaogang Wang1 1Department of Electronic Engineering The Chinese University of Hong Kong {yangli,ssshi,xgwang}@ee.cuhk.edu.hk 2Department of Information Engineering The Chinese University of Hong Kong bdai@ie.cuhk.edu.hk 3The University of Sydney, Sense Time Computer Vision Research Group wanli.ouyang@sydney.edu.au A well-trained model should classify objects with a unanimous score for every category. This requires the high-level semantic features should be alike among samples, despite a wide span in resolution, texture, deformation, etc. Previous works focus on re-designing the loss function or proposing new regularization constraints on the loss. In this paper, we address this problem via a new perspective. For each category, it is assumed that there are two sets in the feature space: one with more reliable information and the other with a less reliable source. We argue that the reliable set could guide the feature learning of the less reliable set during training - in the spirit of student mimicking teacher s behavior and thus pushing towards a more compact class centroid in the high-dimensional space. Such a scheme also benefits the reliable set since samples become closer within the same category - implying that it is easier for the classifier to identify. We refer to this mutual learning process as feature intertwiner and embed the spirit into object detection. It is well-known that objects of low resolution are more difficult to detect due to the loss of detailed information during network forward pass. We thus regard objects of high resolution as the reliable set and objects of low resolution as the less reliable set. Specifically, an intertwiner is achieved by minimizing the distribution divergence between two sets. We design a historical buffer to represent all previous samples in the reliable set and utilize them to guide the feature learning of the less reliable set. The design of obtaining an effective feature representation for the reliable set is further investigated, where we introduce the optimal transport (OT) algorithm into the framework. Samples in the less reliable set are better aligned with the reliable set with aid of OT metric. Incorporated with such a plug-and-play intertwiner, we achieve an evident improvement over previous state-of-the-arts on the COCO object detection benchmark. 1 INTRODUCTION Classifying complex data in the high-dimensional feature space is the core of most machine learning problems, especially with the emergence of deep learning for better feature embedding (Krizhevsky et al., 2012; He et al., 2016; Li et al., 2018) . Previous methods address the feature representation problem by the conventional cross-entropy loss, l1 / l2 loss, or a regularization constraint on the loss term to ensure small intra-class variation and large inter-class distance (Janocha & Czarneck, 2017; Liu et al., 2017b; Wen et al., 2016; Liu et al., 2017a). The goal of these works is to learn more compact representation for each class in the feature space. In this paper, we also aim for such a goal and propose a new perspective to address the problem. Our observation is that samples can be grouped into two sets in the feature space. One set is more reliable, while the other is less reliable. For example, visual samples may be less reliable due to low resolution, occlusion, adverse lighting, noise, blur, etc. The learned features for samples from the reliable set are easier to classify than those from the less reliable one. Our hypothesis is that the Published as a conference paper at ICLR 2019 (a) (b) small large small large (overlapped) person chair car book bottle cup bowl dining table donut traffic light Figure 1: (Zoom in for better view) Visualization of the features in object detection using t-SNE (van der Maaten & Hinton, 2008) (a) without and (b) with feature intertwiner on COCO. Each point is a sample mapped onto the low-dim manifold. reliable set can guide the feature learning of the less reliable set, in the spirit of a teacher supervising the student. We refer to this mutual learning process as a feature intertwiner. In this paper, a plug-and-play module, namely, feature intertwiner, is applied for object detection, which is the task of classifying and localizing objects in the wild. An object of lower resolution will inevitably lose detailed information during the forward pass in the network. Therefore, it is well-known that the detection accuracy drops significantly as resolutions of objects decrease. We can treat samples with high resolution (often corresponds to large objects or region proposals) as the reliable set and samples with low resolution (small instances) as the less reliable set1. Equipped with these two prototypical sets, we can apply the feature intertwiner where the reliable set is leveraged to help the feature learning of the less reliable set. Fig. 1 on the left visualizes the learned detection features before classifier2. Without intertwiner in (a), samples are more scattered and separated from each other. Note there are several samples that are far from its own class and close to the samples in other categories (e.g., class person in blue), indicating a potential mistake in classification. With the aid of feature intertwiner in (b), there is barely outlier sample outside each cluster. the features in the lower resolution set approach closer to the features in the higher resolution set - achieving the goal of compact centroids in the feature space. Empirically, these two settings correspond to the baseline and intertwiner experiments (marked in gray) in Table 2a. The overall m AP metric increases from 32.8% to 35.2%, with an evident improvement of 2.6% for small instances and a satisfying increase of 0.8% for large counterparts. This suggests the proposed feature intertwiner could benefit both sets. Two important modifications are incorporated based on the preliminary intertwiner framework. The first is the use of class-dependent historical representative stored in a buffer. Since there might be no large sample for the same category in one mini-batch during training, the record of all previous features of a given category for large instances is recorded by a representative, of which value gets updated dynamically as training evolves. The second is an inclusion of the optimal transport (OT) divergence as a deluxe regularization in the feature intertwiner. OT metric maps the comparison of two distributions on high-dimensional feature space onto a lower dimension space so that it is more sensible to measure the similarity between two distributions. For the feature intertwiner, OT is capable of enforcing the less reliable set to be better aligned with the reliable set. We name the detection system equipped with the feature intertwiner as Inter Net. Full code suite is available at https://github.com/hli2020/feature intertwiner. For brevity, we put the descriptions of dividing two sets in the detection task, related work (partial), background knowledge on OT theory and additional experiments in the appendix. 1We use the term large object/(more) reliable/high resolution set interchangeably in the following to refer to the same meaning; likewise for the term small set/less reliable set/low-resolution set . 2Only top ten categories with the most number of instances in prediction is visualized. For each category, the high-resolution objects (reliable set) are shown in solid color while the low-resolution instances (less reliable set) are shown in transparent color with dashed boundary. Published as a conference paper at ICLR 2019 2 RELATED WORK Object detection (Dai et al., 2016; He et al., 2017; Girshick, 2015; Ren et al., 2015; Lin et al., 2017a; Redmon & Farhadi, 2016) is one of the most fundamental computer vision tasks and serves as a precursor step for other high-level problems. It is challenging due to the complexity of features in high-dimensional space (Krizhevsky et al., 2012), the large intra-class variation and inter-class similarity across categories in benchmarks (Deng et al., 2009; Tsung-Yi Lin, 2015). Thanks to the development of deep networks structure (Simonyan & Zisserman, 2015; He et al., 2016) and modern GPU hardware acceleration, this community has witnessed a great bloom in both performance and efficiency. The detection of small objects is addressed in concurrent literature mainly through two manners. The first is by looking at the surrounding context (Li et al., 2016; Mottaghi et al., 2014) since a larger receptive filed in the surrounding region could well compensate for the information loss on a tiny instance during down-sampling in the network. The second is to adopt a multiscale strategy (Li et al.; Lin et al., 2017a; Liu et al., 2015; Shrivastava et al., 2016) to handle the scale problem. This is probably the most effective manner to identify objects in various sizes and can be seen in (almost) all detectors. Such a practice is a sliding-window version of warping features across different stages in the network, aiming for normalizing the sizes of features for objects of different resolutions. The proposed feature intertwiner is perpendicular to these two solutions. We provide a new perspective of addressing the detection of small objects - leveraging the feature guidance from high-resolution reliable samples. Designing loss functions for learning better features. The standard cross-entropy loss does not have the constraint on narrowing down the intra-class variation. Several works thereafter have focused on adding new constraints to the intra-class regularization. Liu et al. (Liu et al., 2017a) proposed the angular softmax loss to learn angularly discriminative features. The new loss is expected to have smaller maximal intra-class distance than minimal inter-class distance. The center loss (Wen et al., 2016) approach specifically learns a centroid for each class and penalizes the distances between samples within the category and the center. Our feature intertwiner shares some spirit with this work in that, the proposed buffer is also in charge of collecting feature representatives for each class. A simple modification (Liu et al., 2017b) to the inner product between the normalized feature input and the class centroid for the softmax loss also decreases the inner-class variation and improves the classification accuracy. Our work is from a new perspective in using the reliable set for guiding the less reliable set. 3 FEATURE INTERTWINERS FOR OBJECT DETECTION In this paper, we adopt the Faster RCNN pipeline for object detection (He et al., 2016; 2017; Girshick, 2015). In Faster RCNN, the input image is first fed into a backbone network to extract features; a region proposal network (Ren et al., 2015) is built on top of it to generate potential region proposals, which are several candidate rectangular boxes that might contain objects. These region proposals vary in size. Then the features inside the region are extracted and warped into the same spatial size (by Ro I-pooling). Finally, the warped features are used by the subsequent CNN layers for classifying whether an object exists in the region. 3.1 FEATURE INTERTWINER OVERVIEW We now explicitly depict how the idea of feature intertwiner could be adapted into the object detection framework. Fig. 2 describes the overall pipeline of the proposed Inter Net. A network is divided into several levels based on the spatial size of feature maps. For each level l, we split the set of region proposals into two categories: one is the large-region set whose size is larger than the output size of Ro I-pooling layer and another the small-region set whose size is smaller. These two sets corresponds to the reliable and less reliable sets, respectively. For details on the generation of these two sets in object detection, refer to Sec. 6.2 in the appendix. Feature map Pl at level l is fed into the Ro I layer and then passed onto a make-up layer. This layer is designed to fuel back the lost information during Ro I and compensate necessary details for instances of small resolution. The refined high-level semantics after this layer is robust to factors (such as pose, lighting, appearance, etc.) despite sample variations. It consists of one convolutional layer without Published as a conference paper at ICLR 2019 Class buffer Small feature Inter. loss Feature Intertwiner Figure 2: Feature intertwinter overview. Blue blobs stands for the less reliable set (small objects) and green for the reliable set (large ones). For current level l, feature map Pl of the small set is first passed into a Ro I-pooling layer. Then it is fed into a make-up layer, which fuels back the information lost during Ro I; it is optimized via the intertwiner module (yellow rectangle), with aid of the reliable set (green). OT (in red) stands for the optimal transport divergence, which aligns information between levels (for details see Sec. 3.3). Pm|l is the input feature map of the reliable set for the Ro I layer; m indicates higher level(s) than l. altering the spatial size. The make-up unit is learned and optimized via the intertwiner unit, with aid of features from the large object set, which is shown in the upstream (green) of Fig. 2. The feature intertwiner is essentially a data distribution measurement to evaluate divergence between two sets. For the reliable set, the input is directly the outcome of the Ro I layer of the large-object feature maps Pm|l, which correspond to samples of higher level/resolution. For the less reliable set, the input is the output of the make-up layer. Both inputs are fed into a critic module to extract further representation of these two sets and provide evidence for intertwiner. The critic consists of two convolutions that transfer features to a larger channel size and reduce spatial size to one, leaving out of consideration the spatial information. A simple l2 loss can be used for comparing difference between two sets. The final loss is a combination of the standard detection losses (Girshick, 2015) and the intertwiner loss across all levels. The detailed network structure of the make-up and critic module in the feature intertwiner is shown in the appendix (Sec. 6.6). There are two problems when applying the aforementioned pipeline into application. The first is that the two sets for the same category often do not occur simultaneously in one mini-batch; the second is how to choose the input source for the reliable set, i.e., feature map Pm|l for the large object set. We address these two points in the following sections. 3.2 CLASS BUFFER The goal of the feature intertwiner is to have samples from less reliable set close to the samples within the same category from the reliable set. In one mini-batch, however, it often happens that samples from the less reliable set are existent while samples of the same category from the reliable set are non-existent (or vice versa). This makes it difficult to calculate the intertwiner loss between two sets. To address this problem, we use a buffer B to store the representative (prototype) for each category. Basically the representative is the mean feature representation from large instances. Let the set of features from the large-region object on all levels be F(large) critic ; each sample consisting of the large set F be f (j), where j is the sample index and its feature dimension is d. The buffer could be generated as a mapping from sample features to class representative: B = [b1, . . . , bi, . . . , b Ncls] = M F(large,1) critic , . . . , F(large,l) critic , . . . , F(large,L) critic bi = M h F(large,l) critic i = 1 l,j f (large,l,j) critic , where F(large,l) critic = {f (large,l,j) critic Rd}, (2) Published as a conference paper at ICLR 2019 where the total number of classes is denoted as Ncls. Each entry bi in the buffer B is referred to as the representative of class i. Every sample, indexed by j in the large object set, contributes to the class representative i if its label belongs to i . Here we denote i as the label of sample j; and Z in Eqn. (2) denotes the total number of instances whose label is i . The representative is deemed as a reliable source of feature representation and could be used to guide the learning of the less reliable set. There are many options to design the mapping M, e.g., the weighted average of all features in the past iterations during training within the class as shown in Eqn. (2), feature statistics from only a period of past iterations, etc. We empirically discuss different options in Table 2d. Equipped with the class buffer, we define the intertwiner loss between two sets as: l,j D f (small,l,j) critic , B , (3) where D is a divergence measurement; f (small,l,j) critic denotes the semantic feature after critic of the j-th sample at level l in the less reliable set (small instances). Note that the feature intertwiner is proposed to optimize the feature learning of the less reliable set for each level. During inference, the green flow as shown in Fig. 2 for obtaining the class buffer will be removed. Discussion on the intertwiner. (a) Through such a mutual learning, features for small-region objects gradually encode the affluent details from large-region counterparts, ensuring that the semantic features within one category should be as much similar as possible despite the visual appearance variation caused by resolution change. The resolution imperfection of small instances inherited from the Ro I interpolation is compensated by mimicking a more reliable set. Such a mechanism could be seen as a teacher-student guidance in the self-supervised domain (Chen et al., 2017). (b) It is observed that if the representative bi is detached in back-propagation process (i.e., no backward gradient update in buffer), performance gets better. The buffer is used as the guidance for less reliable samples. As contents in buffer are changing as training evolves, excluding the buffer from network update would favorably stabilize the model to converge. Such a practice shares similar spirit of the replay memory update in deep reinforcement learning. (c) The buffer statistics come from all levels. Note that the concept of large and small is a relative term: large proposals on current level could be deemed as small ones on the next level. However, the level-agnostic buffer would always receive semantic features for (strictly) large instances. This is why there are improvements across all levels (large or small objects) in the experiments. 3.3 CHOOSING BEST FEATURE MAP FOR LARGE OBJECTS USING OPTIMAL TRANSPORT How to acquire the input source, denoted as P (large,l), i.e., feature maps of large proposals, to be fed into the Ro I layer on current level l? The feature maps, denoted by Pl or Pm, are the output of Res Net at different stages, corresponding to different resolutions. Altogether we use four stages, i.e., P2 to P5; P2 corresponds to feature maps of the highest resolution and P5 has the lowest resolution. The inputs are crucial since they serve as the guidance targets to be learned by small instances. There are several choices, which is depicted in Fig. 3. Optimal Transport Figure 3: Different designs for the input source in the reliable set. Solid shape is the chosen plan in each option. option variant AP AP50 AP75 APS APM APL (a) use Pl 35.1 54.9 40.7 20.2 38.3 48.5 (b) use Pm (baseline) 40.5 62.8 47.6 23.7 45.2 53.1 F bilinear 40.6 62.9 47.6 23.9 45.4 53.1 F neural net* 41.3 63.5 48.5 24.6 46.3 53.8 increase from (b) to (c)* +0.8 +0.7 +0.9 +0.9 +1.1 +0.7 KL, F neural net 41.0 63.1 48.2 24.5 45.7 53.4 l2, F neural net 41.8 64.2 48.9 24.7 46.0 53.8 optimal transport (OT)** 42.5 65.1 49.4 25.4 46.6 54.3 biased version of OT 42.5 65.3 48.6 25.3 46.8 54.3 increase from (b) to (d)** +2.0 +2.3 +1.8 +1.7 +1.4 +1.2 Table 1: Numeric results on different input sources for the reliable set (using Res Net-101-FPN model). F is the up-sampling layer; we use option (d), OT as the final candidate. The biased version of optimal transport is detailed in appendix, Sec. 6.3. Published as a conference paper at ICLR 2019 Option (a): P (large,l) = Pl. The most straightforward manner would be using features on current level as input for large object set. This is inappropriate since Pl is trained in RPN specifically for identifying small objects; adopting it as the source could contain noisy details of small instances. Option (b): P (large,l) = Pm. Here m and l denote the index of stage/level in Res Net and m > l. One can utilize the higher level feature map(s), which has the proper resolution for large objects. Compared with Pl, Pm have lower resolution and higher semantics. For example, consider the large instances assigned to level l = 2 (how to assign large and small instances is discussed in the appendix Sec. 6.2), Pm indicates three stages m = 3, 4, 5. However, among these large instances, some of them are deemed as small objects on higher level m - implying that those feature maps Pm might not carry enough information. They would also have to be up-sampled during the Ro I operation for updating the buffer on current level l. Take Table 3 in the appendix for example, among the assigned 98 proposals on level 2, there are 31 (11 on level 3 and 20 on level 4) objects that have insufficient size (smaller than Ro I s output). Hence it might be inappropriate to directly use the high-level feature map as well. Option (c): P (large,l) = Pm|l F(Pm). Pm is first up-sampled to match the size at Pl and then is Ro I-pooled with outcome denoted as Pm|l. The up-sampling operation aims at optimizing a mapping F : Pm 7 Pm|l that can recover the information of large objects on a shallow level. F could be as simple as a bilinear interpolation or a neural network. These three options are empirically reported in Table 1. The baseline model in (b) corresponds to the default setting in cases 2d, 2e of Table 2, where the feature intertwiner is adopted already. There is a 0.8% AP boost from option (b) to (c), suggesting that Pm for large objects should be converted back to the feature space of Pl. The gain from (a) to (c) is more evident, which verifies that it might not be good to use Pl directly. More analysis is provided in the appendix. Option (c) is a better choice for using the reliable feature set of large-region objects. Furthermore, we build on top of this choice and introduce a better alternative to build the connection between Pl and Pm|l, since the intertwiner is designed to guide the feature learning of the less reliable set on the current level. If some constraint is introduced to keep information better aligned between two sets, the modified input source Pm|l for large instance would be more proper for the other set to learn. Option (d): P (large,l) = OT(Pl, Pm|l). The spirit of moving one distribution into another distribution optimally in the most effective manner fits well into the optimal transport (OT) domain (Peyr & Cuturi, 2018). In this work, we incorporate the OT unit between feature map Pl and Pm|l, which serve as inputs before the Ro I-pooling operation. A discretized version (Genevay et al., 2017; Cuturi, 2013) of the OT divergence is employed as an additional regularization to the loss: OT(Pl, Pm|l) WQ(Pψ, Pr) discrete min P RC2 C1 + Q, P , (4) where the non-positive P serves as a proxy for the coupling and satisfies P T1C2 = 1C1, P1C1 = 1C2. , indicates the Frobenius dot-product for two matrices and 1m := (1/m, . . . , 1/m) Rm +. Now the problem boils down to computing P given some ground cost Q. We adopt the Sinkhorn algorithm (Sinkhorn, 1964) in an iterative manner to compute WQ, which is promised to have a differentiable loss function. The OT divergence is hence referred to as Sinkhorn divergence. Given features maps Pm from higher level, the generator network F up-samples them to match the size of Pl and outputs Pm|l. The channel dimension of Pl and Pm|l is denoted as C. The critic unit H (not the proposed critic unit in the feature intertwiner) is designed to reduce the spatial dimensionality of input to a lower dimension k while keeping the channel dimension unchanged. The number of samples in each distribution is C. The outcome of the critic unit in OT module is denoted as pl, pm|l, respectively. We choose cosine distance as the measurement to calculate the distance between manifolds. The output is known as the ground cost Qx,y, where x, y indexes the sample in these two distributions. The complete workflow to compute the Sinkhorn divergence is summarized in Alg. 1. Note that each level owns their own OT module Wl Q(Pl, Pm) = OT(Pl, Pm|l). The total loss for the detector is summarized as: L = Linter + X l W(l) Q (Pl, Pm) + Lstandard, (5) where Lstandard is the classification and regression losses defined in most detectors (Girshick, 2015). Published as a conference paper at ICLR 2019 Algorithm 1 Sinkhorn divergence WQ adapted for object detection (red rectangle in Fig.2) Input: Feature maps on current and higher levels, Pl, Pm The generator network F and the critic unit in OT module H Output: Sinkhorn loss Wl Q(Pl, Pm) = OT(Pl, Pm|l) Upsample via generator Pm|l = F(Pm) Feed both inputs into critic pl = H(Pl), pm|l = H(Pm|l) p( ) size C k (x, y) in pl, pm|l, define the ground cost Qx,y = cosine dist(pl, pm|l) Q size C C Initialize coefficients b(0) = 1C Compute Gibbs kernel Kx,y = exp( Qx,y/ε) controlling factor ε = 0.1 for l = 0 to L do iteration budget L = 10 a(l+1) := 1C KTb(l) , b(l+1) := 1C K a(l) , known as Sinkhorn iterate end for Compute the proxy matrix P (L) = diag(b(L)) K diag(a(L)) Compute WQ based on the dot-product in Eqn. (4): Q, P . Why prefer OT to other alternatives. As proved in (Arjovsky et al., 2017), the OT metric converges while other variants (KL or JS divergence) do not in some scenarios. OT provides sensible cost functions when learning distributions supported by low-dim manifolds (in our case, pl and pm|l) while other alternatives do not. As verified via experiments in Table 1, such a property could facilitate the training towards a larger gap between positive and false samples. In essence, OT metric maps the comparison of two distributions on high-dimensional feature space onto a lower dimension space. The use of Euclidean distance could improve AP by around 0.5% (see Table 1, (d) l2 case), but does not gain as much as OT does. This is probably due to the complexity of feature representations in high-dimension space, especially learned by deep models. 4 EXPERIMENTAL RESULTS We evaluate Inter Net on the object detection track of the challenging COCO benchmark (Tsung Yi Lin, 2015). For training, we follow common practice as in (Ren et al., 2015; He et al., 2017) and use the trainval35k split (union of 80k images from train and a random 35k subset of images from 40k val split) for training. The lesion and sensitivity studies are reported by evaluating on the minival split (the remaining 5k images from val). For all experiments, we use depth 50 or 101 Res Net (He et al., 2016) with FPN (Lin et al., 2017a) constructed on top. We base the framework on Mask-RCNN (He et al., 2017) without the segmentation branch. All ablative analysis adopt austere settings: training and test image scale only at 512; no multi-scale and data augmentation (except for horizontal flip). Details on the training and test procedure are provided in the appendix (Sec. 6.5). 4.1 ABLATION STUDY ON INTERTWINER MODULE Baseline comparison. Table 2a lists the comparison of Inter Net to baseline, where both methods shares the same setting. On average it improves by 2 points in terms of m AP. The gain for small objects is much more evident. Note that our method also enhances the detection of large objects (by 0.8%), since the last level also participates in the intertwiner update by comparing its similarity feature to the history buffer, which requires features of the same category to be closer to each other. The last level does not contribute to the buffer update though. Assignment strategy (analysis based on Sec. 6.2). Table 2a also investigates the effect of different region proposal allocations. by Ro I size divides proposals whose area is below the Ro I threshold in Table 3 as small and above as large; more on higher indicates the base value in Eqn. (6) is smaller (=40); the default setting follows (Lin et al., 2017a) where the base is set to 224. Preliminary, we think putting more proposals on higher levels (the first two cases) would balance the workload of the intertwiner; since the default setting leans towards too many proposals on level 2. However, there is no gain due to the mis-alignment with RPN training. The distribution of anchor templates in RPN does not alter accordingly, resulting in the inappropriate use of backbone feature maps. Published as a conference paper at ICLR 2019 proposal split AP AP50 AP75 APS APM APL by Ro I size 30.9 53.7 35.1 10.8 34.7 46.6 more on higher 31.3 54.0 35.8 11.4 35.1 47.5 default 32.8 55.3 37.2 12.7 36.8 49.3 intertwiner by Ro I size 33.7 56.1 37.6 13.5 37.4 50.8 more on higher 32.3 55.7 37.1 12.9 36.2 49.5 default 35.2 57.6 38.0 15.3 38.7 51.1 increase from to +2.4 +2.1 +0.8 +2.6 +1.9 +0.8 (a) Baseline and proposal assignment strategy: intertwiner increases detection of both small and large objects compared to baseline. Putting more proposals on lower level brings more gain. AP AP50 AP75 l1 34.2 57.1 37.2 l2 (default) 35.2 57.6 38.0 KL div 34.6 57.8 37.4 l1 (fac=10) 34.4 57.6 37.8 l2 (fac=0.1) 34.8 58.0 37.5 KL div (fac=10) 35.6 58.2 38.01 (b) Feature intertwiner loss: upper block uses a factor of 1.0. l2 performs slightly better than KL divergence. AP AP50 AP75 separate 34.0 57.1 37.3 naive add fail linear 35.2 57.6 38.0 (c) Boosted detection feature source: merging fcritic into the detection folllowup pipeline increases result. size/weight AP AP50 AP75 partial 2000 37.3 58.5 44.7 15k (epoch) 38.8 59.9 46.1 all history decay weight 39.2 60.6 45.4 equal weight 40.5 62.8 47.6 (d) Buffer choice design (101-layer): buffer taking in all history with equal weight ensures best accuracy. Longer size in partial block enhances result and yet possesses more parameters. yes? AP AP50 AP75 multiple B 40.58 62.83 47.62 40.54 62.81 47.61 40.5 62.8 47.6 40.1 62.4 47.3 (e) Workflow design (101-layer): applying different buffers on each level barely matters; detaching bi during back-propagation is better. Table 2: Ablation study on the component design of feature intertwiner. Gray background is the final default setting adopted in each case. Network is either Res Net-50-FPN or 101. Intertwinter loss. Upper block in Table 2b shows a factor of 1.0 to be merged on the total loss whereas lower block depicts a specific factor that achieves better AP than others. The simple l2 loss achieves slightly better than the KL divergence, where the latter is computed as Linter = b log(b/f). The l1 option is by around 1 point inferior than these two and yet still verifies the effectiveness of the intertwiner module compared with baseline (34.2 vs 32.8) - implying the generalization ability of our method in different loss options. How does the intertwiner module affect learning? By measuring the divergence between two sets (i.e., small proposals in the batch and large references in the buffer), we have gradients, as the influence, back-propagated from the critic to make-up layer. In the end, the make-up layer is optimized to enforce raw Ro I outputs recovering details even after the loss from reduced resolution. The naive design denoted by separate achieves 34.0% AP as shown in Table 2c. To further make the influence of the intertwiner stronger, we linearly combine the features after critic with the original detection feature (with equal weights, aka 0.5; not shown in Fig. 2) and feed this new combination into the final detection heads. This improves AP by 1 point (denoted as linear in Table 2c). The naive add case with equal weights 1 does not work (loss suddenly explodes during training), since the amplitude of features among these two sources vary differently if we simply add them. Does buffer size matter? Table 2d shows that it does not. A natural thought could be having a window size of K and sliding the window to keep the most recent features recorded. In general, larger size improves performance (see case 2000 vs the size of one epoch where batch size is 8, 37.3% 38.8%). In these cases, statistics of large object features for one category cannot reflect the whole training set and it keeps alternating as network is updated. Using all history data by running averaging not only saves memory but also has the whole picture of the data. Preliminary, we choose a decayed scheme that weighs more to recent features than ones in the long run, hoping that the model would be optimized better as training evolves. However, experiments does not accord with such an assumption: AP is better where features are equally averaged (c.f., 40.5% and 39.2%) in terms of network evolution. Unified or level-based buffer? Unified. Table 2e upper block reports such a perspective. In early experiments, we only have one unified buffer in order to let objects on the last level also involved in the intertwiner. Besides, the visual features of large objects should be irrelevant of scale variation. This achieves a satisfying AP already. We also try applying different buffers on each level3. The performance improvement is slight, although the additional memory cost is minor. 3In such case, the last level adopts the buffer on level 2 since it contains the most number of large objects. Published as a conference paper at ICLR 2019 Other investigations. As discussed at the end of Sec. 3.1, detaching buffer transaction from gradient update attracts improvement (40.5% vs 40.1% in Table 2e). Moreover, we tried imposing stronger supervision on the similarity feature of large proposals by branching out a cross-entropy loss, for purpose of diversifying the critic outputs among different categories. However, it does not work and this additional loss seems to dominate the training process. 4.2 COMPARISON TO STATE-OF-THE-ARTS Performance. We list a comparison of our Inter Net with previous state-of-the-arts in Table 4 in the appendix. Without multi-scale technique, ours (42.5%) still favorably outperforms other two-stage detectors (e.g., Mask-RCNN, 39.2%) as well as one-stage detector (SSD, 31.2%). Moreover, we showcase in Fig. 4 the per-class improvement between the baseline and the improved model after adopting feature intertwiner in Table 2a (two gray rows). The most improved classes are microwave, truck while the results in couch, bat decrease. Most small-size categories get improved. As for the dining table parking meter refrigerator potted plant baseball glove traffic light tennis racket sports ball fire hydrant baseball bat Change in AP Figure 4: Improvement per category after embedding the feature intertwiner on COCO dataset. distinct drop for the couch class, we find that for a large couch among samples on COCO, usually there sit a bunch of people, stuff, pets, etc. And yet the annotations in these cases would cover the whole scenario including these noises, making the feature representation of the large couch quite inaccurate. The less accurate features would guide the learning of their small counterparts, resulting in a lower AP for this class. Model complexity and timing. The feature intertwiner only increases three light-weight conv. layers at the make-up and critic units. The usage of class buffer could take up a few GPU memory on-the-fly; however, since we adopt an all-history strategy, the window size is just 1 instead of a much larger K. The additional cost to the overall model parameters is also from the OT module for each level; however, we find using just one conv. layer for the critic H and two conv. layers with small kernels for generator F is enough to achieve good result. Training on 8 GPUs with batch size of 8 takes around 3.4 days; this is slower than Mask-RCNN reported in (He et al., 2017). The memory cost on each card is 9.6 GB, compared with baseline 8.3 GB. The inference runs at 325ms per image (input size is 800) on a Titan Pascal X, increasing around 5% time compared to baseline (308 ms). We do not intentionally optimize the codebase, however. 5 CONCLUSION AND FUTURE WORK In this paper, we propose a feature intertwiner module to leverage the features from a more reliable set to help guide the feature learning of another less reliable set. This is a better solution for generating a more compact centroid representation in the high-dimensional space. It is assumed that the high-level semantic features within the same category should resemble as much as possible among samples with different visual variations. The mutual learning process helps two sets to have closer distance within the cluster in each class. The intertwiner is applied on the object detection task, where a historical buffer is proposed to address the sample missing problem during one mini-batch and the optimal transport (OT) theory is introduced to enforce the similarity among the two sets. Since the features in the reliable set serve as teacher in the feature learning, careful preparation of such features is required so that they would match the information in the small-object set. This is why we design different options for the large set and finally choose OT as a solution. With aid of the feature intertwiner, we improve the detection performance by a large margin compared to previous state-of-the-arts, especially for small instances. Published as a conference paper at ICLR 2019 Feature intertwiner is positioned as a general alternative to feature learning. As long as there exists proper division of one reliable set and the other less reliable set, one can apply the idea of utilizing the reliable set guide the feature learning of another, based on the hypothesis that these two sets share similar distribution in some feature space. One direction in the future work would be applying feature intertwiner into other domains, e.g., data classification, if proper set division are available. ACKNOWLEDGMENTS We thank Buyu Li for helpful comments in a preliminary version of this work. H. Li and S. Shi are supported by the Hong Kong Ph D Fellowship Scheme. This project is also supported by the Research Grants Council of Hong Kong under grant CUHK14208417, CUHK14202217, and the Hong Kong Innovation and Technology Support Programme Grant ITS/121/15FX. Martin Arjovsky, Soumith Chintala, and Lon Bottou. Wasserstein GAN. In ar Xiv preprint:1701.07875, 2017. 7 Guobin Chen, Wongun Choi, Xiang Yu, Tony Han, and Manmohan Chandraker. Learning Efficient Object Detection Models with Knowledge Distillation. In NIPS, 2017. 5, 12 Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In NIPS, 2013. 6, Jifeng Dai, Yi Li, Kaiming He, and Jian Sun. R-FCN: Object Detection via Region-based Fully Convolutional Networks. In NIPS, 2016. 3, 14 J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Image Net: A Large-Scale Hierarchical Image Database. In CVPR, 2009. 3 Cheng-Yang Fu, Wei Liu, Ananth Ranga, Ambrish Tyagi, and Alexander C. Berg. DSSD : Deconvolutional Single Shot Detector. In ar Xiv preprint:1701.06659, 2017. 14 Aude Genevay, Gabriel Peyr, and Marco Cuturi. Learning generative models with sinkhorn divergences. In ar Xiv preprint:1706.00292, 2017. 6, 12, 13, 14 Ross Girshick. Fast R-CNN. In ICCV, 2015. 3, 4, 6, 14 Priya Goyal, Piotr Dollr, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. ar Xiv preprint:1706.02677, 2017. 15 Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 1, 3, 7, 12, 14 Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask R-CNN. In ICCV, 2017. 3, 7, 9, 13, 14 Jonathan Huang, Vivek Rathod, Chen Sun, Menglong Zhu, Anoop Korattikara, Alireza Fathi, Ian Fischer, Zbigniew Wojna, Yang Song, Sergio Guadarrama, and Kevin Murphy. Speed/accuracy trade-offs for modern convolutional object detectors. In CVPR, 2017. 14 Katarzyna Janocha and Wojciech Marian Czarneck. On loss functions for deep neural networks in classification. 2017. 1 Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. In Technical Report, 2009. 14 Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. 1, 3 M. Pawan Kumar, Ben Packer, and Daphne Koller. Self-paced learning for latent variable models. In NIPS, 2010. 12 Published as a conference paper at ICLR 2019 Hongyang Li, Yu Liu, Wanli Ouyang, and Xiaogang Wang. Zoom out-and-in network with map attention decision for region proposal and object detection. International Journal of Computer Vision. 3 Hongyang Li, Xiaoyang Guo, Bo Dai, Wanli Ouyang, and Xiaogang Wang. Neural network encapsulation. In ECCV, 2018. 1 Jianan Li, Yunchao Wei, Xiaodan Liang, Jian Dong, Tingfa Xu, Jiashi Feng, and Shuicheng Yan. Attentive Contexts for Object Detection . In ar Xiv preprint:1603.07415, 2016. 3 Tsung-Yi Lin, Piotr Dollr, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017a. 3, 7, 12, 14, 15 Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollr. Focal loss for dense object detection. In ICCV, 2017b. 14 Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, and Scott Reed. Ssd: Single shot multibox detector. In ar Xiv preprint:1512.02325, 2015. 3, 14, 15 Weiyang Liu, Yandong Wen, Zhiding Yu, Ming Li, Bhiksha Raj, and Le Song. Sphereface: Deep hypersphere embedding for face recognition. In CVPR, 2017a. 1, 3 Yu Liu, Hongyang Li, and Xiaogang Wang. Rethinking feature discrimination and polymerization for large-scale recognition. In NIPS Deep Learning Workshop, 2017b. 1, 3 Ying Lu, Liming Chen, and Alexandre Saidi. Optimal transport for deep joint transfer learning. In ar Xiv preprint:1709.02995, 2017. 12 Roozbeh Mottaghi, Xianjie Chen, Xiaobai Liu, Nam-Gyu Cho, Seong-Whan Lee, Sanja Fidler, Raquel Urtasun, and Alan Yuille. The role of context for object detection and semantic segmentation in the wild. In CVPR, 2014. 3 Gabriel Peyr and Marco Cuturi. Computational optimal transport. In ar Xiv preprint:1803.00567, 2018. 6 Joseph Redmon and Ali Farhadi. Yolo9000: Better, faster, stronger. In ar Xiv preprint:1612.08242, 2016. 3, 14 Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016. 15 Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. In NIPS, 2015. 3, 7 Tim Salimans, Han Zhang, Alec Radford, and Dimitris Metaxas. Improving GANs using optimal transport. In ICLR, 2018. 12, 14 Abhinav Shrivastava, Rahul Sukthankar, Jitendra Malik, and Abhinav Gupta. Beyond skip connections: Top-down modulation for object detection. In ar Xiv preprint:1612.06851, 2016. 3, 14 K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 3 Richard Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. Ann. Math. Statist., 35(2):876 879, 06 1964. 6 Serge Belongie Lubomir Bourdev Ross Girshick James Hays Pietro Perona Deva Ramanan C. Lawrence Zitnick Piotr Dollar Tsung-Yi Lin, Michael Maire. Microsoft COCO: Common Objects in Context. In ar Xiv preprint:1405.0312, 2015. 3, 7 Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research, 9:2579 2605, 2008. 2 Yandong Wen, Kaipeng Zhang, Zhifeng Li, and Yu Qiao. A discriminative feature learning approach for deep face recognition. In ECCV, 2016. 1, 3, 12 Published as a conference paper at ICLR 2019 6.1 MORE RELATED WORK Self-supervised learning. The buffer in the feature intertwiner can be seen as utilizing non-visual domain knowledge on a set of data to help supervise the feature learning for another set in highdimensional space. Such a spirit falls into the self-supervised learning domain. In (Chen et al., 2017), Chen et al. proposed a knowledge distillation framework to learn compact and accurate object detectors. A teacher model with more capacity is designed to provide strong information and guide the learning of a lite-weight student model. The center loss (Wen et al., 2016) is formulated to learn a class center and penalize samples that have a larger distance with the centroid. It aims at enlarging inter-class resemblance with cross-entropy (CE) loss as well as narrowing down innerclass divergence for face recognition. In our work, the feature intertwiner gradually aggregates statistics of a meta-subset and utilizes them as targets during the feature learning of a less accurate (yet holding a majority) subset. We are inspired by the proposal-split mechanism in object detection domain to learn recognition at separate scales in the network. The self-paced learning framework (Kumar et al., 2010) deals with two sets as well, where the easy examples are first introduced to optimize the hidden variable and later on during training, the hard examples are involved. There is no interaction between the two sets. The division is based on splitting different samples. In our framework, the two sets mutually help and interact with each other. The goal is towards optimizing a more compact class centroid in the feature space. These are two different branches of work. Optimal transport (OT) has been applied in two important tasks. One is for transfer learning in the domain adaption problem. Lu et al. (Lu et al., 2017) explored prior knowledge in the cost matrix and applied OT loss as a soft penalty for bridging the gap between target and source predictions. Another is for estimating generative models. In (Salimans et al., 2018), a metric combined with OT in primal form with an energy distance results in a highly discriminative feature representation with unbiased gradients. Genevay et al. (Genevay et al., 2017) presents the first tractable method to train large-scale generative models using an OT-based loss. We are inspired by these works in sense that OT metric is favorably competitive to measure the divergence between two distributions supported on low-dimensional manifolds. 6.2 ASSIGNMENT OF LARGE AND SMALL SETS IN OBJECT DETECTION In this paper we adopt the Res Net model (He et al., 2016) with feature pyramid dressings (Lin et al., 2017a) constructed on top. It generates five levels of feature maps to serve as inputs for the subsequent RPN and detection branches. Denote the level index as l = {1, . . . , 5} and the corresponding feature maps as Pl. Level l = 1 is the most shallow stage with more local details for detecting tiny objects and level l = 5 is the deepest stage with high-level semantics. Let A = {aj} denote the whole set of proposals generated by RPN from l2 to l6 (level six is generated from l5, for details refer to (Lin et al., 2017a)). The region proposals are divided into different levels from l2 to l5: a(l) j l = a0 + log( q Area(aj)/base), (6) where a0=4 as in (Lin et al., 2017a); base=224 is the canonical Image Net pre-training setting. Table 3 shows a detailed breakdown4 of the proposal allocation based on Eqn. (6). We can see most proposals from RPN focus on identifying small objects and hence are allocated at shallow level l = 2. The threshold is set to be the ratio of Ro I output s area over the area of feature map. For example, threshold on l = 3 is obtained by (14/64)2, where 14 is the Ro I output size as default setting. Proposals whose area is below the threshold suffer from the inherent design during Ro I operation - these feature outputs are up-sampled by a simple interpolation. The information of small regions is already lost and Ro I layer does not help much to recover them back. As is shown on the fourth row ( below # / above # ), such a case holds the majority. This observation brings in the necessity of designing a meta-learner to provide guidance on feature learning of small objects due to the loophole during the Ro I layer. 4Each sample has 200 proposals with input size being 512. Batch size is 2, resulting in 400 proposals in total. Statistics are averaged per iteration, based on the output of RPN network during training. Published as a conference paper at ICLR 2019 level l 2 3 4 5 proposal # (perc.) 302 (75%) 36 (9%) 54 (14%) 8 (2%) threshold 0.012 0.0479 0.1914 0.7657 below # / above # 263 / 39 25 / 11 34 / 20 8 / 0 intertwiner small # 302 36 54 8 intertwiner large # 98 62 8 - Table 3: Proposal assignment on each level before Ro I operation. below # indicates how many proposals are there whose size is below the size of Ro I output. intertwiner large # stands for how many proposals are used for supervising the learning of small objects. For level l in the network, we define small proposals (or Ro Is) to be those already assigned by (6) and large to be those above l: a(l,s) a(l) j , a(l,b) = [ m>l a(m) j , (7) where the superscript s,b denotes the set of small and large proposals, respectively. The last two rows in Table 3 show an example of the assignment. These Ro Is are then fed into the Ro I-pooling layer5 to generate output features maps for the subsequent detection pipeline to process. One may wonder the last level do not have large objects for reference based on Eqn. (7). In preliminary experiments, leaving proposals on the last level out of the intertwiner could already improve the overall performance; however, if the last level is also involved (since the buffer is shared across all levels), AP for large objects also improves. See the experiments in Sec. 4.1 for detailed analysis. 6.3 SINKHORN DIVERGENCE Let u , u indicate the individual sample after degenerating high-dimensional features Pm|l, Pl from two spaces into low manifolds. u , u are vectors of dimension k. The number of samples in these two distributions is denoted by C1 and C2, respectively. The OT metric between two joint probability distributions supported on two spaces (U, U) is defined as the solution of the linear program (Cuturi, 2013). Denote the data and reference distribution as Pψ, Pr Prob(U)6, respectively, we have the continuous form of OT divergence: WQ(Pψ, Pr) = inf γ Γ(Pψ,Pr) E Z U U Q(u , u)dγ(u , u) , (8) where γ is a coupling; Γ is the set of couplings that consists of joint distributions. Intuitively, γ(u , u) implies how much mass must be transported from u to u in order to transform the distribution Pψ into Pr; Q is the ground cost to move a unit mass. Eqn. (8) above becomes the p-Wasserstein distance (or loss, divergence) between probability measures when U is equipped with a distance DU and Q = DU(u , u)p, for some exponent p. The biased version of Sinkhorn divergence used in Table 1 is defined by: 2WQ(Pψ, Pr) WQ(Pr, Pr) WQ(Pψ, Pψ). More analysis on Table 1. All these options have been discussed explicitly at the beginning of Sec. 3.3. Option (a) is inferior due to the inappropriateness of feature maps; (b) serves as the baseline and used as the default setting in Table 2. Options in (c) verifies that up-sampling feature maps from higher-level onto current level is preferable; F being a neural net ensures better improvement. Options in (d) illustrates the case where a supervision signal is imposed onto pair (Pl, Pm|l) to make better alignment between them. We can observe that OT outperforms other variants in this setup. Moreover, we tried a biased version (Genevay et al., 2017) of the Sinkhorn divergence. However, it does not bring in much gain compared to the previous setup. Besides, it could burden system efficiency during training (although it is minor considering the total time per iteration). Such a 5In this paper, we opt for the Ro IAlign (He et al., 2017) option in the Ro I layer; one can resort to other options nonetheless. We use term Ro I layer, Ro I-pooling layer, Ro I operation, to refer to the same process. 6Prob(U) is the set of probability distributions over a metric space U. Published as a conference paper at ICLR 2019 phenomenon could result from an improper update of critic and generator inside the OT module, since the gradient flow would be iterated twice more for the last two terms above. Extending OT divergence to image classification. We also testify OT divergence on CIFAR-10 (Krizhevsky & Hinton, 2009) where feature maps between stages are aligned via OT. Test error decreases by around 1.3%. This suggests the potential application of OT in various vision tasks. Different from OT in generative models, we deem the channel dimension as different samples to compare, instead of batch-wise manner as in (Salimans et al., 2018); and treat the optimization of F and H in a unified min problem, as opposed to the adversarial training (Genevay et al., 2017). 6.4 COMPARISON TO STATE-OF-THE-ARTS ON COCO AND PASCAL VOC Table 4 reports the performance of our model compared with other state-of-the-arts on COCO dataset. We can observe that it outperforms all previous one-stage or two-stage detectors by a large margin. The multi-scale technique bundled with data augmentation increases detection accuracy in a more evident manner, which is commonly adopted in most detectors. The updated result in Mask-RCNN is reported as well. It increases the original performance from 38.2% to 43.5% by switching the backbone structure to Res Net X, an updated baseline model, Image Net-5k pre-training and train-time augmentation. It is better than ours (42.5% without multi-scale version). This is probably mainly due to the change of network structure. Our multi-scale version (44.2%) is better than the updated Mask-RCNN result, however. backbone AP AP50 AP75 APS APM APL One-stage detector YOLOv2 (Redmon & Farhadi, 2016) Dark Net-19 21.6 44.0 19.2 5.0 22.4 35.5 SSD513 (Liu et al., 2015) Res Net-101-SSD 31.2 50.4 33.3 10.2 34.5 49.8 DSSD513 (Fu et al., 2017) Res Net-101-DSSD 33.2 53.3 35.2 13.0 35.4 51.1 Two-stage detector F-R-CNN+++ (He et al., 2016) Res Net-101-C4 34.9 55.7 37.4 15.6 38.7 50.9 F-R-CNN w FPN (Lin et al., 2017a) Res Net-101-FPN 36.2 59.1 39.0 18.2 39.0 48.2 F-R-CNN by G-RMI (Huang et al., 2017) Incept.-Res Net-v2 34.7 55.5 36.7 13.5 38.1 52.0 F-R-CNN w TDM (Shrivastava et al., 2016) Incept.-Res Net-v2-TDM 36.8 57.7 39.2 16.2 39.8 52.1 R-FCN (Dai et al., 2016) Res Net-101 29.9 51.9 - 10.8 32.8 45.0 Mask RCNN (He et al., 2017) Res Net-101-FPN 38.2 60.3 41.7 20.1 41.1 50.2 Retina Net (Lin et al., 2017b) Res Net-101-FPN 39.1 59.1 42.3 21.8 42.7 50.2 Mask RCNN, updated in (He et al., 2017) Res Net X-101-FPN 43.5 65.9 47.2 - - - Inter Net (ours) Res Net-101-FPN 42.5 65.1 49.4 25.4 46.6 54.3 Inter Net (ours) multi-scale Res Net-101-FPN 44.2 67.5 51.1 27.2 50.3 57.7 Table 4: Object detection single-model performance (bounding box AP) on the COCO test-dev. We show two versions of Inter Net that incorporates both the feature intertwiner module and OT agreement. The latter is achieved with data augmentation, 1.5 longer training time and multi-scale training. F-R-CNN stands for Faster R-CNN. Our Inter Net is also a two-stage detector. Model Structure Training data m AP Fast R-CNN (Girshick, 2015) VGG-16 07 66.9 Faster R-CNN (He et al., 2016) VGG-16 07 69.9 SSD512 (Liu et al., 2015) VGG-16 07 71.6 Inter Net (ours) VGG-16 07 73.1 Faster R-CNN (He et al., 2016) Res Net-101 07+12 76.4 R-FCN (Dai et al., 2016) Res Net-101 07+12 80.5 Inter Net (ours) Res Net-101 07+12 82.7 Table 5: Comparison of our model with feature intertwiner to other methods on PASCAL VOC 2007 test set. Here we adopt two backbone options: Res Net-101 and VGG-16 without FPN to fairly compare with others. The number of levels is 4, the same as on COCO benchmark. To further verify the effectiveness of the feature intertwiner, we further conduct experiments on the PASCAL VOC 2007 dataset. The results are shown in Table 5. Two network structures are adopted. Published as a conference paper at ICLR 2019 For Res Net-101, the division of the four levels are similar as Res Net-101-FPN on COCO; for VGG16, we take the division similarly as stated in SSD (Liu et al., 2015). Specifically, the output of layer conv7 , conv8 2 , conv9 2 and conv10 2 are used for P2 to P5, respectively. Our method performs favorably against others in both backbone structures on the PASCAL dataset. 6.5 TRAINING AND TEST DETAILS We adopt the stochastic gradient descent as optimizer. Initial learning rate is 0.01 with momentum 0.9 and weight decay 0.0001. Altogether there are 13 epoches for most models where the learning rate is dropped by 90% at epoch 6 and 10. We find the warm-up strategy (Goyal et al., 2017) barely improves the performance and hence do not adopt it. The gradient clip is introduced to prevent training loss to explode in the first few iterations, with maximum gradient norm to be 5. Batch size is set to 8 and the system is running on 8 GPUs. The object detector is based on Mask-RCNN (or Faster-RCNN). Ro IAlign is adopted for better performance. The model is initialized with the corresponding Res Net model pretrained on Image Net. The new proposed feature intertwiner module is trained from scratch with standard initialization. The basic backbone structure for extracting features is based on FPN network (Lin et al., 2017a), where five Res Net blocks are employed with up-sampling layers. The region proposal network consists of one convolutional layer with one classification and regression layer. The classifier structure is similar as RPN s - one convolution plus one additional classification/regression head. Non-maximum suppression (NMS) is used during RPN generation and detection test phase. Threshold for RPN is set to 0.7 while the value is 0.3 during test. We do not adopt a dense allocation of anchor templates as in some literature (Liu et al., 2015; Redmon et al., 2016); each pixel on a level only has the number of anchors the same as the number of aspect ratios (set to 0.5, 1 and 2). Each level l among the five stages owns a unique anchor size: 32, 64, 128, 256, and 512. 6.6 NETWORK STRUCTURE IN FEATURE INTERTWINER The detailed network architecture on the make-up layer and critic layer are shown below. Output size Layers in the make-up module B Cl 14 14 conv2d(Cl, Cl, k = 3, padding = 1) B Cl 14 14 batchnorm2d(Cl) B Cl 14 14 relu( ) Table 6: Network structure of the make-up unit, which consists of one convolutional layer without altering the spatial size. Input: Ro I output of the small-set feature map Pl. We denote the output of the make-up layer as P l . B is the batch size in one mini-batch; Cl is the number of channels after the feature extractor in Res Net blocks for each level. For example, when l = 2, Cl = 256, etc. Output size Layers in the critic module B 512 7 7 conv2d(Cl, 512, k = 3, padding = 1, stride = 2) B 512 7 7 batchnorm2d(512) B 512 7 7 relu( ) B 1024 1 1 conv2d(512, 1024, k = 7) B 1024 1 1 batchnorm1d(1024) B 1024 1 1 relu( ) B 1024 1 1 sigmoid( ) Table 7: Network structure of the critic unit. Input: for large set, it is the Ro I output of the large-set feature map Pm|l and for small set, it is the output of the make-up layer P l . B is the batch size in one mini-batch; Cl is the number of channels in Res Net blocks.