Papers › DETReg: Unsupervised Pretraining with Region Priors for Object Detection

DETReg: Unsupervised Pretraining with Region Priors for Object Detection

8 Jun 2021CVPR 2022 1arXiv:2106.04550archive 2025-07-28

Amir Bar, Xin Wang, Vadim Kantorov, Colorado J Reed, Roei Herzig, Gal Chechik, Anna Rohrbach, Trevor Darrell, Amir Globerson

Recent self-supervised pretraining methods for object detection largely focus on pretraining the backbone of the object detector, neglecting key parts of detection architecture. Instead, we introduce DETReg, a new self-supervised method that pretrains the entire object detection network, including the object localization and embedding components. During pretraining, DETReg predicts object localizations to match the localizations from an unsupervised region proposal generator and simultaneously aligns the corresponding feature embeddings with embeddings from a self-supervised image encoder. We implement DETReg using the DETR family of detectors and show that it improves over competitive baselines when finetuned on COCO, PASCAL VOC, and Airbus Ship benchmarks. In low-data regimes DETReg achieves improved performance, e.g., when training with only 1% of the labels and in the few-shot learning settings.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2106.04550")

Code

Syntology Ran 4 of 7 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · violated contract; 3 ran · our draft was wrong.

By repository: official repository: 7 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amirbar/detreg officialpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

7 samples harvested; 4 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
3ran · our draft was wrong
3unverified

Licence: 0 of the 7 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from amirbar/detreg. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

conv1x1 amirbar/detreg/models/swav_resnet50.py official repository ran · our draft was wrong Apache-2.0 (permissive) · d9def42110729a85 · report
conv3x3 amirbar/detreg/models/swav_resnet50.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 160bb14bd76201b4 · report
dice_loss amirbar/detreg/models/segmentation.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · ac8fe530cdad4d8c · report
sigmoid_focal_loss amirbar/detreg/models/segmentation.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5c0711aada67957e · report
build_swav_backbone amirbar/detreg/models/backbone.py official repository unverified Apache-2.0 (permissive) · 0a4ff4be91725b8b · report
build_transformer amirbar/detreg/models/transformer.py official repository unverified Apache-2.0 (permissive) · ccd0edc0cca7b92e · report
measure_average_inference_time amirbar/detreg/benchmark.py official repository unverified Apache-2.0 (permissive) · 3e5d34f155e97585 · report

Tasks

Few-Shot LearningFew-Shot Object DetectionObjectObject DetectionObject LocalizationRegion ProposalSemi-Supervised Object DetectionUnsupervised Instance Segmentationobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-Shot Object Detection COCO 2017 DETReg (ours) AP 30 #1 of 1 Archive leaderboard report
Few-Shot Object Detection MS-COCO (10-shot) DETReg-ft-full DDETR AP 25 #6 of 33 Archive leaderboard report
Few-Shot Object Detection MS-COCO (30-shot) DETReg-ft-full DDETR AP 30 #7 of 25 Archive leaderboard report
Object Detection PASCAL VOC 10% DETReg (ours) AP 51.4 #2 of 2 Archive leaderboard report
Object Detection PASCAL VOC 10% DETReg (ours) AP50 72.2 #2 of 2 Archive leaderboard report
Object Detection PASCAL VOC 10% DETReg (ours) AP75 56.6 #2 of 2 Archive leaderboard report
Semi-Supervised Object Detection COCO 1% labeled data DETReg mAP 14.58 ± 0.3 #21 of 22 Archive leaderboard report
Semi-Supervised Object Detection COCO 10% labeled data DETReg mAP 29.12±0.2 #25 of 27 Archive leaderboard report
Semi-Supervised Object Detection COCO 2% labeled data DETReg mAP 18.69±0.2 #16 of 19 Archive leaderboard report
Semi-Supervised Object Detection COCO 5% labeled data DETReg mAP 24.80±0.2 #22 of 23 Archive leaderboard report
Unsupervised Instance Segmentation COCO val2017 DETReg AP 3.3 #4 of 5 Archive leaderboard report
Unsupervised Instance Segmentation COCO val2017 DETReg AP50 8.8 #4 of 5 Archive leaderboard report
Unsupervised Instance Segmentation COCO val2017 DETReg AP75 1.9 #4 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEConvolutionDeformable Attention ModuleDeformable DETRDense ConnectionsDetrDropoutFeedforward NetworkLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSelective SearchSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections