Where Hubs Come From in 3D CT Embeddings: Depth Averaging and Anatomy-Indexed Centering

Search engines and zero-shot classifiers built on 3D CT foundation models compress a whole scan into one vector. To do that, they average information across hundreds of slices. This proposal argues that the averaging step does more than lose detail. It produces a specific geometric failure called hubness: in high-dimensional embedding spaces, a few points near the center of the data become the nearest neighbor of almost everything, and many other points become unreachable. A scan whose only abnormality is a nodule spanning three slices looks, once averaged, almost exactly like the population's typical healthy chest. That puts it near the center of the space, where it becomes a "hub" that unrelated text queries keep retrieving. Scans with distinctive findings get pushed outward and can become "antihubs" that no query ever returns.

If this is right, hubness is the measurable trace that lost depth context leaves in the embedding space. That leads to a fix that differs from the usual post-hoc hubness corrections. Instead of re-scoring similarities after the scan vector has been formed, we subtract the shared anatomy at each depth position, before averaging across depth. The reference anatomy is estimated from a fixed bank of training scans aligned by anatomical landmarks. Each scan vector then encodes how it deviates from typical anatomy at each level of the body, rather than mostly encoding the anatomy every patient shares. The method needs no retraining, works on a single query, and costs time linear in the reference bank. Those last two properties matter because the strongest existing hubness corrections are transductive or quadratic in gallery size.

Core Claim

The claim has three testable parts. First, in a 3D CT dual encoder such as CT-CLIP, hubness grows as embeddings move from the slab level to the volume level. Second, a scan's popularity as a neighbor rises as its findings become more spatially focal, meaning they span fewer slices. Third, centering per-slab features against anatomy-indexed reference means before depth pooling reduces hubness more, and improves retrieval and zero-shot detection of focal findings more, than global centering or similarity re-normalization applied after pooling.

The mechanism comes from Hubness and Pollution, which showed that operations shrinking the variance of high-dimensional vectors pull them toward the distribution's center and manufacture hubs. That work studied regression into a word space. We point out that mean pooling over depth is also a variance-shrinking operation, and it acts hardest on exactly the signal clinicians care about.

Relation to Prior Work

The hubness side supplies both the diagnosis and the competitors. Hubs and Hyperspheres shows hubness disappears when embeddings have zero mean and uniform density on the sphere, and that L2 normalization alone leaves much higher skewness. That result constrains our design: centering is necessary. Their noHub method, however, needs the whole unlabeled query set, which is unavailable in single-query clinical search. We keep the centering idea but compute it from a fixed reference bank, separately for each anatomical depth level.

Balance Act introduces DBNORM, a training-free re-weighting of similarities using a query bank and a gallery bank. It is our strongest post-hoc competitor. It operates on finished vectors and cannot recover focal information that pooling has already averaged away. Reciprocal-neighbor re-ranking, as in MVSE++ and Reciprocal Neighbors and Ranking Distance Calibration, also operates after the vector is formed. It scales with gallery neighborhoods, and its medical evaluation used only 2D radiographs (ChestX). The Crowded Embedding Space motivates the clinical stakes: it argues that dense shared embedding spaces systematically marginalize rare concepts, which in radiology means rare pathologies.

On the volumetric side, CT-CLIP and its generalist follow-up build the 3D encoder and the CT-RATE retrieval task we study. They evaluate only with raw cosine similarity and never measure neighbor-occurrence statistics. fVLM identifies the "false negative trap": healthy anatomy shared across patients is wrongly pushed apart during contrastive training. fVLM fixes this by retraining with region-level alignment. We read the same shared-anatomy problem geometrically, and we test whether a training-free correction at inference recovers part of fVLM's gains. CARVE folds discarded slice tokens into anchor tokens. Folding is another depth-averaging operation, and we treat it as a secondary test case for the same mechanism. The basic cost of slice-wise processing, documented early by Roth et al. and in spatial reasoning by Your other Left!, motivates keeping native 3D features rather than reverting to 2D.

Research Program

The first stage is measurement. For CT-CLIP on CT-RATE, we extract features at three granularities: per depth slab (the outputs of the depth transformer before pooling), per anatomical window (slabs grouped by vertebral level), and per volume. At each granularity we compute the k-occurrence distribution, which counts how often each item appears in other items' k-nearest-neighbor lists. Its skewness, written $S_k$, is the standard hubness score, the same quantity DBNORM reduces on ActivityNet.

We then regress each scan's volume-level k-occurrence on a focality proxy. CT-RATE provides 18 binary labels. We split them into focal findings (nodules, masses, lymphadenopathy) and diffuse findings (emphysema, effusion, cardiomegaly), and add the count of positive labels. On LUNA16, nodule annotations give a direct proxy: the number of slices the nodule spans. The prediction is that scans whose only findings are focal sit near the centroid and have high k-occurrence, and that hub occupancy is dominated by normal-labeled and focal-only scans.

The second stage is the correction. Each slab is mapped to an anatomical depth coordinate using TotalSegmentator vertebra landmarks, which handles variable field of view and slice thickness. We then compute window-specific reference statistics from training volumes. The corrected volume embedding is

$$z_i = \frac{1}{|W_i|}\sum_{w \in W_i} \Sigma_w^{-1/2}\,(h_{i,w} - \mu_w),$$

