paper-with-me

Papers

DecoderLens: Layerwise Interpretation of Encoder-Decoder Transformers

2023-10-05 · Anna Langedijk, Hosein Mohebbi, Gabriele Sarti, Willem Zuidema, Jaap Jumelet

In recent years, many interpretability methods have been proposed to help interpret the internal states of Transformer-models, at different levels of precision and complexity. Here, to analyze encoder-decoder Transformers, we propose a simple, new method: DecoderLens. Inspired by the LogitLens (for decoder-only Transformers), this method involves allowing the decoder to cross-attend representations of intermediate encoder layers instead of using the final encoder output, as is normally done in encoder-decoder models. The method thus maps previously uninterpretable vector representations to human-interpretable sequences of words or symbols. We report results from the DecoderLens applied to models trained on question answering, logical reasoning, speech recognition and machine translation. The DecoderLens reveals several specific subtasks that are solved at low or intermediate layers, shedding new light on the information flow inside the encoder component of this important class of models.

📄 PDF Abstract BibTeX arXiv:2310.03686

Code (1)

AnReu/T5-lenses pytorch

Tasks

DecoderLogical ReasoningMachine TranslationQuestion Answeringspeech-recognitionSpeech Recognition

Similar Papers 제목 키워드 기반

Greedy Ordering of Layer Weight Matrices in Transformers Improves Translation

2023-02-04 · Elicia Ye

Prior work has attempted to understand the internal structures and functionalities of Transformer-based encoder-decoder architectures on the level of multi-head attention and feed-forward sublayers. Interpretations have …

DecoderTranslation

Cross-Attention and Encoder-Decoder Transformers: A Logical Characterization

2026-05-08 · Veeti Ahvonen, Damian Heiman, Antti Kuusisto, Miguel Moreno 외 arxiv

We give a novel logical characterization of encoder-decoder transformers, the foundational architecture for LLMs that also sees use in various settings that benefit from cross-attention. We study such transformers over t…

Transformers are Stateless Differentiable Neural Computers

2026-02-27 · Bo Tang, Weiwei Xie arxiv

Differentiable Neural Computers (DNCs) were introduced as recurrent architectures equipped with an addressable external memory supporting differentiable read and write operations. Transformers, in contrast, are nominally…

Balancing Cost and Benefit with Tied-Multi Transformers

2020-02-20 · WS 2020 7 · Raj Dabre, Raphael Rubino, Atsushi Fujita

We propose and evaluate a novel procedure for training multiple Transformers with tied parameters which compresses multiple models into one enabling the dynamic choice of the number of encoder and decoder layers during d…

DecoderKnowledge DistillationMachine TranslationModel Compression+1

Graph Masked Autoencoders with Transformers

2022-02-17 · Sixiao Zhang, Hongxu Chen, Haoran Yang, Xiangguo Sun 외

Recently, transformers have shown promising performance in learning graph representations. However, there are still some challenges when applying transformers to real-world scenarios due to the fact that deep transformer…

DecoderGraph ClassificationNode Classification