---
title: Dynamic Tree Scan in UIS-Mamba
url: https://www.emergentmind.com/topics/dynamic-tree-scan-dts
type: topic
---

# Dynamic Tree Scan in UIS-Mamba

Dynamic Tree Scan (DTS) is not a single, universally fixed term across the literature. In the sources considered here, its explicit use as **Dynamic Tree Scan** appears in the computer-vision method **UIS-Mamba**, where DTS is a module for underwater instance segmentation that dynamically offsets and scales patches, constructs a weighted \(4\)-connected graph, and uses a minimum spanning tree (MST) to guide scanning within a Mamba-based backbone [2508.00421]. The acronym is simultaneously overloaded elsewhere, including **Dyck tiling strip bijection**, **Dynamic Transaction Storage**, **Diffusion Tree Sampling**, **Decoding Tree Sketching**, and **Digital Twin Synchronization**, so any technical discussion of DTS requires immediate contextual disambiguation [1910.08913] [2312.14038] [2506.20701] [2511.00640] [2606.03617].

## 1. Terminology and disambiguation

The acronym **DTS** has multiple established meanings in recent work. In the material examined here, only one source uses the phrase **Dynamic Tree Scan** as the formal name of a method: the UIS-Mamba paper on underwater instance segmentation [2508.00421]. Other works use the same acronym for unrelated concepts in combinatorics, blockchain systems, large-model inference, diffusion-model alignment, and digital twins.

| Meaning of DTS | Context | Paper |
|---|---|---|
| Dynamic Tree Scan | Underwater instance segmentation with Mamba | [2508.00421] |
| Dyck tiling strip bijection | Combinatorics of Dyck tilings | [1910.08913] |
| Dynamic Transaction Storage | Blockchain transaction placement | [2312.14038] |
| Diffusion Tree Sampling / Search | Inference-time alignment of diffusion models | [2506.20701] |
| Decoding Tree Sketching | Large reasoning model decoding | [2511.00640] |
| Digital Twin Synchronization | 6G semantic twin synchronization, as SA-DTS | [2606.03617] |

This terminological overlap matters because several of these methods also involve trees, dynamic updates, or scan-like procedures, yet they address different mathematical objects. The UIS-Mamba usage is a vision-specific module name rather than a general umbrella term for all dynamic tree traversal methods. This suggests that, at present, “Dynamic Tree Scan” is best treated as a local method designation within a particular segmentation architecture rather than as a settled cross-domain algorithmic family.

## 2. Problem setting in underwater instance segmentation

In UIS-Mamba, DTS is introduced to address a specific weakness of applying Mamba-style state space models to underwater instance segmentation. The paper argues that existing vision-Mamba variants rely on **fixed patches**, even when they alter scan order. According to that account, merely changing raster, directional, or windowed traversal does not resolve the underlying problem of **semantic cutoff due to patch-fixed chunking in the proximity region** [2508.00421].

The underwater setting amplifies this issue. The cited challenges are **severely underwater color distortion**, **blurred instance boundaries**, **discontinuous object interiors**, and **complex background interference**. In that regime, a rigid patch may mix foreground and background or split a semantically coherent object part across neighboring tokens before sequential modeling even begins. DTS is intended to preserve the **internal continuity of the instance objects** by allowing patches to **dynamically offset and scale**, so that token support aligns more closely with object structure rather than with a fixed image grid [2508.00421].

The module is embedded in **UIS-Mamba**, described as the first Mamba-based underwater instance segmentation model. Within that architecture, DTS supplies an adaptive scan structure, while a companion module, **Hidden State Weaken (HSW)**, suppresses interference from complex underwater backgrounds through an **Ncut-based hidden state weakening mechanism**. The backbone outputs are then passed to an **FPN** and to the same detection and segmentation heads as **WaterMask** [2508.00421].

## 3. Core mechanism and architectural role

DTS operates in two named stages: **Adaptive Graph Deformation** and **Dynamic Graph Pruning**. The starting point is a patch set \(\mathcal{P} \in \mathbb{R}^{H \times W \times C}\), over which a **4-connected graph** is built, with one patch per node and \(4\)-neighborhood adjacency [2508.00421].

