---
title: Parallel Box Decoding (PBD)
url: https://www.emergentmind.com/topics/parallel-box-decoding-pbd
type: topic
---

# Parallel Box Decoding (PBD)

Parallel Box Decoding (PBD) is a domain-specific term used in several strands of recent arXiv literature for decoding schemes that replace fine-grained sequential decisions with larger, box-structured or block-structured units that can be processed in parallel. In vision-language grounding, PBD denotes decoding bounding boxes and points as atomic geometric units rather than as serialized coordinate tokens, as introduced by "LocateAnything: Fast and High-Quality Vision-Language Grounding with Parallel Box Decoding" [2605.27365]. In MIMO detection, the same acronym denotes a hardware-friendly realization of Box Decoding that searches fixed candidate boxes around a zero-forcing estimate and applies deterministic, sort-free pruning [2512.00653]. Related formulations appear in "Blockwise Parallel Decoding for Deep Autoregressive Models" [1811.03115] and in "\(\ell_p\)-Box Decoding of LDPC Codes" [1711.10767]. A plausible unifying interpretation is that these methods all seek to shorten the critical sequential path by aligning the decoding unit with the underlying structure of the problem.

## 1. Terminological scope and major usages

In the cited literature, PBD is not a single canonical algorithm. It denotes distinct methods in vision-language modeling, wireless detection, sequence generation, and coding theory.

| Domain | Meaning of PBD | Representative paper |
|---|---|---|
| Vision-language grounding and detection | Parallel Box Decoding of atomic geometric blocks | [2605.27365] |
| MIMO detection | Parallel Box Decoding as a parallel realization of Box Decoding with sort-free pruning | [2512.00653] |
| Autoregressive generation | Blockwise parallel decoding of future tokens with longest-prefix validation | [1811.03115] |
| LDPC decoding | \(\ell_p\)-box decoding with distributed ADMM updates | [1711.10767] |

The diversity of usage matters because the term can otherwise be mistaken for a single technique transferable without modification across domains. In practice, each formulation defines its own decoding unit, factorization, and hardware or algorithmic objective. In vision-language grounding, the atomic unit is a box or point. In MIMO detection, it is a small QAM candidate box centered at a ZF-derived reference. In autoregressive generation, it is a block of future tokens. In LDPC decoding, the “box” is part of an exact continuous reformulation of binary constraints.

## 2. Geometric PBD in vision-language grounding

In LocateAnything, PBD is introduced to address a specific mismatch in vision-language models that formulate grounding and detection as a coordinate-token generation problem [2605.27365]. Standard systems serialize \(2\text{D}\) geometry into \(1\text{D}\) text tokens, such as textual digits like “1024” emitted as “1”, “0”, “2”, “4”, or coordinate tokens emitted as \(x_1 \rightarrow y_1 \rightarrow x_2 \rightarrow y_2\). The reported limitations are geometric incoherence, because the four coordinates of a box are decoded largely independently; a sequential bottleneck, because token-by-token decoding increases latency and reduces throughput; and the inadequacy of structure-agnostic multi-token prediction, because arbitrary token grouping is misaligned with box geometry and can induce spurious dependencies.

PBD replaces this token-level view with block-aligned decoding. Geometric elements—bounding boxes and points—are treated as atomic units, and the full set of coordinates is predicted in a single parallel step. A block \(b\) is a fixed-length unit with \(L=6\) that includes structural tokens such as \(\langle box\rangle\) and \(\langle/box\rangle\) together with the four quantized coordinates. Unoccupied positions are padded with \(\langle null\rangle\) for uniform tensor shapes. The paper attributes intra-box geometric coherence to bidirectional attention across tokens within the same block and to box-aligned supervision, in which blocks are defined per box rather than as arbitrary token chunks.

The formulation distinguishes several functional block types: semantic block, box block, negative block, and end block. The semantic block carries identity or text semantics and may spill across multiple blocks. The box block contains the four discretized coordinates. The negative block provides an explicit “no object” signal to reduce hallucinations. The end block marks generation termination.

