PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

Google Upgrades Gmail's Spam Filter With New 'RETVec' System

The RETVec system detects spam at a 38% higher rate over Gmail's previous filter while also reducing the number of false positives.

 & Michael Kan Principal Reporter

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS
(Photo Illustration by Mateusz Slodkowski/SOPA Images/LightRocket via Getty Images)

Google has quietly updated Gmail with a new spam filter that the company says does a better job of flagging junk messages and phishing emails

The new spam filter is based on an “RETVec,” a newly developed text vectorizer that can map words into vectors or numerical representations. Developers have long used text vectorization to help computer models interpret and classify human language, including whether an email may be spam or not. 

The problem is that current text classification models can still struggle to identify scams and phishing attacks. That’s because cybercriminals are creating the content to bypass the defenses, for example, using non-Latin characters to create links to reputable brands. In addition, text classification models can require “large dictionaries” and computing resources to flag the malicious content or understand typos, the company’s researchers wrote in a paper

(Credit: Google)

In response, Google developed RETVec, which is trained to detect and understand character-level manipulations, including typos in a piece of text, while also reducing the computing cost.

"RETVec embeddings are trained using pair-wise metric learning, ensuring that words containing typos are embedded close to the the original word," Google's researchers wrote.

Over the past year, Google has also been testing RETVec inside company systems "to evaluate its usefulness and found it to be highly effective for security and anti-abuse applications,” the company wrote in a blog post. The results show RETVec improved spam detection by 38% over Gmail’s previous filter.

(Credit: Google)

At the same time, RETVec reduced the false-positive rate by 19% while using 83% less computing resources. This has made the “RETVec deployment one of the largest defense upgrades in recent years,” Google adds. The same system works for over 100 languages, including English. 

“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,” the company says.

In addition, Google has made RETVec open source, allowing other developers to incorporate the system as text classifier as well. 

About Our Expert

Michael Kan

Michael Kan

Principal Reporter

My Experience

I've been a journalist for over 15 years. I got my start as a schools and cities reporter in Kansas City and joined PCMag in 2017, where I cover satellite internet services, cybersecurity, PC hardware, and more. I'm currently based in San Francisco, but previously spent over five years in China, covering the country's technology sector.

Since 2020, I've covered the launch and explosive growth of SpaceX's Starlink satellite internet service, writing 600+ stories on availability and feature launches, but also the regulatory battles over the expansion of satellite constellations, fights with rival providers like AST SpaceMobile and Amazon, and the effort to expand into satellite-based mobile service. I've combed through FCC filings for the latest news and driven to remote corners of California to test Starlink's cellular service.

I also cover cyber threats, from ransomware gangs to the emergence of AI-based malware. In 2024 and 2025, the FTC forced Avast to pay consumers $16.5 million for secretly harvesting and selling their personal information to third-party clients, as revealed in my joint investigation with Motherboard.

I also cover the PC graphics card market. Pandemic-era shortages led me to camp out in front of a Best Buy to get an RTX 3000. I'm now following how the AI-driven memory shortage is impacting the entire consumer electronics market. I'm always eager to learn more, so please jump in the comments with feedback and send me tips.

The Best Tech I've Had:

  • My first video game console: a Nintendo Famicom
  • I loved my Sega Saturn despite PlayStation's popularity.
  • The iPod Video I received as a gift in college
  • Xbox 360 FTW
  • The Galaxy Nexus was the first smartphone I was proud to own.
  • The PC desktop I built in 2013, which still works to this day.

Read full bio