paper-with-me

홈 › Papers

Attention-likelihood relationship in transformers

2023-03-15 · Valeria Ruscio, Valentino Maiorca, Fabrizio Silvestri

We analyze how large language models (LLMs) represent out-of-context words, investigating their reliance on the given context to capture their semantics. Our likelihood-guided text perturbations reveal a correlation between token likelihood and attention values in transformer-based language models. Extensive experiments reveal that unexpected tokens cause the model to attend less to the information coming from themselves to compute their representations, particularly at higher layers. These findings have valuable implications for assessing the robustness of LLMs in real-world scenarios. Fully reproducible codebase at https://github.com/Flegyas/AttentionLikelihood.

📄 PDF Abstract BibTeX arXiv:2303.08288

Code (1)

flegyas/attentionlikelihood 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Selective Induction Heads: How Transformers Select Causal Structures In Context

2025-09-09 · Francesco D'Angelo, Francesco Croce, Nicolas Flammarion arxiv

Transformers have exhibited exceptional capabilities in sequence modeling tasks, leveraging self-attention and in-context learning. Critical to this success are induction heads, attention circuits that enable copying tok…

Self-attention as an attractor network: transient memories without backpropagation

2024-09-24 · Francesco D'Amico, Matteo Negri

Transformers are one of the most successful architectures of modern neural networks. At their core there is the so-called attention mechanism, which recently interested the physics community as it can be written as the d…

MM-SurvNet: Deep Learning-Based Survival Risk Stratification in Breast Cancer Through Multimodal Data Fusion

2024-02-19 · Raktim Kumar Mondol, Ewan K. A. Millar, Arcot Sowmya, Erik Meijering

Survival risk stratification is an important step in clinical decision making for breast cancer management. We propose a novel deep learning approach for this purpose by integrating histopathological imaging, genetic and…

Decision MakingManagement

inTformer: A Time-Embedded Attention-Based Transformer for Crash Likelihood Prediction at Intersections Using Connected Vehicle Data

2023-07-07 · B M Tazbiul Hassan Anik, Zubayer Islam, Mohamed Abdel-Aty

The real-time crash likelihood prediction model is an essential component of the proactive traffic safety management system. Over the years, numerous studies have attempted to construct a crash likelihood prediction mode…

Deep Learning

Vision Transformers with Hierarchical Attention

2021-06-06 · Yun Liu, Yu-Huan Wu, Guolei Sun, Le Zhang 외

This paper tackles the high computational/space complexity associated with Multi-Head Self-Attention (MHSA) in vanilla vision transformers. To this end, we propose Hierarchical MHSA (H-MHSA), a novel approach that comput…

image-classificationImage ClassificationInstance Segmentationobject-detection+3