---
title: "An End-to-End Transformer Model for 3D Object Detection (2021)"
description: "How 3DETR detects objects in point clouds with Transformers, why its query design matters, and what its experiments establish."
canonical: "https://research.elamur.ai/free/en/papers/misra-2021-end-end-transformer-model-3d/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/misra-2021-end-end-transformer-model-3d/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / An End-to-End Transformer Model for 3D Object Detection

# An End-to-End Transformer Model for 3D Object Detection

Paper · 2021 · Ishan Misra, Rohit Girdhar and Armand Joulin

**Authors:** [Ishan Misra](https://md.research.elamur.ai/free/en/authors/ishan-misra/), [Rohit Girdhar](https://md.research.elamur.ai/free/en/authors/rohit-girdhar/) and [Armand Joulin](https://md.research.elamur.ai/free/en/authors/armand-joulin/) · **Year:** 2021 · **Venue:** IEEE/CVF International Conference on Computer Vision (ICCV) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**499** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3201095453) · [IEEE/CVF International Conference on Computer Vision (ICCV)](https://openalex.org/S4363607764) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2109.08141)
- [DOI 10.1109/iccv48922.2021.00290](https://doi.org/10.1109/iccv48922.2021.00290)
- [arXiv 2109.08141](https://arxiv.org/abs/2109.08141)
- [OpenAlex](https://openalex.org/W3201095453)

Citations: OpenAlex, 2026-10-14.

## Deep dive: An End-to-End Transformer Model for 3D Object Detection

How 3DETR detects objects in point clouds with Transformers, why its query design matters, and what its experiments establish. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Recognizing an object in a depth scan requires more than identifying a familiar shape. A detector must decide which scattered observations belong together, estimate the object’s extent, and distinguish it from nearby objects. The observations form a point cloud: an unordered collection of spatial coordinates, often with gaps and uneven coverage. 3DETR studies whether a largely standard [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) can turn that collection directly into object detections, reducing dependence on operations designed specifically for spatial data. Its output is a set of boxes, each describing an object’s position, dimensions, orientation when needed, and category.

The architecture combines an encoder that builds contextual point features with a decoder that predicts boxes in parallel. Its main adaptations concern how the decoder is told where to look. Rather than learning a fixed collection of queries independently of the input, 3DETR constructs queries from locations sampled within each scene. It represents those locations through Fourier positional embeddings, which transform coordinates into features that the decoder can use. Training assigns predicted boxes to annotated objects through an optimal matching procedure. Predictions left without an object are trained as background, giving the system a reason to avoid redundant detections.

The experiments show that these changes make a substantial difference. On the ScanNetV2 validation benchmark, ordinary 3DETR exceeds the authors’ improved VoteNet baseline by +2.3% AP₂₅. A variant called 3DETR-m restricts encoder attention to spatial neighborhoods and adds another downsampling operation. It improves over that baseline by +4.6% AP₂₅ and +9.5% AP₅₀ on ScanNetV2. Results on SUN RGB-D are more restrained: ordinary 3DETR is behind the improved VoteNet baseline by -1.5% AP₂₅, while the masked variant is described as comparable. The evidence therefore supports a competitive alternative to a carefully engineered detector, with particularly strong gains on ScanNetV2, instead of a uniform advantage across every setting.

The paper’s broader contribution is an architecture that makes several useful choices separable. Spatial locality can be added to the encoder without redesigning the decoder or training objective. The number of queries and the number of decoder layers used during inference can change without retraining. The encoder also supports a separate shape-classification experiment. These results suggest that the design can serve as a reusable component for spatial recognition. They do not establish that specialized geometry has become unnecessary: the strongest detection variant explicitly restores a local spatial bias, initial point reduction still uses an established point-cloud operation, and the reported implementation runs more slowly than VoteNet under the authors’ timing conditions.

### Ideas worth borrowing

Input-grounded queries. A prediction slot can begin from evidence in the current input rather than from a learned identifier shared across every example. In 3DETR, sampled coordinates give each query a concrete place from which to gather information. This helps because the scene is irregular: a fixed query must learn how to locate useful evidence despite changing point distributions, whereas a sampled query already corresponds to an observed location. Elsewhere, the transferable idea is to construct queries from available candidates, measurements, or retrieved items when fixed slots struggle to connect with variable inputs. The paper supports this principle directly for point clouds; applying it to another domain would require a separate comparison.

A generic core with explicit local constraints. The authors first test broad attention, then introduce locality through an attention mask. That makes the spatial assumption visible: a point can draw information only from an allowed neighborhood at a given encoder layer. The decoder and set objective remain fixed, so the effect of adding this constraint is easier to interpret than a complete architectural replacement. This is useful wherever a general interaction mechanism is attractive but unrestricted communication may dilute relevant structure. A transparent implementation can expose the mask as a policy that readers and engineers can inspect, while retaining a common computational core.

Match collections before scoring individual predictions. If outputs have no natural ordering, assigning a target to each output position in advance creates an artificial problem. 3DETR instead evaluates possible box–annotation pairs and finds a globally consistent assignment. It then applies ordinary geometric and classification losses to the assigned pairs. The reusable lesson concerns supervision: when the answer is a collection, first decide how members of the predicted and reference collections correspond. This can make training reflect the actual task more closely, especially when surplus predictions should be treated explicitly rather than silently ignored.

Train intermediate outputs for practical flexibility. Each decoder layer must already produce meaningful box predictions during training. As a result, stopping the decoder early at inference yields a usable output, and the experiments compare this with separately trained shallower detectors. The idea applies when a system must serve different computation budgets without maintaining a separate checkpoint for every budget. Its value comes from making partial computation accountable during training. Merely interrupting an arbitrary architecture would not provide the same evidence that intermediate states are suitable final answers.

Separate matching criteria from regression objectives. The cost used to choose a correspondence need not contain exactly the same terms or weights as the loss used after that correspondence is chosen. In this paper, overlap and center distance help determine which prediction belongs to an object, while the training loss separately supervises dimensions, orientation, and category. This distinction is useful in structured prediction because identifying the right partner and improving that partner are related but different decisions. Keeping them separate also makes hidden assumptions easier to inspect, although the paper’s differing descriptions of its matching cost show why precise documentation matters.

Compare against an improved baseline. The authors retune BoxNet and VoteNet before using them as the main reference points. Their reported optimization improvements raise baseline performance by +2-4% AP relative to the original reporting. This changes the scientific question from whether a new architecture beats an older training recipe to whether its design remains competitive against a stronger implementation. The practice transfers directly to engineering evaluations: reproduce the established approach under sensible settings, disclose the changes, and avoid attributing an optimization advantage entirely to architecture. It also helps expose where a proposed method wins and where it remains behind.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the strongest connection is methodological. There is no established implementation claim that Mova contains a point-cloud detector, a 3DETR decoder, or its training machinery. The useful possibilities concern how a transparent system represents candidates, assigns outputs to evidence, and makes resource limits visible. Those possibilities should be understood as design ideas rather than existing features.

One possibility is to ground candidate outputs in the current input. In 3DETR, a query begins at a sampled scene location. A language system could explore a corresponding arrangement in which a candidate interpretation begins from an identifiable passage, mention, or retrieved record. The connection would be inspectable: a reader could see the input item that initiated the candidate and the evidence subsequently associated with it. This would preserve the practical motivation behind the paper’s queries without treating spatial coordinates and linguistic evidence as interchangeable.

That idea would need careful boundaries. A point selected from a scene has a geometric location, whereas a passage or mention carries linguistic relationships that depend on order and context. Mova could borrow the principle of input-grounded candidates while retaining its own representation of those relationships. The paper does not demonstrate that its query construction improves language processing, and it offers no measurements for a Rust language system. Any such application would need its own task definition, baseline, and evaluation.

A second possibility concerns unordered outputs. Some language tasks produce collections of findings instead of a single continuous answer. If Mova were evaluated on such a task, an explicit matching stage could align predicted findings with reference findings before scoring them. The important benefit would be a visible correspondence policy. An evaluator could inspect why a prediction received credit, why another counted as a duplicate, and why an unmatched item remained unsupported. This is a possible use of the paper’s set-prediction reasoning, not evidence that its box-matching cost should be reused for text.

The masked encoder offers another design analogy. Mova could make permissible information links explicit, restricting a component to evidence within a defined context or relation. The attraction for a transparent system is that the restriction can be examined directly. However, a geometric radius is not a ready-made linguistic boundary. The corresponding rule would have to come from the language task, and its usefulness would have to be tested rather than inferred from the spatial experiments.

Finally, the inference experiments suggest a way to make computation budgets part of a system’s design. Mova could investigate components that expose meaningful intermediate results or vary the number of candidates they examine. Such a feature would require intermediate outputs to be evaluated, just as 3DETR supervises decoder layers rather than assuming that an unfinished computation is reliable. The paper supplies a concrete example of this discipline: flexible execution becomes credible when the reduced-computation settings are measured against alternatives.

### The problem and its context

#### Why point clouds make detection difficult

A point cloud records positions without supplying the regular structure of an image. In an image, neighboring entries occupy predictable places on a grid. In a point cloud, the order in which coordinates are stored need not carry meaning. Reordering the entries should not change which objects the detector finds.

The observations are also sparse and irregular. A depth scanner captures visible surfaces rather than a complete solid description of every object. Some regions contain many observed points, while others are missing or weakly represented. A detector therefore has to use context to infer an object’s extent. A box around the visible surface alone may fail to describe the object that produced it.

The paper considers other spatial representations, including projected views, voxel grids, and meshes. These can make established processing techniques available, but constructing them requires additional transformation of the input. The authors also identify quantization as a possible source of lost information. Their choice is to operate on points directly, preserving the representation in which spatial sensors frequently deliver observations.

Direct point processing does not remove the need for structure. It moves the question into the architecture: how should points exchange information, how should local evidence be aggregated, and how should a collection of object hypotheses emerge? Earlier approaches answer these questions with specialized operators and carefully selected geometric settings.

#### The established encoder–decoder approach

VoteNet supplies the paper’s most important reference architecture. It already treats detection as a transformation between unordered collections. Its input is a point set, and its output is a box set. The central issue is therefore not whether detection can be formulated this way, but how much specialized machinery is necessary to make the transformation effective.

VoteNet’s encoder uses a modified PointNet++ architecture. It combines operations that reduce the point set and aggregate neighboring features with operations that propagate features to other points. These stages encode spatial assumptions through their neighborhood definitions and processing hierarchy.

Its decoder adds Hough voting. Features associated with observed points predict where object centers might lie. Votes are gathered into candidate centers, and boxes are predicted around those centers. This is useful because the center of an object need not coincide with an observed surface point. Voting allows surface evidence to support a location elsewhere in space.

BoxNet provides a revealing comparison. It predicts around sampled seed locations without the voting stage. The paper describes its performance as substantially worse than VoteNet’s. That establishes an important challenge for 3DETR: merely removing a specialized operation is not enough. A simpler system must recover the context and candidate quality that the removed operation supplied.

The authors emphasize that neighborhood radii appear throughout this family of methods. They influence feature extraction, candidate grouping, and training assignments. These parameters can work well together, but they also create dependencies between components. A decoder or loss designed around one encoder’s geometry may transfer poorly to another encoder.

#### Other routes through spatial data

The related-work discussion organizes earlier spatial architectures by how they represent and connect observations. Projection approaches convert spatial data into planar grids. Voxel approaches organize it into volumetric cells. These methods make convolutional processing possible after imposing a regular representation.

Point-based approaches preserve the input collection more directly. PointNet and PointNet++ use pointwise transformations together with set aggregation. Their aggregation operations allow information from multiple observations to contribute without assigning significance to the original storage order.

Graph approaches construct connections between points or regions. The paper describes connections based on local neighborhoods, contextual or attribute similarity, and interactions involving points and edges. These approaches differ in how they decide which observations should communicate before features are updated.

Continuous convolution methods provide another family. Their weights can depend on coordinates, interpolation, assignment rules, or chosen orderings. For example, the paper places [KPConv](https://md.research.elamur.ai/free/en/papers/thomas-2019-kpconv-flexible-deformable-convolution-point/) among methods that derive convolutional weights from the input geometry. These alternatives show the range of mechanisms already developed to accommodate irregular spatial observations.

3DETR does not argue that these mechanisms are ineffective. It asks how far a more general attention architecture can go before such specialization becomes necessary. This makes the paper an investigation of architectural dependence as much as a proposal for another detector.

#### Why attention is a plausible alternative

The Transformer introduced in [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/) allows elements to exchange information through attention. For point clouds, the relevant attraction is that the interaction mechanism does not require an image grid. It can compare features across the input collection and gather context from distant observations.

The ordering claim needs a precise reading. Point features remain associated with their corresponding coordinates. Reordering the input should reorder those intermediate features consistently rather than arbitrarily change their contents. The final detection collection has no required order. This relationship between order-independent processing and unordered prediction is what makes the architecture a natural candidate for the task.

The immediate detection precedent is [DETR](https://md.research.elamur.ai/free/en/papers/carion-2020-end-end-object-detection-transformers/), which uses a Transformer decoder and set matching for image detection. Its prediction slots operate in parallel, and its training objective resolves their correspondence with annotated objects. 3DETR borrows that general strategy while changing the input representation and the construction of decoder queries.

The authors also distinguish their approach from detection pipelines related to [Faster R-CNN](https://md.research.elamur.ai/free/en/papers/ren-2015-faster-r-cnn-towards-real/). They choose a single-stage arrangement instead of a proposal stage followed by a separate refinement stage. Within their chosen arrangement, successive decoder layers still refine box features, but they remain part of the shared encoder–decoder architecture.

Earlier attention-based spatial methods and concurrent Transformer work also appear in the discussion. The authors’ claimed distinction is their effort to retain standard Transformer components rather than introduce extensive spatial modifications. That claim is strongest for the ordinary encoder. The masked variant deliberately explores the benefit of adding back a simple geometric constraint.

### The method, step by step

#### From raw coordinates to contextual features

The input is a collection of points, each carrying XYZ coordinates. Detection does not use color. The colored scenes in the visual examples help a reader recognize objects, but those colors are not evidence available to the detector.

The preprocessing follows the protocol used for the VoteNet comparison. SUN RGB-D examples contain N=20,000 sampled points, while ScanNetV2 examples contain N=40,000 points. Processing every pair of these observations through full attention would be burdensome, so the architecture first reduces the collection.

This initial reduction uses farthest-point sampling and set aggregation from PointNet++. Farthest-point sampling spreads selected locations across the observed scene. Around those locations, the aggregation operation gathers nearby information. The appendix specifies an aggregation radius of 0.2.

The resulting collection contains 2048 point features, each with 256 dimensions. The feature construction uses an MLP, meaning a multilayer perceptron, with hidden dimensions of 64 and 128. A feature vector is a learned numerical description attached to a sampled location; it is not itself a box prediction.

This stage matters when interpreting the paper’s simplicity claim. The detector does not begin with a convolutional image backbone, but it also does not feed every raw coordinate directly into an otherwise untouched Transformer. It retains a specialized operation to make the point collection manageable and to construct initial local features.

From a point cloud to object boxes The steps in order.

The ordinary encoder then applies self-attention to the reduced collection. Each point feature can gather information from the other retained point features. This permits interactions beyond the initial aggregation neighborhood, allowing a feature to reflect the wider scene.

The encoder uses three layers. Each layer contains multiheaded attention with four heads and an MLP whose hidden dimension is 128. The output feature width remains 256. There is no further point downsampling inside the ordinary Transformer encoder.

The implementation uses a pre-normalization arrangement and [layer normalization](https://md.research.elamur.ai/free/en/papers/ba-2016-layer-normalization/). The appendix also specifies ReLU nonlinearities. These are standard processing components rather than spatial operators designed for this task.

The encoder does not receive a separate positional embedding of the coordinates. The authors’ reason is that coordinate information has already entered the initial point features. This does not mean that geometry is absent from the encoder. It means that geometry is not introduced again through an additional positional channel at that stage.

#### Constructing queries from the scene

The decoder needs a collection of starting points for its predictions. In DETR, these are learned query embeddings. They are parameters of the detector rather than locations selected from a particular input.

3DETR changes that arrangement. It selects B query locations from the retained point collection, using farthest-point sampling to spread them across the scene. Each location becomes the source of a query embedding. The word “non-parametric” refers to this input-dependent choice of locations; it does not mean that the subsequent transformations contain no learned parameters.

This distinction is central. The detector learns how to interpret and refine a query, but it does not have to learn a fixed set of scene-independent query locations. The input itself supplies the initial spatial coverage.

The query coordinates are converted into Fourier positional features and then projected with an MLP. The paper attributes an important part of the detection improvement to this coordinate representation. It does not give an explicit Fourier mapping formula, so the method is best understood here at the level the authors specify: coordinates become a positional feature representation before being transformed into decoder queries.

A query location is not a requirement that a final box center remain at an observed point. The prediction head estimates a displacement from that location. This allows a query anchored on visible evidence to propose a center elsewhere, including within an object’s unobserved interior.

The main detection experiments use 256 queries on ScanNetV2 and 128 on SUN RGB-D. These are candidate prediction slots, not estimates of the number of objects necessarily present in every scene. A substantial part of training teaches unused slots to predict background.

#### Gathering evidence with the decoder

The decoder combines the scene features with the query features. Its self-attention lets candidate boxes exchange information with one another. Its cross-attention lets each candidate gather evidence from the encoded points.

These operations serve different purposes. Cross-attention connects a candidate to observed spatial evidence. Self-attention allows the candidate collection to develop jointly, rather than treating every box as an isolated regression problem.

The standard decoder contains eight layers. Its feature width is 256, and its MLP hidden dimension is also 256. Each layer produces an updated feature for every query. Prediction heads then convert these box features into geometric and semantic outputs.

The decoder receives positional information because its inputs are encoded point features and query embeddings rather than a raw coordinate list used directly at every operation. The authors find positional encoding more consequential here than in the encoder.

The architecture is implemented with [PyTorch](https://md.research.elamur.ai/free/en/papers/paszke-2019-pytorch-imperative-style-high-performance/) and its standard multihead-attention module. That choice supports the claim that much of the detector can be built from common components. It does not eliminate the initial sampling and aggregation machinery.

#### Adding locality in 3DETR-m

The masked variant changes the encoder while keeping the decoder and set objective fixed. Its spatial assumption is simple: feature aggregation should initially favor nearby points.

An attention mask encodes which point pairs may interact. An allowed pair lies within the layer’s specified spatial neighborhood. A disallowed pair cannot contribute through that attention connection.

The architecture remains a Transformer, but the interaction graph becomes explicitly local. Successive layers can use different neighborhood sizes, allowing the range of permitted aggregation to vary through the encoder.

The masked encoder also reduces the point collection after its first layer, moving from 2,048 points to 1024. This adds a hierarchical element absent from the ordinary encoder.

There is a documentation discrepancy in the radius settings. The main description gives [0.16,0.64,1.44], whereas the appendix lists [0.4, 0.8, 1.2]. The appendix separately describes a radius of 0.4 for the additional aggregation operation. The paper does not explicitly reconcile these descriptions, so a precise reimplementation would need to resolve their intended interpretation.

The conceptual result does not depend on silently choosing one account: the variant tests locality and an additional reduction in point count. Its stronger ScanNetV2 results show that these spatial constraints can help within the otherwise shared detection framework.

#### Turning features into boxes

Every predicted box has a center, dimensions, orientation information where required, and a category distribution. Separate MLP heads predict these attributes from the decoder feature.

The center is obtained by adding a predicted offset to the query location:

```
c = q + o
```

Here, c is the box center expressed through XYZ coordinates. The symbol q denotes the sampled query location, and o is the predicted displacement. The equation explains why selecting a surface point does not restrict the detector to centering a box on that surface.

Box dimensions describe extent along the spatial axes. The paper denotes them by d. Center and dimension quantities used for regression are normalized to [0,1], which the authors use to reduce sensitivity to scene scale.

For oriented annotations, angle prediction combines a discrete choice with a continuous correction. The orientation range [0, 2π) is divided into 12 bins. A classifier selects the angular bin, and a residual regressor estimates the adjustment within that representation.

The predicted box can be written as:

```
b̂ = [ĉ, d̂, â, ŝ]
```

The symbol b̂ is a predicted box. Its center is ĉ, its dimensions are d̂, its orientation representation is â, and its semantic distribution is ŝ. A hat marks a prediction rather than an annotation.

The angular representation has its own components:

```
â = [â_c, â_r]
```

Here, â_c contains the predicted angular-class information, and â_r is the angular residual. The subscript c refers to classification in this expression; it should not be confused with the center vector used elsewhere.

The semantic output covers K object categories and an additional background category. K therefore depends on the detection task. A background prediction means that the corresponding slot is not being used for a target object.

The appendix describes sigmoid functions on center-location and size-head outputs to place them in [0,1]. It calls the location output an offset. The architectural description does not fully explain every coordinate conversion involved in combining that normalized output with a sampled query. The important distinction for understanding the design is that the query supplies a reference location and the head predicts the box geometry relative to it.

#### Deciding which prediction belongs to which object

The detector predicts a collection of boxes with no required ordering. The annotations also form a collection. Training therefore begins by finding correspondences between the collections.

For each predicted box and annotated box, the authors compute a cost. The main account combines overlap, center distance, target-class confidence, and confidence that the prediction is not background:

```
C_match(b̂, b) = −λ₁ GIoU(b̂, b) + λ₂ ‖ĉ − c‖₁ − λ₃ ŝ[s_gt] − λ₄(1 − ŝ[s_bg])
```

C_match is the cost of pairing predicted box b̂ with annotated box b. GIoU denotes generalized intersection over union, an overlap-related measure that accounts for the boxes’ geometry. The expression ‖ĉ − c‖₁ measures center error by adding the absolute coordinate differences.

The distribution ŝ supplies the probability of the annotated category at index s_gt and the probability of background at index s_bg. The term 1 − ŝ[s_bg] represents foreground confidence. The coefficients λ₁, λ₂, λ₃, and λ₄ set the relative influence of these terms.

Lower cost indicates a more attractive correspondence. The negative signs make better overlap and greater semantic confidence reduce the cost, while larger center error raises it.

For B predictions and G annotated objects, these pairwise costs form a B×G matrix. The Hungarian algorithm selects an assignment that minimizes the combined cost while preventing an annotated object from being assigned to multiple predictions.

The setup assumes more predictions than annotated objects. Predictions without an assigned object become background examples. This gives duplicate proposals a consequence during training: if an object already has its assigned prediction, another proposal around it does not automatically receive the same positive target.

The appendix presents a shorter matching expression:

```
C_match(b̂, b) = −λ₁ GIoU(b̂, b) + λ₂ ‖ĉ − c‖₁ − λ₃ ŝ[s_gt]
```

The symbols have the same meanings as above, but the foreground-confidence term is absent. The appendix nonetheless lists a setting for λ₄. For ScanNetV2, the listed coefficients are 2, 1, 0, 0; for SUN RGB-D, they are 3,5,1, 5. This is another place where the descriptions do not completely align. It would be misleading to present the matching implementation as unambiguous across both accounts.

#### Training assigned predictions

After assignment, the detector receives losses for the attributes of each matched box. Center and dimension errors use absolute-distance regression. Angular residuals use a Huber loss, while angular-bin prediction and semantic prediction use cross-entropy.

The general weighted objective is:

```
L = λ_c ‖ĉ − c‖₁ + λ_d ‖d̂ − d‖₁ + λ_ar ‖â_r − a_r‖_huber − λ_ac a_cᵀ log â_c − λ_s s_cᵀ log ŝ_c
```

L is the loss for a matched prediction. The annotated dimensions are d, and the predicted dimensions are d̂. The annotated angular residual is a_r, while â_r is its prediction.

The vectors a_c and â_c describe the target angular class and its predicted distribution. The vectors s_c and ŝ_c describe the target semantic category and predicted category distribution. The superscript ᵀ denotes transposition, so the classification terms select the log probability associated with the target.

Each λ sets a loss weight: λ_c for center regression, λ_d for dimensions, λ_ar for the angular residual, λ_ac for angular classification, and λ_s for semantic classification.

The appendix gives the numerical weighting as:

```
L = 5 ‖ĉ − c‖₁ + ‖d̂ − d‖₁ + ‖â_r − a_r‖_huber − 0.1 a_cᵀ log â_c − 5 s_cᵀ log ŝ_c
```

The symbols retain the meanings just defined. The coefficients specify the relative contributions of the attribute losses. These weights are separate from the coefficients used to select the matching.

Unmatched predictions receive semantic supervision only, with background as their target. The weighted semantic cross-entropy uses 0.2 for the background class and 0.8 for object classes. This prevents the geometric heads from being trained towards an arbitrary box for a slot that has no assigned object.

For axis-aligned annotations, the authors also apply a direct GIoU loss. They omit this additional loss for oriented boxes because of the computational difficulty of that calculation. The training objective therefore differs according to the annotation geometry.

#### Supervising the whole decoder

Training does not wait until the last decoder layer to evaluate box quality. The same prediction MLPs are applied at every layer, and each layer receives its own matching and set loss.

These losses are added for optimization. A layer must therefore produce a meaningful intermediate prediction rather than merely a hidden state useful to later layers.

The standard inference setting uses the final layer’s boxes. The intermediate supervision later makes it possible to test earlier exits without retraining the detector.

The detector is trained from scratch. Its reported schedule uses AdamW, cosine learning-rate decay to 10⁻⁶, weight decay of 0.1, and gradient clipping with an ℓ₂ norm limit of 0.1. Training lasts 1080 epochs with a batch size of 8 on a V100 GPU.

The architecture also uses [dropout](https://md.research.elamur.ai/free/en/papers/srivastava-2014-dropout-simple-way-prevent/) for regularization. Most MLP and attention components use 0.1, while the decoder uses 0.3. RandomCuboid augmentation is included to reduce overfitting. These choices are part of the experimental recipe; the architecture’s simplicity should not obscure the substantial optimization and regularization used to train it.

### Experiments and results

#### The detection benchmarks and measurements

The main detection evaluation uses indoor scenes from ScanNetV2 and SUN RGB-D-v1. Their observation and annotation styles differ, making the comparison more informative than repeated testing on a single collection.

ScanNetV2 contributes 1.2K training examples. Its scenes originate as reconstructed meshes converted into point clouds, and its annotations use axis-aligned boxes for 18 object categories.

SUN RGB-D has 5K single-view training examples. Its annotation collection contains oriented boxes for 37 categories, but the detection protocol evaluates the 10 most frequent categories. That distinction matters: the reported detection score does not summarize performance over the entire annotated category inventory.

Performance is measured on validation splits using mean average precision at overlap thresholds of 0.25 and 0.5. The paper labels these AP₂₅ and AP₅₀. Intersection over union measures how much a predicted box and an annotated box overlap relative to their combined occupied extent.

The higher overlap threshold makes localization quality more demanding. A detector may identify an object and obtain a useful approximate box at AP₂₅ while failing the tighter geometric requirement at AP₅₀. Reporting both helps distinguish broad detection success from more accurate placement and sizing.

Average precision also makes duplicate predictions relevant. Repeatedly reporting the same object does not simply increase the score. This is why the later comparison involving duplicate-removal post-processing is meaningful under the chosen evaluation.

#### Stronger versions of the reference detectors

The primary baselines are BoxNet and VoteNet. They are chosen because their encoder–decoder organization and set-like outputs make them useful comparisons for the proposed design.

The authors do not rely solely on the original reported baseline scores. They perform a hyper-parameter search and improve the optimization settings. Their revised implementations gain +2-4% AP over the earlier reporting.

The appendix describes baseline training with [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/), a starting learning rate of 1×10⁻³, and no weight decay. The schedule runs for 360 epochs, with the learning rate reduced by a factor of 10 after 160, 240, 320 epochs.

The baseline experiments also test longer training, cosine scheduling, and AdamW. The authors report no significant performance benefit from those alternatives for the reference detectors.

This is a stronger comparison than leaving the earlier approaches at an inferior recipe. It is not a claim that every training condition is identical: 3DETR’s reported training duration differs substantially. The experiment asks whether a carefully trained general-attention detector is competitive with improved established detectors, instead of isolating architecture under an equal training budget.

#### Detection quality

Against BoxNet, ordinary 3DETR improves AP₂₅ by +13% on ScanNetV2 and +3.9% on SUN RGB-D. This comparison is particularly useful because both begin box predictions from sampled scene locations. The improvement shows that removing voting need not leave the detector with BoxNet’s weaker performance.

Against the improved VoteNet baseline, ordinary 3DETR gains +2.3% AP₂₅ on ScanNetV2. On SUN RGB-D, the reported comparison is -1.5% AP₂₅. The general architecture is therefore competitive across the benchmarks, but its advantage is not consistent across them.

Adding the masked encoder changes that balance. 3DETR-m gains +4.6% AP₂₅ and +9.5% AP₅₀ over the improved VoteNet baseline on ScanNetV2. On SUN RGB-D, the paper describes its performance as comparable to VoteNet.

The stronger AP₅₀ result on ScanNetV2 is important because it concerns the stricter localization criterion. It supports the claim that the masked architecture improves more than rough object identification. However, the comparison combines locality masking with the masked encoder’s additional downsampling, so it should not be read as isolating a single attention-mask decision.

The introduction also reports headline scores of 65.0% AP on ScanNetV2 and 59.0% AP on SUN RGB-D. That sentence does not specify an overlap threshold or clearly distinguish the ordinary and masked variants. The threshold-specific comparisons above provide the firmer basis for interpreting the reported gains.

H3DNet supplies a stronger specialized reference. The paper describes it as improving VoteNet through geometric primitives and reports that 3DETR-m remains within a couple of AP₂₅ points on both benchmarks. This supports competitiveness, while stopping short of an across-the-board claim of the best detection accuracy.

#### What the visual examples establish

The SUN RGB-D illustrations show detections from partial single-view scans. The authors highlight boxes that describe more of an object than the observed surface alone, including the full extent of a bed.

This is the sense in which the predictions are amodal: the target extent includes parts not directly observed. The architecture’s center offsets and contextual aggregation make that behavior plausible, but the illustrations do not isolate which component produced it.

The authors also identify predicted objects missing from the annotations. Such cases remind the reader that an unmatched prediction is not automatically a physically nonexistent object. At the same time, selected illustrations cannot measure annotation incompleteness or establish the frequency of useful unmatched detections.

Color contributes only to these visualizations. The detection comparisons remain based on point-cloud information, so the examples should not be interpreted as evidence for a combined color-and-depth system.

#### Runtime under the reported conditions

The appendix measures inference on a V100 GPU using a batch size of 8. Both detectors reduce their point collections to 2,048 points. The 3DETR measurement uses 256 queries, and the VoteNet measurement uses 256 boxes.

Inference time on V100, batch size 8, 256 predictions The reported 3DETR implementation takes longer than VoteNet under the matched timing conditions.

**The numbers**

| System or setting | milliseconds |
| --- | --- |
| VoteNet | 132 |
| 3DETR (this paper) | 170 |

The comparison matters because implementation convenience and execution speed are separate properties. 3DETR uses standard attention machinery for much of its computation, while VoteNet relies on custom CUDA operations for spatial processing. A simpler conceptual design does not guarantee a shorter runtime.

The authors identify more efficient attention as a possible route to better runtime and memory behavior. Their experiments demonstrate adaptable computation, but they do not establish that the standard full configuration is the faster detector.

#### Evidence beyond detection

The encoder is also evaluated on shape classification. These experiments use processed point clouds with surface normals and sample 8,192 points for both training and testing.

The classifier predicts among 40 shape categories. It reports overall accuracy, which measures the proportion of correctly classified point clouds, and class-mean accuracy, which averages accuracy across categories so that less frequent categories retain equal influence.

For ordinary 3DETR, a special classification token collects a global representation. For the masked encoder, the appendix specifies max pooling over final features. These global features feed a classification MLP.

The classification recipe differs from detection. It includes position and normal information at each point, uses a classifier with dropout of 0.5, and trains for 250 epochs. The learning rate begins at 4×10⁻⁴ after a warmup from 4×10⁻⁷ over 20 epochs, then decays to 4×10⁻⁵ over 230 epochs. Training uses 4 GPUs with a per-GPU batch size of 2.

The authors describe both encoders as competitive with specialized spatial architectures. The numerical accuracy entries are not stated in the accompanying discussion, so a more detailed ranking cannot be established from that account. The supported conclusion is narrower: the encoder design was tested in another spatial recognition task and was not useful only inside its detection decoder.

### What the ablations show

#### The query must connect to the current scene

The most decisive design comparison concerns the decoder’s starting queries. A minimally adapted DETR-style configuration reaches 15% AP₂₅ on ScanNetV2 despite using the authors’ training procedure and loss.

Replacing learned, input-independent queries with scene-sampled queries produces a reported +40% improvement in AP₂₅ in the relevant comparison. The authors also report that non-parametric queries without positional embeddings double the performance of the corresponding weak configuration.

These observations separate the success of 3DETR from a vague claim that attention alone solves spatial detection. The decoder’s connection to the scene is essential. A general interaction mechanism can still perform poorly when its prediction slots have difficulty finding useful evidence.

The authors suggest that sparse, irregular observations make learned query placement harder than it is on a regular image grid. Sampling queries from the input reduces that difficulty by providing coverage where observations actually exist.

That explanation is plausible and consistent with the comparison. It is not a direct measurement of the internal optimization difficulty of learned queries. The experiment establishes the effectiveness of the replacement more clearly than it establishes a unique causal account of why the weaker queries fail.

#### Coordinate representation also matters

The positional-encoding comparison tests sinusoidal embeddings against low-frequency Fourier embeddings. The Fourier choice adds a reported +5% AP₂₅ in the relevant ScanNetV2 comparison.

This gain follows the more fundamental change in query construction. It would be misleading to combine the findings into a claim that positional encoding alone rescues the detector. The evidence identifies a sequence of design dependencies: the query must first be grounded usefully, and the coordinate representation then improves how the decoder uses that grounding.

The paper also argues that positional information is more useful in the decoder than in the encoder. That fits the architecture: initial encoder features already incorporate coordinates, while the decoder requires an explicit representation of the locations associated with its inputs.

The comparison does not establish Fourier features as universally superior for every spatial task. It establishes their usefulness within the tested detector and benchmark setting.

#### The encoder transfers more easily than the old decoder and loss

The component-swapping experiments test whether parts of the established detection pipeline can be exchanged independently.

Replacing the Transformer encoder with PointNet++ leaves performance unchanged or slightly worse. This suggests that 3DETR’s decoder and objective can operate with features from a specialized spatial encoder. The new detector is therefore not a closed design that requires every component to be introduced together.

The reverse substitutions are less successful. Putting BoxNet or VoteNet decoders behind the Transformer encoder produces poor detection performance. Those decoders also depend on their corresponding training losses, making it difficult to attribute the outcome to a decoder change alone.

The authors therefore retain the Transformer encoder and decoder while replacing the set objective with BoxNet or VoteNet losses. Performance again degrades. This supports their argument that the older losses encode assumptions about feature geometry and neighborhood radii that do not transfer automatically.

The controlled question is not simply whether one loss is numerically larger or smaller. It is whether the supervision rule fits the architecture’s way of generating candidates. A voting loss can depend on an encoder’s spatial organization in ways that a generic set assignment does not.

The masked-encoder follow-up strengthens this interpretation. With the VoteNet loss tuned for 3DETR-m, the authors report 60.7% mAP on ScanNetV2 and 56.1% mAP on SUN RGB-D. They describe gains of 6% and 3% over the corresponding ordinary-encoder settings.

Those improvements show that restoring spatial bias makes the VoteNet objective more suitable. Yet the set objective still performs better for the masked architecture. The evidence supports broader compatibility for the set formulation, while also showing that compatibility depends on the surrounding design rather than on a loss in isolation.

#### Duplicate suppression becomes less critical

Non-maximal suppression, typically abbreviated NMS, removes competing detections after prediction. It is useful when a detector proposes several boxes for the same object.

The set objective changes the training incentives before that post-processing stage. An annotated object receives an assigned prediction, while surplus predictions must account for themselves as background. This discourages repeated confident detections of the same object.

The authors test the practical consequence by removing NMS on ScanNetV2 and examining AP₂₅. They report a performance drop of 3% AP for 3DETR and 50% for VoteNet.

ScanNetV2 validation AP₂₅ drop when NMS is removed The set-trained detector depends much less on duplicate-removal post-processing in this comparison.

**The numbers**

| System or setting | AP drop % |
| --- | --- |
| VoteNet | 50 |
| 3DETR (this paper) | 3 |

This is strong evidence that matching changes duplicate behavior. It does not show complete independence from post-processing: 3DETR still loses performance when NMS is removed.

The distinction is useful for engineering. A system can tolerate the removal of a stage without achieving exactly the same output quality. Here, the result supports robustness to that removal and a much smaller dependence than the reference detector.

#### Decoder depth contributes more than encoder depth

Increasing depth generally helps, but where the extra layers are placed matters. The paper compares adding layers to the encoder with adding them to the decoder.

Adding five decoder layers to an architecture initially containing three layers in both its encoder and decoder raises ScanNetV2 AP₅₀ by +7%. Adding five encoder layers gives +2% AP₅₀.

The comparison points toward iterative refinement of candidate boxes as a particularly productive use of computation. Once a useful scene representation exists, additional decoder steps can improve how individual candidates gather evidence and express geometry.

This does not imply that encoder depth is useless. Its measured contribution is positive. Nor does it prove that the same allocation is optimal under every point count, feature width, or runtime budget. It establishes the more limited finding that decoder expansion was more valuable in this controlled setting.

#### Earlier exits remain useful

The inference-depth experiment starts from a decoder trained to make predictions at every layer. The authors examine intermediate outputs from a six-layer decoder and compare them with separate detectors trained with fewer layers.

The partially executed detector performs as well as or better than the corresponding separately trained shallower alternatives. This supports a practical benefit of intermediate supervision: the same checkpoint can serve different inference budgets.

The comparison also helps distinguish early exit from merely deleting computation after training. Intermediate layers have already been asked to solve the task. Their predictions are usable because the training procedure made them accountable.

The paper identifies this flexibility as shared with DETR, while distinguishing it from VoteNet. It does not claim that every possible truncation preserves the final-layer score. Performance still improves as more decoder computation is used.

#### Query count provides another adjustment

Changing the number of queries changes how many candidate boxes are generated. Because 3DETR constructs queries from the current scene, it can alter that count during inference without learning a new fixed query collection.

The experiments compare a detector used with different test-time query counts against detectors trained separately for those counts. The shared detector performs comparably, supporting query count as another practical computation control.

Coverage limits the benefit. More queries help until the scene is represented sufficiently well; the paper does not claim indefinite improvement from adding candidates.

Training query count also affects adaptability. A detector trained with 64 queries is described as more robust to changes at inference, but its best detection performance remains below the detector trained with 256 queries. The main adaptive experiment uses 128 training queries as a balance between performance and flexibility.

This makes the result more informative than a simple claim of arbitrary query counts. The adjustment works, but the training configuration influences the quality of the available tradeoff.

#### Attention images suggest different roles across stages

The encoder visualizations show attention to geometric parts, including related parts across different objects. The decoder visualizations more often gather points associated with a whole instance.

That pattern fits the intended division of labor. The encoder develops contextual descriptions of observations, while the decoder organizes evidence around candidate objects.

These pictures remain qualitative analyses. Highlighting strongly attended points does not prove that those points alone caused the prediction, and selected examples do not establish that every attention head follows the same pattern.

Their value is explanatory rather than definitive: they offer a visible behavior consistent with the architecture’s success and suggest why a decoder can replace some of the grouping work performed explicitly in earlier detectors.

### Limitations

#### Limits the authors identify

The authors explicitly present 3DETR as a foundation that can incorporate further spatial knowledge. Their strongest variant already does so through local attention masks and additional downsampling. The paper therefore does not establish that geometric inductive bias is unnecessary.

The claimed reduction in specialized machinery also has a clear boundary. Initial point reduction and aggregation still come from PointNet++. Ordinary 3DETR removes much of the subsequent handcrafted spatial processing, but it retains a geometrically meaningful front end.

Computation is another acknowledged concern. Under the reported V100 timing conditions, the standard 3DETR configuration takes longer than VoteNet. The authors point toward efficient attention research as a possible improvement, which places better runtime and memory behavior among future opportunities rather than established outcomes.

They also omit direct GIoU training loss for oriented boxes because of its computational difficulty. This is an explicit restriction on the geometric objective. The training recipe is not identical across axis-aligned and oriented annotation settings.

The adaptive-query discussion recognizes a performance–flexibility tradeoff. Training with fewer queries can improve robustness to changing the query count, while training with more can yield stronger best-case detection. There is no claim that a single configuration dominates all inference budgets.

#### Limits visible in the evaluation

The main detection evidence comes from indoor scenes. ScanNetV2 and SUN RGB-D differ in useful ways, but they do not establish performance on every kind of spatial observation. The results cannot by themselves support claims about outdoor detection, moving scenes, or sensor conditions absent from the evaluation.

The ScanNetV2 gains are stronger than the SUN RGB-D comparison. Ordinary 3DETR trails the improved VoteNet baseline on SUN RGB-D AP₂₅, and the masked variant is described as comparable. Any account that presents the detector as uniformly better would erase an important part of the evidence.

The annotation protocols also differ. ScanNetV2 uses axis-aligned boxes; SUN RGB-D uses oriented boxes and evaluates a selected category subset. A result on one benchmark cannot be read as an isolated test of orientation handling, since the datasets differ in other respects as well.

The baseline retuning improves fairness, but it does not equalize all resources. The new detector and reference detectors use different reported training durations. Consequently, the experiments compare trained systems under their selected recipes instead of measuring an architectural advantage at an identical optimization budget.

The training schedule is substantial. Training from scratch means that no pretrained convolutional image backbone is required; it does not mean that training is brief or computationally negligible. The distinction matters for a reader considering the architecture as an engineering simplification.

#### Some comparisons change several things together

3DETR-m changes more than a single binary switch. It introduces local attention and an additional point reduction. Its improved detection score therefore supports the masked hierarchical encoder as a package.

The query experiments are more directly targeted, but they still operate within a particular decoder, positional representation, loss, and training schedule. They establish that input-grounded queries are highly effective there. They do not prove that every possible learned-query design would fail on point clouds.

The component-swapping experiments likewise reveal compatibility problems without exhaustively diagnosing them. A weaker result after replacing a decoder or objective can arise from interactions among feature geometry, candidate construction, assignment rules, and tuning. The authors provide useful follow-up evidence with the masked encoder, but not a complete account of every interaction.

The shape-classification experiment broadens the application evidence while changing the input information and output aggregation. Classification uses surface normals in addition to coordinates. The masked classifier uses max pooling, whereas the ordinary classifier uses a classification token. The result supports reuse of the encoder family, not an unchanged detector transferred directly to another task.

#### Documentation leaves implementation questions

The radius values for the masked encoder differ between the main description and appendix. Both accounts indicate spatially restricted attention, but they do not supply a fully reconciled specification of the neighborhoods.

The matching objective also differs across those accounts. The main formula includes an explicit foreground-confidence term; the appendix formula omits it while retaining a listed coefficient associated with that term.

These discrepancies do not invalidate the reported comparisons. They do limit how confidently a reader can reconstruct every implementation choice from the equations alone. A precise account should preserve the uncertainty rather than quietly selecting one version.

The center-head description raises a smaller interpretive question. The architecture predicts a center relative to a query, while the appendix describes sigmoid-bounded location-offset outputs. The coordinate conversions connecting those statements are not developed in enough detail to make every sign and range convention obvious.

#### Qualitative evidence has a narrower role

The attention visualizations make the architecture easier to understand, but they are not a causal explanation of detection. A displayed pattern can be consistent with useful grouping without proving that a particular head is necessary or sufficient.

The amodal examples show that the detector can propose extents beyond observed surfaces. They do not quantify performance separately for fully visible and heavily occluded objects.

Similarly, examples of apparently missing annotations cannot establish a benchmark-wide annotation-error rate. They show why some disagreements between predictions and labels deserve inspection, not why ordinary evaluation should be dismissed.

Finally, the paper does not establish calibrated uncertainty or guaranteed correctness for any individual box. A category distribution and a geometrically plausible prediction remain outputs to be evaluated. The set objective improves correspondence and discourages duplicates, but those benefits do not turn every retained detection into verified knowledge.

### What came after

A specific history of later research building on 3DETR cannot be established from the citation evidence available here. The paper itself sets out opportunities for successors, but proposed extensions should remain distinct from documented subsequent results.

Its clearest invitation is to treat the Transformer detector as a replaceable foundation. Earlier systems had improved VoteNet through primitives, graph processing, and richer geometric aggregation. The authors suggest that comparable innovations could be developed around 3DETR. Those examples describe prior approaches and possible directions; they are not evidence that those approaches later adopted this architecture.

The other open direction concerns adjustable computation. Intermediate decoder supervision and input-grounded queries provide separate ways to change inference effort. The experiments establish these capabilities within 3DETR, while more efficient attention is identified as a route towards improving their practical value.

The contribution that later research would need to build on is therefore precise: scene-sampled queries, Fourier coordinate features, generic set assignment, and a decoder whose intermediate predictions are useful. The paper shows that this combination can compete with specialized spatial detection machinery, while leaving substantial room for stronger geometry, clearer implementation specifications, and better computational efficiency.

## Cite

Cite as Ishan Misra, Rohit Girdhar and Armand Joulin. 2021. An End-to-End Transformer Model for 3D Object Detection. IEEE/CVF International Conference on Computer Vision (ICCV).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/iccv48922.2021.00290](https://doi.org/10.1109/iccv48922.2021.00290) · [arXiv 2109.08141](https://arxiv.org/abs/2109.08141)

```bibtex
@inproceedings{misra2021end,
  title = {{An End-to-End Transformer Model for 3D Object Detection}},
  author = {Ishan Misra, Rohit Girdhar and Armand Joulin},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00290},
  eprint = {2109.08141},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv48922.2021.00290}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
