On the Robustness of Text Vectorizers

Rémi Catellier, Samuel Vaiter, Damien Garreau
3/9/2023
cs.CLcs.LGstat.ML

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

A fundamental issue in machine learning is the robustness of the model with respect to changes in the input. In natural language processing, models typically contain a first embedding layer, transforming a sequence of tokens into vector representations. While the robustness with respect to changes of continuous inputs is well-understood, the situation is less clear when considering discrete changes, for instance replacing a word by another in an input sentence. Our work formally proves that popular embedding schemes, such as concatenation, TF-IDF, and Paragraph Vector (a.k.a. doc2vec), exhibit robustness in the Hölder or Lipschitz sense with respect to the Hamming distance. We provide quantitative bounds for these schemes and demonstrate how the constants involved are affected by the length of the document. These findings are exemplified through a series of numerical examples.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{catellier2023robustness,
  title  = {On the Robustness of Text Vectorizers},
  author = {Rémi Catellier and Samuel Vaiter and Damien Garreau},
  year   = {2023},
  eprint = {2303.07203},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.07203v2},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.07203.svg)](https://codeofpaper.com/paper/2303.07203)

Discussion