# Learning Disentangled Representation Implicitly via Transformer for Occluded Person Re-Identification

Transformer를 통해 암묵적으로 얽힘이 풀린 표현을 학습하는 가려진 사람 재식별

Mengxi Jia, Xinhua Cheng, Shijian Lu, Jian Zhang · arXiv · 2021년 7월 6일

- **연구 문제** 기존 가림 대응 사람 재식별 방법은 외부 단서나 지역 특징 매칭으로 신체 부위를 정렬해야 하며, 그 과정이 복잡하고 잡음에 민감합니다.
- **연구 방법** DRL-Net은 transformer의 object query로 정렬 없이 ID 특징과 가림 특징을 분리하고, 디코릴레이션 제약과 CFL로 두 특징을 나눕니다.
- **주요 결과** Occluded-DukeMTMC에서 DRL-Net은 Rank-1 65.0%와 mAP 50.8%를 보고했으며, 절제 실험에서 CFL 추가가 Rank-1을 4.5%, mAP를 2.6% 높였습니다.

## 가림이 있는 사람 재식별의 어려움

사람 재식별(re-ID)은 서로 겹치지 않는 카메라에서 촬영된 사람 이미지를 같은 사람으로 연결하는 문제입니다. 가림(occlusion)이 있으면 신체 일부가 보이지 않아 이미지 사이의 정렬이 어긋나고, 그 결과 매칭 오류가 늘어납니다. 기존 holistic re-ID 방법들은 사람 전체가 보인다고 가정하므로 이런 상황에 잘 일반화되지 않습니다.

기존 가림 대응 방법은 크게 두 흐름으로 나뉩니다. 하나는 사람 파싱, 자세 추정, 전경 분할 같은 외부 단서로 신체 부위를 정렬하는 방식입니다. 다른 하나는 지역 특징의 유사도로 부위끼리 짝을 짓는 part-to-part 매칭입니다. 저자들은 외부 단서가 심한 가림이나 배경 잡음에서 신뢰하기 어렵고, 자동 정렬은 최단 경로나 클러스터링 같은 복잡한 절차를 요구한다고 지적합니다. 이 논문은 이러한 명시적 정렬 없이 가림에 강한 표현을 얻는 것을 목표로 합니다.

## DRL-Net의 구조와 object query

DRL-Net은 정렬 없이 disentangled representation을 학습하는 transformer 기반 프레임워크입니다. CNN backbone이 이미지 x에서 특징 맵을 만들고, 1×1 convolution으로 채널 수를 d로 줄인 뒤 공간 차원을 펼쳐 transformer 입력 시퀀스를 구성합니다. 인코더 attention 층의 입력에는 학습 가능한 위치 인코딩이 더해집니다.

