---
title: "Stratified Transformer for 3D Point Cloud Segmentation — Lai 2022"
description: "How Stratified Transformer segments point clouds using dense local attention, sparse distant context, and position-aware features."
canonical: "https://research.elamur.ai/free/en/papers/lai-2022-stratified-transformer-3d-point-cloud/"
---
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/lai-2022-stratified-transformer-3d-point-cloud/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Stratified Transformer for 3D Point Cloud Segmentation

# Stratified Transformer for 3D Point Cloud Segmentation

Paper · 2022 · Xin Lai, Jianhui Liu, Li Jiang et al.

**Authors:** [Xin Lai](https://md.research.elamur.ai/free/en/authors/xin-lai/), Jianhui Liu, [Li Jiang](https://md.research.elamur.ai/free/en/authors/li-jiang/), [Liwei Wang](https://md.research.elamur.ai/free/en/authors/liwei-wang/), [Hengshuang Zhao](https://md.research.elamur.ai/free/en/authors/hengshuang-zhao/), [Shu Liu](https://md.research.elamur.ai/free/en/authors/shu-liu/), [Xiaojuan Qi](https://md.research.elamur.ai/free/en/authors/xiaojuan-qi/) and [Jiaya Jia](https://md.research.elamur.ai/free/en/authors/jiaya-jia/) · **Year:** 2022 · **Venue:** IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · **Licence:** [CC BY-NC-ND 4.0 (arXiv)](https://creativecommons.org/licenses/by-nc-nd/4.0/)

[**566** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4313145913) · [IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings](https://openalex.org/S4210176548) · [licence](https://creativecommons.org/licenses/by-nc-nd/4.0/)

- [PDF](https://arxiv.org/pdf/2203.14508)
- [DOI 10.1109/cvpr52688.2022.00831](https://doi.org/10.1109/cvpr52688.2022.00831)
- [arXiv 2203.14508](https://arxiv.org/abs/2203.14508)
- [OpenAlex](https://openalex.org/W4313145913)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Stratified Transformer for 3D Point Cloud Segmentation

How Stratified Transformer segments point clouds using dense local attention, sparse distant context, and position-aware features. · about 35 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 from a small patch of its surface can be difficult. A point cloud may contain enough information to describe the surrounding scene, yet a segmentation network can still make a mistake if its prediction depends mainly on nearby points. Stratified Transformer addresses this gap between available context and usable context. It assigns semantic labels to points while allowing their representations to draw directly on more distant parts of the scene. The central question is how to obtain that wider view without paying the memory cost of attention between every possible pair of points.

The answer is to spend attention unevenly across space. Each query point considers a dense collection of nearby points and a sparse collection drawn from a larger surrounding region. Nearby points preserve geometric detail; distant points provide broader context. This stratified selection extends a window-based [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) rather than replacing it with unrestricted global attention. The network continues to process individual points and their coordinates, avoiding the positional approximation that the authors associate with voxel-based processing. Its encoder gathers information at progressively coarser resolutions, and its decoder restores dense features for segmentation.

The paper also argues that a successful point-cloud Transformer needs more than a wider attention neighborhood. Its first feature-extraction layer aggregates information from local neighbors, giving attention a more informative starting representation than raw coordinates and color alone. A contextual relative position mechanism then makes spatial relationships interact with the current query and key features. Finally, an implementation based on explicit query–key pairs avoids padding every spatial window to the size of the most crowded one. These choices address different difficulties created by irregularly distributed points: weak initial features, the need to retain fine spatial relationships, and uneven memory use.

Experiments cover semantic segmentation on S3DIS and ScanNetv2, together with part segmentation on ShapeNetPart. The authors report leading performance in their comparisons, including an advantage over Point Transformer of 1.6% mIoU on S3DIS. Their controlled comparisons attribute improvements to stratified key selection, the initial local embedding, contextual position encoding, and window shifting. The implementation saves 57% memory relative to their vanilla implementation. Tests involving reordered points and geometric perturbations also support the robustness of the complete system. These findings establish a strong practical combination for the evaluated segmentation tasks; they do not establish that sparse distant attention is sufficient for every point-cloud task or that any individual component explains all of the observed robustness.

### Ideas worth borrowing

Allocate detail according to distance. Stratified attention preserves a dense representation of the immediate neighborhood while using a smaller sample to inspect a wider region. This works because local shape and broader context serve different purposes: nearby observations help describe a surface, while farther observations can help identify what that surface belongs to. The reusable idea is to give different spatial scales different sampling budgets. A system with expensive pairwise interactions can preserve detail where it is most immediately useful and retain a route to broader evidence without treating every location equally.

Build useful features before asking attention to compare them. The first local aggregation layer changes what the initial attention block receives. Instead of comparing points described only by their own position and color, attention compares features that already contain neighborhood information. The paper’s results make this an architectural lesson instead of a preprocessing preference. In another setting with weak raw observations, a small structured aggregation step could provide a better foundation for later relevance estimation. The general question is whether attention begins with enough information to recognize meaningful relationships.

Make position interact with content. The contextual position mechanism does not assign a fixed scalar preference to a displacement independently of the features being compared. It combines learned representations of relative displacement with query and key features. The same geometric relationship can therefore influence attention differently as the semantic representation changes. This is useful wherever relative structure matters but should not dictate relevance on its own. The transferable principle is to preserve structural information while allowing its effect to depend on what the system currently understands about the interacting elements.

Represent actual interactions explicitly. The memory-efficient implementation stores the query–key pairs that will be evaluated and performs normalization and aggregation over those pairs. It avoids reserving space for nonexistent points simply because another window contains more observations. This is a broader sparse-computation idea: when groups vary greatly in size, the data structure should follow the real workload. For systems built around [GPU and parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/), the paper also shows why the intermediate representation and the kernels operating on it must be designed together.

Combine direct connections with changing partitions. Sparse distant keys and shifted windows address related but distinct restrictions. Distant keys create direct access to a broader neighborhood; shifting changes which points share a partition in successive blocks. The paper finds value in retaining both. The reusable lesson is that extending the interaction graph and altering its boundaries can complement each other. A broader neighborhood need not make partition changes irrelevant, particularly when some neighboring observations would otherwise remain separated by fixed boundaries.

Test components in the completed system. The ablations add ingredients progressively and then remove ingredients from the final configuration. This helps reveal whether an apparent benefit survives when the other proposed components are present. The contextual position mechanism, for instance, remains beneficial alongside stratified attention. This evaluation pattern is useful for any architecture assembled from several plausible improvements: a component should be examined both as an addition to a simpler baseline and as something the completed system might be able to do without.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the most relevant contribution is an approach to organizing access to context. The paper concerns spatial segmentation, so it does not establish a language-processing result or document a Mova implementation. Its ideas can nevertheless motivate concrete experiments, provided the transfer is treated as a hypothesis.

A possible Mova design would preserve detailed access to nearby text while selecting a smaller collection of more distant passages. The analogy is with the division between dense local keys and sparse distant keys. Immediate text would remain available for close contextual relationships, while selected distant material could supply information beyond the local span. The paper does not determine how those passages should be selected. Farthest point sampling operates on spatial coordinates, and a language system would need a separately justified notion of distance or coverage.

The initial embedding result suggests another experiment. Before a broader context mechanism compares textual units, Mova could construct local representations that summarize their immediate surroundings. This would follow the paper’s reasoning that relevance is easier to estimate when each item already carries some contextual information. It would not imply importing KPConv into language processing. The transferable question is whether a small, inspectable local stage improves the information available to the later comparison mechanism.

The pair-based implementation is particularly compatible with a transparent design. An experimental Rust component could record which items are allowed to interact, keep the query and source indices explicit, and group normalization and aggregation by query. Such a representation would make the selected context inspectable and would avoid allocating a dense structure for interactions that never occur. Whether it would be faster or use less memory in Mova would depend on its workload and implementation; the paper’s memory result belongs to its point-cloud system.

Contextual position encoding offers a further possibility, but it requires greater caution. Mova could investigate whether a relation between textual locations should influence relevance differently depending on their contents. The paper supplies a concrete example of content interacting with relative structure, not evidence that its spatial lookup tables transfer directly to language. None of these possibilities should be described as an existing Mova feature on the basis of this research. Their value is to define experiments with clear questions: which context is selected, what information each unit contains before comparison, and how explicitly the resulting interactions can be inspected.

### The problem and its context

#### A point needs both shape and surroundings

A point cloud describes a scene through observations located in continuous space. Unlike an image’s pixels, these observations do not arrive on a regular grid. Some regions contain many points, others contain few, and the arrangement does not automatically provide a fixed neighborhood structure suitable for an image-processing architecture. Segmentation must turn this irregular collection into meaningful labels while preserving the spatial information needed to distinguish surfaces and objects.

The paper places this problem in applications including robotics, augmented reality, and autonomous driving. Its experimental emphasis, however, is segmentation rather than a demonstration in those applications. The immediate technical concern is how features are gathered. A point’s own coordinates and color provide limited evidence. Nearby points can describe local shape and appearance, but distant parts of the scene may help resolve an ambiguity that local geometry leaves open.

The authors illustrate this through a desk prediction. In their effective-receptive-field visualization, the system restricted to local window attention draws strongly on a nearby region and produces an incorrect prediction. With stratified attention, the desk representation can use evidence associated with farther objects, including a bed or curtain, and the prediction is corrected. The example is an argument about contextual access: useful evidence can exist in the input without substantially influencing the output representation.

An effective receptive field concerns the parts of the input that actually contribute to a feature. It is therefore different from merely identifying every location that could, in principle, communicate through a sufficiently long chain of layers. Shifted windows already create routes between partitions. The paper’s objection is that such indirect routes can still leave the effective influence too local. Its proposed response is to add direct attention connections to selected farther points.

#### Earlier point-cloud approaches

The paper groups earlier segmentation methods into voxel-based and point-based approaches. Voxel-based methods divide space into regular cells and apply sparse convolutions to the resulting representation. This regularization makes the structure easier to process. The cost identified by the authors is less precise positional information after voxelization.

Point-based approaches instead retain features and coordinates associated with individual observations. Their challenge is to construct useful aggregation operations directly on an irregular set. In the paper’s account, PointNet and PointNet++ use max pooling as part of their aggregation. PointConv uses a learned mapping to approximate a continuous convolutional kernel, while KPConv uses kernel points for that purpose. These methods provide different ways to turn local neighborhoods into higher-level representations.

Point Transformer is the closest attention-based predecessor discussed in detail. It uses vector attention and a subtraction-based relation to aggregate local features. The criticism is not that local attention cannot learn useful geometry. It is that this approach still leaves direct long-distance contextual access limited. The authors also report weaker robustness for Point Transformer under their test perturbations, although the explanation they suggest for that difference remains tentative.

Voxel Transformer provides another relevant comparison. It uses attention over voxels for object detection. Stratified Transformer pursues segmentation while retaining point coordinates through the attention computation. The distinction concerns both the task and the representation: the paper wants the contextual reach associated with attention without first turning the observations into voxel tokens.

#### What image Transformers contribute

The architecture also draws on developments in visual attention. [An Image is Worth 16x16 Words](https://md.research.elamur.ai/free/en/papers/dosovitskiy-2020-image-worth-16x16-words-transformers/) represents image patches as tokens and processes them with a Transformer encoder for classification. That establishes a useful architectural direction, but the patch construction relies on image structure that an irregular point set does not possess.

The paper describes Pyramid Vision Transformer as introducing a hierarchy of features for dense visual tasks and a spatial reduction mechanism to reduce attention memory. Swin Transformer provides the more immediate foundation: attention is restricted to windows, and the partition shifts between successive blocks. Stratified Transformer adopts the hierarchical organization and the changing partitions, then modifies how keys are collected.

This inheritance matters because the proposed system does not begin from unrestricted global attention and simply prune it. It begins with a practical local architecture and adds a controlled route to wider context. The local window remains the dense component. A larger window supplies a sparse addition. The resulting system is designed around the observation that an irregular point cloud needs both geometric detail and economical access to farther evidence.

Other vision work discussed in the paper explores ways to bring longer-range or global information into attention architectures. The present contribution belongs to that broader search, but its distinctive difficulties arise from points: neighborhood density varies, coordinates are continuous, and a simple per-point input projection does not provide the same kind of structured token that an image patch already contains.

### The method, step by step

The full system is an encoder–decoder. Its encoder reduces the number of points across stages while increasing feature capacity. Its decoder makes the features dense again so that segmentation can be produced at the required resolution. Within this familiar outline, the important design choices concern the initial representation, the attention neighborhood, relative position, and how irregular interactions are stored.

From an irregular point cloud to segmentation The steps in order.

#### Start with locally informed point features

The stated scene-segmentation input uses xyz coordinates together with rgb color. A simple initial design would project each point independently into a larger feature space. The authors find this inadequate: a pointwise linear projection retains information about that observation but does not tell the initial attention block much about its surrounding geometry.

Their point embedding therefore aggregates neighboring features before the main Transformer stages. They compare several local aggregation choices, including average pooling and max pooling, and find KPConv the strongest among those examined. This introduces local structure at the beginning instead of asking the initial attention block to infer all useful relationships from isolated coordinates and colors.

The rationale is about the quality of the comparisons attention will make. A query and key can receive compatible scores only from the information represented in their features. If those features contain little beyond raw measurements, the initial compatibility estimates may be poor guides to semantic relevance. Local aggregation gives each point a representation that already reflects some surrounding structure.

The authors associate this change with faster convergence as well as better segmentation. Their training plot compares the loss and validation mIoU trajectories with and without this embedding. The added KPConv accounts for 2% FLOPs relative to the entire network. That result supports a focused use of a geometric operator before attention; it does not turn the architecture into a sequence of convolutional replacements for its Transformer blocks.

#### Define the attention computation

The starting attention mechanism partitions space into disjoint cubic windows. Each point is a token, and the points inside a window supply the queries, keys, and values for that window’s attention.

The feature width is organized into heads:

```
N_c = N_h × N_d
```

Here, N_c is the complete feature dimension, N_h is the number of attention heads, and N_d is the dimension assigned to each head. Different heads carry separate feature comparisons before their outputs are combined.

For window t, the input feature array has the following shape:

```
x ∈ ℝ^(k_t × (N_h × N_d))
```

The symbol x denotes the features in that window, k_t is its number of points, and ℝ indicates real-valued entries. The dependence on t matters because different spatial windows can contain different numbers of points.

Separate learned linear transformations produce the three attention representations:

```
q = Linear_q(x)
```

The array q contains query features, and Linear_q is the learned query projection applied to x. A query is the representation of the point whose output is being formed.

```
k = Linear_k(x)
```

The array k contains key features, and Linear_k is its own learned projection. Keys provide the features against which each query is compared.

```
v = Linear_v(x)
```

The array v contains value features, produced by Linear_v. Values are the information combined after the query–key comparisons have determined the weights.

Each resulting array can be viewed as having a point dimension, a head dimension, and a within-head feature dimension. The unnormalized compatibility for a particular pair is:

```
attn_i,j,h = q_i,h · k_j,h
```

The indices i and j identify the query point and key point, respectively, while h identifies the attention head. The dot denotes the vector dot product. The scalar attn_i,j,h expresses compatibility before normalization.

The weights are normalized separately for each query and head:

```
âttn_i,·,h = softmax(attn_i,·,h)
```

The dot in the index position indicates all candidate keys for query i. Softmax transforms those scores into normalized weights, denoted here by âttn. A query therefore distributes its weighting across its available keys rather than assigning an independent unnormalized score to each value.

The head output is the weighted aggregation:

```
y_i,h = ∑_(j=1)^(k_t) âttn_i,j,h × v_j,h
```

The symbol y_i,h denotes the resulting feature for query i in head h. The sum ranges over the k_t points in the window. Each value vector v_j,h contributes according to its normalized attention weight.

The concatenated head outputs are then projected:

```
ẑ = Linear(y)
```

Here, y represents the collected head outputs, Linear is the final learned projection, and ẑ is the attention output feature. The equations describe the attention operation itself; a complete block also contains a feed-forward network.

#### Why windows reduce the cost

Global attention would compare every input point with every other input point. With N input points, the paper gives its memory growth as:

```
O(N²)
```

N is the total point count, and O describes how the memory requirement grows with that count. For the large point sets considered, the authors regard this as impractical.

Window attention replaces those global comparisons with independent local groups. Its stated complexity is:

```
O((N/k) × k²) = O(N × k)
```

Here, k is the average number of points in a window. The expression separates the approximate number of windows from the pairwise work inside each window. This makes local attention much more manageable when the local group is small relative to the complete input.

The simplification comes with a restriction: a point cannot directly attend to observations outside its current window. Shifting the partition in the following block helps information cross the boundaries, but the paper finds that the resulting effective context remains too limited.

#### Add sparse keys from a larger region

The stratified design retains all the points selected by the original local window and adds points from a larger window after downsampling. The larger region is not represented at the same density as the local one. This is the source of the term stratified: the key set combines differently sampled spatial ranges.

The authors use farthest point sampling to construct the sparse point collection. In this architecture, it supplies a reduced set from which farther keys can be drawn. The local window has side length s_win, while the larger window has side length s_win^large. The sampling scale s controls the downsampling used for the sparse collection.

The resulting key set is:

```
K_i = K_i^dense ∪ K_i^sparse
```

K_i denotes the complete set of keys for query i. K_i^dense contains the points selected from its local window, and K_i^sparse contains sampled points selected using the larger window. The union symbol means that a point present in both collections appears only once in the final set.

This is a selection rule for attention partners, not an operation that replaces distant points with a single pooled summary. A sampled distant point remains an identifiable key and value. The query can score it directly and use its feature in the weighted aggregation.

The paper reports that the extra sparse keys constitute about 10% of the final key collection. This explains the intended economy: the network obtains a wider spatial reach while adding relatively few attention partners to the dense local group. The result should be understood as sparse access to a larger surrounding region, rather than unrestricted access to every point in the scene.

#### Shift both partitions

Successive blocks change the window alignment. For the original window, the stated shift is:

```
Δ_original = ½s_win
```

The symbol Δ_original denotes the shift magnitude for the original partition, and s_win is its window size. The expression represents half of that size.

The larger partition is shifted similarly:

```
Δ_large = ½s_win^large
```

Here, Δ_large is the shift magnitude for the larger partition, and s_win^large is the larger window size. Changing both partitions alters the neighborhoods available in successive blocks.

The block applies [Layer Normalization](https://md.research.elamur.ai/free/en/papers/ba-2016-layer-normalization/) before its attention operation and before its feed-forward network. This placement is part of the architecture described by the authors. Window shifting and stratified selection then operate within a sequence of these blocks, rather than as a separate stage after feature extraction.

#### Preserve relative geometry within attention

The position mechanism begins from coordinate differences. A high-level feature may no longer retain every fine detail of the xyz coordinates that entered the network, so the authors reintroduce relative spatial information explicitly.

For query i and key j:

```
r_i,j,m = p_i,m − p_j,m
```

The symbol p denotes point coordinates, r denotes relative coordinates, and m selects a spatial axis. The indices i and j again identify the query and key. Thus, r_i,j,m describes their displacement along the selected axis.

The system maintains a learned lookup table for each axis. Because coordinates are continuous but table indices are discrete, the displacement is quantized. The quantization width is:

```
s_quant = (2 × s_win)/L
```

The symbol s_quant denotes the width of a quantization interval, s_win is the window size in the paper’s formulation, and L is the number of intervals. The factor 2 covers the relative-coordinate range extending in both directions around the query.

The table index is computed as:

```
idx_i,j,m = floor((r_i,j,m + s_win)/s_quant)
```

The symbol idx_i,j,m is the discrete index for the query–key displacement on axis m. Adding s_win shifts the coordinate range before division, and floor rounds down to an integer index. This allows continuous spatial differences to select learned table entries.

The axis-specific entries are combined:

```
e_i,j = t_x[idx_i,j,1] + t_y[idx_i,j,2] + t_z[idx_i,j,3]
```

The tables t_x, t_y, and t_z correspond to the spatial axes. Brackets indicate selecting an entry by index. The vector e_i,j is the combined relative position representation for the pair. Its components can be organized into the same heads and within-head dimensions as the attention features.

The query, key, and value pathways do not share their position tables. The notation e^q, e^k, and e^v distinguishes the resulting relative position representations. This lets positional information affect feature comparison and feature aggregation through separate learned parameters.

#### Make the spatial effect depend on the features

A position mechanism based only on an MLP applied to relative coordinates can assign a bias to a displacement. The proposed contextual mechanism instead lets the current features participate in constructing that bias.

The contextual positional term is:

```
pos_bias_i,j,h^cRPE = q_i,h · e_i,j,h^q + k_j,h · e_i,j,h^k
```

The superscript cRPE identifies contextual relative position encoding. The vectors q_i,h and k_j,h are the query and key features for head h. The vectors e_i,j,h^q and e_i,j,h^k are their separately learned positional representations for the same pair. Their dot products produce a scalar positional contribution.

This term augments the ordinary compatibility score:

```
attn_i,j,h^cRPE = q_i,h · k_j,h + pos_bias_i,j,h^cRPE
```

The first term is the content comparison. The second introduces spatial information through its interaction with that content. Accordingly, a relative displacement does not have to contribute the same scalar bias regardless of the features involved.

The contextual scores are normalized:

```
âttn_i,·,h^cRPE = softmax(attn_i,·,h^cRPE)
```

The resulting âttn^cRPE contains the normalized contextual attention weights for query i and head h across its candidate keys.

Position also enters the aggregated information:

```
y_i,h^cRPE = ∑_(j=1)^(k_t) âttn_i,j,h^cRPE × (v_j,h + e_i,j,h^v)
```

The value v_j,h is augmented with its positional representation e_i,j,h^v before weighting. Hence, position can change both which observations receive attention and what information is carried by each weighted contribution. The displayed expression follows the paper’s single-window notation; stratified selection expands the candidate keys used by the attention operation.

The authors’ visualization compares positional biases from an MLP-based method and cRPE. In that example, the MLP-based biases look similar across keys, while the contextual biases vary more. Their interpretation is that a nearly uniform positional contribution changes the normalized attention little. The controlled experiments provide the stronger quantitative evidence that the contextual version is useful.

#### Build the feature hierarchy

Between encoder stages, the network reduces the number of represented points. Farthest point sampling chooses centroids, and a nearest-neighbor query identifies original points to group around them. A pre-normalized linear projection transforms their features, after which max pooling forms each centroid’s output feature.

The point-count relationship is:

```
N_(s+1) = ceil(¼N_s)
```

N_s is the number of points at stage s, N_(s+1) is the count at the next stage, and ceil rounds upward. The expression specifies the downsampling relationship used in the hierarchy.

The decoder reverses the movement towards sparse representations. It projects its current features and interpolates them onto the denser coordinates from the preceding stage. Encoder features at that denser stage receive their own pre-normalized projection. The two feature streams are then added.

This preserves a route from earlier, spatially detailed representations to the segmentation output while allowing the encoder to construct broader features at lower resolution. The authors describe the overall arrangement as similar to U-Net. The stratified attention blocks operate within this hierarchy, so broad context comes from both direct sparse connections and progressively coarser processing.

#### Store only the attention pairs that exist

Variable window populations create an implementation problem independent of the attention formula. A straightforward batched implementation can pad every window to the largest population and mask the dummy entries. That reserves space according to the most crowded group even when many groups contain far fewer real points.

The proposed implementation first constructs indices for every actual query–key pair. The arrays index_q and index_k each have length M, where M is the total number of selected pairs. They identify which query and key participate in each comparison.

The dot-product operation produces attention scores with a pair dimension and a head dimension. Scatter softmax then normalizes scores sharing the same query index. This grouping is crucial: normalization must compare the keys belonging to a given query, regardless of where the corresponding pairs lie in storage.

The final operation gathers values through the key indices, applies the normalized weights, and sums contributions sharing a query index. Each of these main operations uses a dedicated CUDA kernel. The authors explain that this keeps intermediate quantities from occupying substantial additional memory.

The stated memory complexity is:

```
O(M × N_h)
```

M is the number of query–key pairs and N_h is the number of heads. The implementation therefore follows the interactions selected by the architecture rather than a padded maximum-window layout. This is the basis of the reported memory saving.

#### Training and dataset-specific configurations

The initial feature dimension is 48, and the initial head count is 3. Both double after each downsampling layer. For S3DIS, the encoder uses four stages with block depths [2, 2, 6, 2]. These choices specify how many Transformer blocks process each resolution.

S3DIS training runs for 76,500 iterations using 4 RTX 2080Ti GPUs and a batch size of 8. The input is first grid sampled at 0.04m. During training, the point count is capped at 80,000, with additional points discarded when necessary. The initial attention window is 0.16m and grows by doubling after downsampling. The stratified sampling scale is 8.

The listed S3DIS augmentations are rotation around the z-axis, scaling, jitter, and dropping color. These transformations are part of the training conditions under which the architectural results are obtained. They matter when interpreting robustness because the system is not trained only on unmodified input clouds.

ScanNetv2 uses a different configuration because its point count is larger. An additional downsampling layer follows the initial point embedding, and the later stages use block depths [3, 9, 3, 3], giving five stages overall. Training lasts 600 epochs, with weight decay 0.1 and batch size 8.

The ScanNetv2 grid size is 0.02m, and training inputs contain at most 120,000 points. Its initial window size is 0.1m, and the stratified sampling scale is 4. The augmentation scheme follows the S3DIS scheme except for omitting random jitter. ShapeNetPart implementation details and fuller dataset descriptions are assigned to the supplementary material. The authors also identify an official code release for Stratified Transformer on GitHub.

### Experiments and results

#### What the evaluations measure

The semantic-segmentation evaluations use S3DIS and ScanNetv2. The S3DIS results table is identified as an Area5 evaluation. ScanNetv2 is discussed through validation and test results, which must be kept separate because the reported advantages differ between those splits.

The principal reported metric is mIoU, mean intersection over union. It measures agreement between predicted regions and the reference segmentation, averaged across the relevant categories. A higher score indicates better overlap. The paper’s part-segmentation discussion additionally distinguishes category mIoU from instance mIoU on ShapeNetPart, so an advantage on one should not be treated as the same result as an advantage on the other.

The numeric evidence available in the paper’s narrative consists largely of reported improvements and selected values, instead of a complete sequence of absolute benchmark scores. Those reported improvements still support concrete comparisons. They do not justify reconstructing missing baseline scores or presenting a full ranking with invented endpoints.

The chart below therefore compares a narrower and well-defined quantity: the reported S3DIS mIoU improvement from restoring particular components in the authors’ ablation comparisons. The rows have different component-removal baselines. They show the contribution measured for each component, instead of the absolute performance of separate complete systems.

S3DIS mIoU gains in component-restoration comparisons Contextual position encoding has the largest reported gain among these component comparisons.

**The numbers**

| System or setting | mIoU gain % |
| --- | --- |
| Add stratified key selection | 1.9 |
| Restore initial point embedding | 2.0 |
| Restore contextual position encoding (this paper) | 4.0 |

#### Scene segmentation against earlier systems

On S3DIS, the authors report that Stratified Transformer exceeds Point Transformer by 1.6% mIoU. This is the main attention-based comparison emphasized in their discussion. It supports the practical value of the completed architecture over a predecessor that concentrates attention locally.

The S3DIS comparison with MinkowskiNet is larger: the reported advantage is 6.6% mIoU. The authors connect this result to the density of the point cloud. Their explanation is that retaining accurate point positions matters more when observations are dense, making the approximation introduced by voxelization more consequential.

That explanation is plausible within their argument, but it is an interpretation of the benchmark pattern. The experiment does not isolate voxelization as the only difference between the two complete systems. Their feature construction, aggregation, and other architectural decisions also differ.

On ScanNetv2 validation, the authors report an advantage of 2.1% mIoU over MinkowskiNet. They also describe their validation result as exceeding the earlier methods considered, including voxel-based approaches. This is an important part of the paper’s claim that a point-based Transformer can compete with strong voxel-processing systems.

The test-set comparison is more restrained. Stratified Transformer is described as slightly ahead of MinkowskiNet, without the narrative supplying an absolute test score or a numerical test advantage. The distinction matters: the validation advantage should not be repeated as though it were the test-set result.

The authors suggest that ScanNetv2’s relatively sparse observations make positional loss from voxelization less consequential. This would help explain why the contrast with voxel-based processing is less pronounced there than on S3DIS. Again, the density argument is an explanation offered by the authors, instead of a separate controlled density experiment.

The paper frames its ScanNetv2 outcome as a notable achievement for point-based segmentation relative to voxel-based methods. The evidence is the comparison conducted in this research. It does not establish that point-based processing will dominate every voxel-based alternative under other settings, budgets, or future developments.

#### Part segmentation on ShapeNetPart

ShapeNetPart tests whether the approach also works for assigning part labels within objects. This extends the experimental scope beyond semantic labeling of scenes. The authors report leading category mIoU and instance mIoU among the compared methods.

The two metrics give a more informative account than a single statement of superiority. Instance mIoU is described as comparable to Point Transformer, while category mIoU shows a substantially larger advantage. The paper therefore presents a result whose strength depends on how performance is aggregated.

No numerical category or instance score is supplied in the narrative. The defensible conclusion is qualitative: the method performs strongly under both reported aggregations, with the more pronounced comparison against Point Transformer occurring for category mIoU. It would be inaccurate to attach a magnitude to that difference without the underlying values.

This evaluation supports the usefulness of the architecture across the tested segmentation settings. It is not evidence of transfer without training, nor does it demonstrate performance on unrelated point-cloud tasks. The authors’ broader language about generalization should be understood through the actual experiments they report.

#### Memory efficiency

The authors report a 57% memory saving compared with their vanilla implementation. This result concerns how attention is implemented, especially the avoidance of padding and large intermediate representations. It complements the architectural claim that sparse distant keys can extend context economically.

The two efficiency arguments should be distinguished. Stratified key selection limits how many farther points enter attention. The pair-based implementation reduces waste when executing the chosen interactions. A system could select sparse keys inefficiently, or implement a local attention graph efficiently while still giving it too little context.

The paper’s evidence supports combining these choices. It does not supply a universal conversion from memory saved to runtime saved, nor does the stated memory percentage establish an application-level speedup. The reported implementation uses specialized CUDA kernels, so its practical benefits are connected to that execution strategy.

#### Robustness under test perturbations

The robustness evaluation modifies inputs during testing rather than changing the segmentation task. The paper examines point permutation, rotation around the z-axis, translation, scaling, and jitter. These tests ask whether predictions remain stable when an observation changes in a way that should not destroy the underlying scene semantics.

The rotation conditions are 90°, 180°, and 270°. Translation uses ±0.2, while scaling uses ×0.8 and ×1.2. These values define the evaluated perturbations; robustness outside them is not established by the same experiment.

The authors report substantially less fluctuation for Stratified Transformer than for earlier methods in their comparison. One specific result is an improvement of +0.63% mIoU under a 90° z-axis rotation. That is an outcome under a particular test transformation, not a reason to assume that arbitrary rotation will improve predictions.

Point Transformer is a revealing comparison because it also employs attention. The paper finds that attention alone does not guarantee the same robustness. The authors suggest that their use of standard multi-head attention may help relative to the specialized operators in Point Transformer. They do not isolate this explanation through an otherwise matched operator substitution, so it remains a suggested cause.

#### Visual evidence

The visual comparisons supplement the aggregate metrics. The paper presents examples in which Stratified Transformer recognizes highlighted objects more successfully than Point Transformer or the authors’ baseline without stratified keys.

These examples connect the numerical outcome to the proposed mechanism: access to broader context can change a locally ambiguous prediction. The effective-receptive-field visualization is especially useful because it examines influence on a feature rather than only displaying final labels.

Visual success cases have a limited evidential role. They demonstrate that the proposed behavior occurs in selected examples. They do not show its frequency across every object category or establish that every corrected prediction depends on distant context. The ablations are needed to support the broader architectural interpretation.

### What the ablations show

#### A design examined in both directions

The paper’s ablation sequence begins with simpler configurations and adds components progressively. It then removes components from the completed system. This gives the analysis two complementary perspectives: whether an ingredient helps introduce capability and whether the final architecture still benefits from retaining it.

The experiments are conducted on both S3DIS and ScanNetv2. Agreement across those datasets gives more support than an isolated result, while differences in gain show that component importance can depend on the setting. The ablations do not turn each ingredient into a universal recommendation; they establish its value in the architectures and training conditions examined.

This design is particularly helpful because several components could plausibly substitute for one another. Better initial features might reduce the need for a stronger positional signal, or broader context might reduce the usefulness of changing partitions. The results instead suggest that the proposed components remain complementary.

#### Stratified keys provide a measurable benefit

Adding stratified key selection to the corresponding baseline improves S3DIS by 1.9% mIoU and ScanNetv2 by 1.2% mIoU. These are the paper’s most direct quantitative tests of the central architectural idea.

The comparison is stronger evidence than the receptive-field picture alone. The visualization shows that farther observations can influence the representation; the ablation shows that enabling the proposed access improves the segmentation metric under the tested configuration.

It is also important to identify what changes. Stratification adds a sparse set of farther keys to the dense nearby set. The result supports this particular balance of retained local detail and wider access. It does not establish that any arbitrary collection of distant points would be equally useful, or that the same performance would follow from simply enlarging the dense window.

The authors mention additional sampling-scale comparisons using 4, 8, and 16 in the supplementary material. The narrative does not give the corresponding scores. It therefore supports the statement that the sampling density was investigated, but not a numerical account of how each scale performed.

#### The initial local embedding is consequential

When the first local embedding is restored to the completed architecture, S3DIS improves by 2.0% mIoU and ScanNetv2 improves by 4.0% mIoU. The result is substantial for a change placed only at the beginning of the encoder.

The interpretation is that attention benefits from receiving features that already express something about local structure. This does not imply that the network has solved semantic understanding before its first Transformer block. It means that a point’s feature can carry more useful evidence than its isolated measurements.

The comparison among local aggregation methods strengthens this account. Every listed local aggregation alternative performs better than a linear projection in the first embedding stage. KPConv performs best among the examined choices. Hence, the evidence supports both a broad conclusion about local initialization and a narrower implementation choice within the authors’ system.

The training curves add an optimization perspective: the embedding improves how learning proceeds, as well as the eventual validation result. The paper does not provide a precise convergence-time saving in the narrative, so the curve should be read as qualitative support rather than converted into an invented speed figure.

#### Contextual position remains useful with broader context

Introducing contextual relative position encoding in the progressive ablation improves S3DIS by 2.9% mIoU and ScanNetv2 by 1.9% mIoU. The completed-system comparison shows that the benefit persists when stratified attention is already present.

Restoring cRPE to that fuller configuration produces gains of 4.0% mIoU on S3DIS and 2.3% on ScanNetv2. This argues against treating spatial encoding as a minor optional detail once the attention neighborhood has been extended. The network still needs a useful way to interpret the relationships among the points it can now access.

The paper also examines placing the contextual mechanism on query, key, or value pathways. Each is reported to improve performance, while using all of them together gives the best result. This is consistent with the method’s design: position can affect compatibility through queries and keys and can affect the information being aggregated through values.

The MLP-based relative position comparison is more specific. In the reported S3DIS ablation, that alternative behaves similarly to omitting position encoding. The authors interpret this alongside their visualization as evidence that coordinate-only bias adds little when coordinates already enter the features.

A careful reading keeps the scope narrow. The experiment compares the particular MLP-based encoding and cRPE used in this architecture. It does not show that every coordinate-only encoding is ineffective. Its positive conclusion is clearer: making position interact with current features is beneficial here.

#### Shifting windows still helps

The shifted-window ablation tests the vanilla local design and the stratified design. Shifting improves the framework, and the best behavior comes from shifting both the original and larger partitions.

Stratified Transformer without window shifting reaches 70.1% mIoU on S3DIS and is reported to remain ahead of the vanilla version. This is useful evidence that the key-selection strategy contributes more than an alternative route to the same boundary-changing operation. Direct sparse connections can help even when the partitions themselves do not move.

Conversely, the gain from shifting within the stratified architecture shows that distant sampling does not eliminate partition effects. The sparse larger neighborhood is still organized through windows, and changing those windows exposes different relationships across successive blocks.

Together, these comparisons support a layered account of communication. Dense local neighborhoods preserve immediate detail, sparse larger neighborhoods supply direct wider access, and shifting changes the grouping across depth. Their benefits overlap in purpose but are not shown to be interchangeable.

#### Augmentation belongs to the explanation

The paper reports that data augmentation improves the architecture, both in the progressive sequence and when removed from the final configuration. It also investigates the contributions of individual augmentations on S3DIS.

The narrative does not supply the individual scores, so the evidence does not support a numerical ranking of rotation, scale, jitter, and color dropping. It does support treating augmentation as part of the effective system instead of attributing all performance to attention design alone.

This matters especially for the robustness interpretation. A network trained with geometric transformations has already encountered variation related to some test perturbations. The reported robustness is still useful, but its explanation includes the training procedure as well as architecture.

The ablations therefore support a combined contribution. Stratified context is the central change, yet the strong final result also depends on how point features are initialized, how relative geometry is represented, how partitions change, and how training inputs are varied.

### Limitations

#### Limits acknowledged or left explicit by the authors

The paper does not present a dedicated limitations section. Several boundaries are nevertheless explicit in its design and discussion. Most importantly, full global attention remains too costly for the input sizes considered. Stratification is an economical alternative, not a removal of that underlying scaling problem.

The selected distant points are sparse and come from a larger window. They do not provide complete access to every observation in the scene. The method gains contextual reach by choosing which interactions to retain, so its effectiveness depends on the sampling and window configuration.

The authors also vary the architecture and training setup between S3DIS and ScanNetv2. They add downsampling for the latter, change the initial window size, and use a different stratified sampling scale. This shows that the reported system includes dataset-specific configuration. The paper does not establish that a single unchanged setup is optimal across point-cloud distributions.

ShapeNetPart details are assigned to supplementary material, as are fuller analyses of memory and sampling scales. The narrative therefore supports the reported conclusions without supplying every value needed to reproduce all of those comparisons from its main discussion alone.

The authors’ explanations of some results are explicitly tentative. They suggest that ScanNetv2 sparsity reduces the disadvantage of voxelization, and they propose operator differences as a possible reason for Point Transformer’s weaker robustness. Those explanations should retain their status as interpretations rather than be presented as isolated experimental findings.

#### Limits visible in the evaluation setup

The benchmark evidence concerns the evaluated segmentation tasks. Though the introduction names applications such as robotics and autonomous driving, the experiments do not establish deployment performance in those settings. Segmentation accuracy on the reported datasets is not a measurement of a complete application’s reliability.

Similarly, evaluation on multiple datasets does not establish transfer without retraining. The authors train with dataset-specific settings and describe separate task evaluations. Their evidence supports architectural usefulness across these experiments, not an inference that a trained network automatically generalizes to an unseen domain.

The reported mIoU improvements are aggregate results. They do not by themselves explain which categories benefit most, whether rare classes improve consistently, or how errors are distributed across scene structures. The narrative’s visual examples help make the mechanism concrete but cannot replace a complete category-level error analysis.

The central context claim is supported by ablation and effective-receptive-field visualization. Even so, the experiment does not separately determine which distant objects are necessary for each correction. The desk example shows useful contextual influence in a selected case. It does not demonstrate a general rule linking each semantic category to a required set of distant neighbors.

The final system combines several changes. The component ablations provide meaningful evidence of their contributions, but complete comparisons against earlier systems still include differences in architecture and training beyond stratification. The headline benchmark advantages should therefore be attributed to the completed method.

#### Efficiency has an implementation boundary

The memory result is specific to the authors’ implementation comparison. It shows that their pair-based execution avoids substantial waste relative to a vanilla approach. It does not establish the same saving against every alternative sparse representation or on every hardware platform.

The implementation also uses dedicated CUDA kernels for its principal operations. That is an important part of how intermediate memory is controlled. Reproducing the architecture with generic padded operations would not automatically reproduce the implementation result.

Memory complexity describes growth in stored interactions, but it is not a complete runtime account. Pair construction, sampling, grouping, interpolation, and kernel execution also contribute work. The paper’s claim of economical wider context is supported by its design and reported measurements, but an application-specific latency conclusion would require additional measurements.

The initial KPConv is described as adding only a small fraction of total FLOPs. That supports the affordability of this component in the reported architecture. It does not mean that every proposed local preprocessing operator would have the same cost or that FLOPs alone determine practical execution time.

#### Robustness remains bounded by the tests

The perturbation study covers defined rotations, translations, scales, permutation, and jitter. It gives evidence of stability under those changes. It does not establish robustness against every form of missing data, altered sensor behavior, unfamiliar scene composition, or other distribution change.

The improvement under a particular rotation is especially easy to overread. It demonstrates that the evaluated score can rise under that condition. It does not prove exact rotational invariance, and it does not show that rotation is a general performance-enhancement procedure.

The suggested advantage of standard multi-head attention over Point Transformer’s specialized operators also remains unresolved as a causal explanation. Establishing that claim more directly would require controlling the other architectural and training differences. The paper’s comparison establishes a robustness difference between the evaluated systems.

#### The transferable ideas still need new evidence

The paper’s principles are useful beyond the exact network, but their transfer should be separated from the demonstrated result. Dense local access plus sparse distant access is an architectural pattern. Its success in another domain would depend on how locality, distance, and representative sampling are defined there.

The same caution applies to Mova. Spatial coordinates make the source paper’s neighborhoods and relative displacements concrete. Language does not inherit those definitions simply by using the same attention vocabulary. A language-system adaptation would need its own selection rule, evaluation, and accounting of memory and computation.

These boundaries do not weaken the paper’s main contribution. They identify its demonstrated scope: a point-based segmentation architecture in which selective wider attention, stronger initial features, contextual geometry, and an implementation adapted to irregular groups work effectively together.

### What came after

No later citing works are identified in the available record for this discussion. It would therefore be premature to describe a documented succession of architectures adopting, modifying, or replacing Stratified Transformer’s mechanisms.

The paper does leave a clear set of ideas that later research could examine. One concerns the allocation of attention: preserve dense access where fine geometry matters and spend a smaller budget on farther context. Another concerns feature preparation: establish a useful local representation before estimating broader relationships. A further direction is to make relative structure interact with content instead of treating position as a fixed independent bias.

Its implementation also makes an enduring research question concrete. Irregular data need not be forced into a padded layout whose size is determined by the most crowded group. Explicit interaction pairs provide another way to organize computation, but their usefulness elsewhere depends on the cost of constructing and processing those pairs.

Those are directions opened by the paper, rather than claims about subsequent publications. The established contribution remains the combination tested here: a Transformer that retains point-level geometry, extends contextual access through stratified keys, and supports that architecture with local initialization, contextual position encoding, and memory-conscious execution.

## Cite

Cite as Xin Lai, Jianhui Liu, Li Jiang, Liwei Wang, Hengshuang Zhao, Shu Liu, Xiaojuan Qi and Jiaya Jia. 2022. Stratified Transformer for 3D Point Cloud Segmentation. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

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

```bibtex
@inproceedings{lai2022stratified,
  title = {{Stratified Transformer for 3D Point Cloud Segmentation}},
  author = {Xin Lai, Jianhui Liu, Li Jiang, Liwei Wang, Hengshuang Zhao, Shu Liu, Xiaojuan Qi and Jiaya Jia},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00831},
  eprint = {2203.14508},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr52688.2022.00831}
}
```

> 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)