LocateAnything uses corner coordinates for boxes. Let \(B=(x_1,y_1,x_2,y_2)\). Coordinates are normalized to \([0,1000]\) and discretized into tokens, with the illustrative discretization
$$
x' = \mathrm{round}(1000 \cdot x / W), \qquad y' = \mathrm{round}(1000 \cdot y / H),
$$
where \(W,H\) are image width and height. Standard token-by-token decoding factorizes as
$$
p(y \mid I,T) = \prod_{i=1}^{M} p(t_i \mid t_{<i}, I, T),
$$
where \(I\) is the image and \(T\) is the text query. PBD instead factorizes at block level:
$$
P(B \mid Z,E) = \prod_{i=1}^{N} P(b_i \mid b_{<i}, Z, E),
$$
where \(Z=\mathrm{Encoder}(I)\) are visual tokens and \(E\) is the text query. Within an active block, masked positions are predicted simultaneously, and the intra-block attention is bidirectional. If the block size equals \(1\), the PBD formulation reduces to standard NTP.

## 3. Architecture, supervision, and large-scale data in LocateAnything

LocateAnything is implemented as a native-resolution VLM with a Moon-ViT vision encoder, a Qwen2.5 LLM language decoder, and an MLP projector bridging visual tokens \(Z\) to the language decoder [2605.27365]. Coordinates are discretized to \([0,1000]\) tokens and organized into fixed-length blocks with structural tokens. Boxes and points are therefore represented as atomic units via box or point blocks. The decoding pattern is non-autoregressive within a block and semi-autoregressive across blocks: block-causal attention preserves stable inter-block dependencies, reduces duplicates and misses, and maintains KV cache compatibility.

The training objective is a dual formulation over the same ground truth:
$$
L = L_{ntp} + L_{mtp}.
$$
Both terms are cross-entropy losses over discrete token predictions in the NTP and block-wise MTP streams. The paper also emphasizes design-level constraints rather than regression losses: structural tokens constrain syntax and box structure; the attention mask enforces causal inter-block dependence and bidirectional intra-box coherence; and negative block supervision teaches abstention when a query has no target. It explicitly does not report using box regression losses such as \(L1\), Smooth \(L1\), IoU, GIoU, or DIoU, and it does not use Hungarian or bipartite matching. Nor does it use DETR-style set prediction. Instead, a deterministic box ordering policy is used, with X–Y corner order reported as best in ablation.

A second pillar of the method is LocateAnything-Data, curated by a scalable data engine. The dataset statistics are \(12\)M unique images, \(138\)M natural-language queries, and \(785\)M annotated bounding boxes. The task mixture by queries is reported as general object detection \(66.9\%\), GUI grounding \(16.5\%\), referring comprehension \(7.3\%\), text localization \(3.6\%\), document/scene layout \(3.5\%\), and point-based localization \(2.2\%\). For labeled detection datasets such as OpenImages and Objects365, category labels are used to prompt Qwen3-VL and synthesize rich queries, while Molmo predicts candidate points and points inside corresponding ground-truth boxes are retained as reliable supervision. For unlabeled images such as Unsplash and SA-1B, Qwen3-VL generates diverse queries directly; either Molmo is prompted for points followed by SAM 3 to produce boxes, or Rex-Omni predicts boxes directly; final post-verification by Qwen3-VL filters inconsistent boxes. Negative samples are explicitly constructed across domains, with the example of \(21\)M negatives in Detection.

## 4. Inference modes, complexity, and empirical frontier in LocateAnything

LocateAnything reports three inference modes: Slow Mode, which uses NTP token-by-token for maximum stability; Fast Mode, which uses MTP PBD to predict full boxes or points per block in one parallel step; and Hybrid Mode, which defaults to PBD and falls back to NTP if format irregularity or spatial ambiguity is detected [2605.27365]. The ambiguity trigger is defined by two simultaneous conditions: top-1 coordinate token probability \(<0.7\), and the max–min range among top-5 coordinate tokens \(>80\) in \([0,1000]\) space. During an MTP step, the current block uses bidirectional intra-block attention; after prediction, only committed tokens are retained in the KV cache, while mask tokens and duplicated anchors are evicted. The reported decoding setup uses BF16 precision, block size \(n\_\mathrm{future}=6\), nucleus sampling with temperature \(0.7\), top-\(p\) \(0.9\), and repetition penalty \(1.1\).