![Figure 1: Illustration of the proposed DRL-Net in occluded per- son re-ID: Person images often suffer from various occlusions with different visible and invisi…](https://refivu.com/papers/ce1bed15-4e9f-43c2-88a8-7932eb7cdc7b/figures/figure-66647c46dc9f156ea751a4152ca0e471.png?thumb=512)

**Fig. 1** : Illustration of the proposed DRL-Net in occluded per- son re-ID: Person images often suffer from various occlusions with different visible and invisible body parts which greatly complicate image alignment and similarity computation. The proposed DRL-Net is alignment-free which exploits semantic preferences object queries that guide transformer to disentan- gle the representation of body parts and eliminate occlusion noises in similarity measurement.

[원문](https://arxiv.org/abs/2107.02380v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengxi Jia, Xinhua Cheng, Shijian Lu, Jian Zhang · Learning Disentangled Representation Implicitly via Transformer for Occluded Person Re-Identification · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

디코더 입력으로는 semantic preferences object queries Q가 사용됩니다. Nq−1개는 사람의 의미 구성요소에 대응하는 ID relevant query이고, 하나는 occlusion query입니다. 이들이 만든 출력 F 중 ID relevant 출력은 이어 붙여 ID relevant feature f가 되고, occlusion query의 출력은 ID irrelevant feature f̃가 됩니다. 신체 부위를 직접 지정하지 않고 query가 구성요소를 나누어 맡도록 한다는 점이 핵심입니다.

학습 단계의 identity loss는 label smoothing을 적용한 cross entropy로, 평활화 계수 ϵ은 0.1로 설정됩니다. 추론 단계에서는 증강 없이 query와 gallery 이미지를 입력하고, ID relevant feature만으로 cosine distance 행렬 D를 계산하며 ID irrelevant feature는 거리 계산에서 제외합니다.

## Object query 디코릴레이션 제약

디코릴레이션 제약은 서로 다른 object query가 서로 다른 의미 구성요소에 집중하도록 유도하는 항입니다. 한 이미지에서 얻은 query 집합 Q\_i에 대해, 모든 쌍 (n, m)의 정규화된 내적 절댓값 \|⟨q\_in, q\_im⟩\| / (‖q\_in‖‖q\_im‖)을 합산하고 계수 α를 곱하여 손실 Lo를 정의합니다. 여기서 합은 학습 샘플 i 전체와 query 쌍 전체에 대해 취해집니다.

이 항은 query 사이의 방향 유사도를 벌하므로, 값이 작아질수록 query들이 서로 덜 겹치는 방향을 갖게 됩니다. 원문은 α가 작으면 Lo의 값을 충분히 누르지 못해 query의 분리 능력이 약해지고, α가 너무 크면 특징 표현 능력이 손상될 수 있다고 설명합니다. 이 관계는 파라미터 분석에서 확인된 경향으로, 다른 데이터셋이나 모델에 일반화된 결론은 아닙니다.

## OSA와 contrast feature learning

Occluded sample augmentation(OSA)은 학습 배치의 원본 이미지에 학습 데이터에서 모은 obstacle을 합성해 가림 샘플의 다양성을 늘립니다. 각 이미지 x\_i는 같은 라벨을 가진 k개의 가림 이미지를 만들며, 원본과 증강본이 함께 CFL의 입력으로 쓰입니다.

CFL은 contrast triplet으로 ID relevant 특징을 학습합니다. 앵커는 원본 이미지이고, 같은 ID지만 다른 obstacle을 가진 이미지가 positive, 다른 ID이지만 같은 obstacle을 가진 이미지가 negative가 됩니다. 이 triplet loss는 ID relevant 특징에 적용됩니다. 또한 reverse triplet loss는 positive와 negative를 뒤바꾸어 ID irrelevant 특징이 가림과 잡음을 담도록 유도합니다. 전체 손실은 L = Lce + Lo + Ltri + λLrtri로 정의되며, λ는 reverse triplet loss의 scale factor입니다.

## Occluded-DukeMTMC 비교와 절제 실험

Occluded-DukeMTMC에서 DRL-Net은 Rank-1 65.0%, Rank-5 79.3%, Rank-10 83.6%, mAP 50.8%를 보고합니다. 이 평가는 단일 query 모드에서 re-ranking을 쓰지 않은 설정이며, 학습·query·gallery 집합이 각각 9%, 100%, 10%의 가림 이미지를 포함하는 표준 설정을 따릅니다.

절제 실험에서 Baseline은 51.0의 Rank-1을 보였습니다. Baseline+T는 transformer를 추가해 59.6으로 올랐고, Baseline+T+OSA는 60.5가 되었으며, CFL을 더한 Baseline+T+OSA+CFL은 65.0이 되었습니다. 저자들은 CFL이 Baseline+T+OSA 대비 Rank-1을 4.5%, mAP를 2.6% 높인다고 보고합니다. 같은 표에서 OSA를 더한 변형은 mAP가 49.0에서 48.2로 낮아졌으므로, OSA가 모든 지표를 개선하지는 않았습니다.

![TABLE II: Ablation study over Occluded-DukeMTMC. T, OSA and CFL denotes proposed transformer architecture, occluded sample augmentation and contrast feature le…](https://refivu.com/papers/ce1bed15-4e9f-43c2-88a8-7932eb7cdc7b/figures/figure-3dc9426fd2376143e773596b28233014.png?thumb=512)

**원문 그림** TABLE II: Ablation study over Occluded-DukeMTMC. T, OSA and CFL denotes proposed transformer architecture, occluded sample augmentation and contrast feature learning respectively.

[원문](https://arxiv.org/abs/2107.02380v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengxi Jia, Xinhua Cheng, Shijian Lu, Jian Zhang · Learning Disentangled Representation Implicitly via Transformer for Occluded Person Re-Identification · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## Transformer 층 수와 적용 범위

Transformer 층 수 분석에서 encoder와 decoder의 층 수를 같게 두고 Nl을 1부터 6까지 바꾸었습니다. Nl이 2일 때 Rank-1 57.2, mAP 47.0으로 가장 높은 Rank-1을 보였고, 층 수가 늘수록 이 개선이 줄어드는 경향이 관찰되었습니다. 저자들은 re-ID가 다른 고수준 비전 과제보다 낮은 해상도 표현을 쓰고 데이터셋 규모가 작아, 디코더 출력 사이의 상관관계가 계산하기 쉬운 것으로 해석합니다.

![TABLE V: The comparison and analysis for the number Nl of transformer layers over Occluded-DukeMTMC. The number of layers for encoder and decoder are the same.](https://refivu.com/papers/ce1bed15-4e9f-43c2-88a8-7932eb7cdc7b/figures/figure-9c57934c81a3f0fbaf682760b727dec7.png?thumb=512)

**원문 그림** TABLE V: The comparison and analysis for the number Nl of transformer layers over Occluded-DukeMTMC. The number of layers for encoder and decoder are the same.

[원문](https://arxiv.org/abs/2107.02380v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengxi Jia, Xinhua Cheng, Shijian Lu, Jian Zhang · Learning Disentangled Representation Implicitly via Transformer for Occluded Person Re-Identification · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

본 결과는 Occluded-DukeMTMC에서 얻은 것이며, holistic 데이터셋이나 다른 backbone에서 같은 최적 층 수가 성립한다는 근거는 이 분석에 포함되지 않습니다.

## 논문 정보

- **저자**: Mengxi Jia, Xinhua Cheng, Shijian Lu, Jian Zhang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 7월 6일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 7월 6일
- **버전**: v1
- **arXiv**: 2107.02380
- **분류**: cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Person re-identification (re-ID) under various occlusions has been a long-standing challenge as person images with different types of occlusions often suffer from misalignment in image matching and ranking. Most existing methods tackle this challenge by aligning spatial features of body parts according to external semantic cues or feature similarities but this alignment approach is complicated and sensitive to noises. We design DRL-Net, a disentangled representation learning network that handles occluded re-ID without requiring strict person image alignment or any additional supervision. Leveraging transformer architectures, DRL-Net achieves alignment-free re-ID via global reasoning of local features of occluded person images. It measures image similarity by automatically disentangling the representation of undefined semantic components, e.g., human body parts or obstacles, under the guidance of semantic preference object queries in the transformer. In addition, we design a decorrelation constraint in the transformer decoder and impose it over object queries for better focus on different semantic components. To better eliminate interference from occlusions, we design a contrast feature learning technique (CFL) for better separation of occlusion features and discriminative ID features. Extensive experiments over occluded and holistic re-ID benchmarks (Occluded-DukeMTMC, Market1501 and DukeMTMC) show that the DRL-Net achieves superior re-ID performance consistently and outperforms the state-of-the-art by large margins for Occluded-DukeMTMC.

## 원문 인용

Mengxi Jia, Xinhua Cheng, Shijian Lu, Jian Zhang (2021). Learning Disentangled Representation Implicitly via Transformer for Occluded Person Re-Identification. arXiv:2107.02380v1. https://arxiv.org/abs/2107.02380v1

**BibTeX**

```
@misc{jia2021learning,
  title = {{Learning Disentangled Representation Implicitly via Transformer for Occluded Person Re-Identification}},
  author = {Mengxi Jia and Xinhua Cheng and Shijian Lu and Jian Zhang},
  year = {2021},
  eprint = {2107.02380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.02380v1}
}
```

## 이 논문의 용어

- [Imagenet](https://refivu.com/terms/5eadad128667-imagenet)
- [트랜스포머](https://refivu.com/terms/515e8433c447-transformer)
- [ResNet-50](https://refivu.com/terms/eb2323a60a89-resnet-50)
- [cosine distance](https://refivu.com/terms/e6f2fa77e243-cosine-distance)
- [Triplet loss](https://refivu.com/terms/6b3cf5362b16-triplet-loss)
- [DETR](https://refivu.com/terms/86857f2f379d-detr)
- [Market-1501](https://refivu.com/terms/8d70fe8460ea-market-1501)
- [Occlusion](https://refivu.com/terms/bf72e72fe329-occlusion)
- [identity loss](https://refivu.com/terms/8e5d9275f10b-identity-loss)
- [CMC](https://refivu.com/terms/2a31ae3aa9ed-cmc)
- [MSMT17](https://refivu.com/terms/b79b3959dda3-msmt17)
- [DukeMTMC](https://refivu.com/terms/992c83579114-dukemtmc)
- [Occluded-DukeMTMC](https://refivu.com/terms/03d897f74222-occluded-dukemtmc)
- [OSA](https://refivu.com/terms/ce2ee9bc6b81-osa)

## 다른 논문 해설

- [Graph Barlow Twins: A self-supervised representation learning framework for graphs](https://refivu.com/papers/884ec009-e563-4297-b1fd-f3d278d2ac27-graph-barlow-twins-a-self-supervised-representation-learning.md)
- [A Survey on Contrastive Self-supervised Learning](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7-a-survey-on-contrastive-self-supervised-learning.md)
- [Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning](https://refivu.com/papers/c20bdbfe-b419-4df5-8f33-b1066c4f4576-anomaly-detection-on-attributed-networks-via-contrastive.md)
- [Graph Self-Supervised Learning: A Survey](https://refivu.com/papers/3b8a4279-c849-4f49-8e2f-9d1981c1e87d-graph-self-supervised-learning-a-survey.md)
- [Self-supervised Learning: Generative or Contrastive](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453-self-supervised-learning-generative-or-contrastive.md)
- [Visualizing and Understanding Contrastive Learning](https://refivu.com/papers/1c935acc-e6a1-4adf-b191-ce3d39858069-visualizing-and-understanding-contrastive-learning.md)
- [DU-GAN: Generative Adversarial Networks with Dual-Domain U-Net Based Discriminators for Low-Dose CT Denoising](https://refivu.com/papers/46030b78-75d0-4156-80ef-e92602d09b95-du-gan-generative-adversarial-networks-with-dual-domain.md)
- [Frequency-Assisted Mamba for Remote Sensing Image Super-Resolution](https://refivu.com/papers/63382188-9e18-459f-8b8e-eca2d338fa84-frequency-assisted-mamba-for-remote-sensing-image-super.md)
- [BinsFormer: Revisiting Adaptive Bins for Monocular Depth Estimation](https://refivu.com/papers/7fc81cb2-3782-4326-9ffa-5af4ea6fe25b-binsformer-revisiting-adaptive-bins-for-monocular-depth.md)
- [DepthFormer: Exploiting Long-Range Correlation and Local Information for Accurate Monocular Depth Estimation](https://refivu.com/papers/6ae73f26-dcaf-4126-aff6-1308b2c0214f-depthformer-exploiting-long-range-correlation-and-local.md)
- [Unifying Flow, Stereo and Depth Estimation](https://refivu.com/papers/a17a6b8c-5864-4598-9183-8a1c09180428-unifying-flow-stereo-and-depth-estimation.md)
- [Moving Object Segmentation in 3D LiDAR Data: A Learning-based Approach Exploiting Sequential Data](https://refivu.com/papers/36e15bd6-0697-40e1-86f7-8a11dca9344b-moving-object-segmentation-in-3d-lidar-data-a.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/ce1bed15-4e9f-43c2-88a8-7932eb7cdc7b-learning-disentangled-representation-implicitly-via)
