Skip to main content
QUICK REVIEW

[Paper Review] Attacks against Ranking Algorithms with Text Embeddings: a Case Study on Recruitment Algorithms

Anahita Samadi, Debapriya Banerjee|arXiv (Cornell University)|Aug 11, 2021
Adversarial Robustness in Machine LearningComputer Science32 references2 citations
TL;DR

This paper proposes white-box and black-box adversarial attacks against recruitment ranking algorithms that use text embeddings (USE and TF-IDF) to match resumes to job descriptions. By identifying high-impact keywords in embedding space, attackers significantly improve resume rankings—achieving up to 100% acceptance rates in black-box settings after keyword injection.

ABSTRACT

Recently, some studies have shown that text classification tasks are vulnerable to poisoning and evasion attacks. However, little work has investigated attacks against decision making algorithms that use text embeddings, and their output is a ranking. In this paper, we focus on ranking algorithms for recruitment process, that employ text embeddings for ranking applicants resumes when compared to a job description. We demonstrate both white box and black box attacks that identify text items, that based on their location in embedding space, have significant contribution in increasing the similarity score between a resume and a job description. The adversary then uses these text items to improve the ranking of their resume among others. We tested recruitment algorithms that use the similarity scores obtained from Universal Sentence Encoder (USE) and Term Frequency Inverse Document Frequency (TF IDF) vectors. Our results show that in both adversarial settings, on average the attacker is successful. We also found that attacks against TF IDF is more successful compared to USE.

Motivation & Objective

  • To investigate adversarial attacks on ranking algorithms that use text embeddings for resume-to-job-description matching.
  • To identify influential keywords that maximally increase similarity scores between resumes and job descriptions.
  • To develop a black-box attack method using a multilabel neural network without prior knowledge of the embedding model.
  • To evaluate attack success across different embedding techniques, particularly TF-IDF and Universal Sentence Encoder (USE).

Proposed method

  • Proposes a white-box attack that analyzes the embedding space to extract keywords with high influence on cosine similarity scores.
  • Uses gradient-based optimization to identify text items that maximally increase similarity between a resume and job description in USE and TF-IDF vector spaces.
  • Employs a multiliteral neural network in the black-box setting to predict influential keywords without access to the internal embedding model.
  • Trains the neural network on one-hot encoded resume vectors and ground-truth labels of top 50 keywords per resume, using 70% training and 30% test split.
  • Validates attack success by submitting modified resumes to a recruitment oracle and measuring changes in ranking and acceptance rates.
  • Uses cosine similarity as the core metric to compute matching scores between resumes and job descriptions.

Experimental results

Research questions

  • RQ1How can an adversary identify the most influential keywords in the embedding space to improve a resume's ranking?
  • RQ2To what extent do white-box attacks succeed in manipulating similarity scores using USE and TF-IDF embeddings?
  • RQ3Can a black-box attack effectively identify high-impact keywords without knowledge of the underlying embedding model?
  • RQ4How does the performance of attacks differ between TF-IDF and USE-based ranking systems?
  • RQ5What is the real-world impact of such attacks on resume acceptance rates in a simulated recruitment pipeline?

Key findings

  • In the white-box setting, the attack successfully increased the similarity score between resumes and job descriptions by strategically inserting high-impact keywords identified via embedding space analysis.
  • The black-box attack using a multilabel neural network achieved a 100% acceptance rate after keyword injection, up from a baseline of 20% without attack.
  • TF-IDF-based attacks were more effective than USE-based attacks, with higher success rates in improving resume rankings.
  • More than 200 resumes experienced a rank improvement of over 400 positions after keyword insertion in the complex setting, demonstrating large-scale impact.
  • The neural network model achieved a maximum F1-score of 0.82 on the validation set in the simple black-box setting and 0.75 in the complex setting, indicating strong predictive performance.
  • The study confirms that ranking algorithms using text embeddings are vulnerable to adversarial manipulation, even without access to the model's internal parameters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.