arXiv:2608.30618cs.CVAug 2026

Manuscript Offprint

arXiv:2608.30618

AQ3D: Adaptive Query Transformer for 3D Instance Segmentation

Keno Moenck, Thorsten Schüppstuhl

Abstract

Transformer-based decoders for 3D instance segmentation typically commit to a fixed number of queries and positional modeling calibrated on the training distribution rather than on the scene at hand. Indoor scans vary widely in spatial extent and object count, so a fixed query set over-initializes small scenes and under-initializes large ones, while learned absolute and relative encodings are bound to the training scenes' extents and can saturate. We present AQ3D, which is designed to handle scenes of various sizes during training and inference. Queries are instantiated at a fixed ratio of the scene's superpoints, forming an overcomplete set whose background rejection is entirely left to the decoder. Positional information is encoded using 3D RoPE over quantized metric coordinates, replacing learned bounded lookup tables of prior decoders. Further, we improve the decoder itself by using attribution-based superpoint pooling, a mask refinement branch, and a cosine classifier for background rejection. Experiments show our method sets a new state-of-the-art on validation and hidden test splits across the datasets ScanNetV2, ScanNet200, and ScanNet++V2 among decoder methods trained without additional data augmentation. Code is available at github.com/kenomo/aq3d.

1. Introduction

Perception in real-world environments from three-dimensional sensing is a long-standing task in computer vision. Applications range from robotic manipulation [38, 47] and navigation [13, 27] to building as-built verification/as-is model generation [1, 2] and retrofit [8, 24]. Point clouds are a native representation, and 3D semantic and instance segmentation, assigning a semantic label to every point and additionally separating individual object instances, are the perception tasks at hand.

3D instance segmentation is dominated by methods using transformer-based decoders that follow the end-to-end set-prediction paradigm of DETR [3] and the mask-classification formulation of Mask2Former [5]. Starting with Mask3D [29] and SPFormer [32], instance queries represent objects that

Figure

Figure 1. ScanNetV2 scene scale variance. Top: small and large scenes with corresponding superpoint NSN_{S} and instance NIN_{I} count. Bottom: Per-scene instance versus superpoint count.

are refined against the scene representation in stacked cross- and self-attention layers and decoded into binary masks and class labels. Subsequent work has improved different parts: stronger and more efficient backbones [43], context-based training data augmentation [39], better intra- and inter-instance feature discrimination [22, 40, 41], and richer relational modeling in cross-attention or among queries in self-attention [17, 22, 35].

What has received far less attention is how the samples' dimensions shape two coupled design choices: the query set and the modeling of positional information. Indoor scans in datasets differ in spatial extent and number of foreground objects (cf. Fig. 1), both within a dataset and across datasets (cf. Tab. 1). ScanNetV2 [6] and ScanNet200 [28] are based on the same point cloud data but differ in label taxonomy. ScanNet++V2 [42] consists of high-resolution, dense-annotated scans of varying sizes, resulting in more superpoints and greater variance across samples. Within most related methods, e.g., [17, 22, 23, 32, 35], the decoder attends to superpoints, clustering the point cloud into geometrically similar regions.

Most decoders commit to a fixed number of queries, a

*Corresponding author: keno.moenck@tuhh.de

Table 1. Dataset splits and scene statistics. Train splits are cropped/chunked as used during training; val splits are not chunked. Values are reported as mean ±\pm standard deviation for NˉS=\bar{N}_{S} = number of superpoints, NˉI=\bar{N}_{I} = instances (ScanNet200 NˉI,200\bar{N}_{I,200}), and DˉS=\bar{D}_{S} = diagonal of xy-axis-aligned scenes; NS,maxN_{S,max} is the maximum number of superpoints across all scenes.

