← Back to blog

UHIFlow: letting uncertainty choose the depth of user intent

Zijun Wang · Multimodal recommendation · 3 min read

How flow-based uncertainty controls residual-quantization depth and attention, and what the coupled ablations do and do not isolate.

Read the paper · PDF WISE 2026

How specific should an intent be?

A user looking through electronics may not yet know whether they want a camera or a laptop. Assigning that user a very specific intent can make a recommender confidently follow noise.

Another user may have a consistent, narrow history. For them, keeping only a broad intent discards useful detail. A fixed hierarchy depth asks both users to accept the same representation budget.

UHIFlow connects the depth of a user’s intent representation to an uncertainty signal derived from multimodal item features. Higher uncertainty permits an earlier stop at a coarser level.

UHIFlow architecture connecting collaborative embeddings, visual and textual flows, uncertainty-guided intent generation, and aggregation.
Uncertainty is used downstream to control intent generation and aggregation, rather than being reported only as an auxiliary score.

Two places where uncertainty acts

Build an item-conditioned uncertainty signal

The CUSM module learns visual and textual conditional flows, conditioned on collaborative item embeddings. A cross-modal guidance loss aligns intermediate latent representations.

The paper uses the magnitude of flow log-density change as an uncertainty score. Item scores are aggregated over a user’s interaction history to produce a user-level score ςu.

Stop residual quantization sooner

Intent generation chooses a codeword at each level and subtracts it from the current residual. The remaining residual determines whether another, finer level is needed.

ru(l) = ru(l−1) − cu(l)
Stop when ‖ru(l)‖₂ < τ₀ ςu / l

With the same residual, a larger uncertainty score makes the stopping condition easier to meet. The model can therefore avoid representing weakly supported fine detail.

Reduce the weight of fine levels

Uncertainty also enters attention over the generated levels. The attention logit includes a penalty −γlςu, which increasingly suppresses deeper levels as uncertainty grows.

The stopping rule controls which levels exist. The attention penalty controls how much the retained levels contribute. These are separate ways for the same uncertainty signal to affect the recommendation.

Flow construction, stopping rule, and attention: Sections 4.2–4.4.

Read the ablation as a coupled change

Recall@20 from the component ablations in Table 3.
VariantAmazon-BabyAmazon-SportsTikTok
Full UHIFlow0.10790.11710.1162
Without cross-modal guidance0.10600.11460.1119
Without CUSM; fixed depth 20.10150.10920.1093
Flat intent codebook0.10400.11270.1106

Removing CUSM lowers Recall@20, but this variant also switches to a fixed depth of two because user uncertainty is unavailable. It changes both the uncertainty estimate and the hierarchy policy.

That comparison supports the combined design. It cannot assign the entire gain to the quality of the flow uncertainty estimate alone. The cross-modal-guidance removal makes a narrower intervention.

A cleaner separation would compare different uncertainty scores with the same hierarchy controller, then vary the controller while holding the score fixed. That would distinguish score quality from how the model uses it.

Ablation definitions and results: Section 5.3 and Table 3.

Prediction quality and calibration

Higher Recall@20 establishes a ranking benefit under the tested protocol. It does not establish that the uncertainty score is calibrated to a user’s actual uncertainty or to the probability of a recommendation error.

I would evaluate that separately by grouping users by predicted uncertainty, comparing error rates across groups, and checking whether coarse representations help the groups identified as uncertain.

History length is an important control in that analysis. A score correlated with sparse histories may still be useful, but the comparison should establish what it adds beyond simply knowing how much feedback is available.