In the deformation stage, each patch predicts a **dynamic offset** \((\Delta x, \Delta y)\) and **dynamic scaling** \((\Delta w, \Delta h)\). The stated purpose is to move the patch center toward more relevant local content and to resize the patch so that it better captures different parts of underwater instances. The deformed patch \(\tilde{\mathbf p}\) is then generated with a bilinear interpolation kernel \(G(\cdot)\), which the paper says preserves gradient continuity at object edges [2508.00421].

In the pruning stage, DTS computes edge weights on the deformed graph using both **Euclidean distance** between deformed patch centers and **cosine similarity** between deformed patch features, with a learnable tradeoff parameter \(\alpha\). From this weighted graph, the method extracts a **minimum spanning tree** using a **Contractive Boruvka algorithm**. The paper characterizes this tree as the structure that guides scanning and endows the state space model with a **dynamic local receptive field** [2508.00421].

Architecturally, DTS is not a post-processing routine. It is part of the backbone-side **Dynamic Tree Topology SSM** inside UIS-Mamba. Its graph and MST are also reused by HSW for graph partitioning and hidden-state suppression, so the tree structure is both a scan guide and a substrate for later foreground-background separation [2508.00421].

## 4. Mathematical formulation

The reported formulation for the deformation parameters is

\[
(\Delta x, \Delta y) = \tanh\!\big(\mathbf W_{\text{offset}} f_p(\mathbf p)\big), \qquad
(\Delta w, \Delta h) = \operatorname{Softplus}\!\big(\mathbf W_{\text{scale}} f_p(\mathbf p) + \mathbf b\big),
\]

where \(f_p(\mathbf p)\) is a dense prediction function over a patch, \(\mathbf W_{\text{offset}}\) and \(\mathbf W_{\text{scale}}\) are learnable projections, and \(\mathbf b\) is a bias term [2508.00421]. The transformed patch is then written as

\[
\tilde{\mathbf p} = G\!\left( \mathbf p(p_x+\Delta x,\; p_y+\Delta y);\; \Delta w,\Delta h \right),
\]

with \((p_x,p_y)\) the original patch center and \(G(\cdot)\) the bilinear interpolation operator [2508.00421].

The dynamic edge weight between neighboring deformed patches is reported as

\[
w_{ij} =
\alpha \cdot \left\|\tilde{\mathbf p}_i^c - \tilde{\mathbf p}_j^c\right\|_2 +
(1-\alpha)\cdot \operatorname{Cosine}(\tilde{\mathbf p}_i,\tilde{\mathbf p}_j),
\]

where \(\tilde{\mathbf p}_i^c\) and \(\tilde{\mathbf p}_j^c\) denote deformed patch centers and \(\alpha\in[0,1]\) balances geometry and semantics [2508.00421]. The tree-selection objective is written as

\[
\mathcal T = \operatorname{MST}(\mathcal G) =
\arg\min_{\mathcal T \subseteq \mathcal G} \sum_{e_{ij}\in \mathcal T} \exp(w_{ij}),
\]

with \(\mathcal G\) the weighted deformed graph [2508.00421].

The broader Mamba-style state update used in the architecture is given in standard selective state space form as

\[
\mathbf{h}_i = \mathbf{A}_i \mathbf{h}_{i-1} + \mathbf{B}_i \mathbf{x}_i, \qquad
\mathbf{y}_i = \mathbf{C}_i \mathbf{h}_i + \mathbf{D} \mathbf{x}_i.
\]

However, the paper does **not** provide an explicit traversal rule for linearizing the MST into a scan sequence, nor does it give a DTS-specific asymptotic complexity analysis. The exact stage-by-stage placement of DTS across backbone levels is likewise not enumerated. These omissions matter because the module name foregrounds “scan,” yet the published description is more explicit about **patch deformation**, **graph weighting**, and **MST construction** than about the final tree-traversal kernel itself [2508.00421].

## 5. Empirical performance and ablation evidence

