---
title: Inter-Voxel Spatial Diversity Pruning
url: https://www.emergentmind.com/topics/inter-voxel-spatial-diversity-pruning
type: topic
---

# Inter-Voxel Spatial Diversity Pruning

Inter-Voxel Spatial Diversity Pruning (SDP) is a subset selection strategy for reducing the number of visual tokens in high-dimensional multimodal Transformer models, with a particular focus on preserving the global spatial structure and semantic coverage of scenes under computational constraints. SDP explicitly enforces spatial diversity among selected tokens or voxel groups, preventing redundancy and local over-sampling that arise in naïve importance-based or clustering methods. It primarily targets scenarios such as 3D scene understanding in spatial videos or dense 2D/3D vision-language tasks where visual tokens are spatially and semantically structured across a grid or voxelized representation [2604.18260].

## 1. Mathematical Formulation of Inter-Voxel Pruning

SDP operates on a set $V = \{1,\dots,M\}$ of occupied voxels in a 3D (or spatially discretized 2D) scene. Each voxel $k$ contains a set of visual tokens $T_k$, $|T_k| = N_k$, and the total number of tokens before pruning is $N = \sum_{k=1}^M N_k$. Given a global token budget $B$, the aim is to maximize a spatially distributed relevance function. Binary variables $x_k \in \{0,1\}$ indicate which voxels are retained, subject to the constraint:
\[
\sum_{k=1}^M N_k x_k \le B,
\]
with objective function
\[
\max_{x \in \{0,1\}^M} \mathcal{J}(x) = \sum_{k=1}^M a_k x_k,
\]
where $a_k$ denotes the global relevance score of voxel $k$. This formulation addresses the challenge that high-attention voxels, often spatially clustered, must not be oversampled at the expense of global scene representation [2604.18260].

## 2. Geometry-Aware Global Attention and Cross-Voxel Relevance

Cross-voxel relevance is quantified using geometry-aware global self-attention, such as that produced by a 3D geometry encoder (e.g., VGGT). Token embeddings $G \in \mathbb{R}^{N \times d}$ generate queries, keys, and values, and the global attention matrix
\[
A = \mathrm{softmax}(QK^\top / \sqrt{d}) \in \mathbb{R}^{N \times N}
\]
is computed over all visual tokens in all voxels. For any pair of voxels $(k, \ell)$, the cross-attention block $A_{k \rightarrow \ell} = A[T_k, T_\ell]$ captures the attention from tokens in $k$ to tokens in $\ell$. The condensed cross-voxel relevance is
\[
a_{k \rightarrow \ell} = \frac{1}{N_k} \sum_{j=1}^{N_k} \sum_{i=1}^{N_\ell} A_{k \rightarrow \ell}(j, i),
\]
and each voxel’s total incoming global relevance is
\[
a_\ell = \sum_{k \ne \ell} a_{k \rightarrow \ell}.
\]
This scalar quantifies the degree to which the remainder of the scene attends to voxel $\ell$ and forms the basis for spatially diverse selection in the pruning algorithm [2604.18260].

## 3. Greedy Iterative Selection Algorithm

Spatial diversity is enforced through an iterative greedy selection process. At each iteration, the algorithm selects a batch of $K$ voxels with the highest residual global attention scores $a_\ell$ among those not yet selected, ensuring that the token budget constraint is not violated. After each selection, scores $a_\ell$ are recomputed among the remaining voxels, with the already-selected voxels effectively suppressing the importance of their spatial neighbors due to mutual attention. The process continues until the token budget is exhausted.

**Pseudocode summary:**

```python
Inputs: V = {1,…,M}; T_k for each k; N_k = |T_k|; A (global attention); B (budget); K (batch size)
Compute A_k_to_l[k, l] for all k, l
Initialize W = set(); budget_used = 0
Compute initial a[l] = sum_{k ≠ l} A_k_to_l[k,l]
while budget_used < B:
    Remain = V \ W
    ΔW = top-K Remain by a[l]
    filter ΔW so that budget_used + sum_{l in ΔW} N_l <= B
    W = W ∪ ΔW; budget_used += sum_{l in ΔW} N_l
    for l in Remain \ ΔW: a[l] = sum_{k in Remain \ ΔW} A_k_to_l[k,l]
return {T_k for k in W}
```

