Research

Google's Mass Spec Skills hit 97% accuracy with a lightweight Gemini model

Google's Mass Spec Skills for Antigravity identified molecules in ~97% of benchmark attempts, with lightweight Gemini 3.8 Flash matching frontier models and cutting tokens nearly fourfold.

From spectrum to structure: Identifying molecules with Mass Spec Skills for Google Antigravity
From spectrum to structure: Identifying molecules with Mass Spec Skills for Google AntigravityOsloMetX / pixabay
By Elena Vasquez6 min read

Why it matters

  • Mass Spec Skills identified and verified the exact molecule in ~97% of attempts across 100 Enamine REAL MS/MS compounds, with lightweight Gemini 3.8 Flash matching frontier models Gemini 4 Argon and Gemini 4 Carbon.
  • Without internet or skills, accuracy stayed below 4% for all three models.
  • The skills cut generated tokens per attempt nearly fourfold on Flash, by half on Argon, and by nearly a fifth on Carbon.
  • Spectral library searches annotate only about 5% of measured spectra on average, and 10% for human samples.
  • Google is offering 10,000 scientists its highest Antigravity usage tier free for six months, on a rolling basis.

Google's new Mass Spec Skills for Google Antigravity identified and verified the exact molecule in roughly 97% of attempts — and a lightweight Gemini 3.8 Flash model matched the accuracy of two frontier models. The suite, released today, pairs Gemini's chemical reasoning with established mass spectrometry tools and public chemical databases to interpret tandem mass spectra, and Google is offering 10,000 scientists its highest Antigravity usage tier free for six months.

The problem it targets is stark. Spectral searches annotate on average only about 5% of measured spectra, and 10% for human samples. The rest has been called the "dark matter" of mass spectrometry. A single drop of blood, soil or plant tissue extract can contain tens of thousands of molecular signals — nutrients, hormones, drugs, pollutants, bioactive compounds — but the measurements do not directly reveal molecular structure. Many unannotated molecules are already listed in public chemical databases; their spectra simply have never been recorded.

What are Mass Spec Skills?

Mass Spec Skills is a suite of domain skills built in collaboration with analytical chemists using community-developed tools. Antigravity runs the skills, combines their results, and reasons about the chemistry, laying out the evidence for a chemist to review. Researchers describe their task and instrument-specific tolerances in plain language. The agent selects and chains the relevant skills, from a single prompt, taking an unannotated tandem mass spectrum to a proposed chemical structure and an auditable report.

Each workflow stage also runs on its own for smaller tasks: cleaning up a noisy recording, annotating peaks, or comparing candidate isomers.

A language model cannot do this alone. Matching fragments to a structure takes precise mass calculations, searches across databases of millions of compounds, and simulations of how bonds break. Pairing Gemini's reasoning with dedicated chemistry tools brings those steps into one workflow.

How did the agent crack a hard spectrum?

Google walked through a negative-mode tandem mass spectrum from an end-to-end run, with precursor [M−H]− at m/z 395.1387. Negative-ion spectra are traditionally much harder to annotate than positive-ion recordings, due to limited reference libraries and less well-characterised fragmentation mechanisms.

With spectral library lookup disabled, the agent used SIRIUS to pin down the molecular formula C20H21ClN6O. In the fragmentation tree, the molecule splits cleanly into two complementary halves at m/z 162.1037 ([C9H12N3]−) and m/z 232.0283 ([C11H7ClN3O]−), whose formulas add up to the intact precursor. From the m/z 232.0283 half, sequential neutral losses of HCl and isocyanic acid (HNCO) in both orders form a closed loop indicating a central urea linkage.

The agent then retrieved and scored all 845 C20H21ClN6O isomers in PubChem. Several high-scoring candidates, including a fused triazolobenzazepinol isomer (CID 154638626), accounted for 97.7% of the summed fragment intensity across 14 of the 19 preprocessed peaks. But that isomer lacks a urea linkage, leaving it no route to lose HNCO, and the spectrum shows only baseline noise at the expected water-loss masses (m/z 377.1281 and m/z 214.0178).

