End-to-End Object Detection with Transformers
Paper · 2020 · Nicolas Carion, Francisco Massa, Gabriel Synnaeve et al.
Summary
An object detector has to tell apart two situations that can look similar in its output. Several overlapping rectangles may describe the same object, or they may describe several objects standing close together. Many detectors start with a large supply of possible locations and use a cleanup procedure called non-maximum suppression to remove repeated detections. DETR starts with a different question. Can a detector learn to return the collection of objects directly, with one box and category for each instance it finds?
DETR, short for DEtection TRansformer, runs an image through a conventional ResNet convolutional backbone and passes the resulting features to a transformer. The transformer first lets image features exchange information across the scene. It then develops a fixed supply of output slots together. A learned vector called an object query distinguishes each slot, and shared prediction layers turn each slot’s representation into a category distribution and a rectangle. A special category lets any slot indicate that it has found nothing. The detector can therefore describe images with different numbers of objects while producing the same number of slots in parallel.
Training gives each annotated object a distinct slot. The Hungarian algorithm selects the one-to-one assignment with the lowest joint cost, taking account of category confidence and box geometry. The slots left over learn to predict the empty category. Changing the order of the predictions leaves the assignment problem equivalent. Meanwhile, attention gives slots a way to exchange information about the objects they are beginning to describe. Together, these features allow DETR to dispense with pre-defined spatial anchors and conventional suppression of duplicate boxes. The architecture uses ordinary convolutional, attention, and prediction layers.
On COCO, DETR is comparable in accuracy and inference speed to a strengthened Faster R-CNN baseline. The similar aggregate detection scores hide a difference in which objects the systems find. DETR fares better on large objects and worse on small ones. Finer image features help with the small objects at additional computational cost, and the competitive detection results require a long training schedule. The authors also attach a mask head to the detector so it can label pixels belonging to individual objects and broader scene regions. This extension surpasses the panoptic baselines on COCO validation, with its clearest advantage on the region categories known as stuff, and reaches 46 Panoptic Quality on the COCO test split. Training the mask head after freezing a box-trained detector gives results similar to joint training in less total elapsed training time. The authors make pretrained weights available alongside the training code.
Deep dive: End-to-End Object Detection with Transformers
How DETR uses a transformer and one-to-one matching to detect objects, what it achieves on COCO, and how the same detector predicts masks. · about 85 minutes to read
The problem and its context
A collection of objects has no prescribed order
Imagine an image of two people standing close together. A useful detection result places a rectangle around each person and gives both rectangles the same category. The answer is equally good whichever person appears first in a file. If the detector draws both rectangles around the same person, however, it has left someone out. A category decision and a plausible rectangle can each look reasonable on their own while the collection they belong to gives the wrong account of the scene.
This is the structure that the authors want a training objective to recognize. The unit of the answer is an object instance, meaning a particular occurrence of a category in a particular image. A scene can contain several instances of the same category, each with its own position and extent. The order of those instances in an annotation file has no bearing on their identities. A learning procedure that compares outputs and annotations by their array indices would introduce an artificial disagreement whenever it encountered the right objects in a different order.
Counting the objects is part of giving the right answer. A detector may see a sparse scene or an image containing many instances of several categories. A fixed prediction array is convenient for computation, but a slot in such an array need only represent the possibility of a detection. DETR gives its slots an explicit way to decline that possibility. This addresses variable cardinality, the number of elements in the answer, while preserving an output structure that can be processed in parallel.
The absence of an order also affects how the predictions should interact. Two slots can each see evidence for a person without knowing whether their evidence refers to different people. A training procedure can resolve the distinction by assigning each annotation to a separate slot. At inference, the detector has to draw the distinction from the image and from the information the slots exchange. The paper’s design gives the assignment problem and the interaction problem distinct mechanisms.
These distinctions explain why the authors describe detection as set prediction. Adding an element can be a mistake even when the added element resembles another correct element. Swapping elements is harmless. The training objective needs to reflect both properties while still penalizing the ordinary errors of a detector, such as a wrong category, a shifted center, or a poorly estimated extent.
Earlier detectors organize the search around candidate locations
The systems discussed in the paper commonly introduce a spatial reference before predicting the final rectangles. A two-stage detector first produces region proposals, then determines what the proposed regions contain and refines the boxes. Other detectors use anchors, pre-defined reference rectangles associated with image locations. Single-stage methods can also start from a grid of possible object centers. All of these approaches turn the image into a structured supply of candidates on which category and localization decisions can be made.
A spatial reference is useful during training because it offers a way to decide which predictions should learn from a particular annotation. An anchor or proposal can be eligible for an object based on its geometry. A prediction associated with a possible center can be trained in relation to an assigned image location. The paper emphasizes that how these assignments are made affects the eventual detection quality. The choice of reference candidates and the decision about which ones count as positives both shape the examples from which the detector learns.
Several nearby candidates can receive training signals that point to the same real instance. This can be desirable as a way of providing evidence to the learner, but it leaves the detection pipeline with the question of how many reported boxes refer to that instance. The paper describes non-maximum suppression, or NMS, as the usual answer. It uses confidence and overlap to retain a stronger detection and discard nearby competitors. The resulting collection depends on choices made both when defining the candidates and when processing their scores and geometry.
The close-person example shows the judgment NMS is being asked to approximate. A pair of overlapping rectangles can arise because the detector has made a duplicate prediction. It can also arise because separate people occupy adjacent parts of the scene. The overlap rule is useful to the extent that overlapping predictions tend to be redundant. When that assumption fails, suppression can remove a legitimate detection. A detector whose box predictions already divide up the work among distinct instances changes the circumstances in which such a rule would help.
DETR moves the assignment into an optimization over the entire prediction collection. This removes the need to designate a particular anchor or proposal as the starting point for each target. When the detector predicts an object’s location, the rectangle is expressed in the coordinate system of the image. The word “absolute” in the authors’ comparison with anchor-based regression has this meaning. The rectangle can still be normalized by image dimensions. Its reference is the image itself.
The redesign also changes where duplicate handling happens. Before an older pipeline discards predictions, several of them may have independently become plausible final detections. DETR makes the predictions jointly and gives them a training objective under which a real annotation can validate a single claim. That provides a reason for output slots to develop different responsibilities. The network still has to acquire the visual and contextual distinctions that let it do so at inference.
Set prediction had precedents in detection and segmentation
The authors situate DETR within a line of work on learning unordered collections. They distinguish problems in which the input is already a set from problems in which the answer must be constructed as one. When the input is a set, an operation may be designed so that rearranging the elements leaves an aggregate unchanged, or so that the per-element outputs move in the same way as the inputs. The latter behavior is called permutation equivariance. Detection combines this concern about ordering with the need to choose which elements belong in the output at all.
Multilabel classification is a familiar example of predicting a set of categories. Independent decisions about category presence can suffice to express that an image contains people and bicycles. They leave open how many people or bicycles there are and which rectangle belongs to which instance. The paper therefore treats detection as a case where the elements of the answer have relationships that matter. Identical category labels are frequently appropriate. Nearly identical rectangles for the same instance are typically redundant.
One line of earlier work learned representations of sets. Another treated the order of the desired outputs as a quantity that had to be inferred. Assignment-based losses took a more explicit route by selecting a correspondence between the targets and predictions before measuring their errors. The Hungarian algorithm already provided a way to solve such an assignment. It is relevant here because the optimization imposes uniqueness on the pairing without requiring any ordering convention for the objects.
Some earlier detectors used matching-based objectives and convolutional or fully connected components to process predictions. As the authors describe them, those systems could still benefit from suppression. A matching objective provides the supervision needed for a division of responsibility, but it does not specify a computation by which developing predictions can see what other predictions are doing. DETR combines the objective with attention over the collection of decoder slots.
The paper also discusses work that studied detection relationships directly. Learned suppression and relation networks provided evidence that predictions could benefit from explicit interactions. The authors point out that approaches in this line could supplement those interactions with engineered inputs such as proposal coordinates. DETR investigates how far the general attention mechanism can take the system when relationships are computed from learned representations and spatial encodings, without such proposal features.
The closest direct-prediction precedents produced boxes or masks using recurrent encoder–decoder systems. A convolutional network encoded the image, and a recurrent decoder generated elements in succession. These systems also used assignment to connect what they produced with human annotations. According to the paper, their evaluations used small datasets and lacked comparisons with strong contemporary baselines. They demonstrated a route to predicting a collection directly, leaving open how well that approach would compete on a benchmark such as COCO.
The transformer makes joint prediction possible without serial generation
The paper traces the transformer to work on machine translation. Its relevant operation is attention, a way for a representation at one position to collect a weighted combination of representations from other positions. In self-attention, receivers and sources belong to the same sequence. A feature representing one part of an image can therefore incorporate evidence from elsewhere in the feature grid. In the decoder, the same kind of operation allows a tentative object representation to incorporate information from other tentative objects.
Prior vision work had already used attention to bring nonlocal information into a convolutional backbone or to augment convolutional operations. Some of that work continued to use standard candidate assignment and suppression. The DETR paper uses this history to distinguish two choices that can be made separately. A detector can use attention to improve its image representation, and it can use attention among output representations as part of learning a set. The proposed architecture makes both choices.
Original sequence-to-sequence transformers generated an output by repeatedly conditioning on what had already been generated. That method is called autoregressive decoding. It provides a natural mechanism for dependencies in an ordered answer, but it requires generation steps to wait for preceding steps. The authors cite parallel generation work in audio, speech, translation, and word representation learning as precedents for building several output positions together.
Object detection gives a direct reason to work in parallel. A rectangle around one object need not be generated before a rectangle around another. DETR instead allows all slots to read image evidence as they pass through each decoder layer. Their intermediate representations can influence one another at subsequent layers. Multiple stages of computation make refinement possible without serializing the objects themselves.
This distinction between depth and output order is important. A single layer can give many queries access to image features at once. In a deeper decoder, queries can also respond to what the other slots gathered during that earlier read. The order of computation is fixed across layers, while the assignment of objects to output positions remains flexible. That is the combination the paper tests with its matching loss, its standard convolutional features, and its parallel transformer decoder.
The method, step by step
Follow the predictions from image to supervision
For each image, DETR produces a fixed number of candidate answers. Each answer contains a rectangle and scores for possible categories, one of which means no object. During training, the detector produces the candidates before seeing how they will be paired with the annotations. An assignment procedure then chooses which answer should be evaluated against each object. This makes the pairing an outcome of the current predictions and the annotations together.
How DETR predicts and learns object sets
The steps in order.
The first part of the diagram is the detector. It can generate predictions from an image and the learned parameters alone. The final steps require known annotations, so they belong to training. The training calculation repeats as predictions improve. A slot that offered the best match for a particular object earlier in training can yield that responsibility to another if the joint assignment becomes better.
The paper uses 100 slots in its experiments. This supplies room for the usual variation in scene content and makes unused capacity a normal operating condition. The object queries give the slots separate identities, but every decoded slot is interpreted by the same prediction layers. The detector learns differences in how the slots are used through their query embeddings, their interactions, and the evidence available in the current image.
Extract visual features on a grid
The visual computation starts with a color image represented as a tensor, an array with a dimension for channels and dimensions for space. The paper gives the input shape as follows.
x_img ∈ ℝ^(3 × H₀ × W₀)
Here x_img denotes the image tensor, ℝ denotes the real numbers, and ∈ indicates membership in the space of tensors with the stated shape. The first dimension, 3, is the color channel count. H₀ is the input height and W₀ is the input width. The multiplication signs separate the dimensions. For a batch of differently sized images, zero padding gives the tensors a common shape determined by the largest dimensions needed in the batch.
A convolutional backbone turns the image into a compact grid of features. The backbone belongs to the ResNet family, and the authors use weights pretrained on ImageNet. They remove the classification layer so the detector receives spatial activations from the convolutional network. Keeping these as a grid retains an association between a feature and a location, even though the feature describes image content at a coarser spatial scale than the original pixels.
f ∈ ℝ^(C × H × W)
The symbol f denotes the backbone’s feature tensor. In its real-valued tensor space, C specifies the channel count, H the grid height, and W the grid width. Channels describe the learned feature content available at a location. The paper gives 2048 as a typical C and uses a standard feature stride of 32.
(H, W) ≈ (H₀ / 32, W₀ / 32)
Here H and W are the feature-grid dimensions, H₀ and W₀ are the dimensions entering the backbone, and 32 is the standard stride. The slashes express division and ≈ indicates the typical spatial relationship. Stride gives the spacing of feature positions relative to the input. Reducing the grid is consequential for attention because each feature position will be able to compare itself with the other positions in that grid.
The transformer works at width d, a smaller channel count than the backbone output. A 1×1 convolution converts the channel vector at each spatial location to this width. Its spatial footprint is a single grid position, so the operation changes the channels while preserving the position. The reprojected feature array is written as follows.
z₀ ∈ ℝ^(d × H × W)
Here z₀ is the real-valued projected feature tensor. The letter d denotes the transformer width and H and W retain the grid dimensions. The encoder expects a sequence, so the two spatial axes are then flattened into one axis containing HW positions. The result has d channels at each of those positions. Each vector still comes from a particular grid coordinate, and the encoding introduced next gives attention direct access to that coordinate.
Give the image coordinates a representation
The image features tell the system what the backbone found in different parts of the image. Attention also needs a way to distinguish where those parts are. A flattened feature array has an ordering in memory, but the basic attention calculation compares the vectors that it receives. With no position information in that comparison, moving a vector to a different index would move its role along with it. The position encoding attaches coordinate information that the comparison can use.
The default encoding is fixed and absolute. Each of the image-feature coordinates is represented using sine and cosine functions at different frequencies. The horizontal and vertical coordinate encodings each use d/2 channels, where d is the transformer width. Concatenating them gives a vector with the same width as the visual feature at that location. The authors use this construction as the spatial counterpart of the position encoding originally developed for sequences.
In the detailed DETR architecture, position enters each attention operation through the vectors used to compare locations. The positional signal is supplied again at successive layers, using the same encoding for a given location. This gives an early layer and a late layer access to the same coordinate information even though their visual representations have changed. The vectors that carry information from the selected source locations are constructed from source content.
A concrete way to read this design is to imagine an attention operation that gathers evidence from several parts of a person. The comparison that decides how much to read can depend on visual content and the positions from which it came. The information subsequently combined at the receiver is drawn from the feature values at those locations. This use of coordinates is compatible with the receiver taking an interest in a distant feature. The formula places no requirement that the highest attention weight come from the nearest part of the grid.
What a single attention head computes
An attention head works with a receiving sequence and a source sequence. It learns projections that turn receiving features into queries and source features into keys and values. A query and a key determine the compatibility between a receiver and a source. The value is the feature that the receiver will collect if that source gets weight. In this part of the method, “query” names a vector inside an attention calculation. An object query is the learned positional embedding that helps distinguish a detector slot and can contribute to the attention query.
The transformer distributes attention across multiple heads, with each head using a portion of the total width.
dₖ = d / M
The symbol dₖ denotes the width of a head. The symbol d is the transformer’s channel width, M is the number of attention heads, and the slash denotes division. The heads operate on learned projections of the input sequences. A head’s width determines the size of its projected queries, keys, and values.
The paper’s projection equations can be written together as a tuple.
(Q, K, V) = (T′₁(Xq + Pq), T′₂(Xkv + Pkv), T′₃Xkv)
Q, K, and V contain the projected queries, keys, and values. Xq denotes the sequence of receiving features, and Xkv denotes the sequence that supplies the keys and values. Pq and Pkv are the positional encodings for those sequences. T′₁, T′₂, and T′₃ are the learned matrices for the three projections within this head. Addition combines a feature with its position before computing Q or K. Matrix multiplication applies the appropriate learned projection. The tuple presents the three resulting collections in the same order on each side of the equality.
This arrangement makes it possible for a head to choose whom to read in part by position while gathering values from the source activations. When the receiving and source sequences both describe the image, Pq and Pkv encode the corresponding image positions. When a decoder slot reads the encoder memory, the receiver’s position is its learned object query, and the source positions are the spatial encodings associated with the image features.
The weight of a source for a receiver is a normalized function of their projected query and key.
αᵢⱼ = exp(QᵢᵀKⱼ / √dₖ) / Zᵢ
Here i indexes a receiving position and j indexes a source. The weight is αᵢⱼ. Qᵢ is the query at position i, Kⱼ is the key at position j, and the superscript T transposes the query so that QᵢᵀKⱼ is a dot product. The square root of dₖ, the head width, scales the dot product. The function exp exponentiates the scaled score. The denominator Zᵢ normalizes the weights belonging to the same receiver.
Zᵢ = ∑ⱼ₌₁…Nkv exp(QᵢᵀKⱼ / √dₖ)
In this expression, Nkv is the length of the key–value sequence, and ∑ⱼ₌₁…Nkv adds the positive scores from source index 1 through the last source. The receiver index i is held fixed. QᵢᵀKⱼ is again the dot product between that receiver’s query and each source key, √dₖ scales it, and exp is the exponential function. Zᵢ is therefore the total score against which each source’s individual score is normalized. This is the softmax operation over the sources.
The head collects information according to these weights.
Aᵢ = ∑ⱼ₌₁…Nkv αᵢⱼ Vⱼ
Aᵢ is the feature vector gathered at receiving position i. The sum runs over the Nkv source positions, with j indexing each source. Vⱼ is its value vector and αᵢⱼ is the normalized weight that controls its contribution. Each receiver can choose a different mixture of the same sources, and each head can learn a different way to make those choices.
This computation is continuous. It can place most of the weight on a particular feature or spread the weight over several features. It is distinct from the discrete assignment used in training. Attention assembles representations from which the detector will make boxes and classifications. Hungarian matching determines who is supervised by which annotation after those predictions exist.
Combine the heads and update the features
The general multi-head operation takes the receiving sequence, the source sequence, the weights for the heads, and a final output projection. The paper gives its dimensions in terms of the channel width and the lengths of the sequences.
MHA: (Xq ∈ ℝ^(d × Nq), Xkv ∈ ℝ^(d × Nkv), T ∈ ℝ^(M × 3 × dₖ × d), W ∈ ℝ^(d × d)) ↦ Xout ∈ ℝ^(d × Nq)
MHA denotes multi-head attention. Xq is the real-valued receiving sequence with Nq positions, and Xkv is the real-valued source sequence with Nkv positions. Both have d channels. T holds the projection weights for M heads, with 3 projections for each head, from width d to head width dₖ. In this formula W denotes the output projection matrix instead of the width of the image grid. The arrow maps the inputs to Xout, a real-valued output with the same width and number of positions as Xq. The colon introduces the signature of the mathematical operation, and the dimension products specify the axes of each tensor.
Self-attention is the special case in which the same feature sequence occupies both roles.
MSA(X, T, W) = MHA(X, X, T, W)
Here MSA denotes multi-head self-attention and MHA denotes the general multi-head operation. X is the sequence used both by receivers and by sources. T contains the head projection weights and W is the output projection. In an encoder layer, X represents image features. In decoder self-attention, it represents the current states of the slots.
To combine the information gathered by the heads, the network joins their channels.
A = concat(A⁽¹⁾, …, A⁽ᴹ⁾)
A is the combined sequence, and A⁽¹⁾ through A⁽ᴹ⁾ are the sequences gathered by the individual heads. M is the head count, the superscripts indicate head indices, and concat appends the output channels from each head at the same receiving position. The ellipsis stands for the intervening head outputs. This gives the output projection access to all of the heads’ features for each receiver.
The projection contributes an update to the receiving sequence.
Xout = layernorm(Xq + dropout(WA))
Xout is the result of the attention block, and Xq is the receiving sequence entering it. W is the output projection and A is the concatenated sequence. WA projects the collected channels, dropout applies training-time regularization to that update, and the addition forms a residual connection by preserving the incoming Xq in the sum. The layernorm operation normalizes the result.
A transformer layer also uses a feed-forward network. In DETR’s description, it consists of pointwise 1×1 transformations with a ReLU activation, followed by residual addition, dropout, and normalization. ReLU is a rectified linear activation, which retains positive values and maps negative ones to zero. The feed-forward network transforms the channels of a representation at a single position. Attention supplies the exchange across positions, and the pointwise processing can alter how the features obtained through that exchange are represented.
Encode the scene and decode its possible objects
The encoder applies self-attention and positionwise transformations to the image sequence. The result is a memory that still has spatially associated features, now informed by what the attention layers gathered elsewhere in the image. The decoder can read this memory for category and boundary evidence. An encoder representation at one location may already reflect features from several locations by the time an object slot attends to it.
The decoder begins with zero content activations and a learned collection of object queries. The query vectors distinguish the slots from one another and are shared across images. Each slot initially has an identity but has yet to acquire image-specific content. Its identity influences how it reads from the encoder and how it participates in attention among the other slots. This separation makes it possible to give identical initial content to the slots without producing identical results from all of them.
A decoder layer includes self-attention among slots and cross-attention between slots and image features. Cross-attention uses different sequences for receivers and sources. The slots request information and the image memory supplies keys and values. Self-attention instead uses slot contents on both ends of the exchange. Once the slots have read from the image, this operation can share information about the different object hypotheses developing across the output.
The detailed architecture allows the first decoder self-attention operation to be skipped. At that point, the slot values start from the same zero content. The first read from the image is what makes the slot representations image-dependent. After that read, self-attention has distinct image-conditioned states to work with. This detail makes it possible to understand why the authors examine the first layer’s predictions separately from predictions made later in the decoder.
The main comparison uses 6 encoder layers and 6 decoder layers at width 256 with 8 attention heads. The appendix also describes DETR-512 with 16 heads. These choices concern the depth and width of the transformations and the division into attention heads. The output budget remains the number of learned object queries. An extra decoder layer gives the existing slots further processing and communication.
At every decoder depth the complete collection advances together. A slot can use information from another slot’s intermediate state even though neither has yet been released as a detection. This is what parallel decoding buys for the set formulation. The computation has time to refine a tentative collection, while the answer itself is never ordered by which object had to be generated first.
Read boxes and labels from the slots
The prediction layers share their weights across the slots. One branch uses a 3-layer perceptron with ReLU activations and hidden width d to estimate a box. Its coordinates describe the center and the extent of the rectangle along the spatial axes, normalized by the corresponding image dimensions.
bᵢ ∈ [0, 1]⁴
The symbol bᵢ denotes the target box at annotation index i. The interval [0, 1] is the range of the normalized coordinates, and the exponent 4 indicates the coordinate count. The four entries describe the center in two dimensions, the height, and the width. The corresponding prediction is expressed in the same coordinate system, so a loss can compare the two boxes directly.
The second branch uses a linear projection and softmax to produce category probabilities. The available categories include the empty class. The output format is the same for every slot, so even a slot whose strongest class is empty has box coordinates in the raw prediction array. Supervision for those coordinates depends on whether the assignment paired the slot with a real object. The empty class on its own does not identify any region that the box should fit.
The prediction layers also operate on intermediate decoder outputs during training. The authors put an assignment-based detection loss after each decoder layer and use shared prediction parameters across these depths. A shared layer-normalization operation prepares the intermediate representations for the prediction layers. Each representation is trained to support the category and box readout before the later layers get the opportunity to refine it.
The authors connect this auxiliary supervision to earlier work on deeper networks, including Character-Level Language Modeling with Deeper Self-Attention. In DETR, its role is to give earlier decoder stages their own detection signal. The paper reports that it is especially helpful for getting the number of instances predicted for each category right. It also has a practical consequence for analysis. Because the intermediate states have been trained to produce detections, the authors can read them out and examine how the collection changes through the decoder.
Decide which prediction is responsible for each annotation
During training, the detector has an inventory of N predictions and the image has a typically smaller inventory of annotations. The paper fills the unused target positions with a special empty label so the two arrays can be described as being the same length. Each target entry then has a label and, for a real object, a meaningful box.
yᵢ = (cᵢ, bᵢ)
The target at index i is yᵢ, its category is cᵢ, and its box is bᵢ. The parentheses denote the pair that represents the target. When cᵢ is the special empty label, the box field has no role in the corresponding localization loss. Padding makes the formal correspondence cover every prediction while preserving the difference between annotated objects and unused capacity.
ŷ = {ŷⱼ}ⱼ₌₁…N
Here ŷ is the collection of predictions, ŷⱼ is the category-and-box prediction at slot index j, and N is the number of slots. The braces collect the entries, and the index range specifies all the slots. The target collection, called y, likewise has N entries after padding. Their storage indices provide a way to describe possible pairings.
A candidate pairing can be written as a permutation of the slot indices. For each target index, it chooses a slot that no other target index can choose. The assignment solver evaluates pairings by adding the cost of each target–prediction pair.
σ̂ = argmin[σ ∈ Σₙ] ∑ᵢ₌₁…N Lmatch(yᵢ, ŷσ(i))
The symbol σ denotes a candidate permutation and Σₙ is the set of permutations of the N prediction indices. The index i runs over all padded targets, from 1 through N. The notation σ(i) gives the prediction index assigned to yᵢ, so ŷσ(i) denotes the prediction with that index. Lmatch is the pairwise matching cost. The sum adds the costs of the selected pairs, and argmin returns a minimizing permutation, σ̂. The Hungarian algorithm computes this solution.
Consider several candidate boxes around a pair of people. Taking the cheapest box separately for each annotation could pick the same prediction for both people. The permutation constraint requires a pair of distinct choices and optimizes their combined cost. In a different case, several promising predictions could surround a single person. Each of those predictions can compete for the annotation, but the selected assignment can give that real target to only one of them. Any others have to match a different object or occupy the empty positions.
The permutation is the part of the procedure that absorbs reordering. If predictions are moved to different indices, an equivalent assignment moves with them and has the same available pairwise costs. The success of the object collection thus does not depend on which object occupies a particular position in the prediction array. A query can have learned preferences without imposing a required target order.
Score a proposed pair, then score the selected pairs
A matching cost needs to recognize a useful correspondence before the subsequent loss can train it. DETR takes account of the probability assigned to the target category and the difference between the target and predicted boxes. For a candidate assignment σ, the paper gives the following expression.
Lmatch(yᵢ, ŷσ(i)) = −𝟙[cᵢ ≠ ∅] p̂σ(i)(cᵢ) + 𝟙[cᵢ ≠ ∅] Lbox(bᵢ, b̂σ(i))
The notation Lmatch refers to the cost between target yᵢ and the prediction selected by σ at index i. The symbol ∅ is the empty label, and the indicator 𝟙[cᵢ ≠ ∅] is active for a real target and zero for padding. The term p̂σ(i)(cᵢ) is the chosen slot’s probability for the target class cᵢ. Minimizing a negative probability favors a confident prediction for that class. The second term evaluates its predicted box b̂σ(i) against the target box bᵢ using Lbox. Addition combines category and localization evidence into the cost presented to the solver.
The indicator also makes the cost of pairing any prediction with a padded entry constant. The empty entries therefore provide no prediction-specific preferences that could compete with those of real objects during assignment. They account for the slots left over once the assignment of real objects has been settled. The later classification loss supplies the pressure for those slots to predict emptiness.
The authors report that using the raw category probability in the assignment worked better than using its logarithm. Their explanation is that the probability term gives a scale closer to that of the box term. The paper also describes replacing ℓ₁ coordinate distance with ℓ₂ distance in the matching calculation. The stated regression objective for the selected pairs, detailed below, uses ℓ₁ together with generalized intersection over union. Matching and regression have different jobs, so their numerical terms need not coincide.
Once the assignment has been selected, the Hungarian loss evaluates each pair. Every slot contributes a category term. Only a slot assigned to a real object contributes a box term.
L_H(y, ŷ) = ∑ᵢ₌₁…N [−log p̂σ̂(i)(cᵢ) + 𝟙[cᵢ ≠ ∅] Lbox(bᵢ, b̂σ̂(i))]
L_H is the Hungarian loss for target collection y and prediction collection ŷ. The sum covers target indices i from 1 through the slot count N, and σ̂(i) is the index chosen by the optimal assignment for target i. The negative logarithm penalizes a low probability p̂σ̂(i)(cᵢ) for the target label cᵢ. The indicator 𝟙[cᵢ ≠ ∅] permits Lbox to contribute when that label is a real category. The box inputs are bᵢ from the target and b̂σ̂(i) from its assigned prediction. The log is applied to the category probability, and the plus sign combines category and box contributions.
The equation shows the basic objective. In training, the authors reduce the empty-class log-probability term by a factor of 10. Because unused slots are frequent, this adjustment prevents their sheer number from accounting for too much of the category signal. The paper compares the purpose of this weighting with balancing positive and negative proposals through sub-sampling in Faster R-CNN. DETR can retain the regular output shape and supervise all slots while changing the relative influence of empty ones.
Normalization accounts for how much annotated content a batch contains. The paper specifies that the object count used for normalization in distributed training must include the objects across the devices’ sub-batches. A batch assigned to one graphics processor may have very different annotation counts from a batch assigned to another. With a shared object count, a device’s contribution does not depend on an accidental local denominator.
Measure a rectangle by its coordinates and its area
A direct coordinate difference and a measure of geometric overlap give complementary information about an imperfect box. A difference in normalized center or size specifies the amount by which a coordinate must change. The effect of such a change on the overlap can vary substantially with object size. The authors combine the coordinate loss with generalized intersection over union, abbreviated GIoU, to account for the relationship between the resulting regions.
Lbox(b, b̂) = λiou LGIoU(b, b̂) + λL1 ‖b − b̂‖₁
The inputs b and b̂ are a target box and its predicted counterpart. Lbox is their combined localization loss, and LGIoU is the generalized-overlap loss. The expression ‖b − b̂‖₁ is the ℓ₁ norm of the coordinate difference, the sum of the absolute errors over corresponding entries. The real-valued weights λiou and λL1 control the contributions of the overlap and coordinate terms. The reported DETR settings use 2 for λiou and 5 for λL1.
Ordinary intersection over union, or IoU, divides the area two boxes share by the area covered by either box. This favors a close fit even when the boxes have different absolute sizes. GIoU also considers the region separating the boxes or left uncovered inside their joint enclosure. The loss used by the authors can be written in terms of the two rectangles and the enclosing rectangle.
LGIoU(b, b̂) = 1 − (|b ∩ b̂| / |b ∪ b̂| − |B ∖ (b ∪ b̂)| / |B|)
LGIoU denotes the loss between target rectangle b and predicted rectangle b̂. The symbol ∩ denotes the area in both rectangles, and ∪ denotes the region in either. Vertical bars measure the area of a region. B denotes the enclosing rectangle obtained from the outer box edges. The set difference symbol ∖ selects what lies inside B and outside the union. The first fraction is ordinary IoU. The second measures the uncovered fraction of the enclosure. Subtracting that fraction inside the parentheses gives generalized IoU, and subtracting the result from 1 turns it into a loss to minimize.
The enclosure term distinguishes cases in which the boxes have no shared area. For such a pair, ordinary IoU is zero regardless of the amount of intervening space. The size of the uncovered part of the enclosure still varies. The paper computes these areas from minima and maxima of expressions in the coordinates, allowing the box loss to provide gradients for training. The coordinate term gives a direct adjustment signal alongside that geometric one. The assignment solver decides which boxes are to be compared, and the regression objective determines how the chosen box should change.
Choose feature resolution with the attention cost in view
The standard detector supplies the encoder with features at stride 32. To retain finer structure, the authors alter the last ResNet stage. They remove a stride operation from its first convolution and add dilation in that stage. Dilation changes the spacing at which the convolution samples features. The resulting variant, called DETR-DC5 for its dilated final stage, supplies features at stride 16. Its denser grid makes more spatial detail available for locating small objects.
A denser grid also lengthens the sequence entering the encoder. Its attention cost contains a part for constructing projections and a part for comparing the projected features across space.
O(d²HW + d(HW)²)
The notation O gives the asymptotic order of computation for encoder self-attention. The symbol d is the transformer width, H and W are the feature-grid dimensions, and HW is the sequence length. The term d²HW accounts for feature projections, while d(HW)² describes comparisons among pairs of spatial positions. The superscript 2 denotes squaring, and the plus sign combines the two contributions.
The appendix also describes the cost of the underlying work for a single head.
O(dₖd)
Here O gives the order of the work for computing a single projected query, key, or value vector. The symbol d is the input channel width and dₖ is the projected width of a head. Their product reflects a projection between those dimensions.
O(dₖ(HW)²)
This O expression describes the order of computing the attention weights for a single encoder head. The symbol dₖ is the head width and HW is the number of spatial features on the H-by-W grid. The squared sequence length accounts for the pairs of features whose projected vectors are compared.
Decoder self-attention has fewer sequence positions in the configuration studied. Its costs are expressed in terms of the output budget.
O(d²N + dN²)
Here O is the order of computation for decoder self-attention, d denotes the channel width, and N counts the slots. The first term accounts for projections at the N slots. The second expresses the pairwise comparisons among them.
Cross-attention uses both the image sequence and the slot sequence.
O(d²(N + HW) + dNHW)
The O expression approximates the order of computation for decoder–encoder attention. The symbol d denotes the feature width, N the number of slots, and HW the number of spatial positions. The sum N + HW enters the projection term because both collections supply representations. The product NHW enters the interaction term because every slot can compare with the spatial positions. The authors note that N is much smaller than HW in practice, leaving the encoder’s spatial attention particularly sensitive to grid resolution.
For DC5, the paper reports a factor of 16 increase in encoder self-attention computation and a factor of 2 increase in overall computation. The difference follows from the scope of the two measurements. Dilation and stride change the image sequence that attention sees, while the detector also spends computation on other parts of the backbone, the decoder, and the prediction layers. The feature-resolution change gives small objects more representation at the price of increased work.
Optimize the detector and prepare its scored outputs
The backbone and transformer start training from different places. The backbone comes from image classification pretraining, with its batch-normalization parameters and statistics frozen. The remaining backbone parameters are adapted for detection. The transformer weights start from Xavier initialization, which is the random initialization scheme named by the authors. DETR uses AdamW and sets weight decay to 10⁻⁴. The initial learning rate is 10⁻⁴ for the transformer and 10⁻⁵ for the backbone. The authors say that a substantially lower backbone rate helps keep training stable in the early epochs.
Attention and feed-forward layers use dropout of 0.1 before the normalization described in the architecture. The training procedure also clips gradients at a maximum norm of 0.1. The learning rates address the size of ordinary updates, dropout changes which activations contribute during training, and gradient clipping limits unusually large updates. These choices belong to the reported optimization recipe alongside the matching and box objectives.
Image augmentation varies scale and visible context. As part of training, the authors scale each image so its shorter side measures 480 to 800 pixels inclusive and its longer side measures no more than 1333 pixels. A crop is applied with probability 0.5. In that case, the authors select a random rectangular patch and resize it again. The crop changes which objects and surroundings are visible together. The training signal then has to help the detector organize predictions across these variations in the available image content.
An epoch is a complete pass through the training images. The ablation schedule lasts 300 epochs, with a factor of 10 learning-rate reduction after 200 epochs. The paper describes long training for the comparison with Faster R-CNN, including a 500-epoch recipe with the reduction after 400 epochs. It also describes a 900-epoch schedule with reductions by a factor of 2 every 50 epochs starting at epoch 600. The training evidence is best read with the schedule attached whenever the authors associate a result with a particular recipe.
At inference, the predicted probabilities serve a further purpose. For the box AP evaluation, the authors report what happens when they retain detections even for slots whose highest-scoring class is empty. They use the highest-scoring nonempty class in such a slot and report its own confidence. This retains a low-ranked candidate that an empty-class filter would otherwise discard. The benchmark can then evaluate how useful such candidates are at their assigned ranks. The operation uses category scores and leaves overlap-based duplicate suppression out of the detector.
Attach a mask prediction to each scene element
A box describes an object’s location and extent by outlining a rectangle. Panoptic segmentation asks for a pixel-level description of the entire scene, with a distinction between countable instances, called things, and regions belonging to categories called stuff. A thing prediction can describe an individual person. A stuff prediction can describe a region of background material. The distinction affects whether different parts of the image should remain distinct instances or can be grouped under one region label.
DETR applies the same decoder organization to both category groups. The authors train the box detector to predict rectangles around both things and stuff. The rectangles continue to provide the geometric term used in Hungarian matching. Once a target is associated with a slot, the slot’s decoder output can be used to derive a mask for that target. The extension thus preserves the pairing mechanism that organizes the detections.
For each output slot, the mask head computes attention scores over the encoder memory. This attention has M heads, using M here for the number of heads in the mask calculation. The heads give the mask component a corresponding collection of low-resolution heatmaps for the slot. A feature-pyramid-like architecture, drawing on the idea of combining representations at different spatial resolutions, then refines the spatial prediction. The final mask output has stride 4.
Each slot’s mask is supervised independently with Dice and focal losses. A binary target mask records which pixels belong to the target. A prediction initially supplies logits, the raw scores from which membership probabilities are computed. The Dice term places those probabilities in an overlap calculation. The paper gives the expression below with the mask-wide products and totals written here as sums over pixel positions.
LDice(m, m̂) = 1 − (2∑ᵤ mᵤ s(m̂ᵤ) + 1) / (∑ᵤ s(m̂ᵤ) + ∑ᵤ mᵤ + 1)
LDice is the Dice loss for the binary target mask m and the predicted logit mask m̂. The index u runs over mask pixels. The quantity mᵤ is target membership at pixel u, and s is the sigmoid function that converts the predicted logit m̂ᵤ into a probability. The sum of products measures the predicted mass on target pixels. The coefficient 2 scales this overlap, and the denominator sums the predicted and target mask masses. The added 1 terms are the smoothing constants shown in the paper’s expression. The leading 1 minus the fraction converts agreement into a loss. Normalizing the Dice loss involves dividing it by the object count. The paper names focal loss as the other mask objective. It supplies a classification signal for mask pixels while focusing the contribution on harder predictions.
The authors test learning the mask head jointly with detection and learning it after box training. In the staged approach they freeze the box-trained detector and train the new head for 25 epochs. The frozen encoder provides the spatial memory and the frozen decoder identifies the scene element each slot describes. Only the new component learns how to turn this information into a pixel-level prediction. The authors use this staged procedure for the reported panoptic results because it achieves similar quality in less elapsed training time.
Turn independent mask scores into a panoptic assignment
Two independently predicted masks may each assign high scores to the same pixel. Panoptic segmentation requires a decision about which region owns it. The authors first filter detections by confidence, then use the largest surviving mask score at each pixel. In notation, their decision rule is as follows.
k*(u) = argmaxₖ Sₖ(u)
The symbol u identifies a pixel. The index k ranges over the masks admitted to the competition, and Sₖ(u) is the score for mask k at that pixel. The operation argmax returns an index attaining the largest score. The selected index k*(u) carries the category of its winning prediction. Applying this decision at each pixel gives the final masks exclusive pixel ownership.
The inference description that filters candidates before the pixel decision gives a cutoff of 85%. After the decision, DETR combines predictions of the same stuff category and removes resulting masks with fewer than 4 pixels. The consolidation reflects the difference between a stuff label, which can collect multiple pieces of a region, and a thing label, for which distinct instances should remain identifiable. The ownership decision already resolves overlaps, so the system needs no separate alignment of competing thing and stuff masks.
The paper also presents a compact PyTorch inference illustration to show how the box architecture can be expressed using common components. That illustration uses learned spatial positions and supplies positions at the input, whereas the detailed experimental architecture uses fixed spatial encodings supplied at attention layers. The example processes an image individually. For interpreting the benchmark, the detailed architecture and training recipe specify how the reported detectors were built. The compact illustration shows how the CNN, transformer, queries, and prediction heads fit together in a small implementation.
Experiments and results
Read the scores in the context of COCO
The authors use the COCO 2017 detection and panoptic segmentation tasks. The validation split contains 5k images. Bounding-box annotations identify instances and their rectangles, while panoptic annotations describe the image in terms of object and region masks. The training images contain 7 instances on average, and an individual image has as many as 63. The same image can contain both small and large targets. The output budget of 100 predictions gives the detector headroom for the training distribution and also explains why empty labels occur so frequently in the assignment.
For detection, AP means bounding-box average precision unless the paper identifies another measure. It summarizes performance over multiple overlap thresholds. At a given threshold, a reported detection has to have the right class and overlap an eligible target sufficiently to count as a correct localization. Confidence determines the ranking of detections, so a high-scoring spurious box and the loss of a useful low-scoring box have different effects on that ranked evaluation. Applying multiple thresholds gives tighter localization a role in the overall score.
Object size is reported separately because the aggregate score can conceal different localization behavior. A scene may supply extensive evidence for a large instance while offering little spatial detail for a small instance. For the standard DETR backbone, both predictions have to come from the same coarse grid. The paper’s size breakdown lets the reader judge the consequences of that representation at the same time as the benefits of global attention.
Reporting conventions differ between the main comparison and the component studies. The detector comparison uses COCO validation AP at the last training epoch. The ablations summarize validation results with the median over the last 10 epochs. This distinction matters when interpreting a score given for an experimental reference. A last-epoch result reports performance at the end of the chosen schedule, while the median characterizes the performance of a series of evaluations late in training.
Use a stronger reference detector
The Faster R-CNN comparison includes the standard Detectron2 configurations and versions the authors improve for this experiment. The standard references use the 3x schedule. The enhanced versions have names ending in a plus sign and use a 9x schedule, described as 109 epochs. They also receive the same crop augmentation as DETR and a revised localization objective involving generalized IoU. Taken together, those changes give the Faster R-CNN configurations a reported improvement of 1-2 AP on COCO validation.
The authors tune the enhanced reference detector’s localization losses through a grid search. The selected version uses GIoU with weight 20 for box regression and weight 1 for proposal regression. Those weights belong to the enhanced Faster R-CNN recipe. DETR uses its own direct box objective and has no analogous proposal regression stage. Giving the reference detector both additional training and strong regression settings makes the comparison more demanding than repeating the historical Faster R-CNN recipe.
Learning procedures remain specific to the architectures. The Faster R-CNN reference follows an SGD-based approach, meaning stochastic gradient descent, while DETR uses AdamW and dropout. Comparable hyper-parameters here concern the parts of the experiment the authors can reasonably align, such as the input augmentation and visual backbone. The resulting accuracy comparison is between trained systems under their reported recipes. It answers whether the direct detector can compete with an improved proposal-based detector under those conditions.
The ResNet-50 DETR configuration used for the main comparison has 41.3M parameters. The paper assigns 23.5M to the ResNet-50 backbone and 17.8M to the transformer. The overall count is comparable with Faster R-CNN using a feature pyramid network, or FPN. Such a pyramid provides features at multiple spatial resolutions. Equal parameter counts give a useful measure of capacity when comparing the architectures. Spatial attention work and proposal-dependent work still have to be measured through their respective computation and throughput.
Compare overall box accuracy and the size breakdown
The paper reports 42 AP on COCO validation for its competitive detection comparison. A distinct pair of scores in the appendix accompanies the authors’ visual comparison. They use the wide, higher-resolution DETR-512-DC5 configuration alongside the enhanced Faster R-CNN R50-FPN+ reference. The numerical scores for that named pair are stated directly.
Bounding-box AP on the COCO validation split for DETR and Faster R-CNN
The dilated DETR configuration and the enhanced proposal-based detector achieve similar box accuracy.
The numbers
| System or setting | bbox AP |
|---|---|
| Faster R-CNN R50-FPN+ | 42 |
| DETR-512-DC5 (this paper) | 42.5 |
The illustrated DETR uses a different transformer width from the main parameter-matched configuration. The chart therefore answers a specific comparison between those two detectors. Together with the main results, it supports the conclusion that DETR can reach the accuracy of an optimized Faster R-CNN system on this benchmark. The paper also reports overall competitiveness with ResNet-101 backbones on both sides of the comparison.
The object-size breakdown shows where the comparable totals come from. In the authors’ discussion of COCO validation, DETR gains +7.8 AP for large objects and records a −5.5 AP change for small objects relative to the Faster R-CNN comparison. These are signed changes reported by the paper for the size groups. This is a marked change in the kinds of instances the system handles well, even when the aggregate benchmark result looks similar.
The authors suggest that global image processing accounts for the large-object strength. Evidence about opposite ends of a large object can lie at distant positions in the feature grid. Encoder attention provides a direct way for those positions to exchange information. That explanation is consistent with the size-specific results. The overall comparison itself measures the performance of the complete detectors, with the feature representation, training objective, and inference procedure all contributing.
The dilated DC5 version improves detection on smaller instances by furnishing denser features. The comparison describes this variant as achieving higher overall AP with a comparable parameter count and similar floating-point operation count to the relevant reference. Its small-object performance still trails Faster R-CNN significantly. In this experiment, preserving more spatial detail improves the operation of the direct detector, while the remaining gap shows how much of the aggregate result still rests on the larger objects.
Account for speed, training effort, and score handling
The paper compares inference speed as well as accuracy, using TorchScript versions of both detector families for its FLOP and frame-rate measurements. FLOPs estimate arithmetic work, whereas frames per second describe the throughput of the running implementation. Faster R-CNN’s arithmetic work varies with the proposals produced for an image. The authors average its operation count over the first 100 COCO 2017 validation images and adapt the counting utility to include the batched matrix multiplications used by DETR. Their overall assessment is that DETR offers competitive runtime under the reported measurement conditions.
Training has a different resource profile. For the 300-epoch baseline schedule, the authors report about 24 hours using 128 V100 GPUs, with one image on each GPU and a total batch size of 128. They also report 3 days on 16 V100 GPUs, with 4 images per GPU and a total batch size of 64. These are examples of elapsed training time for two configurations with different batch sizes as well as different numbers of devices. They establish the scale of the training effort behind the detector.
The paper associates its 500-epoch schedule with a gain of 1.5 AP over the shorter training schedule on COCO validation. It associates the described 900-epoch schedule with a gain of 3 AP over the 300-epoch run. These gains show why the comparison attaches importance to training length. The arrangement of the output can be concise and quick to run while the learned behavior that makes it work still takes extensive optimization to obtain.
Random crop augmentation is another measured contribution. The authors report roughly 1 AP improvement on COCO from adding crops during training. They motivate the augmentation by the need to learn relationships across the visible scene. The measured gain supports including the augmentation in the detection recipe. The experiment reports its effect on performance, without assigning the gain to a particular attention head or stage.
The inference rule for empty-class slots has its own comparison. Returning the best nonempty category with its corresponding score gains 2 AP points on COCO relative to removing slots whose top choice is empty. This matters for reading the reported detector score. The empty class organizes the training signal, and the use of nonempty scores gives the ranked evaluation access to detections that a hard rejection would have removed. Because the alternative labels use their actual nonempty scores, confidence ranking can still put strong detections ahead of weak candidates.
The visualization appendix gives a concrete look at what the two competitive systems return. The authors take the last 65 images in the COCO validation set for the comparison. The displayed thresholds are 0.5 confidence for Faster R-CNN and 0.7 for DETR. The illustrations show image-specific predictions and, for DETR, colored attention maps connected to the detected instances. Since the visual cutoffs differ, the displayed number of boxes has to be read in light of those choices. The AP comparison uses the detector scores and supplies the systematic evaluation.
Evaluate scene regions and object masks together
The panoptic experiments use COCO’s 80 thing categories and 53 stuff categories. The authors train the detection and mask extension with the common representation described above. Their comparison includes Panoptic FPN and UPSNet. The authors retrain Panoptic FPN using DETR’s data augmentation and an 18x training schedule. UPSNet uses the 1x schedule, and the UPSNet-M entry represents multiscale test-time augmentation, which changes the image scales used during inference. These settings are relevant to what the comparison demonstrates about the complete systems.
The principal metric here is Panoptic Quality, abbreviated PQ. It evaluates the scene partition formed by the final labeled segments. The paper reports PQ overall, PQ restricted to thing categories, and PQ restricted to stuff categories. It also reports mask AP over the thing classes. Mask AP is measured on the predicted masks before panoptic assembly, so it evaluates the independent instance-mask predictions prior to the allocation of pixels to a winning region.
The authors report that DETR surpasses the published comparisons and their augmented Panoptic FPN reference on COCO 2017 validation. Stuff categories show the clearest advantage. The paper suggests that global attention helps because evidence for these regions can extend across the scene. This interpretation parallels the explanation offered for large-box detection. In both cases, the architecture gives spatially separated features a way to interact before a decoded prediction asks for information about a particular scene element.
Performance on things depends on how it is measured. DETR is behind the baselines by up to 8 mAP for thing masks on COCO validation while remaining competitive in thing PQ. The distinction follows the evaluation stages. Mask AP measures the ranking and quality of independent masks, whereas thing PQ measures the instances in the final segmentation. A low score in the first comparison and a competitive score in the second can coexist because the selection of detections and the assignment of pixels change the output being evaluated. The authors also report 46 PQ for their method on the COCO test split.
The appendix’s images illustrate the kinds of boundaries produced by the mask extension. Its caption points to sharper boundaries for some thing masks in the comparison with Panoptic FPN. Another image has overlapping airplanes. Panoptic FPN misses a plane, while DETR fails to segment 3 planes accurately. The exclusive pixel assignment remains well defined in such a scene, and the errors show how demanding it can still be to estimate which mask deserves those pixels.
The panoptic results answer the paper’s question about using the detector beyond rectangles. The box-trained representation supports a small extension that can give detailed masks for two kinds of scene content, and the staged training comparison shows that this can work with the detector frozen. On COCO, the resulting advantage is clearest for stuff regions. The thing-mask and thing-PQ measurements identify where the quality of individual mask proposals and the quality of the assembled scene differ.
What the ablations show
Removing the encoder changes which objects the detector finds
The encoder-depth experiment begins with a detector that still has a convolutional backbone, learned object queries, and a complete decoder. The authors change the number of encoder layers while holding decoder depth fixed. At the shallowest setting, the decoder reads from image features that have had no transformer encoder processing. This makes the comparison a test of what the extra image-wide computation contributes when the remaining parts of the detection system are still available.
Box AP on COCO validation improves as the authors add encoder layers. The size breakdown in the paper attributes much of the improvement to medium and large objects. Removing the encoder produces a clear overall loss, with an especially pronounced loss on large objects. The size pattern matters because there are several ways an encoder could lift the aggregate score. Here, the benefit is concentrated in categories of size that are well represented spatially on the feature grid and can span widely separated positions.
A decoder reading directly from the backbone can still gather information from different parts of the image. Each slot can attend to many spatial locations, and the convolutional features already contain information from their surroundings. Giving the network an encoder adds another route for combining that evidence. Image locations can exchange information before any slot reads them. Where two parts of an object are far apart, the feature associated with either part can consequently carry information about the other by the time the decoder receives it.
The authors propose that this processing helps distinguish objects from one another. They visualize attention in the last encoder layer of a trained detector, starting from selected positions in an image from COCO validation. The resulting patterns suggest that attention can favor regions associated with particular instances. This is relevant to a scene where the features of nearby objects are easy to confuse. A slot reading a feature that has already gathered related evidence may have a simpler localization problem than one gathering the same evidence from the backbone alone.
The attention examples and the depth experiment answer different questions. The depth comparison measures the value of retaining encoder processing in the detector. The examples illustrate a possible way that processing organizes image information. Changing the number of encoder layers also changes the number of learned transformations applied to each spatial feature. The ablation therefore supports the authors’ account of the encoder’s contribution while leaving room for several mechanisms within the encoder to contribute to the size-specific result.
The experiment also helps interpret the main comparison with Faster R-CNN. DETR’s relative strength on large objects is accompanied by a decline on those objects when its own encoder is removed. That agreement gives the contextual explanation more grounding than an architectural description by itself. A further claim that the encoder accounts for the whole difference between the two detectors would require a comparison that isolates their other differences in visual features, training, and localization.
Read the decoder at successive depths
The decoder study takes a single detector trained on the long schedule and reads out its predictions after successive decoder layers. The auxiliary detection losses make these predictions meaningful. During training, a shared readout has already learned to interpret intermediate slot representations as boxes and category scores. At evaluation, the authors can ask how the detections look at each depth before subsequent layers modify those representations.
On COCO validation, both the aggregate box AP and AP at the more permissive overlap criterion reported in the decoder analysis improve as decoding proceeds. The first-to-last improvement is appreciable. The authors also describe some leveling off after layer 5. That late behavior is important when interpreting depth as a resource. The study shows that several rounds of processing are valuable for this trained detector. The eventual change from one layer to the next is smaller than the change across the full decoder.
The first readout is particularly revealing. At the beginning of decoding, a slot’s learned identity can influence which image features it reads. Its content still has to acquire evidence from that image. Other slots are in the same position. The first layer can therefore give different slots distinct image-conditioned states while leaving them with little opportunity to respond to the contents of the other emerging detections. An image feature that offers persuasive evidence for an object can appeal to multiple slots during that initial read.
Later layers have more information at their disposal. Each slot brings forward an activation shaped by its previous reading of the image. In self-attention, the slots can act on these activations before reading from the encoder again. Two representations that have begun to describe the same object are now in a position to influence each other through their image-dependent content. The architecture provides a route for adjusting an emerging claim in light of the other claims being formed.
The fact that the first-layer detections are weaker also puts the role of auxiliary training in perspective. The early loss gives the first layer a reason to produce coherent predictions, and the evaluation confirms that it produces some useful results. The later layers still add a substantial benefit. The first stage has learned to recognize and localize objects with the information it can receive. The rest of the decoder can refine what those slots report and how they distribute their attention across the scene.
This is a depth analysis within a trained detector. A separately trained shallow decoder would have a different optimization problem. Its prediction layers and queries would learn in a system whose output must always be ready at that shallower depth. The intermediate stages of the long-schedule detector have their own supervision, but the full network is also trained to make use of the stages that follow. The experiment reveals what its layers accomplish in sequence and supplies a reason to retain depth in that configuration.
Suppression helps early predictions and harms the final ones
The paper makes a direct check on the decoder’s handling of duplicate detections. At each depth, the authors evaluate the readout and then evaluate it with a standard non-maximum suppression procedure using the default settings cited in the paper. This keeps the predictions fixed for the comparison at that depth. Any change in AP comes from which scored boxes the suppression rule retains or removes.
Suppression improves AP for the first decoder output. At that stage, the overlap rule still removes enough redundant predictions to help the overall result. This agrees with the account of the first image read. Several slots can respond to the same evidence before they have exchanged image-conditioned information about the locations they are starting to represent. Distinct learned query embeddings give them different starting identities. Those identities alone leave room for convergent predictions.
The effect of suppression decreases as the decoder gets deeper. In the late outputs, applying it slightly reduces aggregate AP. The authors attribute that loss to the removal of true positives. A rule that worked as cleanup on the early readout becomes detrimental when used on the more developed collection. Overlap between two late predictions can then reflect the geometry of separate objects, so discarding one can leave an instance unreported.
The reported behavior for the single overlap criterion differs slightly from the aggregate result. The paper’s figure description allows a small improvement from suppression on that criterion even when the last layers lose aggregate AP. The decision to omit suppression is supported by the main metric and by the depth pattern. An overlap rule can change performance differently depending on how tightly a box has to fit an annotation for the evaluation to count it.
This comparison connects the training objective to behavior on new images. Matching can enforce a unique pairing during training even if the predictions presented to the solver overlap heavily. The suppressed and unsuppressed readouts show how the actual rectangles change in usefulness as the trained decoder applies more computation. The late readouts supply empirical grounds for ending the detection pipeline at the decoder’s own predictions under the reported COCO evaluation.
The comparison also clarifies what the paper demonstrates about interaction. The same trained network supplies all the readouts. Its first decoder layer has limited opportunity for exchange about image-dependent objects, and its later layers have more. The decline in the usefulness of suppression follows that progression. Several changes occur through depth, including further reads from the encoder and more pointwise processing. The study observes the result of their combination and uses the architecture to explain why increased slot interaction is a plausible part of it.
Decoder attention can concentrate on an object’s extremities
The paper visualizes the attention associated with individual detections from DETR-DC5 on COCO validation. The maps use different colors for different predicted objects, allowing the reader to inspect where each prediction looks in a shared scene. Many of the displayed maps concentrate on relatively small areas. Heads and legs are among the examples of the extremities that attract weight.
Those areas can be useful for different aspects of a detection. An extremity can supply a recognizable feature for classification and a clue to where the box should end. A slot estimating a rectangle around a person, for instance, can learn something about the top and bottom edges from looking at the head and legs. The authors’ interpretation is that the decoder can make efficient use of such points after the encoder has already organized evidence about separate instances.
The distinction between an image point and an encoded feature is especially important here. A visible concentration of attention describes where the receiving slot places weight in the encoder memory. The feature at a highlighted position may already contain information gathered from other positions by encoder self-attention. A spatially tight decoder map can therefore accompany an underlying representation that incorporates evidence from across the object or from its surroundings.
This makes the encoder and decoder pictures complementary. The encoder examples show patterns the authors interpret as separating instances. The decoder maps show what particular predictions read after this spatial processing has taken place. The maps offer examples of a possible division of labor in which image features organize the scene, then slots read a small set of informative features to determine class and extent. The paper presents that division as a hypothesis, grounded in the visible patterns and the depth comparisons.
A displayed attention pattern can also be easier to interpret when considered with the resulting box. A feature on a leg may suggest a boundary clue if the predicted rectangle ends nearby. The illustration still shows one operation in a longer chain of computations. Box coordinates are read from a developed slot representation, which combines earlier processing and information from several attention heads. The final box is the result that can be compared systematically against annotations. The map gives a view of how some of the evidence reached the representation that produced it.
Attention benefits from the pointwise feed-forward layers
The authors test a narrower version of the transformer by removing its internal feed-forward networks and retaining its attention operations. The total parameter count changes from 41.3M to 28.7M, with 10.8M remaining in the transformer in the reduced version. The resulting detector has lower box AP on COCO validation. The experiment concerns the feed-forward components inside the transformer layers. These components transform the features used by later attention and prediction operations.
An attention operation gathers content from its sources, weighting the features available at different positions. The feed-forward operation can then act on the channels of the gathered representation at each position. The authors liken that pointwise computation to 1×1 convolution. It adds a learned nonlinear transformation after spatial positions or decoder slots have exchanged information. On the next pass through attention, queries, keys, and values are formed from the transformed features.
The two operations are useful together because they affect different aspects of a representation. For an encoder position, attention allows surrounding or distant evidence to enter its feature vector. The feed-forward layers can change how that evidence is expressed in the vector’s channels. For a decoder slot, information about other predictions can enter through self-attention, after which pointwise processing can alter the slot state that will be used for cross-attention or readout. The ablation retains the routes for information exchange while removing a substantial portion of the computation that acts on the gathered information.
The decline in AP supports keeping the feed-forward components in this architecture. Its interpretation has a capacity qualification. Removing them simultaneously decreases the number of trainable parameters and eliminates the particular nonlinear transformations they perform. The experiment compares the full detector with a specific smaller alternative. An equal-size alternative with the same arithmetic budget would address a different question about whether other transformations could use that capacity as effectively.
The practical implication within the study is clear enough. The headline design uses attention to relate image features and predictions, and its performance also depends on the conventional operations interleaved with attention. A detector that keeps only the conspicuous information exchange can be smaller, but the authors’ version of that change gives up detection accuracy. The simple pipeline at the level of proposals and outputs still relies on substantial learned processing within its layers.
Spatial encodings and slot identities serve separate purposes
The position experiments manipulate how the detector receives spatial encodings and learned output identities. Spatial encodings identify feature locations in an image. Object queries give the slots distinct learned identities. Both can influence the comparison made in attention, but the authors have different experimental freedom with each. Every tested system retains learned output identities. With the same starting content and shared operations, the decoder needs a way for its slots to behave differently.
The authors first consider an arrangement with no explicit spatial positional encodings and learned output encodings supplied at the decoder input. The detector still achieves meaningful accuracy on COCO validation, with a substantial loss relative to the baseline. Image content and distinct slot embeddings continue to give the network ways to form detections. The result demonstrates how much behavior those remaining inputs can sustain in that configuration. The loss in AP makes the contribution of explicit image coordinates visible.
That experiment changes the treatment of position on both sides of the architecture relative to the baseline. It removes the spatial encodings and uses an input-only placement for the output encodings. Its performance therefore reflects the combined setup. The other comparisons give a more specific picture by varying the way encodings enter attention and the places where spatial information is supplied.
One comparison uses fixed sinusoidal spatial information and learned object queries at the inputs only. It performs worse than supplying the encodings directly to attention layers. With input-only addition, the network can carry position forward through its changing representations. When layers receive the positional encoding during attention, each comparison gets direct access to the encoding. The controlled result favors the latter arrangement for the detector the authors train.
Learned spatial encodings supplied to attention give results similar to the fixed encodings supplied there. This makes the placement result more informative. The full detector uses fixed sine and cosine features, and the tests show that learned spatial information can also be effective when made available within the attention operations. The evidence supports several means of representing location, with a measurable role for how repeatedly and where that information is used.
A particularly informative variant removes explicit spatial encodings from the encoder and retains them for the decoder. Its drop is 1.3 AP on COCO validation relative to the positional baseline in the ablation. The decoder can therefore recover much of the detector’s performance as long as its reading of the encoder memory still has access to spatial location. At the same time, the decline indicates that explicit location information benefits the encoder in the full architecture.
That variant places the two kinds of spatial reasoning in a useful relation. An encoder with no separate coordinate signal can still process the contents of convolutional features. The decoder, which ultimately has to emit a center and extent, can read spatially identified features even if the preceding self-attention omitted their positional encodings. The result measures the accuracy of that allocation of information under the tested recipe. It leaves open how well it would work with a different backbone or with targets having a different distribution of sizes and positions.
All the positional comparisons retain a learned way to identify output slots. They provide evidence about the representation and placement of image coordinates and about the placement of the object queries. The experiments consequently explain why a compact implementation that adds positions only at the inputs can express the overall method while yielding a different architecture from the reported detection setup.
The two box losses make different contributions
The loss study keeps classification supervision and varies the localization terms. One version uses generalized IoU without the ℓ₁ coordinate component. Another retains the coordinate component without generalized IoU. The reference uses both. Since all of these settings continue to train for classes, a geometry-only result here means a choice of box supervision within a detector that still has category labels.
Generalized IoU accounts for most of the performance achieved by the combined box objective. In the ablation, omitting ℓ₁ and retaining generalized IoU costs 0.7 box AP on COCO validation relative to the combined reference. The configuration with ℓ₁ as its sole box loss performs poorly. Combining the losses improves performance on medium and large objects compared with the generalized-IoU-only version, according to the authors’ description of the results.
The comparison helps explain why a normalized coordinate system alone is insufficient as a localization objective in this experiment. Normalization expresses an error relative to the image. A given coordinate discrepancy can still have different consequences for how well a small rectangle and a large rectangle cover their respective targets. Generalized IoU evaluates the relation between predicted and target areas, including the uncovered region inside their enclosure. Its usefulness in the ablation is consistent with the authors’ reason for including it alongside a direct coordinate term.
The improvement from adding ℓ₁ back is informative as well. Good geometric overlap is the condition the benchmark ultimately rewards, and supervision on individual coordinates can still make that condition easier to learn. A prediction represented by center, height, and width receives direct information about errors in those entries. An overlap-based objective evaluates their joint geometric consequence. The combined setting gives the detector both signals and yields the stronger overall result in the paper’s comparison.
Assignment adds a further reason to interpret the ablation at the level of the training recipe. A geometric cost helps decide which prediction gets responsibility for an annotation, and box losses train the coordinates after a pairing has been chosen. Changing how geometry is measured can affect the signal available for one or both of those jobs. The reported comparisons support the combined approach under the authors’ settings. They supply less evidence about how much of the outcome comes from the correspondence itself and how much comes from the gradients after selection.
The authors explicitly restrict the scope of the loss study to simple changes made with the chosen weighting. Dropping a term changes the balance of the objective. A system in which the surviving terms are tuned again could behave differently. The measured effect establishes that generalized IoU is especially important in the tested recipe and that ℓ₁ still adds value there. The paper gives the resulting preference a concrete experimental scope rather than treating the weights as a universal property of direct box prediction.
Query slots learn recurring patterns of location and shape
To inspect what the learned query identities come to represent, the authors collect box predictions across the COCO 2017 validation images. Their plot covers 20 of the 100 decoder slots. Each prediction is placed according to the center of its box on an image-normalized square. The coloring distinguishes small boxes, large horizontal boxes, and large vertical boxes. Different images can therefore contribute comparable points to the same slot’s plot in spite of having different dimensions.
The interesting structure is within each slot’s distribution. A slot may predict small objects in certain parts of an image and supply broad horizontal boxes in another set of circumstances. Several spatial and shape patterns can appear in the same plot. The repeated behaviors give the learned identity a recognizable role, and the variety of predictions shows how that role can change with the image.
Broad boxes spanning much of the image appear as a recurring prediction type across slots. The authors hypothesize that the pattern reflects the frequency of such annotated objects in COCO. That interpretation connects the learned division of work to the training distribution. Even with flexible assignment, the opportunities a slot repeatedly encounters can influence the situations in which it learns to produce a useful prediction.
A slot’s observed preferences are statistical properties of its outputs. The geometric representation comes from measuring many predictions after training. This is a different point in the pipeline from establishing reference boxes before training. The object query can acquire spatial behavior without each image first being populated with a matching pre-defined rectangle. Its learned vector can participate in a variety of predictions because it is interpreted through the current image features and the states of the other queries.
The plots say more about geometry than about class. The colors sort boxes by shape and size, and the plotted coordinates show position. They provide a reason to expect recurring patterns in where a slot gets used. To ask whether slots can be reassigned flexibly when the class distribution changes sharply within an image, the authors construct scenes with an unusual number of repeated instances.
An unusual giraffe count probes flexibility
The training split has no image with more than 13 giraffes. The authors construct a synthetic scene with 24 giraffes and report finding every one of them. The comparison between the largest training count for that category and the synthetic test count is the point of the experiment. The learned system has to devote substantially more of its output collection to that category in the constructed image than would have been needed for any single training image.
The example tests an implication of rigid class ownership. If only a small permanently designated subset of slots could produce giraffe detections, the detector would be unable to use enough of its available slots in this scene. Recovering the full group establishes that sufficient slots can serve the same class together when the image calls for it. That observation complements the geometry plots, where a given slot can display several recurring behaviors.
The test puts a concrete meaning on flexible specialization. A query can favor a range of positions or box shapes while still working for a class that has already occupied many of the other slots in the image. Classification uses shared prediction parameters, and the picture supplies evidence that allows multiple slots to choose the same class for distinct instances. The observed result is consistent with learned preferences that leave considerable room for reassignment.
The synthetic image poses a particular challenge to the trained detector. Its success establishes what the system did on that image. The experiment provides no general error rate for unusually large herds or for similarly unusual counts in other classes. It also gives the authors a reason to ask what happens at substantially greater density, where an unusual class count and the number of usable query slots become more consequential.
The repeated-grid experiment exposes a practical capacity limit
The appendix examines crowded inputs using a constructed 10×10 grid. The authors choose a square image for a class and repeat it across the grid. They hide randomly selected cells to vary the visible object count and keep the absolute size of each visible instance fixed. The procedure tests several classes and repeats the masking experiment 100 times with different masks. That repetition gives a basis for reporting the mean and spread of the outcomes as visibility changes.
Holding size constant is valuable in light of the COCO size breakdown. If the authors had squeezed an increasing number of objects into a scene by making each progressively smaller, a decline could reflect the established difficulty with small objects. Repetition on a fixed grid varies the number of visible instances without introducing that particular change. Each surviving copy is presented at the same scale, while the scene supplies more or fewer instances for the slots to account for.
The paper reports successful recovery up to 50 visible instances in this test, then increasing saturation. At the fully occupied setting, the detector finds 30 instances on average out of the 100 present. It therefore finds fewer instances in the filled grid than in a less populated grid with 50 visible copies. The failure involves the behavior of the learned detector as a whole. The output array has room for the nominal number of objects in the filled grid, yet the system cannot reliably use its available slots under those conditions.
This behavior separates two meanings of capacity. The fixed query count gives an upper bound on how many boxes can be reported for an image. Whether the detector can localize and distinguish that many instances depends on the representations and the distribution it learned from. In the repeated grids, those usable detections decline markedly before the formal output limit can explain the result on its own.
The authors identify repeated appearance and class multiplicity as intertwined sources of distribution shift. Unmasking additional cells changes how frequently the same visual evidence recurs, where it occurs, and how many detections of the same category the system needs to make. The study keeps scale fixed and exposes the combined challenge. It leaves the relative contribution of visual repetition and unusually high class counts unresolved.
The controlled grid and the single giraffe scene consequently probe different regions of behavior. The giraffe result demonstrates that the learned queries can accommodate a category count beyond its training maximum in a constructed example. The grids expose eventual failure under a stronger and more repetitive demand. Together, they give substance to the idea of learned slot allocation. The allocation has considerable flexibility, and its effectiveness depends on what visual evidence and competition the current scene presents.
Limitations
The authors identify small objects as an unresolved weakness
The authors explicitly name small-object performance as a limitation of DETR. Its COCO validation result combines an advantage on large objects with a disadvantage on small ones. An overall comparison therefore answers a question about the benchmark’s collection of targets. The size breakdown gives a different answer about the system’s reliability when the objects of interest occupy little of the image.
The paper’s resolution experiment offers a partial remedy. DC5 supplies a finer feature grid and improves small-object detection, but the authors still report a substantial small-object gap in the comparison with Faster R-CNN. The extra spatial information is bought with additional computation. That cost matters specifically at the image encoder, where a larger grid increases the number of pairwise attention comparisons. The practical issue is retaining enough fine detail while keeping the image-wide interaction affordable.
A limit of the experiment is that feature resolution is only one of the differences between the two detection families. The feature pyramid in the reference detector makes several resolutions available, while the DC5 modification changes the density of the features supplied to DETR’s attention. The experiment shows what happens when the authors pursue the latter remedy. It leaves the broader contribution of multiscale representation, supervision, and other design choices incompletely identified. The authors point to earlier advances in feature pyramids as grounds for expecting further progress, and the benchmark still records the gap at the end of their study.
The training burden is part of the demonstrated result
Long training and optimization are also limitations the authors state. Their reference DETR recipes include extended schedules, auxiliary losses, separate learning rates for the backbone and transformer, and training augmentations that improve the result. Those choices matter to the score obtained. A detector can be assembled with familiar components and still require extensive training to learn how the slots should divide an image’s objects among themselves.
The authors’ training examples give elapsed time for particular hardware and batch configurations. They demonstrate the scale of the reported runs. Inference throughput answers a different resource question. A competitive frame rate describes running the trained detector, while a long schedule describes the cost of obtaining the weights used by that detector. A reader evaluating the paper’s claim of practical competitiveness has reason to retain both measurements.
The comparison controls some factors that would otherwise complicate the accuracy result, such as backbone family, parameter count, and use of the same crop augmentation in the stronger reference. It still compares architectures with their own optimization recipes. As a consequence, the paper establishes what the trained systems can achieve in the chosen setup. A comparison at equal training expenditure would need a common accounting of computation and an explicit budget. Parameter similarity and the reported inference timings do not provide that accounting on their own.
This also bounds conclusions about sensitivity to the training recipe. The authors show gains from more training and report that intermediate losses help with the number of objects predicted for each class. The study leaves many combinations unexplored. Its evidence applies to the schedules, loss settings, and architecture families it actually tests. The working configuration is an empirical answer to how DETR can be trained; the range of other recipes that would reach the same accuracy remains open.
The slot count defines a ceiling and the grid test reveals a lower practical limit
The authors make the fixed output capacity explicit. With 100 queries in their experiments and one detection available per slot, the detector has a firm ceiling on the number of distinct boxes it can report. The chosen capacity is larger than the number of annotated objects in the reported training images, which makes it a sensible experimental setting for those data. An input with more objects than the query count exceeds that representation regardless of how clearly the scene is depicted.
The synthetic grids expose a limit below the ceiling under particular conditions. The paper’s explanation is that the inputs and detection demands depart substantially from the training distribution. The authors call out a central ambiguity themselves. The appearance of a scene made from repeated tiles and the unusually high count of a given class are both unfamiliar. As cells become visible, the experiment increases both forms of unfamiliarity together.
This limitation extends to any claim about crowding based on the reported count at which recovery starts to fall. The controlled setup holds object size fixed and varies the number and arrangement of visible copies. Natural scenes can vary their instances in appearance, position, background, and overlap at the same time. A count observed in the grid therefore characterizes that construction. It leaves the detector’s operating range for other crowded scenes as a separate empirical question.
The experiments also leave the effect of increasing the query budget unresolved. Giving the architecture more slots would raise its formal ceiling. The measured saturation occurs with available room in the output, so its cause is broader than the size of the output array. More slots would have to learn useful responsibilities and interact successfully with the others. The paper’s count probes supply evidence about the trained allocation at its reported budget and leave scalability of the allocation open.
Assignment guarantees have a specific scope
A distinction visible to a careful reader concerns where the one-to-one guarantee applies. Given the training annotations and the current predictions, the matching solver gives distinct prediction indices to the real targets. Two predictions that attempt to represent the same annotated instance cannot both earn a real match for that instance. This property determines who receives which supervision. At inference, the output depends on what the trained detector computes from the image.
Empirical duplicate avoidance is the behavior the authors assess with their depth and suppression experiment. The final aggregate AP falls slightly when conventional suppression is applied, which supports using the reported output without that procedure. AP is a combined measure of localization, confidence ranking, and coverage across annotations. A detector can still make some repeated predictions while losing more useful detections than it removes when suppression is added. The experiment establishes the net effect of that procedure in the evaluated setting.
The empty category similarly has a defined role in training. It supplies a target for slots left unused by real annotations. The authors’ score-handling experiment, in which they keep the strongest nonempty class for AP ranking, shows that selecting a set from the scores introduces another decision. A deployment that requires a particular balance between missed detections and false alarms would need evidence at its own decision threshold. The paper compares ranking procedures for AP and does not measure whether individual confidence values are calibrated to particular error probabilities.
Permutation invariance has a narrower mathematical meaning than insensitivity to the learned queries. Rearranging the stored predictions, with their contents intact, preserves the alternatives available to the matching problem. The content of a slot depends on the query vector that helped produce it and on its interactions. The observed patterns in query geometry are compatible with the loss being indifferent to array order. They are also a reason to keep the formal property of the objective separate from behavioral claims about how similarly all slots respond to unusual images.
The visual evidence leaves the causal division of labor open
The authors hypothesize that image-wide encoder attention helps separate instances and explains some of the strength on large objects and stuff. A careful reading gives weight to both halves of the evidence. Reducing the encoder hurts box detection, especially for large objects. Selected attention maps show patterns compatible with separating instances. Those results motivate the hypothesis at different levels.
The encoder intervention changes multiple properties at once. Additional layers bring additional capacity, pointwise transformations, and repeated exchanges among visual features. The paper measures the benefit of the encoder as implemented. It leaves open how much of that benefit depends on the full spatial reach of attention and how much could be obtained through another way of processing the feature grid with similar capacity.
The spatial reach of a decoder attention map also describes only part of the information used by a prediction. By the time a slot reads from a position, that position’s feature may integrate evidence from many other parts of the image. A map that concentrates near a boundary can guide a useful explanation of where a slot reads. Identifying which original pixels or features were necessary would require an intervention that changes the evidence available and measures how the prediction responds.
The stuff interpretation has an additional limitation. The large-object comparison comes from box detection, while the stuff advantage is measured after mask prediction and panoptic assembly. In the segmentation pipeline, the mask head, the association between masks and boxes, and the competition for pixels can all influence the final score. The paper offers a common explanation involving broad spatial context. Its results establish a pattern consistent with that explanation and leave the contribution of the individual stages to the stuff gain open.
The panoptic result is conditional on how masks are used
The paper acknowledges a substantial gap in thing-mask AP even while reporting competitive thing PQ. These measures examine outputs at different points. Independent scored instance masks supply the inputs for the former. The latter evaluates instances in the assembled scene partition, after the procedure has selected predictions and given each pixel its winning assignment. The observed disagreement between their rankings is part of the evidence about the extension’s strengths.
The gain in overall PQ is especially associated with stuff. That matters to the scope of the unification claim. The architecture can use a common representation for things and stuff and produce a strong scene-level result. The benchmark breakdown shows which type of category benefits most under the reported evaluation. An application concerned primarily with independent thing masks would have more reason to examine the mask AP comparison than the aggregate PQ improvement.
A further limitation follows from the output rule. Assigning each pixel to a single winning mask guarantees exclusive ownership. Correct ownership depends on which predictions survived the confidence filter and what scores the surviving masks give that pixel. If a real object is absent from the surviving candidates, selecting a winner among the remaining masks cannot recover it. If the wrong mask has the highest score, exclusivity preserves a well-defined partition while the segmentation itself is wrong. The overlapping-airplane example gives a concrete case where the competition is difficult to resolve accurately.
The method also keeps boxes in the training path. The decoder predicts boxes for stuff as well as things because box geometry supplies the correspondence used to supervise each prediction. The masks add a finer description of the matched element. The study therefore demonstrates a shared route from box-trained slots to a panoptic output. It leaves open what would happen in a system whose assignment was based completely on mask information, particularly for regions whose detailed outlines are poorly described by rectangles.
The staged mask result has a similarly defined scope. A frozen box detector provides features adequate for the mask head used in the paper, and the authors obtain results similar to joint training with less wall-clock training time. Those observations concern this head, this representation, and the COCO setting. The study does not establish how much the answer would change if a new mask task required distinctions that the frozen box detector had little reason to preserve.
Controlled comparisons and examples establish different kinds of evidence
The ablations use medians over late validation epochs to summarize the detector’s performance within the chosen training procedure. That reporting convention is distinct from measuring the variability of independently trained systems. A median over checkpoints can describe late-epoch behavior in a run. It provides limited information about variation arising from initialization, sampling, or schedules outside the reported comparison.
Several controlled changes also alter more than the feature suggested by their names. Removing feed-forward layers changes parameter count and computation alongside the type of transformation. Varying encoder layers changes depth and the amount of feature processing alongside the opportunity for global exchange. The input-only positional variant changes how the system receives spatial information and output identity. These are informative design experiments, with conclusions most secure when attached to the specific changes actually made.
The explanation of the box objective has a related boundary. Matching determines who is supervised by which target, while the regression loss determines how the selected coordinates are penalized. The paper describes differences between those jobs and studies simple changes to the geometry terms. It does not exhaust the combinations in which the assignment weights, distance choices, and regression weights might be tuned independently. Its preference for the combined localization loss rests on the configurations compared.
The examples answer narrower questions that the headline metric cannot. Visualizations show where particular operations assign weight. A synthetic herd demonstrates an unusual successful allocation of output slots. The grid shows saturation as the constructed scenes become denser. Each observation is valuable within its own conditions. Averaged benchmark scores remain the stronger evidence for ordinary COCO performance, while the examples reveal behaviors worth understanding within and around that setting.
The benchmark establishes viability for the tasks studied
The paper evaluates detection and panoptic segmentation in the COCO setting. Both use annotated category inventories, and the authors build their comparisons around the reported ResNet backbones, image scales, and evaluation procedures. They show that direct set prediction can be competitive with an improved proposal-based detector and that the same output structure can support a strong panoptic extension. Those claims have a defined testable scope.
Fixed category supervision limits inferences about recognizing categories outside that inventory. The slots have flexible responsibilities within an image and can adapt to changes in how frequently a known class occurs. The giraffe scene illustrates this kind of flexibility. Learning to score a category whose identity is supplied in a different way would place new demands on the detector’s recognition mechanism. The COCO experiment establishes the effectiveness of its learned category and box predictions under the categories used in training and evaluation.
The runtime and qualitative comparisons likewise depend on how the systems were run. The arithmetic estimates and throughput measurements describe the reported implementations and image sampling procedure. In the illustrations, the detectors use different display thresholds. A reader can inspect the kinds of results each system produces under its threshold, while a comparison of how many instances they reliably find should rely on the numerical evaluation and its scoring conventions.
Within those bounds, the important result is that a detector can learn to coordinate an unordered collection closely enough to replace proposals, pre-defined anchors, and conventional duplicate suppression in a competitive benchmark system. The remaining challenges follow directly from the measurements. Training is lengthy, fine spatial detail is costly to preserve, dense scenes can defeat the learned slot allocation, and segmentation quality depends on which output is evaluated.
What came after
Set prediction remained a subject of study in its own right
Rethinking Transformer-based Set Prediction for Object Detection takes up the specific problem DETR puts at the center of detection. Its stated subject is how transformer-based set prediction should be formulated for object detection. That focus makes it a close continuation of the original paper’s technical question. Once the feasibility of direct prediction has been shown, the choices within the formulation become subjects for investigation: how image evidence reaches predictions, how those predictions are made distinct, and what computation is required to get a useful collection.
The title gives grounds for identifying that continuation at the level of the problem. Details about which pieces of DETR the work revises require more than its broad description. The useful connection is already specific. Detection can be studied as the production of a structured collection, with separate questions about the representation of the input, the coordination of outputs, and the way those outputs receive supervision. That is the research problem singled out in the later work.
An End-to-End Transformer Model for 3D Object Detection carries the question of end-to-end transformer detection into a setting where the objects have to be located in three-dimensional space. DETR’s rectangles are normalized with respect to image dimensions. A three-dimensional detection task calls for outputs appropriate to its own geometry. What carries across at the level of the stated problem is the aim of obtaining object predictions directly from a transformer-based detector.
The geometric change matters because storage order and spatial representation are separate properties of the answer. A collection of spatial detections can be unordered while each element still requires a precise definition of location and extent. The later work makes the dimensionality of that definition an explicit part of its subject. It shows how the end-to-end detection question can be posed for another kind of spatial input while leaving the engineering details of the corresponding geometry to that work.
Grounding DINO pursues open-set object detection through grounded pretraining. This moves the recognition question beyond the fixed inventory used in DETR’s COCO experiment. Both works address the detection of distinct instances, and the open-set setting gives the category side of the problem a wider scope. A system can have a way to allocate unique positions in its output and still need a way to decide what categories those positions can express. Grounding DINO makes that latter concern part of the detection problem it studies.
These continuations locate DETR’s contribution in a larger design space. The original experiment narrows in on how a collection can be returned directly for annotated images. Later detection titles take that formulation as a topic to rethink, apply the end-to-end question to different spatial geometry, or widen the recognition setting. The connections are specific to the research questions named by the papers. They do not depend on assuming that each version uses the same queries, assignments, or box losses.
Visual transformers revisited the organization of image features
An Image is Worth 16x16 Words places transformers in large-scale image recognition. That is a different output task from returning the locations and categories of separate objects. It brings the visual representation itself to the fore. In DETR, a convolutional feature grid supplies a sequence on which the transformer operates, and the decoder has a distinct job of producing detections. Large-scale image recognition lets the visual transformer question be studied through the quality of an image-level answer.
This relationship helps locate where progress on recognition can matter to detection. A more informative image representation can supply richer evidence to a detector. The need to distribute that evidence among separate boxes, assign targets during training, and handle repeated claims comes from the detection output. Treating representation and output construction as distinct questions makes it possible to understand why work on transformers for classification is relevant to DETR even when it studies a different prediction.
Swin Transformer organizes a hierarchical vision transformer around shifted windows. The description points to a question that DETR exposes through its dilated backbone comparison. The visual representation needs enough spatial detail to support fine localization, and attention has to remain computationally practical as the representation gets denser. A hierarchy and a window structure address the organization of feature computation across an image. DETR’s queries and matching address the organization of the detections that can be read from image features.
Swin Transformer V2 takes capacity and resolution as explicit scaling targets. Those are separable dimensions in the original detection paper. Increasing the width of a transformer changes its channel space, while increasing the feature resolution gives it more spatial positions to process. The later paper is concerned with scaling the visual transformer itself along such dimensions. The connection to DETR is the need to reason about what is being scaled and which resource cost follows from that choice.
CvT studies introducing convolution into vision transformers. DETR already makes a particular architectural choice about combining convolution and attention. Its convolutional network creates the visual features, and the transformer develops those features and reads objects from them. CvT’s stated direction makes the relationship between these operations a question within visual transformer design. This expands the ways to ask which parts of visual processing benefit from local convolutional structure and which benefit from attention over a sequence.
These citing works are relevant to the visual side of DETR’s design. They study recognition, spatial organization, scaling, and the place of convolution. The original detector’s comparison between the standard feature grid and DC5 gives those questions concrete consequences for detection: the features supplied to the encoder affect which objects can be located and how much image-wide computation is required to locate them.
Later efficiency work addressed several costs that DETR made visible
Training data-efficient image transformers & distillation through attention considers data-efficient training and attention-based distillation in image transformers. The connection with DETR is the distinction between demonstrating that a visual architecture can work and establishing what it takes to train it. DETR reports gains from lengthening its detection schedule. The later work makes training efficiency itself a central topic in image recognition, with distillation through attention named as part of its approach.
Tokens-to-Token ViT examines training vision transformers from scratch on ImageNet. The initialization question arises from a different starting point in DETR. Its detector combines an image-pretrained convolutional backbone with a transformer initialized for detection, and the authors use separate learning rates for the two. The later work studies a visual transformer under a training-from-scratch formulation. The relationship is about the importance of specifying which visual components learn at which stage and from what starting point.
Efficient Transformers: A Survey addresses transformer efficiency at a broader level. DETR offers a concrete detection example of why sequence length matters. A finer grid raises the number of image positions that participate in encoder attention. The decoder operates over a smaller collection of slots, so the two parts of a single detector have different cost profiles. This gives the efficiency question a precise setting: the expense of attending across the image is distinct from the expense of coordinating the output collection.
SwiftFormer studies efficient additive attention for real-time mobile vision applications. Its title identifies the attention operation and the runtime setting as objects of design. DETR’s speed comparison concerns the evaluated detection implementations, and its encoder cost rises when image features become denser. The later work addresses a regime where the cost of visual attention is directly tied to a demanding runtime objective. That connection concerns a computational problem DETR makes visible, within a separate application setting.
The training and runtime directions cover different meanings of efficiency. Starting conditions, the amount of training needed, the cost of attention at a given feature resolution, and execution under a particular hardware regime can all change independently. The later works put separate names to choices that would be obscured if DETR’s simpler detection pipeline were taken as a single statement about total resource use.
Spatial attention extended to other kinds of input
ViViT studies transformers for video. Where DETR’s encoder operates on positions from a still image, video gives visual evidence an additional temporal dimension. Some evidence can recur across frames, and information about a visual event can be distributed over time as well as space. The later work changes the kind of visual input for which a transformer representation is being investigated.
VideoMAE focuses on data-efficient self-supervised video pretraining using masked autoencoders. Its subject emphasizes preparation of a video representation through a training objective. DETR’s matching objective, by contrast, is tied to supervised detection, using annotated objects to decide which slot should receive which signal. The relationship is that two attention-based visual systems can have substantially different reasons for how they structure their training targets. For one, the target is an unordered object collection. For the other, the stated pretraining problem concerns masked video information.
Stratified Transformer for 3D Point Cloud Segmentation brings transformer processing to segmentation of point clouds. DETR’s segmentation extension starts with locations on an image grid and yields a labeled division of image pixels. The later work names a spatial input whose elements are points in three dimensions. The change concerns what counts as a position and what the output labels are attached to. It shows a broader setting in which attention has to relate spatial evidence and produce a geometrically meaningful result.
These works connect to the part of DETR that turns spatial evidence into representations a prediction system can use. The input organization, the learning objective, and the requested output all vary across the later settings. This gives a reason to keep the visual attention computation conceptually separate from the Hungarian objective. DETR joins them for object detection. Video and point-cloud work can take up the visual representation question under different supervision and geometry.
Segmentation work made the region itself central
Segmenter applies transformers to semantic segmentation. The task brings pixel category assignments to the center of the prediction. In DETR’s panoptic experiment, category assignments also have to preserve the identities of individual things, while regions of the same stuff category can be consolidated. The two tasks therefore share an interest in the spatial distribution of labels and place different demands on how instances are represented in the answer.
That distinction gives the later work a precise relationship to DETR. The mask extension demonstrates that a transformer-based detector’s representations can support pixel labeling downstream of object queries. A transformer for semantic segmentation takes dense category prediction as its stated task. Where boxes and unique target matches organize DETR’s mask supervision, the semantic task can be described in terms of what every pixel depicts. The relationship sits at the level of visual representation and the structure of the desired spatial output.
Segment Anything puts the breadth of segmentation at the center of its title and research problem. DETR’s segmentations are evaluated within the annotated thing and stuff categories of COCO, with scores for the masks before and after the scene is assembled. The wider segmentation question is relevant because a method’s output can delineate a region even when the category or grouping assumptions behind that output are being reconsidered. The two papers can be related through their concern for how a system identifies and describes regions of an image.
DETR’s segmentation findings also explain why that relationship cannot be reduced to one accuracy score. Its thing-mask AP and thing PQ tell different stories because the masks take on different roles before and after panoptic assembly. Later segmentation tasks can ask for regions with a different scope and evaluate a different aspect of their quality. The shared concern is the construction of useful spatial descriptions, with the appropriate unit of evaluation determined by the task.
Learned slots and general structured outputs opened nearby questions
Object-Centric Learning with Slot Attention studies object-centric learning using attention and slots. The terminology identifies a close conceptual neighbor to DETR’s fixed collection of learned queries. DETR’s slots are interpreted through supervised category and box predictions, and the Hungarian objective gives their assignments a specific meaning. Slot-oriented object learning asks more generally how a visual representation can organize information about distinct entities.
The useful comparison is between the organization of the representation and the supervision that gives it a particular interpretation. The DETR ablations show that a collection of slot representations can evolve through several layers and acquire recurring patterns of use. The other paper’s stated object-centric focus makes the slots themselves a central object of study. That connection can be understood without equating the targets, training objectives, or mechanisms of the two systems.
Perceiver studies general perception through iterative attention. Its title emphasizes repeated attention as a way to handle perceptual information. Repetition through depth is also important to understanding DETR’s parallel decoder. The detector’s outputs do not have to be produced in order for their underlying representations to improve through successive attention operations. The Perceiver direction makes repeated attention part of a broader perceptual architecture.
Perceiver IO makes structured inputs and outputs part of the stated scope of a general architecture. DETR offers a specific instance of why that scope matters. Its output consists of a collection with variable real occupancy and defined fields for each detection. The decoder and loss both reflect the structure of the answer. More general structured prediction raises the same design question in a wider form: what computation and supervision does the chosen output representation require?
Taken together, these titles reflect a line of inquiry that goes beyond applying attention to visual input. The representations being processed can also be organized around entities or meaningful output elements. DETR makes that organization measurable through detection and segmentation. The related work places it among questions about what slots represent and how attention can be used when the input and output structures differ.
Vision and language widen the setting for visual prediction
Flamingo studies few-shot learning in a visual language system. Its stated scope links visual information with language and makes the amount of task-specific example information part of the problem. This places it at a different end of the output design question from DETR. An object detector returns a spatial collection of category and box predictions. A visual language system needs representations capable of contributing to a language-connected task.
The relevance of visual structure persists across that change. A scene can contain repeated instances, overlapping objects, and evidence spread across distant regions. DETR addresses those facts for supervised localization by deciding how slots should share responsibility. A vision-and-language work can take an interest in the same kinds of visual evidence while asking for an answer with a different structure. The citation connects research concerned with how visual information is represented and used, without establishing a direct transfer of the detector’s training objective.
Grounding DINO already makes the related recognition issue explicit within detection by putting grounded pretraining and open-set recognition in the same research problem. The broader perspective is represented by Vision-Language Models for Vision Tasks, a survey whose stated scope is the use of vision-language approaches for visual tasks. That scope connects detection to a setting in which the source and meaning of category information can become part of the formulation.
The link across these directions is strongest when kept at the level of the problem each work addresses. DETR establishes a way to learn a coordinated detection collection from annotations. Later work asks how visual attention can support other spatial domains, which outputs should be structured around entities, how to scale the underlying computation, and how visual evidence can connect to language. The COCO experiments give those questions a concrete point of comparison by showing which requirements follow from the detection task itself and which came from the pipeline that DETR replaced.
Institutions
Fields, topics and concepts
Shelves 3The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksComputer Vision and Pattern Recognition · 3,621 works
Concepts 1Key ideas and methods explained on our concept pages.Transformer and attention · 30 works
Cite
Cite as Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov and Sergey Zagoruyko. 2020. End-to-End Object Detection with Transformers. arXiv:2005.12872.
@misc{carion2020end,
title = {{End-to-End Object Detection with Transformers}},
author = {Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov and Sergey Zagoruyko},
year = {2020},
doi = {10.48550/arxiv.2005.12872},
eprint = {2005.12872},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2005.12872}
}References
- Al-Rfou, R., Choe, D., Constant, N., Guo, M., Jones, L.: Character-level language modeling with deeper self-attention. In: AAAI Conference on Artificial Intelligence (2019) our card
- Bahdanau, D., Cho, K., Bengio, Y.: Neural machine translation by jointly learning to align and translate. In: ICLR (2015) our card
- Bello, I., Zoph, B., Vaswani, A., Shlens, J., Le, Q.V.: Attention augmented convolutional networks. In: ICCV (2019) our card
- Bodla, N., Singh, B., Chellappa, R., Davis, L.S.: Soft-NMS — improving object detection with one line of code. In: ICCV (2017) OpenAlex ↗ · Scholar ↗
- Cai, Z., Vasconcelos, N.: Cascade R-CNN: High quality object detection and instance segmentation. PAMI (2019) OpenAlex ↗ · Scholar ↗
- Chan, W., Saharia, C., Hinton, G., Norouzi, M., Jaitly, N.: Imputer: Sequence modelling via imputation and dynamic programming. arXiv:2002.08926 (2020) OpenAlex ↗ · Scholar ↗
- Cordonnier, J.B., Loukas, A., Jaggi, M.: On the relationship between self-attention and convolutional layers. In: ICLR (2020) OpenAlex ↗ · Scholar ↗
- Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: BERT: Pre-training of deep bidirectional transformers for language understanding. In: NAACL-HLT (2019) our card
- Erhan, D., Szegedy, C., Toshev, A., Anguelov, D.: Scalable object detection using deep neural networks. In: CVPR (2014) OpenAlex ↗ · Scholar ↗
- Ghazvininejad, M., Levy, O., Liu, Y., Zettlemoyer, L.: Mask-predict: Parallel decoding of conditional masked language models. arXiv:1904.09324 (2019) our card
- Glorot, X., Bengio, Y.: Understanding the difficulty of training deep feedforward neural networks. In: AISTATS (2010) OpenAlex ↗ · Scholar ↗
- Gu, J., Bradbury, J., Xiong, C., Li, V.O., Socher, R.: Non-autoregressive neural machine translation. In: ICLR (2018) our card
- He, K., Girshick, R., Dollár, P.: Rethinking imagenet pre-training. In: ICCV (2019) OpenAlex ↗ · Scholar ↗
- He, K., Gkioxari, G., Dollár, P., Girshick, R.B.: Mask R-CNN. In: ICCV (2017) OpenAlex ↗ · Scholar ↗
- He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: CVPR (2016) our card
- Hosang, J.H., Benenson, R., Schiele, B.: Learning non-maximum suppression. In: CVPR (2017) OpenAlex ↗ · Scholar ↗
- Hu, H., Gu, J., Zhang, Z., Dai, J., Wei, Y.: Relation networks for object detection. In: CVPR (2018) OpenAlex ↗ · Scholar ↗
- Kirillov, A., Girshick, R., He, K., Dollár, P.: Panoptic feature pyramid networks. In: CVPR (2019) OpenAlex ↗ · Scholar ↗
- Kirillov, A., He, K., Girshick, R., Rother, C., Dollar, P.: Panoptic segmentation. In: CVPR (2019) OpenAlex ↗ · Scholar ↗
- Kuhn, H.W.: The hungarian method for the assignment problem (1955) OpenAlex ↗ · Scholar ↗
- Li, Y., Qi, H., Dai, J., Ji, X., Wei, Y.: Fully convolutional instance-aware semantic segmentation. In: CVPR (2017) OpenAlex ↗ · Scholar ↗
- Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B., Belongie, S.: Feature pyramid networks for object detection. In: CVPR (2017) our card
- Lin, T.Y., Goyal, P., Girshick, R.B., He, K., Dollár, P.: Focal loss for dense object detection. In: ICCV (2017) our card
- Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., Zitnick, C.L.: Microsoft COCO: Common objects in context. In: ECCV (2014) our card
- Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S.E., Fu, C.Y., Berg, A.C.: Ssd: Single shot multibox detector. In: ECCV (2016) OpenAlex ↗ · Scholar ↗
- Loshchilov, I., Hutter, F.: Decoupled weight decay regularization. In: ICLR (2017) our card
- Lüscher, C., Beck, E., Irie, K., Kitza, M., Michel, W., Zeyer, A., Schlüter, R., Ney, H.: Rwth asr systems for librispeech: Hybrid vs attention - w/o data augmentation. arXiv:1905.03072 (2019) OpenAlex ↗ · Scholar ↗
- Milletari, F., Navab, N., Ahmadi, S.A.: V-net: Fully convolutional neural networks for volumetric medical image segmentation. In: 3DV (2016) OpenAlex ↗ · Scholar ↗
- Oord, A.v.d., Li, Y., Babuschkin, I., Simonyan, K., Vinyals, O., Kavukcuoglu, K., Driessche, G.v.d., Lockhart, E., Cobo, L.C., Stimberg, F., et al.: Parallel wavenet: Fast high-fidelity speech synthesis. arXiv:1711.10433 (2017) OpenAlex ↗ · Scholar ↗
- Park, E., Berg, A.C.: Learning to decompose for object detection and instance segmentation. arXiv:1511.06449 (2015) OpenAlex ↗ · Scholar ↗
- Parmar, N., Vaswani, A., Uszkoreit, J., Kaiser, L., Shazeer, N., Ku, A., Tran, D.: Image transformer. In: ICML (2018) OpenAlex ↗ · Scholar ↗
- Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., Desmaison, A., Kopf, A., Yang, E., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., Bai, J., Chintala, S.: Pytorch: An imperative style, high-performance deep learning library. In: NeurIPS (2019) our card
- Pineda, L., Salvador, A., Drozdzal, M., Romero, A.: Elucidating image-to-set prediction: An analysis of models, losses and datasets. arXiv:1904.05709 (2019) OpenAlex ↗ · Scholar ↗
- Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I.: Language models are unsupervised multitask learners (2019) OpenAlex ↗ · Scholar ↗
- Redmon, J., Divvala, S., Girshick, R., Farhadi, A.: You only look once: Unified, real-time object detection. In: CVPR (2016) OpenAlex ↗ · Scholar ↗
- Ren, M., Zemel, R.S.: End-to-end instance segmentation with recurrent attention. In: CVPR (2017) OpenAlex ↗ · Scholar ↗
- Ren, S., He, K., Girshick, R.B., Sun, J.: Faster R-CNN: Towards real-time object detection with region proposal networks. PAMI (2015) our card
- Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., Savarese, S.: Generalized intersection over union. In: CVPR (2019) OpenAlex ↗ · Scholar ↗
- Rezatofighi, S.H., Kaskman, R., Motlagh, F.T., Shi, Q., Cremers, D., Leal-Taixé, L., Reid, I.: Deep perm-set net: Learn to predict sets with unknown permutation and cardinality using deep neural networks. arXiv:1805.00613 (2018) OpenAlex ↗ · Scholar ↗
- Rezatofighi, S.H., Milan, A., Abbasnejad, E., Dick, A., Reid, I., Kaskman, R., Cremers, D., Leal-Taixé, l.: Deepsetnet: Predicting sets with deep neural networks. In: ICCV (2017) OpenAlex ↗ · Scholar ↗
- Romera-Paredes, B., Torr, P.H.S.: Recurrent instance segmentation. In: ECCV (2015) OpenAlex ↗ · Scholar ↗
- Salvador, A., Bellver, M., Baradad, M., Marqués, F., Torres, J., Giró, X.: Recurrent neural networks for semantic instance segmentation. arXiv:1712.00617 (2017) OpenAlex ↗ · Scholar ↗
- Stewart, R.J., Andriluka, M., Ng, A.Y.: End-to-end people detection in crowded scenes. In: CVPR (2015) OpenAlex ↗ · Scholar ↗
- Sutskever, I., Vinyals, O., Le, Q.V.: Sequence to sequence learning with neural networks. In: NeurIPS (2014) our card
- Synnaeve, G., Xu, Q., Kahn, J., Grave, E., Likhomanenko, T., Pratap, V., Sriram, A., Liptchinsky, V., Collobert, R.: End-to-end ASR: from supervised to semi-supervised learning with modern architectures. arXiv:1911.08460 (2019) OpenAlex ↗ · Scholar ↗
- Tian, Z., Shen, C., Chen, H., He, T.: FCOS: Fully convolutional one-stage object detection. In: ICCV (2019) our card
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. In: NeurIPS (2017) our card
- Vinyals, O., Bengio, S., Kudlur, M.: Order matters: Sequence to sequence for sets. In: ICLR (2016) our card
- Wang, X., Girshick, R.B., Gupta, A., He, K.: Non-local neural networks. In: CVPR (2018) OpenAlex ↗ · Scholar ↗
- Wu, Y., Kirillov, A., Massa, F., Lo, W.Y., Girshick, R.: Detectron2. https://github.com/facebookresearch/detectron2 (2019) OpenAlex ↗ · Scholar ↗
- Xiong, Y., Liao, R., Zhao, H., Hu, R., Bai, M., Yumer, E., Urtasun, R.: Upsnet: A unified panoptic segmentation network. In: CVPR (2019) our card
- Zhang, S., Chi, C., Yao, Y., Lei, Z., Li, S.Z.: Bridging the gap between anchor-based and anchor-free detection via adaptive training sample selection. arXiv:1912.02424 (2019) OpenAlex ↗ · Scholar ↗
- Zhou, X., Wang, D., Krähenbühl, P.: Objects as points. arXiv:1904.07850 (2019) OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/carion-2020-end-end-object-detection-transformers/