BiVM: Diverse Approaches in AI & Digital Systems
- BiVM is an overloaded term covering diverse constructs in neural networks, quantization methods, computing-in-memory, bidirectional vision models, and bilinear inference.
- In video matting, the approach employs a binarized architecture with elastic shortcuts and a sparse decoder, achieving significant efficiency gains on ARM devices.
- Additional applications include ultra-low-precision quantization for VLMs, asymmetric CiM mapping for distinct analog levels, and bidirectional state-space modeling in vision backbones.
In recent arXiv literature, BiVM is not a single standardized term but an overloaded label applied to several technically unrelated constructs. It appears as the name of an accurate and resource-efficient Binarized neural network for Video Matting, as a shorthand for “BiVM”-style binary and ultra-low-precision post-training quantization in vision-LLMs, as bitline-voltage-based CiM/mapping in digital computing-in-memory, as a bi-directional Vision Mamba formulation via LBMamba and LBVim, and as an expository shorthand for the bilinear Vector AMP family centered on BiG-VAMP (Qin et al., 6 Jul 2025, Wang et al., 23 Sep 2025, Malhotra et al., 2022, Zhang et al., 19 Jun 2025, Akrout et al., 2020). Correct interpretation therefore depends on the surrounding research area, mathematical formalism, and implementation context.
1. Terminological scope and disambiguation
The term is used in multiple communities with distinct expansions and technical referents.
| Usage of “BiVM” | Meaning in the cited work | Representative paper |
|---|---|---|
| Video matting | Binarized neural network for Video Matting | "BiVM: Accurate Binarized Neural Network for Efficient Video Matting" (Qin et al., 6 Jul 2025) |
| Vision-language compression | “BiVM”-style ultra-low-precision PTQ for VLMs | "Bi-VLM: Pushing Ultra-Low Precision Post-Training Quantization Boundaries in Vision-LLMs" (Wang et al., 23 Sep 2025) |
| Digital CiM | bitline-voltage-based CiM/mapping | "ADRA: Extending Digital Computing-in-Memory with Asymmetric Dual-Row-Activation" (Malhotra et al., 2022) |
| Vision SSMs | bi-directional Vision Mamba via LBMamba/LBVim | "LBMamba: Locally Bi-directional Mamba" (Zhang et al., 19 Jun 2025) |
| Bilinear inference | bilinear Vector AMP family, especially BiG-VAMP | "Bilinear Generalized Vector Approximate Message Passing" (Akrout et al., 2020) |
A common source of confusion is to assume that these usages denote variants of one method family. They do not. The shared prefix “Bi” refers to different concepts in different papers: Binarized, bitline-voltage, bi-directional, or bilinear. This suggests that BiVM functions primarily as local shorthand within subfields rather than as a globally stable acronym.
2. BiVM as a binarized network for video matting
In video matting, BiVM is a 1-bit architecture designed for real-time deployment on edge hardware (Qin et al., 6 Jul 2025). The task is to estimate an alpha matte and foreground for a frame given background , following the compositing equation
The paper explicitly targets the failure mode of naïve binarization in lightweight matting networks: encoder representations collapse under the information loss induced by the sign operator, while decoder computation remains dense in prediction-irrelevant regions. The analysis is framed through the information bottleneck objective
with the empirical claim that direct binarization sharply reduces both and .
The architecture remedies these defects through three components. The first is a binarization-friendly encoder with elastic shortcuts and evolvable topology (EBB). EBB replaces grouped or pointwise-only MobileNetV3 convolutions with non-grouped regular convolutions, adds learnable elastic shortcuts at layer-wise, cross-layer, and block-wise granularity, and allows the effective topology to evolve during training through shortcut gates regularized by
The second is a sparse heterogeneous binarization (SHB) decoder, which masks homogeneous parts so that high-resolution decoder computation is concentrated on incoherent regions. The incoherent-region mask is defined from low-resolution features by
and the threshold is selected by entropy maximization over masked binarized features. The third is localized binarization-aware mimicking (LBM), a teacher-student distillation mechanism localized to the most information-bearing regions:
0
BiVM binarizes both weights and activations. The binarization rule is
1
with
2
and a per-layer scale 3 so that the forward operator becomes
4
implemented via XNOR-popcount on ARM CPUs. The sign gradient is approximated by a clipped straight-through estimator,
5
As customary, the very first and very last layers remain in full precision.
Training proceeds in four stages following RVM. The EBB encoder is first pretrained on ImageNet for 200 epochs using
6
with 7. Matting optimization then uses
8
and
9
with 0.
The reported empirical gains are substantial. On VM at low resolution, BiVM (1-bit) improves over ReActNet-binarized RVM (1-bit) from MAD 28.49 to 11.82 and from MSE 18.16 to 5.75. At high resolution on VM, it improves over ReAct RVM (1-bit) from SAD 31.60 to 14.54, from MSE 20.29 to 8.19, and from dtSSD 4.08 to 3.17 (Qin et al., 6 Jul 2025). The system reports 14.3x FLOPs reduction, 21.6x parameter size reduction, 13.2x faster on ARM CPUs, and 52.6% decoder FLOPs reduction via SHB. The paper also states that BiVM surpasses alternative binarized video matting networks, including state-of-the-art binarization methods, while bringing high-quality video matting closer to real-time on edge devices.
3. “BiVM”-style ultra-low-precision quantization for vision-LLMs
In the vision-LLM literature, the directly named method is Bi-VLM, but the paper’s summary describes it as a binary/ultra-low-precision PTQ method (“BiVM”-style) for VLMs (Wang et al., 23 Sep 2025). Its purpose is to push post-training quantization to bitwidth 1 bits for weights while preserving accuracy on VLMs such as LLaVA, Llama-3.2-Vision, and Qwen2.5-VL.
The central mechanism is a non-uniform partition of each layer’s weights according to Gaussian quantiles. For layer 2 with weights 3, the method assumes a symmetric, near-Gaussian empirical distribution with mean 4 and standard deviation 5. A salient upper percentile 6 defines an outlier tail, while the remaining mass is divided into 7 equal inlier bands. With 8 denoting the standard normal CDF and 9 its inverse,
0
and the subsets are
1
2
Salient weights are quantized to 2-bit precision, while inlier weights are binarized (1-bit). The paper reports that outliers are rare but impactful, at ≈5% in vision encoders and ≈1% in LLMs.
The quantization objective is a unified reconstruction loss
3
where 4 is a row-wise scaling matrix and 5 holds quantized entries in 6. The layer decomposition is
7
For the salient component, Bi-VLM solves
8
with row-wise scales and 2-bit discrete values, using alternating least squares plus adaptive level mapping. For the inlier bands, the optimization is strict binarization with one scalar per group:
9
with
0
A layer-wise salient percentile is then selected by bounded gradient-free search. Using a calibration set of 64 samples, the paper minimizes the normalized reconstruction error
1
subject to 2, with Brent’s method used to obtain 3.
The implementation is layer-wise and is applied to both the LLM and the vision encoder. The paper states that the vision encoder is highly sensitive to ultra-low-bit weight quantization on average, the adaptor/projector is less sensitive, and the LM is considerably sensitive. Activations are not quantized: inference keeps activations in FP16/FP32. A practical policy uses 2 bits for salient weights and 1 bit for inliers, with 4 for LM layers and up to 5 for vision layers.
Across Llama 3.2-Vision Instruct 11B, Llava-One-Vision 7B, and Qwen2.5-VL-7B-Instruct, the paper reports that for the LLM part, Bi-VLM outperforms the SOTA by 3%-47%, and for the overall VLM, it outperforms the SOTA by 4%-45% across MME, MMMU, ScienceQA-IMG, and VizWiz-VQA (Wang et al., 23 Sep 2025). It also reports average storage down to ~1.01 bits/weight in one configuration, assuming 16-bit scales. A further observation is that, after quantization, image tokens exhibit 90%–99% redundancy. Attention-based token saliency analysis motivates pruning image tokens inside the LM rather than inside the vision encoder, with ≈86%–95%, up to 99% of image tokens removable under limited accuracy drop. This places Bi-VLM at the intersection of quantization and structured token reduction rather than simple 1-bit compression alone.
4. BiVM as bitline-voltage mapping in digital computing-in-memory
In digital computing-in-memory, BiVM refers to the bitline-voltage-based CiM/mapping induced by simultaneous activation of two rows in a memory array (Malhotra et al., 2022). Here the term does not denote a neural model; it denotes the analog-to-digital mapping from stored bits 6 to a bitline or senseline quantity such as 7 or 8, and then to sensed Boolean or arithmetic outputs.
Under conventional symmetric dual-row activation with identical wordline bias 9, the sensed current is
0
with
1
The four bit patterns produce three distinct analog levels:
- 2
- 3
- 4
- 5
Because the activation is symmetric,
6
so the mapping is many-to-one. This allows commutative functions such as AND, OR, XOR, and addition, but it prevents direct one-access realization of non-commutative operations such as subtraction and comparison.
The paper introduces ADRA (Asymmetric Dual-Row Activation) to remove this BiVM ambiguity by using different read biases on the two asserted wordlines:
7
Then
8
9
and in general 0. In voltage-mode sensing,
1
so all four input cases can map to distinct discharge levels. This one-to-one mapping enables a third sense amplifier to resolve operand identity, not only commutative functions.
The paper shows that ADRA can deliver, in one memory access, OR, AND, and B, with A reconstructed digitally by
2
With 3 and 4 available, arbitrary two-input Boolean functions follow. The same mechanism enables non-commutative arithmetic. For subtraction,
5
6
and comparison 7 is derived from the subtraction result. The core point is that asymmetric BiVM distinguishes 8 from 9 at the analog level, which is the missing information in conventional symmetric schemes.
The implementation is demonstrated for FeFET-based non-volatile memory, where the threshold shift obeys
0
and the read current follows a MOSFET-like law
1
For the evaluated stack, the paper reports 2 V, 3 V, 4 V, and sense margins of > 1 5A in current mode and > 50 mV in voltage mode. Against a near-memory baseline requiring two full accesses per operation, ADRA reduces EDP by 23.2%–72.6%, with speedup ≈ 1.94x and energy ↓ 41.18% in one current-mode configuration, while the additional hardware overhead is reported as 2.9% to 10.4% at full parallelism, or 0.34%–3.16% with 4:1 column multiplexing (Malhotra et al., 2022).
5. BiVM as bi-directional Vision Mamba
In the state-space-model literature, the phrase “bi-directional Vision Mamba” (BiVM) is used to describe the design realized by LBMamba and the LBVim backbone (Zhang et al., 19 Jun 2025). The underlying problem is that standard Mamba is unidirectional: each state depends only on previous states. Prior vision variants typically restore future context with a full backward scan, but that doubles the computational load.
LBMamba avoids the extra global sweep by embedding a lightweight local backward scan inside the forward selective scan. The forward Mamba recurrence is
6
with input-dependent parameterization
7
The local backward recurrence is computed inside each thread-private tile of size 8:
9
and the fused state is
0
The crucial implementation detail is that this backward aggregation is executed entirely in per-thread registers, so it incurs almost no extra memory traffic or inter-thread communication.
Global context is recovered across depth rather than within one layer. LBVim alternates scan direction every two layers by reversing the token sequence at the end of each encoder. A forward scan on the reversed sequence is effectively a backward scan in the original order. The paper states that this recovers a global receptive field without ever doing an extra global backward sweep. Effective receptive field visualizations are reported to support this claim.
The method uses a hardware-aware tile size rule:
- 1
- 2
- 3
At kernel level, LBMamba incurs +27% FLOPs relative to the vanilla Mamba kernel, but only a 1.9–2.3% throughput drop, with GPU memory unchanged. At backbone level, replacing a conventional bi-directional sweep with LBVim yields much larger savings. For example, at 256×256, Vim-Ti is reported at 2.1G FLOPs, 795 img/s, 755M memory, while LBVim-Ti is 1.9G FLOPs, 1421 img/s, 608M memory; analogous throughput gains of roughly 79%–83% are reported at 512×512 and 1024×1024 (Zhang et al., 19 Jun 2025).
Accuracy results are reported under matched throughput budgets. On ImageNet-1K, LBVim-300 at 906 img/s reaches 77.7% top-1, versus 76.1% for Vim-Ti at 889 img/s; LBVim-528 reaches 81.1% versus 80.3% for Vim-S at similar speed. On ADE20K, the same-throughput gains are 0.6% to 2.7% higher mIoU. On COCO, the paper reports 0.9% higher APb and 1.1% higher APm. Integration into MambaMIL for whole-slide images yields up to 3.06% better AUC, 3.39% better F1, and 1.67% better accuracy on public datasets. In this usage, BiVM denotes a bidirectionality strategy for SSMs rather than binarization or compression.
6. BiVM as bilinear Vector AMP and the BiG-VAMP family
A different expository use treats BiVM as the bilinear Vector AMP family, particularly the Bilinear Generalized VAMP (BiG-VAMP) algorithm (Akrout et al., 2020). This usage arises in probabilistic inference rather than neural network design.
The canonical bilinear model is
4
with unknown factors 5 and 6 and additive Gaussian noise 7. More generally, the output channel is separable:
8
which allows non-Gaussian observations such as quantization and erasures. The factor priors are row-separable,
9
and a temperature parameter 0 unifies MMSE and MAP formulations.
BiG-VAMP is described as a loopy-BP approximation in the VAMP style. It splits each of 1, 2, and 3 into Gaussian-extrinsic copies and alternates three modules: a bi-LMMSE module, prior denoisers for 4 and 5, and an output denoiser for 6. The prior denoisers are
7
while the output denoiser is
8
The bi-LMMSE step updates posterior means and covariances through 9 precision blocks 00 and 01, along with extrinsic corrections that play the role of Onsager terms. The linear-output special case Bi-VAMP is obtained by setting 02 and 03.
A defining feature is the accompanying state evolution (SE) theory, which predicts asymptotic empirical mean-squared error under matched priors and channels. The paper reports close agreement between SE and empirical performance in matrix factorization, dictionary learning, and matrix completion, and uses the SE framework to examine phase transitions, including a low detectability region in matrix completion at low SNR (Akrout et al., 2020). The algorithm is explicitly positioned against BiG-AMP, BAd-VAMP, and LowRAMP, with the claim that BiG-VAMP accommodates a broader class of structured priors and generalized output channels while improving robustness and accuracy.
This interpretation of BiVM is conceptually far removed from the others. Here the central objects are posterior means, divergences, extrinsic precisions, and large-system asymptotics, not binary networks, token pruning, memory circuits, or bidirectional scans.
7. Cross-domain interpretation and common misconceptions
Several misconceptions recur when the term is encountered without context. The first is that BiVM is a single method family. The cited literature does not support that reading. In one case it is a named 1-bit video matting architecture with EBB, SHB, and LBM (Qin et al., 6 Jul 2025); in another it is the bitline-voltage mapping abstraction whose ambiguity ADRA resolves in digital CiM (Malhotra et al., 2022). In the state-space literature, it denotes a bi-directional Vision Mamba strategy implemented through LBMamba and LBVim (Zhang et al., 19 Jun 2025). In bilinear inference, it can denote the bilinear Vector AMP family around BiG-VAMP (Akrout et al., 2020). In VLM compression, the named method is Bi-VLM, while the summary characterizes it as “BiVM”-style rather than formally titling it BiVM (Wang et al., 23 Sep 2025).
A second misconception is that the shared prefix “Bi” implies a shared mechanism. It does not. In the cited papers, “Bi” refers respectively to Binarized, bitline-voltage, bi-directional, or bilinear. This suggests that lexical similarity is accidental at the level of research practice, even though all usages concern some form of efficiency, asymmetry, or dual structure.
A third misconception is that all BiVM-related work is about low-bit neural inference. That description fits the video matting network and the Bi-VLM quantization framework, but not the CiM mapping formalism, the LBMamba/LBVim vision backbone, or BiG-VAMP. Conversely, the CiM and bilinear-inference uses are not neural compression methods in the ordinary sense.
For technical reading, the most reliable disambiguators are the equations and implementation primitives. If the paper discusses XNOR-popcount, alpha mattes, and ARM CPU deployment, it is the video-matting BiVM. If it discusses Gaussian quantiles, salient percentile search, and 1–2 bit PTQ for VLMs, it is the Bi-VLM line. If it centers on wordline biases, sense amplifiers, and 04, it is the CiM BiVM. If it uses selective scan, register-resident local backward windows, and sequence reversal, it is the bi-directional Vision Mamba usage. If it uses posterior denoisers, extrinsic precisions, and state evolution, it is the bilinear VAMP interpretation.