Robert Brunck, Stefan Ganscha, Swaroop Guntupalli, Dariusz Lasecki, Gabriella Marfani, Jack Mason, Hussain Masoom, Rose Mirshafian, Eliseo Papa and Zoi Tsangalidou / 文章
只给模型峰列表,准确率不到4%;加上质谱技能后,大约97%能对上已知分子
DeepMind为Google Antigravity提供一套质谱技能,把Gemini的化学推理接到已有开源工具和公共数据库上。在100张已有库谱的测试里,轻量模型也能跟上前沿模型的准确率,生成的token还更少。超时一小时的尝试记为失败。
乔木改写
在DeepMind的测试里,只给模型一张质谱峰列表,不让它上网,也不给专用技能,三种Gemini模型认出已知分子的准确率都低于4%。加上一套质谱技能后,准确率到了大约97%,轻量模型也能跟上前沿模型。
这是2026年11月25日Google DeepMind博文《From spectrum to structure: Identifying molecules with Mass Spec Skills for Google Antigravity》里的结果。作者是Robert Brunck、Stefan Ganscha、Swaroop Guntupalli、Dariusz Lasecki、Gabriella Marfani、Jack Mason、Hussain Masoom、Rose Mirshafian、Eliseo Papa和Zoi Tsangalidou。他们与分析化学家合作,把Gemini的化学推理,接到社区里已有的质谱工具和公共化学数据库上。
血液、土壤或植物组织里,都有大量小分子,比如营养物质、激素、药物及其分解产物、污染物,或可能有治疗作用的活性化合物。要认出这些分子,通常得看串联质谱:分子在仪器里被打碎,留下一张峰列表。只靠语言模型看这张列表不够,因为要把碎片对上结构,需要精确的质量计算、在数百万化合物的数据库里检索,还要模拟化学键怎么断。
技能按分析化学的步骤走
Mass Spec Skills是一组领域技能,跑在Google Antigravity里。Antigravity调用这些技能,汇总结果,再做化学推理,并把证据摊开给化学家检查。分子如果已经在数据库里,辨认会快得多。遇到尚未收录的分子,智能体仍能帮忙:缩小分子式范围,标出碎片能支持的结构部位,给完整结构解析提供起点。
整套流程分成四步:整理信号、检索参考谱库、推断分子式并给候选结构排序,然后交叉核对并做精修。每一步都由Mass Spec Skills完成,底层是已经公开、分析化学里常用的工具。
媒体未能载入,请通过下方原文链接查看。
文章用一个实例把这些步骤走完。智能体先预处理原始记录,认出分子式是C20H21ClN6O,再把PubChem里845个同分异构体,拿模拟碎片和中性丢失去排序,最后把证据和排名第一的结构放在一起。它还做了一份详细报告,把预测的碎片亚结构,对到19个处理后信号峰里的14个,覆盖了碎片强度总和的97.7%。
媒体未能载入,请通过下方原文链接查看。
负离子模式的母离子是[M-H]-,质荷比395.1387。智能体把它换成中性分子质量396.1459道尔顿,再用matchms和可调的强度阈值,从原始记录里去掉1700多个低强度背景噪声峰,剩下干净的碎片信号。原文写的是1,761个原始峰,过滤后剩19个处理后的峰。
接着它在GNPS和MoNA这些实验MS/MS参考库里检索,用用户指定或与仪器匹配的质量容差,按余弦相似度给去噪后的碎片峰打分。这个例子里没有高置信度的库匹配,于是退回到分子式预测和化学数据库搜索。
分子式是把中性质量和SIRIUS的碎裂树评分结合起来,在10种候选元素里比较后给出的:氯化公式C20H21ClN6O,质量误差**-1.5** ppm,得分37.86,明显高于第二名的28.33。主要碎片公式加起来,也和完整分子对得上。
指认碎片和诊断性中性丢失时,用了MAGMa、MetFrag,以及成对的中性丢失查找。它把测到的峰,用氯化氢(HCl)和异氰酸(HNCO)的连续中性丢失串起来,把一个氯原子和一个脲基放在分子的同一半上。谱图上,和已知中性丢失成对的峰标成红色,包括脲基中央断裂形成的互补两半:质荷比162.1037(占45.1%)和232.0283(占6.8%)。
媒体未能载入,请通过下方原文链接查看。
分数打平的时候,要看键怎么断
谱覆盖率只衡量候选结构有多少峰强度能按质量对上,并不检查它的官能团和键连接能不能合理产生这些碎片。智能体还要像分析化学家那样,用诊断性中性丢失和键断裂去核对,这样才能自己排除高分但对不上的结构,并核实最终分子。
排名前两名的C20H21ClN6O同分异构体,在MAGMa里都对上了19个处理后峰中的14个,碎片强度都是97.7%,差别在于中央哌啶环的连接方向反了。
媒体未能载入,请通过下方原文链接查看。
左边是核实后的第一名,PubChem编号CID 137835447。它的不对称脲C-N键能直接裂成质荷比162.1037和232.0283,碳连接的嘧啶能形成低质量碎片(质荷比93.0463到119.0611),而不必打断芳香环。键断裂罚分合计26.0,数字越低,断裂代价越小。
右边是第二名CID 55558151。哌啶环一反,脲就变成酰胺,需要打断C-C键;嘧啶改成氮连接后,没有多余的碳可以在不打断芳香环的情况下形成[C5H5N2]-(质荷比93.0463)。键断裂罚分合计49.0。二次碎片质荷比206.0485和126.0114来自氯苯基-吡唑这一侧,把真正的分子从五个脲的区域异构体里单独标了出来。
智能体还用RDKit检查获胜结构在化学上是否成立,质量和分子式是否精确匹配,再画出二维结构,标出产生主要碎片对的中央键断裂位置。
100张已有库谱,三种条件,三种模型
即使化合物的参考谱已经在公共库里,认出它并核验,也比给智能体开一个网络权限更难。他们从MoNA里的Enamine REAL MS/MS集合中,抽样100个化合物,这些结构在PubChem里也能查到,并过滤掉碎裂不足的记录,比如几乎没碎开的完整母离子或二聚体。
三种设置分别是:Antigravity不能上网、也没有技能,用来看模型只凭峰列表能推断多少;Antigravity在用户允许下可以上网,替用户查询公共谱库和数据库;同样可以上网,再加上Mass Spec Skills。三种模型是轻量的Gemini 3.8 Flash,以及两款前沿模型Gemini 4 Argon和Gemini 4 Carbon。每个谱测三次。超过一小时墙钟限制的尝试记为失败,准确率记0%。暂时的基础设施和配额错误不计入。
没有网络也没有技能时,三个模型的准确率都低于4%。只给有限网络后,智能体可以查在线谱库,但临时写的检索脚本在母离子窗口、加合离子和噪声峰上容易脆掉。前沿模型会漏掉四分之一到三分之一的谱,轻量模型会漏掉不止四分之三。
加上Mass Spec Skills后,三个模型都在大约**97%**的尝试里认出并核实了正确分子,轻量模型和前沿模型的准确率相当。
媒体未能载入,请通过下方原文链接查看。
技能也降低了token消耗和人力。没有网络和技能时,模型花最多token去从原始峰列表推断结构。只给网络时,仍会花不少token即兴写接口查询、调试一次性脚本。有了技能之后,Antigravity改为调用已经校验过的现成技能,每次尝试生成的token,Flash大约降到原来的近四分之一,Argon大约降到一半,Carbon大约降了近五分之一。对比基准是Gemini 4 Argon只开网络、不用技能时的消耗。
媒体未能载入,请通过下方原文链接查看。
普林斯顿大学Rabinowitz实验室的专业研究员Xi Xing说,他最近在测带质谱技能的Antigravity,感觉门槛明显降低,没有编程经验、不会用专门领域工具、也没有生物化学背景的人,也能做更深入的分析。他把Gemini、AI智能体和质谱技能的组合,比成雇来的一个计算团队。这是使用者的个人评价,不是这篇文章的测试指标。
有些问题,一张LC-MS/MS谱回答不了
作者把这套技能写成一个协作式分析助手:把社区常用的质谱工具,和可检查的智能体推理配在一起,先做耗时的谱图解释,需要科学判断的决定仍留给化学家。
有些问题从一张LC-MS/MS谱根本看不出来,比如镜像分子,以及部分结构非常接近的同分异构体。它们碎裂方式几乎一样,要分开得靠别的测量,比如色谱保留时间、离子淌度或核磁共振。
真正的新分子,包括许多天然产物,不在现有数据库里,Antigravity不能独自检索或确认结构。它能提供的是一个有依据的起点:预测的分子式、峰归属,以及一份详细的标注表。
这套技能现在就可以在Google Antigravity里用:下载Antigravity应用,安装Mass Spec插件。企业用户可以在应用里选择使用商业账号,用Google Cloud凭据登录。为了加快研究,他们还宣布向10,000名科学家提供Google Antigravity最高用量档,免费6个月,滚动加入,但要看资格、名额和遴选,申请已经开放。
对做小分子鉴定的人,这篇文章给出的工作方式是:先让技能把谱库检索、分子式和碎片证据整理出来,再由人判断那些谱图本身回答不了的问题,只看峰列表,模型给不出可靠结构。
原文
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 Antigravity
Robert Brunck, Stefan Ganscha, Swaroop Guntupalli, Dariusz Lasecki, Gabriella Marfani, Jack Mason, Hussain Masoom, Rose Mirshafian, Eliseo Papa and Zoi Tsangalidou
Built in collaboration with analytical chemists and using community-developed tools, Mass Spec Skills empowers scientists using Google Antigravity to interpret tandem mass spectra, lay out chemical evidence, and match frontier-level retrieval accuracy even with a lightweight model.
Every sample of blood, soil or plant tissue contains a vast array of small molecules, such as nutrients, hormones, drugs and their breakdown products, pollutants, or bioactive compounds with therapeutic potential. A modern mass spectrometer can detect tens of thousands of these molecular signals in a single drop of sample extract, measuring the masses of charged molecules and, in tandem mass spectrometry (MS/MS), the fragments they break into.
These measurements, however, do not directly reveal the molecular structure. Researchers cannot immediately tell which compound produced a signal and relate it to its biological role or downstream use cases.
To fully map the diversity of small molecules, which remains largely uncharted, researchers need ways to translate mass spectra to molecular structures at scale. The standard approach is to match each spectrum against reference spectra from previously measured molecules. Yet even after a decade of expanding reference libraries, 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.
Many of the molecules producing these unannotated signals are already listed in public chemical databases, but their spectra have not been recorded, so there is no reference spectrum to compare against. Elucidating them instead requires inferring the structure directly from the observed fragment ions.
Analytical chemists have a well-tested, step-by-step workflow for narrowing down candidate structures from tandem (MS/MS) spectra: check spectral reference libraries, find the molecular formula and retrieve candidate structures from chemical databases, and then test every candidate against observed fragment peaks.
The tools for each step exist and are openly available, but running the full workflow would take a domain expert a significant amount of time for every single spectrum. Because a single study can produce thousands of spectra, manual analysis cannot keep up, leaving most of these signals unannotated.
Today, we are sharing Mass Spec Skills for Google Antigravity, a suite of domain skills that pair Gemini's chemical reasoning with the ability to run established mass spectrometry tools and query public chemical databases on the user's behalf to fulfil their request. Antigravity runs these skills, combines their results, and reasons about the chemistry, laying out the evidence for a chemist to review.
For molecules that are already catalogued in a database, identification is much faster. For undiscovered molecules, the agent still helps: it narrows down the formula and the parts of the structure supported by the fragments to guide full structure elucidation. A language model cannot do this on its own, since 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.
Antigravity and the Mass Spec Skills have the potential to transform our natural product-based drug discovery workflows by substantially accelerating the identification of bioactive compounds from complex plant extracts. Their remarkable accuracy in predicting even highly complex molecular structures (>90% in most of our evaluations), coupled with detailed interpretation of MS/MS fragmentation patterns, could significantly reduce the time required for compound annotation and enable us to prioritise promising bioactive candidates more rapidly and confidently.
Dr Phanankosi Moyo University of Pretoria
Figure 1. How a molecule is identified from its tandem mass spectrum: prepare the signal, search reference libraries, deduce the formula and rank candidate structures, then cross-check and refine. Each step is carried out by our Mass Spec Skills built on established, openly available tools.
Researchers can describe their task and any instrument-specific tolerances in plain language without having to configure each underlying tool. The agent selects and chains the relevant skills, lowering the technical barrier to entry for scientists less familiar with computational tools. From a single prompt, the agent can take an unannotated tandem mass spectrum all the way to a proposed chemical structure and an auditable report (Figure 2).
Figure 2. The agent preprocesses the raw recording, identifies the molecular formula C 20 H 21 ClN 6 O, ranks 845 PubChem isomers against simulated fragments and neutral losses, and summarises the evidence alongside the top candidate structure. It also compiles a detailed report mapping predicted fragment substructures onto 14 of the 19 signal peaks (97.7% of summed fragment intensity).
Each stage of that workflow can also be run on its own for smaller everyday tasks, from cleaning up a noisy recording to annotating peaks or comparing candidate isomers:
Spotting the precursor ion and removing baseline noise: the agent converts the negative-mode precursor peak at m/z 395.1387 ([M−H]−) into a neutral molecular mass of 396.1459 Da. Using matchms with configurable intensity thresholds, it strips out over 1,700 low-intensity background noise spikes from the raw recording, leaving a clean spectrum of fragment signals ready for structural analysis.
Checking public spectral libraries for known compounds: the agent queries experimental MS/MS reference libraries (GNPS and MoNA) using user-specified or instrument-matched mass tolerances, scoring de-noised fragment peaks by cosine similarity. In this example, the search returns no high-confidence library match, prompting the agent to fall back to formula prediction and chemical database search.
Pinning down the exact elemental composition: combining the neutral mass with SIRIUS fragmentation-tree scoring across ten candidate elements, the agent identifies the chlorinated formula C 20 H 21 ClN 6 O at −1.5 ppm mass error (score 37.86, well ahead of the runner-up at 28.33) and confirms that the main fragment formulas add up to the intact molecule.
Assigning fragments and diagnostic neutral losses: using MAGMa, MetFrag, and pairwise neutral-loss lookup, the agent accounts for 97.7% of the summed fragment intensity (matching 14 of the 19 preprocessed peaks). It links the measured peaks through sequential neutral losses of hydrogen chloride (HCl) and isocyanic acid (HNCO), placing a chlorine atom and a urea group on the same half of the molecule.
Breaking a score tie with reaction chemistry: when top isomers in PubChem account for the exact same share of the preprocessed spectrum (97.7% of summed fragment intensity across 14 of 19 peaks), the agent tests whether their bond connectivity and functional groups match the observed fragmentation pathways, ruling out candidates that lack a central urea linkage and identifying the top candidate that explains the major cleavages.
Validating the final molecule and its cleavage sites: the agent verifies with RDKit that the winning structure is chemically valid and matches the exact mass and formula, then draws the 2D molecule and highlights the central bond cleavage that produces the dominant fragment pair.
Antigravity and Mass Spec Skills takes a big leap forward from what we currently can do with MS/MS data. The ability to formulate de novo structure predictions, informed by existing knowledge minable through agentic AI, reduces a complicated process - one that previously required days or months of analysis and literature review - to a matter of hours. For natural products, this instantly creates a tool chemists can use to prioritize or de-prioritize features in their data towards metabolite classes of interest, enabling smarter and vastly accelerated workflows towards drug discovery.
Dr Scott Jarmusch Assistant Professor at the Technical University of Denmark (DTU)
From raw spectrum to structure end-to-end
To see how the chemical evidence fits together in practice, consider the negative-mode tandem mass spectrum from the end-to-end run in Figure 2 (precursor [M−H]− at m/z 395.1387; Figure 3).
Figure 3. Top: negative-mode tandem mass spectrum ([M−H]− precursor at m/z 395.1387; 1,761 raw peaks filtered to 19 preprocessed peaks), with peaks involved in known neutral-loss pairs highlighted in red, including the two complementary halves from central urea cleavage at m/z 162.1037 (45.1%) and m/z 232.0283 (6.8%). Bottom: zoomed fragment region (m/z 85–245) annotated with literature neutral losses, showing the closed HCl and HNCO loss loop from m/z 232.0283 (via m/z 196.0511 and m/z 189.0238 to m/z 153.0453) alongside secondary NH 3 and H 2 losses.
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 C 20 H 21 ClN 6 O. In the fragmentation tree, the molecule splits cleanly into two complementary halves at m/z 162.1037 ([C 9 H 12 N 3]−) and m/z 232.0283 ([C 11 H 7 ClN 3 O]−), 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.
With the molecular formula and these fragmentation clues established, the agent retrieved and scored all 845 C 20 H 21 ClN 6 O 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, so the Gemini-powered agent tested whether they were chemically consistent with the observed losses. The triazolobenzazepinol isomer lacks a urea linkage, leaving it with no route to lose HNCO, and despite carrying a secondary alcohol, the spectrum has only baseline noise at the expected water-loss masses (m/z 377.1281 and m/z 214.0178). 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; Figure 4) and narrowed the list to five urea regioisomers, where 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 accounted for the same 97.7% of summed fragment intensity, so distinguishing them required testing their fragmentation pathways.
Figure 4. Side-by-side comparison of the top two C 20 H 21 ClN 6 O isomer candidates, which both match 14 of 19 preprocessed peaks (97.7% of fragment intensity) in MAGMa and differ by inverted attachment of the central piperidine ring. Left: the verified Rank 1 structure (CID 137835447), whose asymmetric urea C−N bond cleaves directly into m/z 162.1037 and m/z 232.0283 and whose C-linked pyrimidine forms the low-mass fragments (m/z 93.0463–119.0611) without breaking aromatic rings (sum bond-break score 26.0). Right: the Rank 2 runner-up (CID 55558151), where inverting the piperidine ring turns the urea into an amide (requiring C−C cleavage) and leaves an N-linked pyrimidine with no attached carbon to form [C 5 H 5 N 2]− (m/z 93.0463) without breaking aromatic rings (sum bond-break score 49.0; lower indicates a lower cleavage penalty).
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. Checking candidates against diagnostic neutral losses and bond cleavages, just as an analytical chemist would, lets Antigravity rule out high-scoring mismatches on its own and verify the final structure.
Reliable library identification and verification, even with a lightweight model
Even when a compound's reference spectrum is already stored in a public library, finding and verifying it is harder than simply giving an AI agent internet access. To test how reliably Antigravity handles end-to-end identification and verification, we evaluated it on 100 compounds sampled from the Enamine REAL MS/MS collection in MoNA (with structures also catalogued in PubChem), after filtering out under-fragmented recordings such as intact precursors or dimers that barely broke apart.
We compared three set-ups: (1) Antigravity with no internet access or skills (to test what the models can deduce from the peak list alone), (2) Antigravity with user-permitted internet access to query public libraries and databases on the user's behalf, and (3) Antigravity with that same access plus the Mass Spec Skills, across three models: the lightweight Gemini 3.8 Flash and two frontier models, Gemini 4 Argon and Gemini 4 Carbon.
With no internet access or skills, accuracy remained below 4% across all three models, confirming that they cannot reliably deduce molecular structures from the peak list alone. Giving the agent limited internet access allowed it to query online libraries, but 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 the spectra and the lightweight model to miss more than three-quarters.
With the Mass Spec Skills added, all three models identified and verified the exact molecule in around 97% of attempts, with the lightweight model matching the frontier models' accuracy (Figure 5a).
Skills also cut token cost and effort. Without internet or skills, the models used the most tokens per attempt trying to deduce structures from raw peak lists, and with internet access alone they still spent substantial tokens improvising API queries and debugging one-off scripts. With the Mass Spec Skills, the agent in Antigravity calls validated, ready-made skills instead, cutting generated tokens per attempt across every model: by nearly four times on Flash, by half on Argon, and by nearly a fifth on Carbon (Figure 5b).
Figure 5a. Exact-match identification accuracy on 100 benchmark spectra available in public reference libraries (three attempts per spectrum), comparing Antigravity alone (no internet, no skills), with internet access only, and with internet access plus the Mass Spec Skills (mean and 95% confidence interval). Attempts exceeding the one-hour wall-clock budget were scored as failures (0% accuracy); transient infrastructure and quota errors were excluded.
Figure 5b. Generated tokens per attempt on the same benchmark runs relative to the Gemini 4 Argon with internet access baseline (dashed line at 1.0×; mean and 95% confidence interval, excluding transient infrastructure and quota errors).
I’ve been testing Antigravity equipped with Mass Spec skills lately, and the experience has been phenomenal. It lowers the barrier to entry, making advanced analysis accessible even to users without coding experience, deep expertise in specialized domain tools, or a biochemistry background. It also goes far beyond being just an automated software tool. Combining Gemini + the AI Agent + the Mass Spec Skills forms a "golden triad" that feels just like hiring an in silico team - unlocking massive potential for fast building and testing customized workflows, proposing new ideas, addressing challenging problems anyone advancing discoveries.
Dr Xi Xing Professional Specialist at Princeton University (The Rabinowitz Lab)
A collaborative analytical assistant
Antigravity’s Mass Spec Skills pair mass spectrometry tools trusted by the community with transparent agentic reasoning, performing the time-consuming groundwork of spectral interpretation and keeping the chemist in control of decisions requiring scientific judgement.
However, there are some questions that cannot be answered from an LC-MS/MS spectrum at all, such as mirror-image molecules and some closely related isomers. These molecules all break apart in nearly identical ways; telling them apart requires other measurements, such as 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, however, give an informed starting point for chemists, with a predicted formula, peak assignments, and a detailed annotation table.
Scaling automated spectral interpretation from single spectra to full metabolomics studies can help researchers identify far more of the unknown small molecules across human health, environmental science, and natural-product discovery.
Acknowledgements
The Mass Spec Skills are available on Google Antigravity today. Download the Antigravity App and install the Mass Spec plugin to start using these skills.
You can also get started with Mass Spec Skills on Antigravity today as an Enterprise user, by choosing “Use Business Account” and logging into the app with your Google Cloud credentials.
To further advance the pace of research, we’re offering 10,000 scientists the highest usage tier in Google Antigravity free of charge for 6 months (onboarded on a rolling basis), subject to eligibility, capacity, and selection. Applications are now open.
We would like to acknowledge the contributions of the following team members: Joao Madeira Araujo, Andrew Campbell, Antoine Dedieu, Arnaud Doucet, Julian Eisenschlos, Romu Elie, Doug Fritz, Gena Hong, Dan Horgan, Victoria Johnston, Anna Koivuniemi, Ira Korshunova, Agata Laydon, Vlad Mnih, Filip Radlinski, Sukhdeep Singh, Artem Sobolev, Lexi Walker and the Biocompatibility team.