TL;DR
CERTA is a novel, semantics-aware explanation framework designed specifically for black-box deep learning models in Entity Resolution (ER). By leveraging a data-driven perturbation framework based on "open triangles" and lattice structures, it provides highly faithful saliency scores and introduces the first-ever counterfactual explanation technique tailored for ER.
What Problem Does This Paper Address?
Entity Resolution (ER)—the task of identifying different records that refer to the same real-world entity—has been revolutionized by Deep Learning (DL) models like LSTMs and Transformers. However, these models operate as black boxes, offering high accuracy but zero intuition or rationale for their predictions.
When a model mistakenly flags a pair of product descriptions as a non-match, engineers need to know why to debug and trust the system. While general-purpose explainability tools like LIME or SHAP exist, they are task-agnostic. They treat inputs as flat text or single images, completely ignoring the unique semantics of ER, which inherently compares pairs of structured records attribute-by-attribute. As a result, standard explainers often produce unfaithful explanations that don't reflect the model's true internal logic.
Methods
The authors introduce CERTA, an explainability method that treats the underlying DL model as a black box but injects ER domain knowledge into the explanation process. CERTA delivers two types of explanations: saliency (assigning importance scores to attributes) and counterfactuals (showing minimal changes needed to flip a prediction).
The core mechanics rely on three clever ideas:
- Open Triangles: Instead of injecting random noise or arbitrary token dropping to perturb data, CERTA uses a data-driven approach. To explain a prediction for record pair $\langle u, v \rangle$, it finds a third "support" record $w$ from the dataset that has a known relationship with the pivot record $v$.
- Semantics-Aware Perturbation: CERTA creates realistic synthetic record pairs by progressively copying attribute values from the support record $w$ to the free record $u$. This ensures the perturbed data matches the real training distribution, making the model's response highly reliable.

- Lattice Optimization & Monotonicity: Testing every combination of attributes to see what flips a prediction is computationally expensive. CERTA models the powerset of attributes as a lattice and assumes monotonicity—if changing a specific attribute subset flips the prediction, changing a superset of those attributes will likely do the same. By searching for the Minimal Flipping Antichain (MFA), CERTA drastically cuts down the number of required model evaluations.
Saliency scores are computed based on the probability of necessity (how often an attribute is required to flip a prediction), while counterfactuals are derived from the probability of sufficiency (the minimal set of attribute changes guaranteed to flip the outcome).
Datasets
The framework was evaluated using 12 widely accepted ER benchmark datasets from the DeepMatcher repository:
- Standard text/structured datasets: Abt-Buy (AB), Amazon-Google (AG), BeerAdvo-RateBeer (BA), DBLP-ACM (DA), DBLP-Scholar (DS), Fodors-Zagats (FZ), iTunes-Amazon (IA), and Walmart-Amazon (WA).
- Dirty variants: DDA, DDS, DIA, and DWA (which include artificial noise to simulate real-world data imperfections).
Key Insights and Ideas
- Task Semantics Matter: Task-agnostic explainers fail in ER because they don't understand that data is structured into pairs of attributes. CERTA proves that being "pair-aware" yields significantly more accurate explanations.
- Real Data Makes Better Perturbations: Generating counterfactuals by swapping actual attribute values from existing records preserves the semantic integrity of the data far better than random word masking.
- Monotonicity is a Safe Compute Saver: Assuming model monotonicity allows the algorithm to skip evaluating massive combinations of attributes. Empirically, this optimization saves between 50% and 78% of computational overhead while maintaining an incredibly low error rate ($\le 4\%$).
Key Results
CERTA was tested against three state-of-the-art DL architectures for ER: DeepER (LSTM), DeepMatcher (Hybrid), and Ditto (DistilBERT). It was compared to saliency baselines (Mojito, LandMark, SHAP) and counterfactual baselines (DiCE, LIME-C, SHAP-C).
- Higher Faithfulness: In saliency evaluation, CERTA consistently achieved the lowest Area Under the Curve (AUC) across almost all datasets, proving that the attributes it flags as "important" truly drive the model's predictions.
- Superior Counterfactual Quality: CERTA outperformed DiCE and other adaptations in proximity, sparsity, and diversity metrics. It successfully forced the black-box models to flip their predictions using fewer, more realistic attribute changes.
- Robustness: CERTA consistently generated a high volume of valid counterfactual examples per pair, whereas task-agnostic methods frequently failed to find even a single valid counterfactual.
Limitations and Future Work
While highly effective, CERTA operates strictly at the attribute level (e.g., pointing to the entire "Description" field). The authors note that extending the framework to provide token-level explanations (highlighting specific words within an attribute) is a vital next step. Additionally, they plan to explore applying CERTA's triangle-and-lattice framework to other transitive relational tasks, such as schema matching and recommendation systems.
Summary updated