GlycanML: A Multi-Task and Multi-Structure Benchmark for Glycan Machine Learning

Minghao Xu, Yunteng Geng, Yihang Zhang, Ling Yang, Jian Tang, Wentao Zhang

While DNA, RNA, and proteins have long enjoyed the spotlight of the "central dogma," glycans—complex branched carbohydrates—are the unsung heroes of biology. They regulate inflammation, enable cell-to-cell communication, and are critical for vaccine design. Yet, while the machine learning community has standardized benchmarks like MoleculeNet for small molecules and CASP for proteins, glycans have remained in a "data silo" with fragmented, task-specific models.

GlycanML changes this landscape. It is the first comprehensive multi-task and multi-structure benchmark designed specifically to bring glycan research into the modern deep learning era.

TL;DR

GlycanML is a standardized benchmark featuring 11 diverse tasks—ranging from evolutionary taxonomy to immunogenicity—designed to evaluate how well machine learning models understand complex carbohydrates. The study reveals that multi-relational Graph Neural Networks (GNNs) are the current "gold standard" for modeling these branched structures, significantly outperforming models designed for small molecules.

What Problem Does This Paper Address?

Glycans are notoriously difficult to model. Unlike the linear sequences of proteins or the relatively simple graphs of small molecules, glycans are highly branched and utilize a wide variety of "linkages" (glycosidic bonds) that define their function.

Overview of the four main prediction tasks in the GlycanML benchmark.

Until now, glycan ML research was scattered. One group might predict species origin, while another predicts immune response, each using different datasets and non-standardized evaluation metrics. This lack of a "common yardstick" made it impossible to determine which architectures (e.g., Transformers vs. GNNs) actually work best. GlycanML fills this gap by providing a unified testbed with curated datasets and a motif-based splitting strategy that tests a model's ability to generalize to entirely new molecular structures.

Methods

The authors evaluated 18 different baseline models across four major categories:

  1. Sequence Encoders: Treating glycans as strings (CNN, LSTM, Transformer).
  2. Homogeneous GNNs: Treating glycans as simple graphs where all bonds are equal (GCN, GIN).
  3. Heterogeneous GNNs: Treating different types of chemical bonds as distinct relationship types (RGCN, CompGCN).
  4. All-Atom Encoders: High-resolution models that look at every single atom (Graphormer, MolFormer).

A key innovation is the GlycanML-MTL testbed, which uses Multi-Task Learning (MTL) to solve eight taxonomy levels (from Domain to Species) simultaneously. They also explored how learning a glycan's "evolutionary history" (taxonomy) can act as an auxiliary task to boost performance on functional tasks like predicting if a glycan will trigger an immune response.

Datasets

The benchmark aggregates data from several primary sources, totaling over 13,000 unique glycans and half a million interactions:

  • SugarBase: For taxonomy (8 tasks) and immunogenicity (binary classification).
  • GlyConnect: For glycosylation type prediction (identifying how a glycan attaches to a protein).
  • LectinOracle: For protein-glycan interaction (regression of binding affinity).

Crucially, they use motif-based splitting. Instead of random splits, they ensure that the validation and test sets contain structural motifs not seen during training, simulating the real-world challenge of discovering novel glycans.

Key Insights and Ideas

  • Branching and Linkages Matter: The superior performance of Relational GCNs (RGCN) proves that the type of bond between sugars is just as important as the sugars themselves. Treating a glycan as a simple graph loses vital biological information.
  • Small Molecule Models Struggle: Interestingly, state-of-the-art models for small molecules (like Graphormer) performed poorly. This suggests that glycans, which are large macromolecules with hundreds of atoms, require specialized "glycan-native" architectures rather than repurposed drug-discovery models.
  • The "Simple CNN" Surprise: A basic 2-layer CNN performed remarkably well on sequence data, often beating complex Transformers. This suggests that local structural patterns (captured by convolutional kernels) are highly informative for glycan function.
  • Taxonomy as a Functional Proxy: The authors found that training a model to recognize a glycan's taxonomy helps it better predict its biological function, supporting the idea that evolutionarily related glycans share similar functional roles.

Key Results

Benchmark results across various models and tasks.
  • Top Performer: The RGCN model achieved the best performance on 6 out of 11 tasks and held the highest weighted mean rank across the entire benchmark.
  • MTL Gains: Using the Nash Bargaining multi-task learning method improved taxonomy prediction by 4.28% over single-task baselines.
  • Functional Boost: Jointly training taxonomy with immunogenicity and glycosylation tasks led to measurable performance gains, proving the value of multi-task architectures in low-data biological regimes.

Limitations and Future Work

The authors acknowledge that balancing tasks in multi-task learning remains a significant hurdle; many standard MTL methods actually performed worse than single-task models, indicating that glycan tasks can sometimes "conflict" during training.

Furthermore, while all-atom modeling is the most physically accurate, it is currently too computationally expensive and underperforms on this benchmark. Future work will likely focus on developing more efficient all-atom encoders and using GlycanML to virtually screen glycan candidates for new vaccine designs.

Project Resources: * Code: GitHub/GlycanML * Leaderboard: GlycanML.github.io

Summary updated

BibTeX
@inproceedings{xu2025glycanml,
  author = {Minghao Xu and Yunteng Geng and Yihang Zhang and Ling Yang and Jian Tang and Wentao Zhang},
  title = {{GlycanML: A Multi-Task and Multi-Structure Benchmark for Glycan Machine Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=owEQ0FTfVj},
}
Figure