where $h_{i,w}$ is scan $i$'s pooled feature in anatomical window $w$, $W_i$ is the set of windows the scan covers, and $\mu_w$ and $\Sigma_w$ are the reference mean and a shrinkage-regularized covariance for window $w$. The result is then L2-normalized. To score text against these vectors, we fit one linear map from the corrected space back to the text space on training pairs. Alternatively, we apply the same window-mean subtraction to the original projection's input, choosing between the two on validation. We compare reference banks built from normal-labeled scans only against banks built from all scans, because a normal-only bank defines "deviation from healthy anatomy" more cleanly. The method costs one landmark pass and a subtraction per slab. It does not depend on gallery size or on other queries.

The third stage applies the same measurement to CARVE-folded token sets in a slice-based multimodal model on AMOS-MM. We test whether folded anchor tokens show higher k-occurrence among visual tokens than unfolded tokens, and whether window-centering before folding changes VQA accuracy at a fixed 20% keep ratio. This stage tests whether the mechanism generalizes. It is not the main result.

Baselines

The naive reference point is CT-CLIP with raw cosine similarity, exactly as released. The relevant reported number is CT-CLIP's zero-shot internal validation mean AUROC of 0.731 on CT-RATE (CT-CLIP). For text-to-volume retrieval recall and hubness skewness on CT-RATE, no reported result was found on Lacuna, so we will establish the baseline ourselves.

The second baseline is global centering plus L2 normalization: subtract one mean computed from the reference bank, after pooling. It isolates whether depth indexing matters at all.

The strongest post-hoc competitor is DBNORM's dual dynamic inverted softmax (Balance Act). Its query bank will be training-split reports and its gallery bank training-split volumes, the same data our reference bank uses. Its temperature and threshold get the same validation tuning budget as our shrinkage and window parameters. On video-text retrieval it reduced skewness from 0.94 to 0.37 on ActivityNet and raised MSR-VTT R@1 from 44.10% to 45.00%. Those results show its strength at removing hubs but modest recall gains, so beating it on recall for focal labels is the real target.

The fourth baseline is k-reciprocal re-ranking with Jaccard blending, run with the formulation of Ranking Distance Calibration. Its quadratic cost is reported alongside its accuracy.

The fifth baseline is depth max-pooling of the same slab features. It is the simplest way to keep focal signal and is the most dangerous competitor (see below). Where weights are available, we also report fVLM as a retrained reference point. Its authors report a 7.4% absolute AUC gain on CT-RATE over prior methods, a ceiling a training-free method is not expected to reach but should close part of.

Two ablations isolate the key ingredient. In the first, the per-window means are computed but assigned to shuffled anatomical windows, which tests whether anatomical indexing rather than extra parameters drives any gain. In the second, the same window centering is applied after pooling, which tests whether order relative to depth aggregation matters.

Beating the field means three things at once. Our method must give lower $S_k$ than global centering. Its text-to-volume Recall@10 and label-matched precision on focal-finding queries must be higher than DBNORM's, with confidence intervals from patient-level bootstrap. And it must not lose zero-shot AUROC on diffuse findings.

Why not just…?

Why not just apply DBNORM to CT-CLIP's volume embeddings? This is the most likely way the idea fails, and the experiment is designed to show it if so. DBNORM can lower a hub's score. But if a focal finding was averaged away during pooling, no re-weighting of the final cosine similarity can make that scan match a "small right upper lobe nodule" query. Our prediction is therefore specific: DBNORM and our method should achieve similar skewness reductions, while only ours improves retrieval and AUROC on focal labels. If DBNORM matches us on focal-label metrics, we will report that post-hoc correction is sufficient in 3D CT. That would still be the first hubness measurement on these models.

Why not just max-pool over depth instead of averaging? Max-pooling also avoids variance shrinkage and may preserve focal activations. It is a real threat. Its weakness is that it also amplifies acquisition artifacts and shared high-activation anatomy such as the heart and bones, so it may trade hubs for noise. It is run as a full baseline. We also test centering followed by max-pooling. If plain max-pooling matches anatomy-indexed centering, the paper's conclusion becomes "the aggregation operator is the cause," and that is still the claim we set out to test.

Why not just retrain with fVLM-style region-level alignment? fVLM addresses shared anatomy at training time and reports large gains. However, it requires segmentation-parsed reports and full contrastive retraining, and it never measures neighborhood geometry. We include it as a ceiling. The question we answer is how much of its benefit is a geometric effect recoverable at inference time on an existing model.

Why not just L2-normalize, as every CLIP model already does? Hubs and Hyperspheres reports that L2 normalization leaves more than 50% higher skewness than their uniformity objective. The raw CT-CLIP baseline is already L2-normalized, so the comparison is built in.

Decisive Checks

The datasets are CT-RATE (validation split for text-to-volume and volume-to-volume retrieval and zero-shot AUROC over the 18 labels), RAD-ChestCT (external zero-shot transfer with the CT-RATE-derived reference bank unchanged), LUNA16 (nodule slice extent for the focality regression), and AMOS-MM with 3D-RAD for the CARVE extension.

Three outcomes decide the proposal. First, $S_k$ must rise from slab to volume level, and k-occurrence must correlate positively with focality. If not, the mechanism is wrong and the correction has no rationale. Second, the shuffled-window ablation must lose most of the gain. Otherwise the improvement is generic whitening, not anatomy. Third, on RAD-ChestCT, the correction must keep its focal-label advantage without re-estimating the reference statistics. This shows that a fixed reference bank works inductively across institutions with different slice thicknesses, which the transductive methods cannot claim.