MetricScanNetV2 / ScanNet200ScanNet++V2
TrainValTrainVal
NˉS\bar{N}_{S}910 ± 4641068 ± 6321343 ± 6022433±1918
NS,maxN_{S,max}21953909412710656
NˉI\bar{N}_{I}12.8 ± 7.014.0 ± 8.126.1 ± 16.153.7 ± 42.7
NˉI,200\bar{N}_{I,200}24.1 ± 13.225.5 ± 14.3--
DˉS\bar{D}_{S} [m]7.4 ± 2.07.6 ± 2.07.1 ± 1.18.1 ± 3.3

parameter shared across every training and inference sample, regardless of the scene content [17, 22, 29, 32]. SGI-Former [40] and LaSSM [41] do take scene context into account when selecting an initial pool of scene-derived queries. SGIFformer uses a semantic-confidence threshold, and LaSSM uses semantic-guided spatial ranking. However, both collapse this pool back to a fixed number. Only OneFormer3D [15] proposes a superpoint-dependent query count by turning every superpoint into a query and, during training, retaining a random fraction between 0.5 and 1.0. A scene-agnostic query budget can fall short in both directions. In small scenes, the decoder is over-initialized, leading to many queries competing for the same object, with only one retained by the bipartite matching. In large scenes, the decoder is under-initialized, resulting in low assignment coverage.

The query budget is compounded by how queries obtain their location. A parametric query learns where and what to look for from the training distribution. MAFT [17] makes this explicit by storing position queries as learnable coordinates in a normalized [0,1]3[0, 1]^{3} cube. Such normalization ties the encoding to the scene bounding box rather than to metric space. Relative position modeling in current approaches inherits a similar defect. MAFT [17] introduced it as a learned context-dependent lookup table in cross-attention indexed by quantized relative offsets, whose quantization step and table length are calibrated on the training scene statistics and are, by construction, saturated by offsets that exceed them. CompetitorFormer [35] adapts the same mechanism in self-attention. In short, existing methods condition the geometry they reason about on the scale of the training scenes, neglecting the variance in sample scale. All but [15] fix the number of queries independently of the input scene.

In this work, we propose the Adaptive Query Transformer for 3D Instance Segmentation (AQ3D) that circumvents scene-dimension ambiguity in query initialization and positional modeling, where these are functions of the input scene. Within a dataset, the number of foreground objects NIN_{I} grows with the number of superpoints NSN_{S} (cf. Fig. 1; per-scene plots for all three datasets in the supplement). This rules out a global parametric, learnable query set, whose cardinality is fixed at training time [32] and cannot track NSN_{S}. Instead, queries must emerge from the scene. Rather than learning which superpoints deserve a query, we instantiate an NSN_{S}-relative (adaptive) but overcomplete set and leave background rejection to the decoder layers, requiring no auxiliary supervision for query proposal, unlike [40, 41]. In contrast to OneFormer3D [15], which subsamples only during training and decodes the full superpoint set at inference, we apply the same ratio at both. On ScanNetV2, the two are on par (cf. Tab. 5), but at r=0.6r = 0.6 our query set is 40%40\% smaller at inference, where the cost of self-attention grows quadratically with NQN_{Q}. Further, an adaptive query set is only useful if the decoder's spatial reasoning is scale-consistent. We therefore remove the absolute and learned (contextual) relative position encodings of prior decoders and replace them with a 3D extension of Rotary Position Embedding (RoPE) [31] following the protocol as developed for 3D backbones [43, 44]. Our contributions are as follows:

  • We identify scene-dimension ambiguity as a systematic weakness of query-based 3D instance segmentation decoders and show that it manifests in the scene-agnostic query budget and the learned positional encodings.

  • We show that the query count should be a function of the scene, and that decoder capacity should be allocated in proportion to scene complexity. A ratio well below one suffices, keeping the set smaller during inference than a full superpoint budget would.

  • We show that the learned absolute and relative position encodings used by existing decoders can be replaced with metrically consistent, parameter-free 3D RoPE across all attention modules.

References (46)