# Localization Distillation for Object Detection

객체 검출을 위한 위치 증류

Zhaohui Zheng, Rongguang Ye, Qibin Hou, Dongwei Ren, Ping Wang, Wangmeng Zuo 외 1명 · arXiv · 2022년 4월 12일

- **연구 문제** 객체 탐지의 지식 증류는 주로 feature imitation에 의존해 왔고 logit mimicking은 지역화 지식을 전달하지 못한다고 여겨졌습니다. 이 논문은 바운딩 박스 분포를 logit 수준에서 증류하면 이 인식이 달라지는지를 검토합니다.
- **연구 방법** 지역화 증류(LD)는 바운딩 박스 각 변의 확률 분포를 교사에서 학생으로 logit 수준에서 전달하며, valuable localization region으로 증류 위치를 선택적으로 나눕니다.
- **주요 결과** COCO val2017에서 ResNet-50 학생의 AP는 기준선 40.1에서 LD와 VLR을 함께 쓴 설정에서 42.1로 올라갑니다. 저자들은 이 결과로 로짓 모방이 특징 모방을 넘을 수 있다고 해석합니다.

## 로짓 모방은 지역화 지식을 전달하지 못하는가

객체 탐지에서 교사 네트워크의 지식을 학생 네트워크로 옮기는 방법으로는 중간 feature map을 맞추는 feature imitation이 주로 연구되어 왔습니다. 논문은 원래의 logit mimicking이 분류 헤드의 logit만 전달하므로 지역화 정보를 효율적으로 전달하지 못한다고 설명합니다. 이 때문에 기존 연구는 logit을 직접 증류하기보다 feature를 모방하는 쪽으로 기울었습니다.

이 논문은 이 가정을 다시 묻습니다. 로짓 모방이 특징 모방보다 항상 뒤처지는지, 그리고 지역화 지식을 logit 수준에서 함께 전달하면 그 차이가 바뀌는지가 핵심 질문입니다.

## 바운딩 박스 분포를 logit 수준에서 증류하는 방법

지역화 증류(localization distillation, LD)는 교사와 학생의 바운딩 박스 각 변을 이산화된 확률 분포로 바꾸어 비교합니다. 회귀 범위를 n개의 구간으로 나누면 localization head는 n+1개의 logit을 출력하고, 각 변의 분포는 온도 τ를 둔 generalized SoftMax인 \\(S(\\cdot,\\tau)\\)로 만들어집니다. τ가 1이면 일반 SoftMax와 같고 τ가 커지면 분포가 부드러워져 더 많은 지역화 정보를 담습니다. 논문은 기본값으로 τ=10을 사용합니다.

한 변에 대한 LD 손실은 학생 분포와 교사 분포 사이의 교차 엔트로피입니다. 박스의 네 변에 대해 이 손실을 합산하며, 교사 검출기는 고정된 상태로 사용됩니다. 이 방식은 교사의 예측 박스를 하나의 좌표로만 쓰는 pseudo bounding box regression과 달리 분포의 평탄함과 sharpness를 함께 전달합니다.

## 주 증류 영역과 valuable localization region

증류가 적용되는 위치는 두 영역으로 나뉩니다. 주 증류 영역(main distillation region)은 label assignment로 정해진 검출 헤드의 양성 위치입니다. valuable localization region(VLR)은 앵커 박스와 GT 박스 사이의 DIoU 행렬 X를 계산한 뒤, 하한 γ·αpos와 상한 αpos 사이에 있는 위치로 정의됩니다.

따라서 γ=0이면 0 이상 αpos 이하의 모든 위치가 VLR이 되고, γ가 1에 가까워질수록 VLR은 비게 됩니다. 논문의 선택적 영역 증류는 지역화 항을 주 영역과 VLR에 적용하고, 분류 KD는 주 영역에만 적용하는 조합을 포함합니다. DIoU를 쓴 이유는 객체 중심에 가까운 위치에 더 높은 우선순위를 주기 위해서라고 설명됩니다.

