Google Unveils RETVec – Gmail’s New Defense Against Spam and Malicious Emails

Dec 2, 2023 | Hacking, SOC | 0 comments

Google has revealed a new multilingual text vectorizer called RETVec (short for Resilient and Efficient Text Vectorizer) to help detect potentially harmful content such as spam and malicious emails in Gmail.

“RETVec is trained to be resilient against character-level manipulations including insertion, deletion, typos, homoglyphs, LEET substitution, and more,” according to the project’s description on GitHub.

“The RETVec model is trained on top of a novel character encoder which can encode all UTF-8 characters and words efficiently.”

Cybersecurity

While huge platforms like Gmail and YouTube rely on text classification models to spot phishing attacks, inappropriate comments, and scams, threat actors are known to devise counter-strategies to bypass these defense measures.

They have been observed resorting to adversarial text manipulations, which range from the use of homoglyphs to keyword stuffing to invisible characters.

RETVec, which works on over 100 languages out-of-the-box, aims to help build more resilient and efficient server-side and on-device text classifiers, while also being more robust and computationally less expensive.

Vectorization is a methodology in natural language processing (NLP) to map words or phrases from vocabulary to a corresponding numerical representation in order to perform further analysis, such as sentiment analysis, text classification, and named entity recognition.

Google RETVec

“Due to its novel architecture, RETVec works out-of-the-box on every language and all UTF-8 characters without the need for text preprocessing, making it the ideal candidate for on-device, web, and large-scale text classification deployments,” Google’s Elie Bursztein and Marina Zhang noted.

Cybersecurity

The tech giant said the integration of the vectorizer to Gmail improved the spam detection rate over the baseline by 38% and reduced the false positive rate by 19.4%. It also lowered the Tensor Processing Unit (TPU) usage of the model by 83%.

“Models trained with RETVec exhibit faster inference speed due to its compact representation. Having smaller models reduces computational costs and decreases latency, which is critical for large-scale applications and on-device models,” Bursztein and Zhang added.

Red Teaming

Blue Teaming

Pentesting

Endpoint Security

Network Defense

Identity and Access Management

Cryptography

Compliance and Regulations

Secure Coding

Physical Security

Threat Intelligence

Malware Analysis

Stay Up to Date With The Latest News & Updates

Access Premium Content

Unlock a treasure trove of expert cybersecurity insights, in-depth analyses, and exclusive reports. Go premium and stay ahead of the digital threats with our top-tier content

Join Our Newsletter

Stay informed and vigilant. Subscribe to our newsletter for the latest in cybersecurity trends, threats, and best practices—delivered straight to your inbox

Please enable JavaScript in your browser to complete this form.
Name

Follow Us

Dive deeper into the world of cybersecurity. Follow us on our social channels for daily insights, tips, and exclusive content