Papers
Topics
Authors
Recent
Search
2000 character limit reached

Concept Boundary Vector (CBV) Analysis

Updated 6 March 2026
  • Concept Boundary Vector (CBV) is a vectorial construct in latent space that delineates the semantic boundary between two distinct neural activation sets.
  • CBVs are derived through a precise method involving boundary pair extraction and gradient-based optimization, offering sharper and more localized interpretability than CAVs.
  • Empirical studies show that CBVs yield higher logit influence and more robust adversarial perturbations, enhancing model interpretation and concept attribution.

A Concept Boundary Vector (CBV) is a vectorial construct in the latent space of a neural network, intended to encapsulate the semantic boundary between two distinct concepts as represented by their activation manifolds. Unlike previous approaches that primarily aim to separate concepts in latent space for classification, the CBV is explicitly derived to align with the normals to the decision boundary between the sets of latent activations corresponding to the positive (target) and negative (source) concepts. This geometric focus confers CBVs with distinct interpretability and precision characteristics, as demonstrated across empirical, mathematical, and topological analyses (Walker, 2024).

1. Formal Definition and Computational Framework

Let f:RdRkf: \mathbb{R}^d \to \mathbb{R}^k be a neural network, and f:RdRmf_\ell: \mathbb{R}^d \to \mathbb{R}^m denote the function up to layer \ell, producing mm-dimensional activations. For a concept C\mathcal{C}, let SCRdS_\mathcal{C} \subset \mathbb{R}^d be the set of inputs exhibiting C\mathcal{C}, and AC={f(s):sSC}RmA_\mathcal{C} = \{ f_\ell(s) : s \in S_\mathcal{C} \} \subset \mathbb{R}^m its embedding at \ell. With two concepts C+\mathcal{C}_+ (positive) and C\mathcal{C}_- (negative), A+A_+ and AA_- denote their activations, respectively.

A Concept Boundary Vector v+Rmv_{+-} \in \mathbb{R}^m is defined as the unit vector best aligning (in cosine similarity) with the set of normals to the decision boundary between A+A_+ and AA_-. Boundary pairs P+A+×AP_{+-} \subset A_+ \times A_- are selected to straddle the empirical boundary. The normalized difference vectors N+={a+aa+a2:(a+,a)P+}N_{+-} = \{ \frac{a_+ - a_-}{\|a_+ - a_-\|_2} : (a_+, a_-) \in P_{+-} \} are collected as boundary normals. The CBV is obtained by solving

v=argmaxv2=1nN+cos(n,v)=argminv2=1nN+1nv.v^* = \arg\max_{\|v\|_2 = 1} \sum_{n \in N_{+-}} \cos(n, v) = \arg\min_{\|v\|_2 = 1} \sum_{n \in N_{+-}} |1 - n \cdot v|.

2. Construction Algorithm

The CBV computation procedure consists of two primary stages: identification of boundary pairs and optimization of the boundary-aligned vector.

Boundary Pair Extraction

For each a+A+a_+ \in A_+, its nearest neighbor aAa_- \in A_- is found (stored in P+P_+), and vice versa for each aAa_- \in A_-. Mutual-nearest pairs and pairs where either side is nearest constitute P+P_{+-}.

Vector Optimization

For each (a+,a)P+(a_+, a_-) \in P_{+-}, compute n=(a+a)/a+a2n = (a_+ - a_-)/\|a_+ - a_-\|_2. Starting with a random unit vector vv, apply a gradient-based optimizer (e.g., Adam) to minimize L(v)=nN+1nvL(v) = \sum_{n \in N_{+-}} |1 - n \cdot v|, constraining v2=1\|v\|_2 = 1 after every step.

3. Comparison with Concept Activation Vectors (CAVs)

Concept Activation Vectors (CAVs) are conventionally obtained by training a linear classifier between A+A_+ (labeled +1+1) and AA_- (labeled $0$), with the classifier's weight vector serving as the concept direction. The key distinctions between CAVs and CBVs are:

  • Objective: CAVs maximize separation via classification accuracy (cross-entropy); CBVs maximize cosine alignment with local boundary normals.
  • Geometric Sensitivity: CAVs disregard the margin location of examples, while CBVs focus on activations closest to the decision boundary.
  • Locality: CBVs produce sharper changes in alignment-based loss under vector rotation, indicating a more precise, localized semantic direction.