The clearest isolated evidence for DTS comes from the UIIS ablation reported for the Mamba backbone baseline. With **Mamba only**, the paper reports \(mAP = 27.1\), \(AP_{50} = 45.1\), and \(AP_{75} = 29.3\). Adding **DTS** raises these values to \(28.9\), \(46.2\), and \(30.9\), respectively. In the same ablation, **HSW only** yields \(27.5\), \(45.6\), and \(29.8\), and combining both modules gives \(29.4\), \(46.5\), and \(31.3\) [2508.00421].

A more granular DTS ablation decomposes the module into offset, scale, and dynamic-weight components. Relative to the \(27.1\) \(mAP\) baseline, **offset only** yields \(27.7\), **scale only** yields \(27.5\), **offset + scale** yields \(28.4\), and **offset + scale + dynamic weights/MST** yields \(28.9\). The paper interprets this as evidence that offset and scale are complementary and that the spatial-semantic weighting step contributes additional improvement [2508.00421].

At the full-system level, UIS-Mamba is reported to achieve state-of-the-art performance on both **UIIS** and **USIS10K** while maintaining a low number of parameters and computational complexity. Against **WaterMask R-CNN (ResNet-50)**, the reported numbers are \(26.4\) versus \(29.4\) \(mAP\) on UIIS, \(58.3\) versus \(62.2\) \(mAP\) on class-agnostic USIS10K, and \(37.7\) versus \(42.1\) \(mAP\) on multi-class USIS10K [2508.00421]. Those gains are attributable to UIS-Mamba as a whole rather than to DTS alone, but the component studies identify DTS as a substantial part of the improvement.

The qualitative discussion associates the method with better recovery of hidden or difficult instances, more accurate boundaries and details, and stronger delineation of salient shapes for categories such as aquatic plants, reefs, wrecks, fish, and starfish. No dedicated visualization of learned tree traversals or MST scan paths is described in the provided material, so the qualitative evidence is presented mainly at the segmentation-output level rather than at the internal graph-construction level [2508.00421].

## 6. Scope, related methods, and limitations

DTS in UIS-Mamba should not be conflated with other “dynamic tree” methods in the broader literature. It is distinct from dynamic-search data structures for tree-like partial orders such as the **Line-Leaf Tree** [1010.1316], from batch-parallel dynamic-tree query frameworks based on **RC trees** [2506.16477], from latent-state **Differentiable Tree Search** in reinforcement learning [2401.11660], and from inference-time search over diffusion trajectories in **Diffusion Tree Sampling** and **Diffusion Tree Search** [2506.20701]. Those methods all involve trees, traversal, or dynamic updates, but they target different objects: ordered sets, forests under edge updates, latent planning trees, or diffusion chains rather than adaptive patch graphs for visual state-space modeling.

It is also important not to confuse DTS with unrelated acronym expansions such as **Dynamic Transaction Storage** in blockchain [2312.14038], **Dyck tiling strip bijection** in combinatorics [1910.08913], or **Digital Twin Synchronization** in the 6G semantic communication framework **SA-DTS** [2606.03617]. The acronym collision is especially strong because some of those works also describe graph- or tree-like update mechanisms, but they do not define the UIS-Mamba module.

Within its own paper, DTS has visible limitations. The published description does not specify the final scan traversal over the MST, does not provide a DTS-specific complexity derivation, and does not introduce a separate supervision or regularization loss for deformation parameters. The edge-weight formula also leaves an implementation-level ambiguity because the method minimizes an MST objective while using cosine similarity directly in the reported weight expression. These are limitations of specification rather than of empirical outcome, but they delimit how precisely the module can be reconstructed from the text alone [2508.00421].

More broadly, the present evidence suggests that Dynamic Tree Scan is best understood as a **vision-specific adaptive tokenization and tree-guided scan mechanism** for underwater segmentation. It is “dynamic” because patch geometry and graph topology depend on the input, and “tree” because the resulting scan structure is an MST rather than a fixed raster order. It is not, in the provided literature, a general-purpose name for scan statistics, dynamic-tree data structures, or tree search across domains.

Source: https://www.emergentmind.com/topics/dynamic-tree-scan-dts