Spectral coverage measures how much peak intensity a candidate matches by mass alone — without testing whether its functional groups and bond connectivity can plausibly form those fragments. Filtering the 845 isomers for structures with a central urea bond that cleaves into the two measured halves ruled out close amide isomers such as the runner-up (CID 55558151) and narrowed the list to five urea regioisomers. Secondary fragments from the chlorophenyl-pyrazole side (m/z 206.0485 and m/z 126.0114) singled out the true molecule (CID 137835447). The verified structure and both rejected non-urea isomers matched the same 97.7% of summed fragment intensity, so distinguishing them required testing fragmentation pathways — just as an analytical chemist would.

What does the benchmark show?

Google evaluated Antigravity on 100 compounds sampled from the Enamine REAL MS/MS collection in MoNA (structures also catalogued in PubChem), after filtering out under-fragmented recordings such as intact precursors or dimers. The comparison covered three set-ups:

  • Antigravity with no internet access or skills, testing what models deduce from the peak list alone
  • Antigravity with user-permitted internet access to query public libraries and databases
  • Antigravity with that access plus the Mass Spec Skills

Three models ran the tests: lightweight Gemini 3.8 Flash and frontier models Gemini 4 Argon and Gemini 4 Carbon.

With no internet or skills, accuracy stayed below 4% across all three models — the models cannot reliably deduce structures from peak lists alone. Internet access alone didn't solve it either. Custom search scripts written from scratch proved brittle around precursor windows, adducts and noisy peaks, causing the frontier models to miss a quarter to a third of spectra and the lightweight model to miss more than three-quarters.

With the Mass Spec Skills added, all three models hit roughly 97% accuracy, with Flash matching the frontier models.

Do the skills cut costs?

They cut tokens, too. Without internet or skills, the models burned the most tokens per attempt trying to deduce structures from raw peak lists. With internet access alone, they still spent substantial tokens improvising API queries and debugging one-off scripts. With the skills, the agent calls validated, ready-made tools instead, cutting generated tokens per attempt:

  • Nearly fourfold on Gemini 3.8 Flash
  • By half on Gemini 4 Argon
  • By nearly a fifth on Gemini 4 Carbon

What can't it do?

The limits are real. Some questions cannot be answered from an LC-MS/MS spectrum at all, such as mirror-image molecules and some closely related isomers. These break apart in nearly identical ways; telling them apart requires chromatographic retention time, ion mobility, or NMR.

Genuinely new molecules, including many natural products, are not in any existing database, so Antigravity cannot retrieve or confirm a structure on its own. It does give chemists an informed starting point: a predicted formula, peak assignments, and a detailed annotation table. For undiscovered molecules, the agent narrows down the formula and the parts of the structure supported by the fragments to guide full elucidation.

The skills keep the chemist in control of decisions requiring scientific judgement while performing the time-consuming groundwork of spectral interpretation. That matters because manual analysis cannot keep up — a single study can produce thousands of spectra, and running the full expert workflow takes significant time per spectrum.

How do you get it?

The Mass Spec Skills are available on Google Antigravity today. Users download the Antigravity app and install the Mass Spec plugin; Enterprise users can choose "Use Business Account" and log in with Google Cloud credentials.

Google is also offering 10,000 scientists the highest usage tier in Google Antigravity free for six months, onboarded on a rolling basis, subject to eligibility, capacity, and selection. Applications are now open.

The broader stakes sit in scale. If automated spectral interpretation moves from single spectra to full metabolomics studies, researchers could identify far more of the unknown small molecules spanning human health, environmental science, and natural-product discovery — chipping away at the 95% of spectra that go unannotated.

Original: antigravity.google

Share this article:

More from Elena Vasquez

Elena Vasquez

Show full bio

Market editor covering technology and product news in artificial intelligence and machine learning at AI In Context.

921 articles

Related articles

  1. Google Publishes Co-Scientist in Nature, Opens AI Hypothesis Tool to Researchers
  2. MIT, BASF test CheMeleon for low-data molecular prediction
  3. GPT-6.2 Astra earns 84.5% on OpenAI’s 99-task MedChemBench
  4. OpenAI's BioBasicsBench tests agents on raw wet-lab evidence
  5. Google Antigravity Finds Antimicrobial Peptide Lead in One Session

« Previous article