mlsanityData to 14 Oct 2026

LEA: Improving Sentence Similarity Robustness to Typos Using Lexical Attention Bias

arXiv 2307.02912 ↗First posted 6 Jul 2023cs.CL cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Textual noise, such as typos or abbreviations, is a well-known issue that penalizes vanilla Transformers for most downstream tasks. We show that this is also the case for sentence similarity, a fundamental task in multiple domains, e.g. matching, retrieval or paraphrasing. Sentence similarity can be approached using cross-encoders, where the two sentences are concatenated in the input allowing the model to exploit the inter-relations between them. Previous works addressing the noise issue mainly rely on data augmentation strategies, showing improved robustness when dealing with corrupted samples that are similar to the ones used for training. However, all these methods still suffer from the token distribution shift induced by typos. In this work, we propose to tackle textual noise by equipping cross-encoders with a novel LExical-aware Attention module (LEA) that incorporates lexical similarities between words in both sentences. By using raw text similarities, our approach avoids the tokenization shift problem obtaining improved robustness. We demonstrate that the attention bias introduced by LEA helps cross-encoders to tackle complex scenarios with textual noise, specially in domains with short-text descriptions and limited context. Experiments using three popular Transformer encoders in five e-commerce datasets for product matching show that LEA consistently boosts performance under the presence of noise, while remaining competitive on the original (clean) splits. We also evaluate our approach in two datasets for textual entailment and paraphrasing showing that LEA is robust to typos in domains with longer sentences and more natural context. Additionally, we thoroughly analyze several design choices in our approach, providing insights about the impact of the decisions made and fostering future research in cross-encoders dealing with typos.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 39 of its 53 references that are in the map. First posted on arXiv 6 Jul 2023.

Builds on

39 of 53 references.

References · 39

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2020Supervised Contrastive Learningcited by 2,829
  7. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  8. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  9. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
  10. 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
  11. 2018Self-Attention with Relative Position Representationscited by 1,120
  12. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
27 more
  1. 2019Passage Re-ranking with BERTcited by 645
  2. 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 476
  3. 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
  4. 2019Poly-encoders: Transformer Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoringcited by 165
  5. 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 163
  6. 2020Deep Entity Matching with Pre-Trained Language Modelscited by 144
  7. 2022DiffCSE: Difference-based Contrastive Learning for Sentence Embeddingscited by 132
  8. 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
  9. 2021BROS: A Pre-trained Language Model Focusing on Text and Layout for Better Key Information Extraction from Documentscited by 104
  10. 2022TableFormer: Robust Transformer Modeling for Table-Text Encodingcited by 91
  11. 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
  12. 2020Adv-BERT: BERT is not robust on misspellings! Generating nature adversarial samples on BERTcited by 69
  13. 2021Baleen: Robust Multi-Hop Reasoning at Scale via Condensed Retrievalcited by 63
  14. 2019Training on Synthetic Noise Improves Robustness to Natural Noise in Machine Translationcited by 52
  15. 2021CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddingscited by 47
  16. 2020PARADE: Passage Representation Aggregation for Document Rerankingcited by 44
  17. 2021Pre-trained Language Model for Web-scale Retrieval in Baidu Searchcited by 31
  18. 2021Pairwise Supervised Contrastive Learning of Sentence Representationscited by 31
  19. 2022Supervised Contrastive Learning for Product Matchingcited by 24
  20. 2020DA-Transformer: Distance-aware Transformercited by 23
  21. 2021The Case for Translation-Invariant Self-Attention in Transformer-Based Language Modelscited by 23
  22. 2021Dealing with Typos for BERT-based Passage Retrieval and Rankingcited by 23
  23. 2022Analysing the Robustness of Dual Encoders for Dense Retrieval Against Misspellingscited by 23
  24. 2022CharacterBERT and Self-Teaching for Improving the Robustness of Dense Retrievers on Queries with Typoscited by 22
  25. 2022In Defense of Cross-Encoders for Zero-Shot Retrievalcited by 21
  26. 2021Trans-Encoder: Unsupervised sentence-pair modelling through self- and mutual-distillationscited by 20
  27. 2022Block-SCL: Blocking Matters for Supervised Contrastive Learning in Product Matchingcited by 2

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.