The complexity claim is explicit. If each box requires \(L_b\) tokens in NTP, autoregressive decoding takes \(O(\sum L_b)\) sequential steps, and throughput degrades linearly with the number of boxes. PBD reduces per-box steps to \(O(1)\) by predicting all masked positions in a single block step. As target boxes grow from \(20\) to \(300\), NTP latency increases sharply, whereas PBD generation time increases slightly, and throughput rises from \(\sim 12\) BPS to \(\sim 25\) BPS.

The single-H100, batch-size-\(1\) throughput numbers place LocateAnything on a distinct speed–accuracy frontier. LocateAnything-3B Hybrid is reported at \(12.7\) BPS, Rex-Omni-3B at \(5.0\) BPS, and Qwen3-VL-8B at \(\sim 1.0\)–\(1.1\) BPS. In ablation, Fast Mode reaches up to \(16.9\) BPS, while Hybrid keeps most of the speed gain and preserves accuracy. On detection, the reported LVIS F1 mean is \(50.7\) for LocateAnything-3B versus \(46.9\) for Rex-Omni-3B, and LVIS F1@IoU\(=0.95\) is \(31.1\) versus \(20.7\). On COCO, F1 mean is \(54.7\) versus \(52.9\), and F1@IoU\(=0.95\) is \(19.3\) versus \(15.9\). On dense detection, Dense200 F1 mean is \(58.7\) versus \(58.3\), and VisDrone F1 mean is \(39.9\) versus \(35.8\). On document layout and OCR, DocLayNet F1 mean is \(76.8\) versus \(70.7\), M6Doc F1 mean is \(70.1\) versus \(55.6\), and TotalText F1 mean is \(43.3\) versus \(40.6\). On GUI grounding, ScreenSpot-Pro average is \(60.3\). On referring expression comprehension, HumanRef F1 mean is \(78.7\), and RefCOCOg test F1 mean is \(77.6\). On pointing tasks, COCO F1@Point is \(83.9\), LVIS \(76.6\), Dense200 \(87.6\), and RefCOCOg test \(91.0\).

The ablations clarify what is specific to PBD rather than to coordinate quantization alone. In coordinate representation, NTP Textual gives F1 \(49.1\) at \(1.3\) BPS, NTP Quantized gives F1 \(50.1\) at \(3.9\) BPS, PBD Slow gives F1 \(52.1\) at \(3.9\) BPS, PBD Fast gives F1 \(49.6\) at \(16.9\) BPS, and PBD Hybrid gives F1 \(51.6\) at \(13.2\) BPS. Structure-agnostic MTP methods identified as SDLM/Block Diffusion show lower F1, reported as \(\le 46.5\), with throughput \(\le 6.7\) BPS. Joint training improves Slow Mode F1 from \(50.1\) to \(52.1\), and on Qwen3-VL-4B the Hybrid re-instantiation improves COCO F1 from \(50.8\) to \(52.0\) while throughput increases from \(2.8\) to \(9.4\) BPS.

## 5. PBD in MIMO detection

In "Box Decoding with Low-Complexity Sort-free Candidate Pruning for MIMO Detection", PBD refers to a hardware-friendly realization of Box Decoding that exploits fixed-size, ZF-centered candidate boxes and deterministic, sort-free pruning rules to process candidate clusters concurrently [2512.00653]. The system model is
$$
y = Hx + n,
$$
with \(y \in \mathbb{C}^{N_r}\), \(x \in \mathcal{S}^{N_t}\), and \(H \in \mathbb{C}^{N_r \times N_t}\). After QR decomposition \(H=QR\), the transformed observation is
$$
x' = Q^H y = R s + w.
$$
The partial Euclidean distance recursion is
$$
d_i = d_{i+1} + \left\| x_i - \sum_{j=i+1}^{N_t} r_{i,j} \hat{s}_j - r_{i,i} \hat{s}_i \right\|^2.
$$

