arXiv Science⌕ Search

arXiv subjects

Karim Wahba

Publications and source records attributed to Karim Wahba.

2 recordsLinked to original sources

WISH: Word-Informed Selection of Heads for Vision-Language Explainability

Vision-language models (VLMs) are being increasingly employed for vision-language tasks. However, understanding the visual evidence behind each generated word remains a complex task. A key challenge in VLM explainability is choosing where in the model to extract this evidence. Existing methods address this by using final-layer visual-token activations or aggregating attention gradients across layers and heads. However, focusing on the final layer can miss intermediate grounding signals, while gradient weighting can misrepresent how much each head contributes. In contrast, we introduce WISH (Word-Informed Selection of Heads), a word-level explainability method that adaptively selects heads across layers to construct word-level visual explanations. WISH ranks the heads based on an estimate of how much blocking each head's visual attention would lower the word's layer logit. It subsequently selects the highest scoring heads and constructs heatmaps by spatially filtering and aggregating their gradient maps. Across six VLMs, attention knockout experiments show that WISH-selected heads have a greater effect on word prediction than those selected using five alternative criteria. Spatial map evaluations on ImageNet, VQAv2, PASCAL VOC, and COCO Captions further demonstrate improved object localization and stronger perturbation-based performance in most comparisons with existing methods. Finally, we find evidence that when VLMs generate function words, e.g., articles, their explanation heatmaps already highlight the associated objects in the image. We term this behavior "look-ahead grounding" and propose two evaluation metrics to quantify it.

cs.CV↗

Statistical Mechanics of Integral Membrane Protein Assembly

During the synthesis of integral membrane proteins (IMPs), the hydrophobic amino acids of the polypeptide sequence are partitioned mostly into the membrane interior and hydrophilic amino acids mostly into the aqueous exterior. We analyze the minimum free energy state of polypeptide sequences partitioned into alpha-helical transmembrane (TM) segments and the role of thermal fluctuations using a many-body statistical mechanics model. Results suggest that IMP TM segment partitioning shares important features with general theories of protein folding. For random polypeptide sequences, the minimum free energy state at room temperature is characterized by fluctuations in the number of TM segments with very long relaxation times. Simple assembly scenarios do not produce a unique number of TM segments and jamming phenomena interfere with segment placement. For sequences corresponding to IMPs, the minimum free energy structure with the wildtype number of segments is free of number fluctuations due to an anomalous gap in the energy spectrum, and simple assembly scenarios produce this structure. There is a threshold number of random point mutations beyond which the size of this gap is reduced so that the wildtype groundstate is destabilized and number fluctuations reappear.

cond-mat.soft↗