[Paper Review] Analyzing the Use of Influence Functions for Instance-Specific Data Filtering in Neural Machine Translation
This paper investigates influence functions (IF) for instance-specific data filtering in Neural Machine Translation (NMT), proposing two contrastive extensions to improve retrieval performance over vanilla IF. It demonstrates that IF can identify erroneous training examples beyond regular expressions, but automation remains challenging due to sensitivity to network components and lack of robust thresholding strategies.
Customer feedback can be an important signal for improving commercial machine translation systems. One solution for fixing specific translation errors is to remove the related erroneous training instances followed by re-training of the machine translation system, which we refer to as instance-specific data filtering. Influence functions (IF) have been shown to be effective in finding such relevant training examples for classification tasks such as image classification, toxic speech detection and entailment task. Given a probing instance, IF find influential training examples by measuring the similarity of the probing instance with a set of training examples in gradient space. In this work, we examine the use of influence functions for Neural Machine Translation (NMT). We propose two effective extensions to a state of the art influence function and demonstrate on the sub-problem of copied training examples that IF can be applied more generally than handcrafted regular expressions.
Motivation & Objective
- To explore the feasibility of using influence functions (IF) for instance-specific data filtering in NMT, targeting error correction via removal of problematic training examples.
- To address the limitations of vanilla IF in NMT by proposing enhanced methods that improve retrieval performance.
- To evaluate whether IF can surpass rule-based filtering (e.g., regular expressions) in identifying training examples with similar errors, even when lexical forms differ.
- To investigate the practical challenges in automating IF-based filtering, particularly in threshold selection and gradient component sensitivity.
Proposed method
- The study applies TracIn, a computationally efficient variant of influence functions, which approximates influence using gradient dot products across model checkpoints instead of inverting the Hessian.
- Influence is computed as the average gradient similarity across C checkpoints: $\mathcal{I}_{\text{TracIn}}(z,z') = \frac{1}{C}\sum_{i=1}^{C} \nabla_\theta L(z')^T \nabla_\theta L(z)$.
- Two contrastive methods are proposed: GradDiff (gradient difference) and GradHYP (gradient similarity with hypothesis), both applied to specific network components like source embeddings and full model parameters.
- Synthetic training examples with controlled translation errors are constructed to simulate real-world customer-reported errors, enabling controlled evaluation of IF performance.
- The influence scores are ranked per probing example, and thresholding strategies are evaluated via clustering on consecutive differences in influence values.
Experimental results
Research questions
- RQ1Can influence functions effectively retrieve training instances responsible for specific translation errors in NMT?
- RQ2How does the choice of network component (e.g., source embedding vs. full model) affect the performance of influence functions in NMT?
- RQ3Can contrastive influence function variants improve retrieval performance over vanilla IF in NMT?
- RQ4Is it feasible to automate the filtering process using influence functions, or are thresholding and component selection too sensitive to error patterns?
Key findings
- Vanilla influence functions exhibit poor retrieval performance in NMT, particularly when using full model gradients, indicating that standard IF is insufficient for this task.
- The gradient similarity (influence) is highly sensitive to the selected network component, with source embeddings yielding more stable and meaningful influence scores than full model gradients.
- The proposed contrastive influence function methods—GradDiff and GradHYP—significantly improve retrieval performance across all tested gradient components and parameter sharing settings.
- Training examples with copied source sentences, even when lexically different, show similar gradients, demonstrating that IF can detect error patterns beyond what regular expressions can capture.
- An effective automation of IF-based filtering remains challenging, as the influence values drop abruptly after the first few top-ranked instances, making automatic threshold selection difficult.
- The 'elbow' in influence scores occurs within the first 50 instances, suggesting that only a small number of training examples are highly influential, but identifying this point reliably is non-trivial.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.