SignAttention: On the Interpretability of Transformer Models for Sign Language Translation

Pedro Alejandro Dal Bianco, Oscar Agustín Stanchi, Facundo Manuel Quiroga, Franco Ronchetti, Enzo Ferrante · DOI

Introduction

Sign Language Translation (SLT) represents a formidable challenge in the fields of computer vision and natural language processing. Unlike standard text-to-text translation, SLT requires the simultaneous resolution of three distinct sub-problems: the temporal segmentation of continuous video into discrete signs, the recognition of those signs, and their subsequent translation into a written language that often possesses a radically different grammatical structure and word order.

While Transformer-based architectures have emerged as the state-of-the-art for SLT, they are frequently criticized for being "black boxes." There exists a significant gap in our understanding of how these models align high-dimensional visual pose data with discrete linguistic tokens (glosses). This lack of transparency hinders the development of the reliable, explainable systems necessary for real-world assistive technologies. This study aims to bridge this gap by performing a detailed interpretability analysis of the Transformer's attention mechanisms.

Methodology

The researchers developed a Transformer-based model specifically optimized for interpretability. The architecture, illustrated in Figure 2, deviates from standard video-based models by focusing on skeletal pose data.

The SignAttention architecture, featuring a pose-based encoder and a standard Transformer decoder.

The Encoder utilizes a 1D convolutional layer to process temporal sequences of pose keypoints, extracted using MediaPipe, rather than raw video frames. This reduces noise and focuses the model on the physical dynamics of signing. The Decoder follows a standard Transformer design, but the analysis focuses specifically on the cross-attention layers—which map visual features to output tokens—and self-attention layers—which manage linguistic context.

The study utilized the Greek Sign Language (GSL) Dataset, comprising 10,290 samples across 331 sentences. This laboratory-controlled dataset provides high-quality "gloss" representations, enabling a clean analysis of the mapping between specific video segments and written labels.

Interpretability Analysis and Key Insights

The core of the study involved visualizing attention weights at every decoding step to identify which video frames "triggered" specific words. Several critical patterns emerged:

Implicit Frame Clustering

A primary discovery was that the model does not process frames in isolation. Instead, the cross-attention mechanism naturally learns to focus on "clusters" of contiguous frames. These clusters correspond directly to the physical execution of a sign, suggesting that the model performs implicit sign segmentation without explicit supervision.

Diagonal Alignment and Sentence Length

For shorter sentences (typically up to 5 tokens), the cross-attention maps exhibit a clear diagonal alignment. This indicates that the model identifies signs in their chronological order and maps them directly to output glosses. As shown in Figure 4, the attention peaks align precisely with the temporal location of the signs in the video.

Cross-attention heatmap showing the alignment between predicted tokens and video frame clusters.

However, as sentence length increases (beyond 6-7 glosses), these diagonal patterns begin to blur. The researchers hypothesize that for longer sequences, the model starts to rely more heavily on linguistic probability and internal context than on direct visual evidence.

The Attention Shift

The analysis revealed a dynamic shift between cross-attention and self-attention. At the beginning of a translation, the model relies heavily on the video input (cross-attention). As the sentence progresses, the weight shifts toward self-attention, where the model uses previously generated words to predict the next token, effectively leveraging learned linguistic patterns.

The Interpretability Bottleneck

Interestingly, the clarity of these patterns is sensitive to the model's hidden dimension size. Smaller dimensions (e.g., 16) produced significantly more interpretable and "sharper" attention maps compared to larger dimensions (e.g., 64). While larger models may achieve slightly higher accuracy, they tend to "smear" information across the sequence, making the internal logic less transparent to human observers.

Results and Conclusion

The proposed model achieved a Word Error Rate (WER) of 0.06 on the GSL dataset, matching current state-of-the-art performance while providing unprecedented transparency. When trained on full Greek text instead of glosses, the diagonal alignment disappeared while frame clustering remained, confirming that the decoder internally handles the complex grammatical reordering between Sign Language and written Greek.

Future work will focus on "human-in-the-loop" validation with expert sign language translators to verify that the identified frame clusters align with linguistic boundaries. Additionally, the researchers plan to extend this analysis to larger, "in-the-wild" datasets like PHOENIX-2014T to test the generalizability of these interpretability patterns across different languages and environments.

Summary updated

BibTeX
@inproceedings{bianco2024signattention,
  author = {Pedro Alejandro Dal Bianco and Oscar Agustín Stanchi and Facundo Manuel Quiroga and Franco Ronchetti and Enzo Ferrante},
  title = {{SignAttention: On the Interpretability of Transformer Models for Sign Language Translation}},
  booktitle = {LXAI @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=xUAzSG7b8j},
}
Figure