A Representation Level Analysis of NMT Model Robustness to Grammatical Errors

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Issam, Abderrahmane, Semerci, Yusuf Can, Scholtes, Jan, Spanakis, Gerasimos
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913861380079616
author Issam, Abderrahmane
Semerci, Yusuf Can
Scholtes, Jan
Spanakis, Gerasimos
author_facet Issam, Abderrahmane
Semerci, Yusuf Can
Scholtes, Jan
Spanakis, Gerasimos
contents Understanding robustness is essential for building reliable NLP systems. Unfortunately, in the context of machine translation, previous work mainly focused on documenting robustness failures or improving robustness. In contrast, we study robustness from a model representation perspective by looking at internal model representations of ungrammatical inputs and how they evolve through model layers. For this purpose, we perform Grammatical Error Detection (GED) probing and representational similarity analysis. Our findings indicate that the encoder first detects the grammatical error, then corrects it by moving its representation toward the correct form. To understand what contributes to this process, we turn to the attention mechanism where we identify what we term Robustness Heads. We find that Robustness Heads attend to interpretable linguistic units when responding to grammatical errors, and that when we fine-tune models for robustness, they tend to rely more on Robustness Heads for updating the ungrammatical word representation.
format Preprint
id arxiv_https___arxiv_org_abs_2505_21224
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Representation Level Analysis of NMT Model Robustness to Grammatical Errors
Issam, Abderrahmane
Semerci, Yusuf Can
Scholtes, Jan
Spanakis, Gerasimos
Computation and Language
Understanding robustness is essential for building reliable NLP systems. Unfortunately, in the context of machine translation, previous work mainly focused on documenting robustness failures or improving robustness. In contrast, we study robustness from a model representation perspective by looking at internal model representations of ungrammatical inputs and how they evolve through model layers. For this purpose, we perform Grammatical Error Detection (GED) probing and representational similarity analysis. Our findings indicate that the encoder first detects the grammatical error, then corrects it by moving its representation toward the correct form. To understand what contributes to this process, we turn to the attention mechanism where we identify what we term Robustness Heads. We find that Robustness Heads attend to interpretable linguistic units when responding to grammatical errors, and that when we fine-tune models for robustness, they tend to rely more on Robustness Heads for updating the ungrammatical word representation.
title A Representation Level Analysis of NMT Model Robustness to Grammatical Errors
topic Computation and Language
url https://arxiv.org/abs/2505.21224