Pages and contents
Pages
- Non-Generative World Model Research
- Literature Review
- Literature Notes
- Attention
- Memory
- Planning
- Reviews
- Reinforcement Learning
- World Model Papers
- Biological
- World Models
- Representation
- Partial Homomorphisms
- DeepMDP
- Temporal Abstraction
- Unsupervised Causal Abstractions
- Approximate Equivariance
- OPAL
- Object Learning
- AdaSlot
- DETR & Object Queries
- DynO
- ICRL
- Hierarchical Variable Learning
- Mask2Former
- NeSy Review
- Neural Module Networks
- C-SWM
- Neuro-Symbolic Concepts
- OCRL
- Relational Bottleneck
- Slot Attention
- SlotFormer
- Latent Particles
- Training
- Template
- Important Concepts
- Models
- Resources
On this page
DETR & Object Queries
Field | Value | |
|---|---|---|
| โฎโฎ | Authors | Carrion, Massa, et. al. |
| โฎโฎ | Year | 2020 |
| โฎโฎ | Link / arXiv | https://arxiv.org/pdf/2005.12872 |
| โฎโฎ | Code | https://github.com/facebookresearch/detr |
| โฎโฎ | My relevance (1-5) | 3 |
| โฎโฎ | Tags | #object #detection #transformer |
1\. Main Idea
This is an older paper, but the object query terminology and treating object learning as sets is useful for compositional and object-centric learning.
2\. Method
Set Prediction
The authors frame object detection as a set prediction problem (the mathematical object of a set). The DEtection TRansformer predicts all objects at once, and is trained end-to-end with a set loss function which performs bipartite matching between predicted and ground-truth objects. The usual solution to set prediction is to design a loss based on the Hungarian algorithm, to find a bipartite matching between ground-truth and prediction. This enforces permutation-invariance, and guarantees that each target element has a unique match.
Decoder
DETR infers a fixed-size set of predictions, in a single pass through the decoder, where is set to be significantly larger than the typical number of objects in an image. The decoder follows the standard architecture of the transformer, transforming embeddings of size using multi-headed self-attention and encoder-decoder attention mechanisms.
DETR decodes the objects in parallel at each decode layer. Since the decoder is also permutation-invariant, the N input embeddings must be different to produce different results. These input embeddings are learnt positional encodings that we refer to as object queries.
To understand this better, suppose that the decoder receives query vectors, where each query is a learned parameter . During the cross-attention step of decoding, each query references the encoded image features to extract information for one possible object
is then mapped to a class label and bounding box. This differs from slot attention, which forms vector latents through a Softmax, GRU competition architecture.