When Attention Collapses: Residual Evidence Modeling for Compositional Inference
Abstract
Compositional inference - the decomposition of observations into an unknown number of latent components - is central to perception and scientific data analysis. Attention-based models perform well when components are approximately separable, as in object-centric vision. Under additive superposition, however - where multiple components contribute to every observation - we identify a structural failure mode we term slot collapse: multiple slots converge to the same dominant component while weaker ones remain unrepresented. We trace this to a general limitation: attention is memoryless with respect to explained evidence. All slots repeatedly operate on the same input without accounting for what has already been explained, so the strongest component dominates what every slot reads, and every slot is drawn toward it. As a result, attention fails to enforce non-redundant allocation under additive superposition. We address this by introducing residual evidence modeling, which tracks the remaining explanatory capacity of the input, instantiated via evidence depletion - a minimal modification combining multiplicative depletion with an attention bias. In controlled ablations against parallel attention, sequential processing alone, loss-based regularization, and assignment-level alternatives (sparse and optimal-transport normalizations, coverage), evidence depletion, which adds stateful residual tracking to sequential attention, attains the lowest collapse on the synthetic benchmarks (tied with optimal-transport variants on one) and is the only one of the four mechanisms run on LISA that avoids collapse. On synthetic benchmarks, evidence depletion reduces slot collapse by up to an order of magnitude, and the reduction transfers to mixtures of real recorded audio (FUSS). On gravitational-wave source inference for the ESA/NASA LISA mission, under identical architectures, data, and losses, standard attention fails while evidence depletion prevents collapse and enables multi-source posterior estimation. These results show that under additive superposition, residual evidence tracking is the key architectural ingredient - preventing collapse and enabling compositional inference. Code is available at https://github.com/nhouba/when-attention-collapses.