News

Hate speech-detecting AIs are fools for ‘love’

State-of-the-art detectors that screen out online hate speech can be easily duped by humans, shows new study
How Google Perspective rates a comment otherwise deemed toxic after some inserted typos and a little love.

Hateful text and comments are an ever-increasing problem in online environments, yet addressing the rampant issue relies on being able to identify toxic content. A new study by the Aalto University Secure Systems research group has discovered weaknesses in many machine learning detectors currently used to recognize and keep hate speech at bay.

Many popular social media and online platforms use hate speech detectors that a team of researchers led by Professor N. Asokan have now shown to be brittle and easy to deceive. Bad grammar and awkward spelling—intentional or not—might make toxic social media comments harder for AI detectors to spot.

The team put seven state-of-the-art hate speech detectors to the test. All of them failed.

Modern natural language processing techniques (NLP) can classify text based on individual characters, words or sentences. When faced with textual data that differs from that used in their training, they begin to fumble.

‘We inserted typos, changed word boundaries or added neutral words to the original hate speech. Removing spaces between words was the most powerful attack, and a combination of these methods was effective even against Google’s comment-ranking system Perspective,’ says Tommi Gröndahl, doctoral student at Aalto University.

Google Perspective ranks the ‘toxicity’ of comments using text analysis methods. In 2017, researchers from the University of Washington showed that Google Perspective can be fooled by introducing simple typos. Gröndahl and his colleagues have now found that Perspective has since become resilient to simple typos yet can still be fooled by other modifications such as removing spaces or adding innocuous words like ‘love’.

A sentence like ‘I hate you’ slipped through the sieve and became non-hateful when modified into ‘Ihateyou love’.

The researchers note that in different contexts the same utterance can be regarded either as hateful or merely offensive. Hate speech is subjective and context-specific, which renders text analysis techniques insufficient as stand-alone solutions.

The researchers recommend that more attention be paid to the quality of data sets used to train machine learning models—rather than refining the model design. The results indicate that character-based detection could be a viable way to improve current applications.

The study was carried out in collaboration with researchers from University of Padua in Italy. The results will be presented at the ACM AISec workshop in October.

The study is part of an ongoing project called Deception Detection via Text Analysis in the Secure Systems group at Aalto University.

Research article:

Tommi Gröndahl, Luca Pajola, Mika Juuti, Mauro Conti, N.Asokan:
All You Need is "Love": Evading Hate-speech Detection.
https://arxiv.org/abs/1808.09115

More information:

Tommi Gröndahl, Doctoral Candidate
Aalto University
Secure Systems group
[email protected]
tel. +358 400 426 523

N. Asokan, Professor
Aalto University
Secure Systems group
[email protected]
tel. +358 50 483 6465

  • Published:
  • Updated:

Read more news

ınterns
Research & Art, University Published:

Pengxin Wang: The internship was an adventure filled with incredible research, unforgettable experiences, and lifelong friendships.

Pengxin Wang’s AScI internship advanced AI research, fostered global friendships, and inspired his journey toward trustworthy AI solutions.
Radiokatu20_purkutyömaa_Pasila_Laura_Berger
Research & Art Published:

Major grant from the Kone Foundation for modern architecture research - Laura Berger's project equates building loss with biodiversity loss

Aalto University postdoctoral researcher Laura Berger and her team have been awarded a 541 400 euro grant from the Kone Foundation to study the effects of building loss on society and the environment.
An artistic rendering of two chips on a circuit board, one is blue and the other is orange and light is emitting from their surf
Press releases Published:

Researchers aim to correct quantum errors at super-cold temperatures instead of room temperature

One of the major challenges in the development of quantum computers is that the quantum bits, or qubits, are too imprecise. More efficient quantum error correction is therefore needed to make quantum computers more widely available in the future. Professor Mikko Möttönen has proposed a novel solution for quantum error correction and has received a three-year grant from the Jane and Aatos Erkko Foundation to develop it.
Three happy students. Photo: Unto Rautio
Research & Art Published:

14 projects selected for seed funding to boost collaboration between Aalto, KU Leuven, and University of Helsinki

The funded projects lay the groundwork for future joint research endeavors, reinforcing the strategic partnership’s goal to fostering impactful and interdisciplinary collaboration.