Empirically, for the classification loss Lcls(v)L_\text{cls}(v) and similarity loss Lsim(v)L_\text{sim}(v), the second derivative 2Lsimθ22Lclsθ2\frac{\partial^2 L_\text{sim}}{\partial \theta^2} \gg \frac{\partial^2 L_\text{cls}}{\partial \theta^2} near the optimum, indicating stronger localization for CBV (Walker, 2024).

4. Empirical Analyses and Metrics

Experiments conducted on MNIST using a ConvNet (2 ×\times Conv + ReLU + MaxPool, 64-dim embedding) revealed the following:

  • Logit Influence: CBVs yield greater influence on target class logits and more strongly suppress source logits compared to CAVs for nearly all concept class pairs (i,j)(i, j).
  • Concept Entanglement: CBVs exhibit higher variability across different target transformations, with their cosine similarities reflecting semantic changes (e.g., 606 \to 0 and 707 \to 0 produce distinct CBVs).
  • Concept Algebra: Vector arithmetic accurately reconstructs intermediate concepts with higher success rate and stronger similarity for CBVs than CAVs (e.g., v12+v23v13v_{1\to2} + v_{2\to3} \approx v_{1\to3}).
  • Adversarial Perturbations: CBV-aligned perturbations switch class labels with smaller ϵ\epsilon than CAV perturbations, both on boundary activations and across the negative concept cluster (ϵCAV/ϵCBV>1\epsilon_\text{CAV}/\epsilon_\text{CBV} > 1 on average).
  • Spatial Attribution: For maximization tasks in input space, CBVs yield more focused feature attribution maps than CAVs, exemplified in the digit 808 \to 0 transformation.
  • Topological Properties: Persistent homology reveals that CBV point clouds exhibit more robust 1-dimensional loops (higher persistence), and Mapper graph analyses demonstrate that CBV clusters have higher intra-cluster cosine similarity and richer semantic chaining.

5. Theoretical Characteristics and Interpretability

CBVs demonstrate higher boundary-faithfulness compared to CAVs by design, integrating local empirical boundary geometry, which enhances sensitivity to decision-surface complexity. Boundary complexity (sum of H0H_0 lifetimes in persistent homology) is negatively correlated with CBV logit influence, with this correlation being stronger for CBVs than for CAVs.

CBV loss landscapes are more sharply peaked; therefore, deviations from the learned direction quickly reduce the boundary-normal alignment. This confers increased invariance and robustness under random rotations. The homogeneity requirement ("A2") is studied via Euclidicity using TARDIS, confirming that CBV logit influence is higher when the difference in Euclidicity between concept boundary and interior is low, and when positive and negative concept interiors have similar Euclidicity.

6. Use Cases and Practical Relevance

CBVs are applicable to a range of tasks:

  • Model Interpretation: Quantifying the influence of semantic directions in latent space on output logits, extending concept attribution frameworks such as TCAV.
  • Local Concept Attribution: Enabling spatial feature maximization explanations that are sharper than those produced with CAVs.
  • Concept Entanglement and Algebra: Mapping and probing the compositional and relational structure underlying learned representations.
  • Adversarial Example Generation: Crafting targeted perturbations aligned with semantic boundaries for robustness evaluation.
  • Cross-Layer and Dictionary Alignment: In Vision Transformers, CBVs become more sharply aligned at deeper layers and show greater across-layer consistency than CAVs; CBVs also align with unsupervised features from sparse autoencoders, exposing semantic axes.

7. Constraints, Limitations, and Prospective Directions

Constructing CBVs imposes specific computational and algorithmic costs. Boundary pair extraction for sets A+,AA_+,\,A_- is O(A+Am)O(|A_+||A_-|m) and scales linearly in embedding dimension mm, with further costs for vector optimization. In deep architectures, boundary pairs become sparse in higher layers, raising concerns about overfitting to limited boundary points; however, empirical results suggest the "A2" homogeneity assumption typically holds.

Current CBV methods employ linear nearest-neighbor boundary pairing; extending to nonlinear boundaries or alternative metrics (e.g., kernelized distances) could extend CBV applicability, similar to methods for concept activation regions. Future research includes kernel and nonlinear CBVs, unsupervised boundary detection, integrating causal inner-product concepts, and benchmarking on large-scale vision and LLMs (Walker, 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Concept Boundary Vector (CBV).