By re-estimating $a_\ell$ after each selection, the algorithm naturally promotes the selection of voxels distributed throughout the scene, reducing the over-representation of spatially or semantically redundant regions [2604.18260].

## 4. Hyperparameter Choices and Empirical Impact

Key hyperparameters include the token budget $B$ (typically specified as a fraction, such as 10% of the total tokens retained for aggressive pruning), batch size $K$ for per-iteration selection, and voxelization granularity $\delta$. Default values empirically validated in [2604.18260] are $\delta \approx 0.1$ m, $K \approx 8$, and intra-voxel pruning ratio $\alpha=50\%$. Diminishing $K$ increases diversity but marginally multiplies runtime, while larger $K$ accelerates but weakens local suppression. For $\leq 10\%$ drop in end-task accuracy with $90\%$ token reduction, these defaults are effective. Finer voxel size increases $M$ for improved spatial sensitivity at moderate computational cost [2604.18260].

## 5. Computational Complexity and Implementation Considerations

The main computational overheads are:

- Global attention matrix computation: $O(N^2 d)$ (incurred by the upstream geometry encoder).
- Extraction and summation of all $A_{k \rightarrow \ell}$: $O(N^2)$, but practical implementations perform per-voxel aggregation with a single-pass block summing, avoiding nested $O(M^2)$ slicing.
- Each iteration: $O(M \log M)$ for sorting, and $O(M^2)$ for re-scoring, which can be incrementally updated.
- Storage: for $M \approx 2000$, the $M \times M$ pre-aggregated relevance matrix occupies $\leq 32$ MB.

Practical recommendations include accumulating per-voxel row and column sums during attention computation and maintaining a residual score vector $a[\ell]$ for incremental updates. Early stopping is beneficial when $B \ll N$. The extra overhead is minor compared to LLM cross-attention layers [2604.18260].

## 6. Relation to Token Pruning in 2D: Hybrid Graph MIS

The 2D analog of SDP is exemplified by D²Pruner [2512.19443], which constructs a hybrid spatial-semantic graph among 2D tokens and applies a Maximal Independent Set (MIS) selection rule. Given a debiased importance score per visual token (removing positional bias through normalization against a prior estimated from random data), the method first selects top importance “pivots,” then conducts MIS-based expansion, guaranteeing non-adjacency in the graph and thus maximizing both semantic and spatial coverage.

D²Pruner's MIS-based procedure achieves,
\[
\max_{s \in \{0,1\}^N} \sum_{i=1}^N s_i I(h_i) \quad \text{s.t. } s_i + s_j \leq 1 \; \forall (i,j),\, \mathcal{S}(i, j) = 1,
\]
where $I(h_i)$ is the debiased importance, and $\mathcal{S}(i,j)$ indicates adjacency in the fused spatial-semantic graph.

Empirically, D²Pruner demonstrates up to $+63.5$ percentage point improvements in fine-grained localization accuracy under extreme pruning compared to competing schemes.

## 7. Empirical Performance and Applicability

Geo3DPruner’s SDP, with $90\%$ pruning of 3D scene tokens, retains $>90\%$ of baseline accuracy on 3D scene understanding tasks, significantly outperforming text-guided or vision-guided pruning methods. In the 2D context, D²Pruner achieves $85.7\%$ (InternVL-2.5-8B, 90% prune) and $85.9\%$ (LLaVA-1.5-7B, 90% prune) on localization, with consistent gains across various token retention levels.

| Retained % | FastV  | DART  | DivPrune | D²Pruner |
|:----------:|:------:|:-----:|:--------:|:--------:|
| 75%        | 85.63  | 95.49 | 95.97    | 98.43    |
| 50%        | 76.37  | 74.33 | 80.96    | 94.71    |
| 25%        | 31.26  | 22.15 | 40.65    | 75.02    |
| 10%        | 19.51  | 20.22 | 35.72    | 75.02*   |

*For InternVL‐2.5-8B at 90% pruning [2512.19443].

Inter-Voxel Spatial Diversity Pruning, both as applied in 3D via SDP [2604.18260] and in 2D via D²Pruner [2512.19443], is a critical advancement ensuring that aggressive token pruning preserves spatial-semantic completeness and downstream reasoning fidelity under strict inference budgets.

Source: https://www.emergentmind.com/topics/inter-voxel-spatial-diversity-pruning