The defining idea is that Box Decoding forms a fixed-size “box” of constellation points around a ZF-centered reference \(a_i\), with grid spacing \(\Delta q\), and that pruning inside each box can be done without global sorting. For a candidate \(\hat{s}_{i,b}\) in the layer-\(i\) box cluster, the PED increment simplifies to
$$
d_{i,b} = d_{i+1} + r_{i,i}^2 \| a_i - \hat{s}_{i,b} \|^2.
$$
Because \(d_{i+1}\), \(a_i\), and \(r_{i,i}\) are shared within a cluster, local displacement determines ordering. The paper then introduces three deterministic pruning devices: a QAM-grid symmetry rule, a relative displacement rule around the ZF-centered reference, and sort-free local ordering with early rejection bounds. Metric 1 chooses the local minimum using a few sign checks, while Metric 2 fully orders the four nearest neighbors without computing full squared distances.

These local rules define three pruning strategies. Single-Step Candidate Pruning (SCP) selects exactly one child per parent box cluster and realizes maximal parallelism. Iterative Candidate Pruning (ICP) treats each box cluster as a pre-ordered source list and uses a small multiway merge to pick the \(K\) globally best children across clusters. Hybrid SICP\(_m\) applies ICP only in the first \(m\) layers and then reverts to SCP. The hardware mapping is explicitly pipeline-oriented: QR preprocessing and observation transform, per-layer concurrent processing of surviving parents, local pruning units, PED updates only for survivors, and lightweight buffering of \((d_{i+1}, a_i, r_{i,i})\) and small queues.

The paper’s complexity results are stated in terms of visited nodes per layer. With fixed \(K\), K-best has \(\mathcal{P}_i=|\mathcal{A}|K\), DKB has \(\mathcal{P}_i=3K-2\), ICP has \(\mathcal{P}_i=2K-1\), and SCP has \(\mathcal{P}_i=\mathcal{B}\). For \(K=\mathcal{B}=4\), the totals reported are: for \(4 \times 4\) MIMO, SCP \(16\), ICP \(22\), DKB \(40\); for \(8 \times 8\), SCP \(32\), ICP \(50\), DKB \(80\). The paper summarizes these as about \(60\%\) reduction for Box-SCP relative to DKB and about \(37.5\%\) reduction for Box-ICP, with savings independent of \(|\mathcal{A}|\). The BER trade-off is also explicit: for \(4 \times 4\) MIMO at BER \(=10^{-3}\), Box-SCP incurs approximately \(3\) dB, \(1\) dB, and \(0.7\) dB SNR losses at 4-QAM, 16-QAM, and 64-QAM; Box-SICP\(_1\) closes most of the gap and approaches K-best. For \(8 \times 8\) MIMO, the corresponding Box-SCP losses are approximately \(5\) dB, \(2\) dB, and \(1.3\) dB, while one ICP layer improves by approximately \(3.5\) dB, \(1.2\) dB, and \(0.7\) dB.

## 6. Blockwise parallel decoding as a precursor in autoregressive generation

"Blockwise Parallel Decoding for Deep Autoregressive Models" studies a different setting but provides a closely related template: propose multiple future outputs in parallel, then validate the longest consistent prefix [1811.03115]. For an input \(x=(x_1,\ldots,x_n)\) and output \(y=(y_1,\ldots,y_T)\), the standard autoregressive model is
$$
p(y \mid x) = \prod_{t=1}^{T} p(y_t \mid y_{<t}, x).
$$
Greedy decoding commits one token per iteration. The proposed scheme chooses a block size \(b\), predicts \((\tilde y_{t+1},\ldots,\tilde y_{t+b})\) in parallel, and then verifies the largest \(k \in \{0,\ldots,b\}\) such that each proposed token matches the greedy choice of the base scoring model conditioned on the already accepted prefix.