![Figure 5: Visual comparisons between the state-of-the-art feature imitation and our LD. We show the per-location L1 error summation of the localization head lo…](https://refivu.com/papers/563d8312-dafb-4514-a066-301ec237e990/figures/figure-716908aa9d362b6b091dd110ff803b7c.png?thumb=512)

**Fig. 5** . Visual comparisons between the state-of-the-art feature imitation and our LD. We show the per-location L1 error summation of the localization head logits between the teacher and the student as the P5 (ﬁrst row) and P6 (second row) FPN levels. The teacher is ResNet-101 and the student is ResNet-50. We can see that compared to the GI imitation \[27\], our method (“Main LD + VLR LD”) can signiﬁcantly reduce the errors for almost all the locations. Darker is better. Best viewed in color.

[원문](https://arxiv.org/abs/2204.05957v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhaohui Zheng, Rongguang Ye, Qibin Hou, Dongwei Ren, Ping Wang, Wangmeng Zuo, Ming-Ming Cheng · Localization Distillation for Object Detection · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## LD와 분류 KD의 최적화 효과 연결

논문은 LD가 분류 KD와 같은 최적화 성질을 공유한다는 명제를 제시합니다. 명제 1은 상수 u1과 u2가 u1+u2=1을 만족한다는 조건에서, 두 분류 확률의 선형 결합에 대한 LD 효과가 각 확률에 대한 KD 효과의 같은 선형 결합과 같다고 말합니다. 지역화 확률은 두 분류 확률로 분해할 수 있다는 조건에서 같은 관계가 성립합니다.

이 결과는 LD의 logit 기울기가 분류 KD와 같은 구조를 따른다는 이론적 연결입니다. 원문은 부록에서 DFL에 대한 기울기 재조정 효과도 이 연결의 따름정리로 제시하지만, 이를 실험 성능의 직접적인 증명으로 해석하지 않습니다.

## COCO에서 LD와 VLR의 절제 결과

COCO val2017에서 ResNet-101 교사와 ResNet-50 학생을 쓴 절제 실험의 기준선은 AP 40.1입니다. 온도 τ=10의 LD는 AP 41.1을 보고하며, 논문은 이 값을 이후 실험의 기본 설정으로 사용합니다. 주 영역에서 LD와 VLR을 함께 쓰고 분류 KD를 주 영역에 적용한 설정은 AP 42.1, AP50 60.3, AP75 45.6을 보고합니다.

VLR의 비율 γ를 바꾼 실험에서 γ가 0부터 0.5까지인 범위의 AP는 41.7에서 41.8 사이로 대체로 안정적입니다. γ가 1이어서 VLR이 비면 AP는 41.1로 주 영역 LD만 쓴 결과와 같아집니다. VLR KD를 추가해도 COCO에서는 개선이 없었으므로, 논문은 분류 KD를 주 영역에만 적용하는 선택을 채택했습니다.

## 로짓 모방과 특징 모방의 비교

같은 COCO 설정에서 특징 모방 방법들은 FitNets 40.7, Fine-Grained 41.1, GI Imitation 41.5 AP를 보고합니다. 제안 방식인 Ours는 42.1 AP입니다. 논문은 이 차이를 로짓 모방이 특징 모방보다 나을 수 있다는 근거로 제시하며, 특징 모방 방법은 저자들이 같은 설정에서 재구현했다고 밝힙니다.

![Figure 4: Visual comparisons of SOTA feature imitation and our LD. We show the average L1 error of classiﬁcation scores and box probability distributions betwe…](https://refivu.com/papers/563d8312-dafb-4514-a066-301ec237e990/figures/figure-bfd90d15d8247202ddedd1991550e797.png?thumb=512)

**Fig. 4** . Visual comparisons of SOTA feature imitation and our LD. We show the average L1 error of classiﬁcation scores and box probability distributions between teacher and student at the P4, P5, P6 and P7 FPN levels. The teacher is ResNet-101 and the student is ResNet-50. The results are evaluated on MS COCO val2017.

[원문](https://arxiv.org/abs/2204.05957v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhaohui Zheng, Rongguang Ye, Qibin Hou, Dongwei Ren, Ping Wang, Wangmeng Zuo, Ming-Ming Cheng · Localization Distillation for Object Detection · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

표현 분석에서 Ours의 deep feature 간 Pearson 상관계수는 -0.0031로 0에 가깝고, GI Imitation의 0.8175와 크게 다릅니다. 반면 bbox logit 상관계수는 Ours가 0.9733으로 GI Imitation의 0.9326보다 높습니다. 즉 이 설정에서 로짓 모방은 학생의 feature를 교사와 같게 만들지 않으면서도 logit의 거리와 선형 상관을 가깝게 만듭니다. 저자들은 이를 feature 일관성이 성능 향상의 결정적 요인이 아니라는 해석의 근거로 씁니다.

![Figure 6: Average teacher-student error on (left) deep feature representation, (middle) class logits, and (right) bbox logits. “Ours” denotes “Main LD + VLR LD…](https://refivu.com/papers/563d8312-dafb-4514-a066-301ec237e990/figures/figure-cfb3513f9fe9549c939868c97c8c1cd1.png?thumb=512)

**Fig. 6** . Average teacher-student error on (left) deep feature representation, (middle) class logits, and (right) bbox logits. “Ours” denotes “Main LD + VLR LD + Main KD”. The curves are evaluated on MS COCO val2017.

[원문](https://arxiv.org/abs/2204.05957v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhaohui Zheng, Rongguang Ye, Qibin Hou, Dongwei Ren, Ping Wang, Wangmeng Zuo, Ming-Ming Cheng · Localization Distillation for Object Detection · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 회전 객체 탐지와 경량 학생 모델에서의 적용

회전 객체 탐지에서는 각도 δθ를 포함한 회전 바운딩 박스 분포를 같은 방식으로 증류합니다. DOTA-v1.0 검증 세트에서 교사는 ResNet-34, 학생은 ResNet-18을 사용했습니다. R-RetinaNet은 AP 33.7에서 LD 적용 시 39.1로, GWD는 37.1에서 40.2로 올라갔습니다. 특히 AP70, AP80, AP90처럼 더 엄격한 IoU 임계값에서 개선이 뚜렷하다고 보고됩니다.

경량 학생 실험에서는 교사 ResNet-101로부터 ResNet-18, ResNet-34, ResNet-50 학생을 증류했고, LD는 각각 AP를 +1.7, +2.1, +2.0 올렸습니다. 이 결과는 해당 교사-학생 쌍과 COCO 설정에서 얻어진 것입니다.

## 결과의 적용 범위와 남은 질문

보고된 이득은 주로 COCO, PASCAL VOC, DOTA의 특정 교사-학생 쌍과 학습 일정에서 얻어졌습니다. 절제 실험의 기본 설정은 ResNet-101 교사와 ResNet-50 학생, 1× 학습 일정입니다. VLR 비율 γ 변화에 따른 AP 차이는 대부분 0.1 내외여서 이 범위의 차이를 큰 성능 차이로 해석하기 어렵습니다.

특징 모방과의 비교는 저자들이 재구현한 방법을 같은 설정에서 실행한 결과입니다. 따라서 다른 증류 구현이나 다른 데이터셋에서 같은 순위가 유지되는지는 이 논문만으로 확인되지 않습니다.

## 논문 정보

- **저자**: Zhaohui Zheng, Rongguang Ye, Qibin Hou, Dongwei Ren, Ping Wang, Wangmeng Zuo, Ming-Ming Cheng
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2022년 4월 12일
- **등록일**: 2026년 11월 6일
- **수정일**: 2022년 12월 8일
- **버전**: v2
- **arXiv**: 2204.05957
- **분류**: cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2204.05957v2) · [원문 PDF ↗](https://arxiv.org/pdf/2204.05957v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Previous knowledge distillation (KD) methods for object detection mostly focus on feature imitation instead of mimicking the prediction logits due to its inefficiency in distilling the localization information. In this paper, we investigate whether logit mimicking always lags behind feature imitation. Towards this goal, we first present a novel localization distillation (LD) method which can efficiently transfer the localization knowledge from the teacher to the student. Second, we introduce the concept of valuable localization region that can aid to selectively distill the classification and localization knowledge for a certain region. Combining these two new components, for the first time, we show that logit mimicking can outperform feature imitation and the absence of localization distillation is a critical reason for why logit mimicking underperforms for years. The thorough studies exhibit the great potential of logit mimicking that can significantly alleviate the localization ambiguity, learn robust feature representation, and ease the training difficulty in the early stage. We also provide the theoretical connection between the proposed LD and the classification KD, that they share the equivalent optimization effect. Our distillation scheme is simple as well as effective and can be easily applied to both dense horizontal object detectors and rotated object detectors. Extensive experiments on the MS COCO, PASCAL VOC, and DOTA benchmarks demonstrate that our method can achieve considerable AP improvement without any sacrifice on the inference speed. Our source code and pretrained models are publicly available at https://github.com/HikariTJU/LD.

## 원문 인용

Zhaohui Zheng, Rongguang Ye, Qibin Hou, Dongwei Ren, Ping Wang, Wangmeng Zuo, Ming-Ming Cheng (2022). Localization Distillation for Object Detection. arXiv:2204.05957v2. https://arxiv.org/abs/2204.05957v2

**BibTeX**

```
@misc{zheng2022localization,
  title = {{Localization Distillation for Object Detection}},
  author = {Zhaohui Zheng and Rongguang Ye and Qibin Hou and Dongwei Ren and Ping Wang and Wangmeng Zuo and Ming-Ming Cheng},
  year = {2022},
  eprint = {2204.05957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.05957v2}
}
```

## 이 논문의 용어

- [Knowledge Distillation](https://refivu.com/terms/b8544f4ba83e-knowledge-distillation)
- [AP](https://refivu.com/terms/476f7c8deadf-ap)
- [MS COCO](https://refivu.com/terms/1a7c38d39825-ms-coco)
- [DOTA](https://refivu.com/terms/d6ebdf35b2ec-dota)
- [Label assignment](https://refivu.com/terms/69850efa45e4-label-assignment)

## 다른 논문 해설

- [Multi-modal Visual Tracking: Review and Experimental Comparison](https://refivu.com/papers/fe96adae-88fb-4c19-adfb-063d5573c238-multi-modal-visual-tracking-review-and-experimental.md)
- [SeUNet-Trans: A Simple yet Effective UNet-Transformer Model for Medical Image Segmentation](https://refivu.com/papers/84841b62-f8df-4cd7-9664-581f52697e2b-seunet-trans-a-simple-yet-effective-unet-transformer.md)
- [Active label cleaning for improved dataset quality under resource constraints](https://refivu.com/papers/7eb19607-f419-4327-a897-f18af58beb22-active-label-cleaning-for-improved-dataset-quality-under.md)
- [Cross-Cohort Generalizability of Deep and Conventional Machine Learning for MRI-based Diagnosis and Prediction of Alzheimer's Disease](https://refivu.com/papers/f63536c0-e183-40b7-b92d-34b352a5722b-cross-cohort-generalizability-of-deep-and-conventional.md)
- [Inertial Sensor Data To Image Encoding For Human Action Recognition](https://refivu.com/papers/9f0968e2-3c4a-486d-9d91-46c5043c1b0a-inertial-sensor-data-to-image-encoding-for-human.md)
- [Automating Traffic Monitoring with SHM Sensor Networks via Vision-Supervised Deep Learning](https://refivu.com/papers/4acc6b93-d77f-4872-89c9-c1f224d57b9b-automating-traffic-monitoring-with-shm-sensor-networks-via.md)
- [STFT-Domain Neural Speech Enhancement with Very Low Algorithmic Latency](https://refivu.com/papers/2c2ddb27-1de6-4744-a916-ffb8e94f1f4b-stft-domain-neural-speech-enhancement-with-very-low.md)
- [InstructPatentGPT: Training patent language models to follow instructions with human feedback](https://refivu.com/papers/d15b102d-f922-4bcf-8c75-ef1ea1603b36-instructpatentgpt-training-patent-language-models-to-follow.md)
- [NMPC-Augmented Visual Navigation and Safe Learning Control for Large-Scale Mobile Robots](https://refivu.com/papers/e14c77f2-7230-4f9d-a5d7-e52ebe359838-nmpc-augmented-visual-navigation-and-safe-learning-control.md)
- [A Comprehensive Empirical Study of Bias Mitigation Methods for Machine Learning Classifiers](https://refivu.com/papers/389ec89c-4583-4ce1-94ff-6da641ee5e59-a-comprehensive-empirical-study-of-bias-mitigation-methods.md)
- [Online Planning for Multi-UAV Pursuit-Evasion in Unknown Environments Using Deep Reinforcement Learning](https://refivu.com/papers/f71898fb-d9e1-43f1-88ba-3c828eaf6de9-online-planning-for-multi-uav-pursuit-evasion-in.md)
- [An Explainable CNN Approach for Medical Codes Prediction from Clinical Text](https://refivu.com/papers/2e80fa24-ec99-471e-8338-d3af6d4e8122-an-explainable-cnn-approach-for-medical-codes-prediction.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/563d8312-dafb-4514-a066-301ec237e990-localization-distillation-for-object-detection)
