Pricing Visual Tokens So 3D Medical Models Transfer Across Scanners

Language models that read 3D medical scans cannot fit every image patch into their input, so they throw most of them away. The current best method for deciding what to keep, CARVE, splits a fixed token budget between two uses. Part goes to detailed coverage within selected slices, and part goes to a sparse search for unusual patches across all slices. The proportions are set by a hand-chosen rule. A rule tuned on CT has no reason to stay right on MRI, where slice thickness, contrast, and the spread of findings across slices are different. We propose replacing that fixed rule with a small market solved separately for each scan. Each slice acts as a buyer that requests detailed patches and cross-slice search slots according to its own estimated diagnostic value. A coordinator raises or lowers two prices until total requests exactly fit two separate limits: the number of tokens passed to the language model, and the image-encoder compute spent on high-resolution regions.

The point is cross-modality generalization without retraining. The market has no split ratio to tune. It finds the right split for each volume from that volume's own value estimates. The two equilibrium prices it produces are a compact, readable summary of how "expensive" detail and coverage are in a given modality, and they can warm-start the allocator on a new one. If this works, a token allocator calibrated only on CT should keep its accuracy on MRI, which a fixed-split allocator tuned on CT may not.

Core Claim

Price discovery is only worth using when there is more than one scarce resource. With a single token budget and additive per-token value, iterative pricing reduces to bisection on a single threshold, which is just top-k selection. We therefore pose the allocation with two coupled limits whose trade-off differs from slice to slice. The first is a context budget $B$ on tokens sent to the language model. The second is a compute budget $C$ on encoder work spent refining regions to higher in-plane resolution.

CARVE's own scaling analysis supports treating these as separate resources. It found that at equal token budget, more in-plane resolution helps more than more slices. That trade-off should depend on modality. Each slice $s$ chooses a bundle $x_s$ (refinement depth and number of retrieval slots) to maximize $\hat u_s(x_s) - p_B\, b(x_s) - p_C\, c(x_s)$. Here $\hat u_s$ is its estimated value, $b$ and $c$ are the bundle's token and compute costs, and $p_B, p_C$ are the two prices. The coordinator then updates both prices from the excess demand on each limit:

$$p_k^{(t+1)} = \max\big(0,\; p_k^{(t)} + \alpha_t\, z_k(p^{(t)})\big), \quad k \in \{B, C\},$$

where $z_k$ is total demand minus capacity for resource $k$. This is the tâtonnement rule described in the market-oriented programming line begun by Wellman. It is also dual ascent on a two-constraint allocation problem, the same "prices are Lagrange multipliers" reading made exact by Bererton et al. for coordinating robots. We do not claim a new optimizer. We claim that solving this small dual problem per scan, with no modality-specific tuning, beats any fixed split when modality changes.

Research Program

The work has three parts.

The first part builds the value estimates. Each slice gets a value curve over refinement depth and retrieval slots, computed once per volume from quantities CARVE already produces: quadtree refinement gains within a slice, and feature residuals relative to neighbouring slices. We optionally add similarity between the question text and each patch. Value curves built from discrete refinement levels need not be concave. Discreteness is exactly what Wellman identifies as the cause of price cycling. We therefore replace each curve by its upper concave envelope before bidding, borrowing the concavification step that Promponas and Tassiulas use for S-shaped utilities in network slicing. We then round the equilibrium bundles back to feasible discrete choices.

The second part builds the clearing loop. Its cost is negligible because value curves are fixed during clearing, and each slice's best response is a lookup over a handful of options. We cap the loop at about 15 iterations, the range in which the slicing market converged. Adjacent slices compete for the same retrieval budget and are therefore substitutes, which suits ascending and descending price moves. If we observe complementarity, meaning a retrieval token is worth more when its slice also holds refined anchors, we switch to updates that raise some prices while lowering others, in the spirit of the double-direction auction.

The third part studies transfer. We record equilibrium prices across CT volumes and test two things. We check whether MRI equilibria differ in a consistent direction, for example a cheaper compute price because thick MRI slices make in-plane detail matter more. We also check whether initializing the MRI loop from the CT mean price cuts iterations without hurting accuracy.

Baselines

The naive reference points are full-token inference, which gives the accuracy ceiling, and uniform slice downsampling to the same budget. Together they bound the problem from both sides.

The strongest existing method is CARVE with its fixed split. It reports keeping 98.1% of full-token performance across 3D radiology question-answering benchmarks at a 20% keep ratio, and 6.2 points more report quality than MedPruner on AMOS-MM. We run it two ways. The first is tuned only on CT, which is the transfer condition we care about. The second is tuned on MRI directly, which is an in-domain upper reference for any fixed split. Both versions use the same value features, the same backbones, the same budgets $B$ and $C$, and the same development-set tuning budget we allow ourselves for the step size $\alpha$. MedPruner is included as the slice-pruning competitor. The file gives only CARVE's relative margin over it, so we report our own numbers for it.

Two further references isolate the key ingredient. A single-price ablation enforces only the token budget and lets compute float, which is equivalent to top-k on value per token. If it matches the two-price market, the second resource is not doing anything. An exact centralized solver gives a reference for the market's allocation quality: an integer program over the same concave-envelope values and both constraints. Beating CARVE means matching it on CT and holding at least that accuracy retention on MRI when tuned only on CT. Specifically, the CT-tuned CARVE versus MRI-tuned CARVE gap should be closed by more than half.

Why not just…?

Why not just tune CARVE's split separately for each modality? This is the real threat. If the best split varies by modality but barely varies within one, a per-modality grid search captures nearly all the benefit and the market adds little. The decisive check comes first. For a sample of volumes we search the per-volume best split and compare it with the best per-modality split. If the per-volume gain is small, we report that and drop the market claim. Per-modality tuning also needs labelled development data in every new modality, and the market does not.

Why not just learn a small allocator network, as CARVE suggests for future work? A learned allocator trained on CT faces the same distribution shift we are trying to avoid. Medical vision-language models already lean on memorized source-domain regularities, as Wolf et al. report for out-of-modality spatial reasoning. We include a learned allocator trained on CT and test it on MRI. We expect it to match the market on CT and fall behind on MRI. If it does not fall behind, that is a clean negative result for our approach.

Why not just solve the two-constraint allocation exactly with an integer program? On allocation quality it should win or tie. That is why it is a baseline and not a competitor we expect to beat. The market's case rests on three properties: it is cheap to solve per scan, its prices can be warm-started across modalities, and its two prices are interpretable. If the solver's runtime is negligible too, we will say the contribution is the two-resource, per-volume formulation rather than the price dynamics.

Proposed Experiments

We evaluate on AMOS-MM report generation, 3D-RAD, and M3D-VQA with Hulu-Med-7B and Qwen3-VL at 4B and 8B, matching CARVE's setup. Results are stratified by CT and MRI wherever volume metadata allows. If the MRI subsets are small, we report confidence intervals and treat MRI conclusions as provisional. We sweep keep ratios from 10% to 40% with the compute limit $C$ set at two levels.

The main metric is the CT-to-MRI transfer gap: the drop in accuracy retention when an allocator calibrated on CT is applied to MRI. Secondary metrics are absolute retention, iterations to clear, time added per volume, and how often a finding confined to one or two slices is dropped. We measure that last one using organ and lesion annotations where AMOS provides them.

Three results decide the proposal. Per-volume best splits must beat per-modality splits by a meaningful margin. The two-price market must beat the single-price ablation. The CT-tuned market must lose less on MRI than CT-tuned CARVE. A further result would show that prices carry modality structure: warm-starting from CT prices should reduce MRI iterations without loss.