Under exact-match validation, the output is guaranteed to be identical to greedy decoding. The expected accepted prefix length \(K\) determines the iteration reduction, with
$$
\mathbb{E}[K] = \sum_{i=1}^{b} \Pr(K \ge i),
$$
and the expected number of decoding iterations approximately \(T/\mathbb{E}[K]\). With a combined scoring and proposal head, the model-call speedup is approximately \(\mathbb{E}[K]\). The measured results show up to approximately \(3.3\times\) wall-clock speedup in machine translation and approximately \(4.0\times\) in image super-resolution. On WMT14 En–De, the fine-tuned and distilled setting with \(b=8\) reports BLEU \(27.88\) with wall-clock speedup approximately \(3.31\times\), versus distilled greedy BLEU \(29.11\). On CelebA image super-resolution, the best setting reports wall-clock speedup approximately \(3.98\times\) at \(\mathbb{E}[K]\approx 5.25\), with human evaluation indicating comparable or slightly preferred output quality.

The relation to later PBD terminology is conceptual rather than literal. The parallel unit in this work is a future token block, not a geometric box or a QAM candidate box. Nevertheless, it formalizes a recurring pattern: exploit hardware-parallel scoring inside a block, retain a causal interface between committed blocks, and use a verification or backoff rule to preserve stability.

## 7. \(\ell_p\)-box LDPC decoding and broader distinctions

In "\(\ell_p\)-Box Decoding of LDPC Codes", the term “box decoding” refers to an exact continuous surrogate for binary constraints, combined with a distributed ADMM realization that updates variable nodes and check nodes in parallel [1711.10767]. For an LDPC code with parity-check matrix \(H \in \{0,1\}^{m \times n}\), the decoder minimizes \(\gamma^T x\) subject to code constraints. The key reformulation replaces \(x \in \{0,1\}^n\) with
$$
x \in [0,1]^n \cap \left\{x : \left\|x - \tfrac{1}{2}\mathbf{1}\right\|_p = \frac{n^{1/p}}{2}\right\}.
$$
For \(p \ge 1\), this intersection equals \(\{0,1\}^n\). The practical method uses \(p=2\), because projection onto the \(\ell_2\) sphere is closed-form.

The ADMM splitting introduces an auxiliary \(y\) for the sphere constraint and \(z_j\) copies for local parity-polytope constraints. The updates then decouple naturally: variable-node updates are componentwise and depend only on local check neighborhoods; check-node updates project independently onto the parity polytope; and the \(y\)-update is a single Euclidean projection onto the sphere
$$
y^{k+1} = c + r \cdot \frac{v-c}{\|v-c\|_2},
$$
with \(c=\tfrac{1}{2}\mathbf{1}\) and \(r=\sqrt{n}/2\). The paper describes this as parameter-free at the modeling level because it eliminates the penalty weight \(\alpha\) used in penalized LP decoding. Reported runtime on CPU is \(0.018\) s at SNR \(=2.0\) dB and \(0.012\) s at SNR \(=2.5\) dB for \(\ell_2\)-box ADMM, versus BP at \(0.027\) s and \(0.019\) s and penalized \(\ell_2\)-ADMM at \(0.010\) s and \(0.007\) s. The reported WER behavior shows lower WER than BP and penalized ADMM, especially as SNR increases and error floors become prominent.

Across these literatures, one recurring misconception is to equate PBD with generic parallel decoding. The papers do not support that simplification. In LocateAnything, structure-agnostic MTP is explicitly reported as insufficient because arbitrary token grouping is misaligned with box geometry. In MIMO detection, the defining property is not merely parallelism but sort-free, comparator-based local pruning around ZF-centered candidate boxes. In blockwise autoregressive decoding, correctness under exact validation comes from longest-prefix verification against the base model. In LDPC decoding, the “box” is a constraint set rather than a generated object. PBD is therefore better understood as a family of structurally aligned parallel decoding strategies rather than as a single algorithmic primitive.

Source: https://www.emergentmind.com/topics/parallel-box-decoding-pbd