PCEvo: Path-Consistent Molecular Representation via Virtual Evolutionary
Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 5558-5566.
https://doi.org/10.24963/ijcai.2026/619
Keywords
- Multidisciplinary Topics and Applications: Bioinformatics
Abstract
Molecular representation learning aims to learn vector embeddings that capture molecular structure and geometry, thereby enabling property prediction and downstream scientific applications. In many AI for science tasks, labeled data are expensive to obtain and therefore limited in availability. Under the few-shot setting, models trained with scarce supervision often learn brittle structure–property relationships, resulting in substantially higher prediction errors and reduced generalization to unseen molecules. To address this limitation, we propose PCEvo, a path-consistent representation method that learns from virtual paths through dynamic structural evolution. PCEvo enumerates multiple chemically feasible edit paths between retrieved similar molecular pairs under topological dependency constraints. It transforms the labels of the two molecules into stepwise supervision along each virtual evolutionary path. It introduces a path-consistency objective that enforces prediction invariance across alternative paths connecting the same two molecules. Comprehensive experiments on the QM9 and MoleculeNet datasets demonstrate that PCEvo substantially improves the few-shot generalization performance of baseline methods. The code is available at https://github.com/DrugD/PCEvo.
- [An et al., 2025] Junyi An, Chao Qu, Yun-Fei Shi, XinHao Liu, Qianwei Tang, Fenglei Cao, and Yuan Qi. Equivari- ant masked position prediction for efficient molecular rep- resentation. In The Thirteenth International Conference on Learning Representations, 2025.
- [Aykent and Xia, 2025] Sarp Aykent and Tian Xia. Goten- Net: Rethinking Efficient 3D Equivariant Graph Neural Networks. In The Thirteenth International Conference on Learning Representations, 2025.
- [Bajusz et al., 2015] Dávid Bajusz, Anita Rácz, and Károly Héberger. Why is tanimoto index an appropriate choice for fingerprint-based similarity calculations? Journal of cheminformatics, 7(1):20, 2015.
- [Bartlett et al., 2005] Peter L Bartlett, Olivier Bousquet, and Shahar Mendelson. Local rademacher complexities. The Annals of Statistics, 33(4):1497-1537, 2005.
- [Bunke, 1997] Horst Bunke. On a relation between graph edit distance and maximum common subgraph. Pattern recognition letters, 18(8):689-694, 1997.
- [Fuchs and Riesen, 2025] Mathias Fuchs and Kaspar Riesen. Fast approximate maximum common subgraph computa- tion. Pattern Recognition Letters, 190:66-72, 2025.
- [Gasteiger et al., 2020] Johannes Gasteiger, Janek Groß, and Stephan Günnemann. Directional message passing for molecular graphs. In International Conference on Learn- ing Representations, 2020.
- [Gilmer et al., 2017] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International conference on machine learning, pages 1263-1272. Pmlr, 2017.
- [Hamilton et al., 2017] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in neural information processing sys- tems, 30, 2017.
- [Hu et al., 2020] Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay Pande, and Jure Leskovec. Strategies for pre-training graph neural net- works. In International Conference on Learning Repre- sentations, 2020.
- [Hussain and Rea, 2010a] Jameed Hussain and Ceara Rea. Computationally efficient algorithm to identify matched molecular pairs (mmps) in large data sets. Journal of Chemical Information and Modeling, 50(3):339-348, 2010.
- [Hussain and Rea, 2010b] Jameed Hussain and Ceara Rea. Computationally efficient algorithm to identify matched molecular pairs (mmps) in large data sets. Journal of chemical information and modeling, 50(3):339-348, 2010.
- [Ishikura et al., 2025] Hikaru Ishikura, Callum S Begg, Juan J Rojas, Luka Blagojevic, Gavin J Smith, Joyce Luk, Rosemary A Croft, Charles Romain, Chulho Choi, and James A Bull. Do amino-oxetanes resemble amides? a matched molecular pairs property and structural compari- son. 2025.
- [Jensen, 2019] Jan H Jensen. A graph-based genetic algo- rithm and generative model/monte carlo tree search for the exploration of chemical space. Chemical science, 10(12):3567-3572, 2019.
- [Kipf and Welling, 2017] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Rep- resentations, 2017.
- [Li et al., 2025a] Kun Li, Zhennan Wu, Shoupeng Wang, Jia Wu, Shirui Pan, and Wenbin Hu. Drugpilot: Llm-based parameterized reasoning agent for drug discovery. arXiv preprint arXiv:2505.13940, 2025.
- [Li et al., 2025b] Kun Li, Yida Xiong, Hongzhi Zhang, Xi- antao Cai, Jia Wu, Bo Du, and Wenbin Hu. Graph- structured small molecule drug discovery through deep learning: Progress, challenges, and opportunities. In 2025 IEEE International Conference on Web Services (ICWS), pages 1033-1042, 2025.
- [Li et al., 2025c] Kun Li, Yue Zeng, Yi-da Xiong, Hao-chen Wu, Sui Fang, Zhi-yan Qu, Yan Zhu, Bo Du, Zhao-bing Gao, and Wen-bin Hu. Contrastive learning-based drug screening model for glun1/glun3a inhibitors. Acta Phar- macologica Sinica, pages 1-13, 2025.
- [Li et al., 2026] Kun Li, Longtao Hu, Jiameng Chen, Hongzhi Zhang, Yida Xiong, Xiantao Cai, Wenbin Hu, and Jia Wu. Can molecular evolution mechanism enhance molecular representation? Proceedings of the AAAI Con- ference on Artificial Intelligence, 40(18):15108-15116, Mar. 2026.
- [Liao and Smidt, 2023] Yi-Lun Liao and Tess Smidt. Equiformer: Equivariant graph attention transformer for 3d atomistic graphs. In The Eleventh International Conference on Learning Representations, 2023.
- [Lin et al., 2026] Zhuohao Lin, Kun Li, Jiameng Chen, Ji- ajun Yu, Duanhua Cao, Yizhen Zheng, and Wenbin Hu. Rethinking molecular ood generalization via target-aware source selection. arXiv preprint arXiv:2605.13932, 2026.
- [Liu et al., 2019] Shengchao Liu, Mehmet F Demirel, and Yingyu Liang. N-gram graph: Simple unsupervised rep- resentation for graphs, with applications to molecules. Advances in neural information processing systems, 32, 2019.
- [Maggiora and Bajorath, 2014] Gerald M Maggiora and Jürgen Bajorath. Chemical space networks: a powerful new paradigm for the description of chemical space. Jour- nal of computer-aided molecular design, 28(8):795-802, 2014.
- [Qin et al., 2025] Mingyuan Qin, Ziyan Sun, Lei Feng, Chongyin Han, Jingjing Xia, and Lianyi Han. Molecule- former is a gcn-transformer architecture for molecular property prediction. Communications Biology, 8(1):1668, 2025.
- [Qin et al., 2026] Xiaohan Qin, Chao Wang, Zhengyang Zhou, Linjiang Chen, Wenjie Du, and Yang Wang. Msan- chor: De novo molecular generation from mass spectrome- try data with anchor-extended molecular scaffolds. In Pro- ceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 953-961, 2026.
- [Ramakrishnan et al., 2014] Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilien- feld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific data, 1(1):1-7, 2014.
- [Rao et al., 2026] Haojie Rao, Kun Li, Yida Xiong, Jiameng Chen, Wenbin Hu, Yizhen Zheng, Jiajun Yu, and Duanhua Cao. From single-step edit response to multi-step molecu- lar optimization. arXiv preprint arXiv:2605.10035, 2026.
- [Raymond and Willett, 2002] John W Raymond and Peter Willett. Maximum common subgraph isomorphism algo- rithms for the matching of chemical structures. Journal of computer-aided molecular design, 16(7):521-533, 2002.
- [Rong et al., 2020] Yu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie, Ying Wei, Wenbing Huang, and Junzhou Huang. Self-supervised graph transformer on large-scale molecular data. Advances in neural information process- ing systems, 33:12559-12571, 2020.
- [Schütt et al., 2018] Kristof T Schütt, Huziel E Sauceda, P- J Kindermans, Alexandre Tkatchenko, and K-R Müller. Schnet-a deep learning architecture for molecules and ma- terials. The Journal of Chemical Physics, 148(24), 2018.
- [Stumpfe and Bajorath, 2012] Dagmar Stumpfe and Jurgen Bajorath. Exploring activity cliffs in medicinal chem- istry: miniperspective. Journal of medicinal chemistry, 55(7):2932-2942, 2012.
- [Veličković et al., 2018] Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph attention networks. In Interna- tional Conference on Learning Representations, 2018.
- [Walz et al., 2025] Carlo Walz, Moritz Spiske, Magnus Wal- ter, Benjamin-Luca Keller, Mario Mezler, Carolin Hoft, Frauke Pohlki, Stella Vukelic, and Felix Hausch. Macro- cyclization as a strategy for kinetic solubility improve- ment: A comparative analysis of matched molecular pairs. Journal of Medicinal Chemistry, 68(3):2639-2656, 2025.
- [Wang et al., 2022] Yuyang Wang, Jianren Wang, Zhonglin Cao, and Amir Barati Farimani. Molecular contrastive learning of representations via graph neural networks. Na- ture Machine Intelligence, 4(3):279-287, 2022.
- [Wang et al., 2024a] Mengzhu Wang, Jiao Li, Houcheng Su, Nan Yin, Liang Yang, and Shen Li. Graphcl: Graph-based clustering for semi-supervised medical image segmenta- tion. arXiv preprint arXiv:2411.13147, 2024.
- [Wang et al., 2024b] Yusong Wang, Tong Wang, Shaoning Li, Xinheng He, Mingyu Li, Zun Wang, Nanning Zheng, Bin Shao, and Tie-Yan Liu. Enhancing geometric rep- resentations for molecules with equivariant vector-scalar interactive message passing. Nature Communications, 15(1):313, Jan 2024.
- [Wang et al., 2025] Runze Wang, Mingqi Yang, and Yan- ming Shen. Bridging molecular graphs and large language models. In Proceedings of the AAAI Conference on Artifi- cial Intelligence, volume 39, pages 21234-21242, 2025.
- [Weininger, 1988] David Weininger. Smiles, a chemical lan- guage and information system. 1. introduction to method- ology and encoding rules. Journal of Chemical Informa- tion and Computer Sciences, 28(1):31-36, 1988.
- [Wu et al., 2018] Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine learning. Chemical sci- ence, 9(2):513-530, 2018.
- [Xiong et al., 2025] Yida Xiong, Kun Li, Jiameng Chen, Hongzhi Zhang, Di Lin, Yan Che, and Wenbin Hu. Text- guided multi-property molecular optimization with a dif- fusion language model. Information Fusion, page 103907, 2025.
- [Xu et al., 2019] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural net- works? In International Conference on Learning Rep- resentations, 2019.
- [Yin et al., 2019] Dong Yin, Ramchandran Kannan, and Pe- ter Bartlett. Rademacher complexity for adversarially ro- bust generalization. In International conference on ma- chine learning, pages 7085-7094. PMLR, 2019.
- [Yu et al., 2024] Jiajun Yu, Zhihao Wu, Jinyu Cai, Adele Lu Jia, and Jicong Fan. Kernel readout for graph neural net- works. In IJCAI, pages 2505-2514, 2024. IJCAI
- [Yu et al., 2025a] Jiajun Yu, Zhihao Wu, Jielong Lu, Tianyue Wang, and Haishuai Wang. A centrality-based graph learn- ing framework. In Proceedings of the Thirty-Fourth Inter- national Joint Conference on Artificial Intelligence, pages 3588-3596, 2025. IJCAI
- [Yu et al., 2025b] Jiajun Yu, Yizhen Zheng, Huan Yee Koh, Shirui Pan, Tianyue Wang, and Haishuai Wang. Collab- orative expert llms guided multi-objective molecular opti- mization. arXiv preprint arXiv:2503.03503, 2025.
- [Zhang et al., 2025] Hongzhi Zhang, Zhonglie Liu, Kun Meng, Jiameng Chen, Jia Wu, Bo Du, Di Lin, Yan Che, and Wenbin Hu. Zero-shot learning with subsequence reordering pretraining for compound-protein interaction, 2025. Zheng et al., 2025] Yizhen Zheng, Huan Yee Koh, Jiaxin Ju, Madeleine Yang, Lauren T May, Geoffrey I Webb, Li Li, Shirui Pan, and George Church. Large language models for drug discovery and development. Patterns, 6(10), 2025.
- [Zhou et al., 2023] Gengmo Zhou, Zhifeng Gao, Qiankun Ding, Hang Zheng, Hongteng Xu, Zhewei Wei, Linfeng Zhang, and Guolin Ke. Uni-mol: A universal 3d molecular representation learning framework. In The Eleventh Inter- national Conference on Learning Representations, 2023.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
Recent years have witnessed rapid progress in molecular representation learning driven by LLMs-based [Zheng et al., 2025; Yu et al., 2025b; Li et al., 2025a], graph-based [Yu et al., 2025a; Yu et al., 2024], and geometry-aware neural architectures [Rao et al., 2026; Lin et al., 2026; Xiong et al., 2025]. Message passing networks and 3D geometric models have become mainstream for learning structuredependent signals [Qin et al., 2026; Li et al., 2025b], with representative backbones spanning MPNNs [Gilmer et al., 2017], SchNet [Sch¨utt et al., 2018], DimeNet [Gasteiger et al., 2020], and more recent equivariant Transformer families such as Equiformer [Liao and Smidt, 2023] and ViSNet [Wang et al., 2024b]. In parallel, self-supervised and contrastive pretraining has been increasingly adopted to leverage large unlabeled corpora and improve data efficiency [Li et al., 2025c], including general graph contrastive objectives [Wang et al., 2024a] and molecule-specific pretraining paradigms such as GROVER [Rong et al., 2020], MolCLR [Wang et al., 2022], and UniMol [Zhou et al., 2023]. These developments are routinely evaluated on established benchmarks such as QM9 [Ramakrishnan et al., 2014] and MoleculeNet [Wu et al., 2018], and are further expanding toward crossmodal alignment between molecular structures and natural language descriptions [Wang et al., 2025].

Despite this progress, the dominant learning paradigm remains largely static: each molecule is treated as a single endpoint sample (i.e., only its final observed structure is used), and the model is trained to regress properties via direct supervision on sparse labels [An et al., 2025; Zhang et al., 2025] (as shown in Fig. 1). In few-shot settings, this formulation is prone to overfitting because chemical space is sparsely covered; as a result, models can rely on dataset-specific correlations and frequent motifs, leading to unstable generalization. More fundamentally, most static molecular representations do not explicitly model how properties change under chemically feasible local edits to molecular structure [Li et al., 2026]. In practical drug discovery, where labeled assays are costly and task distributions are sparse, capturing such regularities can improve the robustness of learned representations under the few-shot setting.

From a chemical perspective, molecules are discrete combinatorial objects whose structures can be naturally described as graphs and encoded by rule-based line notations [Gilmer et al., 2017; Weininger, 1988]. More importantly, property changes in medicinal chemistry are often analyzed through small, chemically valid transformations, where a minimal structural modification induces a measurable shift in activity or physicochemical profiles [Ishikura et al., 2025; Hussain and Rea, 2010a]. These observations motivate a virtual evolutionary path view of the structure-property relationship (Fig. 2) [Maggiora and Bajorath, 2014; Stumpfe and Bajorath, 2012]. By treating minimal edit operations, such as atom substitution, local connectivity adjustment, and functional group modification, as fundamental units [Walz et al., 2025; Hussain and Rea, 2010b], we can construct virtual evolutionary paths connecting different molecular states [Jensen, 2019]. Modeling property variation along such paths enables the models to leverage incremental structural signals that are often underutilized when training solely on static endpoint samples.
Based on this perspective, we propose PCEvo, a pathconsistent representation method via virtual evolutionary. PCEvo does not treat molecules as isolated, static samples; instead, it represents the structural differences between two similar molecules as an evolutionary sequence of chemically feasible minimal edit operations. PCEvo further converts the labels of the two endpoint molecules into stepwise supervision distributed along the path, enabling the model to learn how incremental structural changes drive property variations during training, rather than performing the regression only at the endpoints. Importantly, there are typically multiple feasible editing paths connecting the same molecular pair; yet, the cumulative property change should remain consistent regardless of which path is taken. Leveraging this principle, PCEvo introduces a path-consistency objective that aligns the accumulated predictions across alternative feasible paths. This objective integrates seamlessly with standard static supervised training, thereby improving generalization in few-shot settings. We evaluate PCEvo on QM9 and MoleculeNet by integrating it into a range of representative backbone methods, thereby systematically demonstrating its generality and effectiveness; results show that PCEvo consistently reduces prediction error under few-shot settings on QM9 and achieves state-of-the-art (SOTA) performance on the three MoleculeNet regression tasks under the standard split, while maintaining reliable gains in both accuracy and stability when labeled data are limited. Our contributions are summarized as follows:
- We propose PCEvo, a path-consistent molecular representation method that learns from virtual evolutionary edit paths between similar molecules, transforming sparse end-point supervision into stepwise training signals along chemically feasible paths.
- Extensive experiments on QM9 and MoleculeNet under few-shot settings show that PCEvo consistently reduces prediction error and improves predictive stability, achieving SOTA performance compared with strong baselines.
2 Methods
2.1 Overview
To address the generalization limitations of static end-to-end learning in few-shot scenarios, as illustrated in Fig. 3, we propose a path-consistent molecular representation method, PCEvo. Deviating from conventional static structural mapping paradigms, PCEvo decomposes complex structureproperty correlations into a sequence of learnable, cumulative edit steps. By imposing these path constraints, PCEvo could capture the intrinsic logic underlying molecular evolution.
2.2 Virtual Evolutionary Path Generation
To transform static molecular graphs into dynamic evolutionary paths, we propose a virtual evolutionary path generation pipeline. This pipeline converts a standard dataset D = {(Gi, yi)}Ni=1 into an evolutionary dataset Devo = {(Gs,Gt, τ) | τ ∈ T (Gs,Gt)}. For each molecular pair (Gs,Gt), T (Gs,Gt) denotes the set of all valid evolutionary paths connecting the source molecule Gs to the target molecule Gt. Each path τ ∈ T (Gs,Gt) is a sequence of edit operations. Explicitly modeling multiple valid paths for each molecular pair allows the PCEvo to account for the intrinsic diversity of structural transformations, facilitating the
1 - Virtual Evolutionary Path Generation
2 - Differential Encoding Unit

learning of property changes that are invariant to the ordering of operations.
Structural Neighbor Retrieval
Constructing evolutionary paths between arbitrary pairs of molecules is chemically implausible and computationally inefficient. To model realistic structural optimizations, we restrict the source molecules to the chemical neighborhood of the target.
For each target molecule Gt in the training or validation set, we query a candidate pool Gs to identify the topK nearest neighbors. We utilize the Tanimoto similarity fTanimoto(Gs,Gt) coefficient [Bajusz et al., 2015] based on extended-connectivity fingerprints as the metric:
This retrieval-based pairing strategy ensures that Gs and Gt share a significant structural scaffold, thereby defining a chemically meaningful optimization landscape.
Fundamental Path Operation Edit Units
Identifying the minimal set of edit operations ensures that the molecular transformation includes only essential structural changes, improving path generation efficiency and facilitating the learning of structure-property relationships. Given a pair (Gs,Gt), we seek the minimal set of edit operations S required to transform Gs into Gt. We formulate this as a maximum common subgraph (MCS) problem [Fuchs and Riesen, 2025; Raymond and Willett, 2002; Bunke, 1997].
We establish an atom-level alignment π : Vs → Vt by minimizing the matching cost matrix defined by atomic numbers and valence constraints. Based on the atom-level alignment π, the symmetric difference between the two graphs is decomposed into a set of atomic operations. The definitions of these operations are detailed in Table 1. Specifically, unmapped atoms in the source molecule Gs correspond to REMOVE ATOM operations, while unmapped atoms in the target molecule Gt correspond to ADD ATOM operations. At the bond level, discrepancies between mapped atom pairs (u, v) in Gs and (π(u), π(v)) in Gt give rise to ADD BOND, REMOVE BOND, or CHANGE BOND operations.
Applying this procedure yields an unordered set of operations S = {o1, . . . , oM}, which constitutes the minimal set of edits required to transformGs into Gt.
Topologically Constrained Path Sampling
While the set S specifies the structural changes, it does not determine the order in which they should be applied. Performing the operations in an arbitrary sequence may violate topological constraints, such as adding a bond to an atom that does not yet exist. To resolve this, we construct a directed acyclic graph, termed the dependency graph: Gdep = (S, Edep). An edge oi → oj exists if operation oi is a topological prerequisite for oj. The core constraints include:
- Existence precondition: An ADD BOND(u, v) operation depends on the ADD ATOM operations that create nodes u and v.
- Deletion latency: A REMOVE ATOM(u) operation must succeed all bond removals or modifications involving node u.
Any linear extension (topological sort) of Gdep constitutes a valid path τ. Importantly, a single edit set S often allows
Algorithm 1 Virtual Evolutionary Path Generation
Require: Standard dataset D, Number of neighbors K, Max
paths Pmax Ensure: Evolutionary dataset Devo 1: Initialize Devo ← ∅ 2: for all Gt ∈ D do 3: Candidate pool Gs ← (Gt, Gs,K) 4: for all Gs ∈ Gs do 5: π ← ALIGNMENT(Gs, Gt) 6: S ← EXTRACTMINIMALEDITS(Gs, Gt, π) 7: Gdep ← BUILDDEPENDENCYGRAPH(S) 8: Tpair ← ∅ 9: while |Tpair| < Pmax do 10: τ ← SAMPLING(Gdep) 11: Tpair ← Tpair ∪ {τ } 12: end while 13: for all τ ∈ Tpair do 14: Devo ← Devo ∪ {(Gs, Gt, τ )} 15: end for 16: end for 17: end for 18: return Devo
exponentially many valid permutations. We leverage this by randomly sampling up to Pmax distinct topological sorts for each molecular pair. This serves as a powerful combinatorial data augmentation strategy: the model learns to associate the same net property change ∆y with multiple distinct paths {τ1, . . . , τPmax }, thereby enforcing path-independence of the physical property and improving generalization. Each path τ ∈ T (Gs, Gt) is a sequence of edit operations, and its length may vary across different paths.
2.3 Differential Evolutionary Path Encoder
To represent the feature changes induced by each virtual edit operation along a molecular structural evolution path, a differential evolutionary path encoder is proposed. Unlike the standard paradigm that encodes molecules as isolated static data points, this module explicitly models the incremental changes between consecutive intermediate states along the virtual path τ .
Let G(t) s denote the intermediate molecular state after the t-th edit operation in the path, with the boundary conditions G(0) s = Gs and G(T) s = Gt, where T is the total path length.
To bridge the discrete symbolic space of chemical edits and the continuous latent space, we first define a bijective mapping ψ : O → RD . The t-th edit operation ot, which triggers the transition G(t) s → G(t+1) s , is vectorized via concatenated encodings:
where components encode the operation type, atomic semantics, bond attributes, and positional indices, respectively. This vectorization provides the initial condition for the specific structural transformation at step t.
Then, we employ a shared-weight molecular encoder fθ(·) to project the adjacent states G(t) s and G(t+1) s into a continuous latent manifold:
| Operation | Description |
|---|---|
| ADD/REM/REP ATOM ADD/REM/CHG BOND | Adds, removes, or replaces an atom node. Adds, removes, or modifies a bond edge. |
Our method PCEvo is architecture-agnostic and shared across all steps to ensure consistent feature extraction along the path. For each virtual edit, we model its incremental effect by differencing adjacent representations and predicting the corresponding property change:
which learns edit-wise contributions in an additive manner.
2.4 Learning Objective
Our optimization jointly anchors absolute property prediction in the global chemical space and enforces summation consistency of property variations along virtual evolutionary paths. The model consists of a shared-weight backbone encoder fθ(·) and a non-linear delta predictor ϕψ(·). Given a labeled molecular pair (Gs,Gt) with properties (ys, yt) and a feasible edit path τ = (G(0) s , . . . ,G(T) s ) satisfyingG(0) s = Gs and G(T ) s = Gt, we denote the latent representation at step t as
Static Property Loss. We supervise absolute predictions at the observed endpoints:
Path Summation Consistency Loss. We require that the cumulative sum of predicted stepwise property increments along the path matches the ground-truth endpoint difference:
where the non-linear predictor ϕψ(·) ensures the summation does not mathematically collapse into a simple difference of endpoints. This forces the gradient signal to propagate through every intermediate state, compelling the model to learn the specific physical contribution of each elementary edit operation. The final objective is L = Lstatic + Lcons.
3 Theoretical Analysis
This section explains why PCEvo generalizes better by decomposing sparse static endpoint regression supervision into edit-level signals along evolutionary paths. Two mechanisms are emphasized: (i) edit decomposition increases the effective number of supervised signals; (ii) learning on edit-local representation increments reduces hypothesis complexity.
| HOMO (100-shot) | HOMO (1000-shot) | LUMO (100-shot) | LUMO (1000-shot) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Methods | MAE ↓ | MSE ↓ | PCC ↑ | MAE ↓ | MSE ↓ | PCC ↑ | MAE ↓ | MSE ↓ | PCC ↑ | MAE ↓ | MSE ↓ | PCC ↑ | ||
| GCN [Kipf and Welling, 2017] | 0.5031 | 0.4298 | -0.2760 | 0.4318 | 0.3393 | 0.3345 | 0.7651 | 0.8399 | 0.6577 | 0.6330 0.7134 | 0.6617 | 0.7859 | ||
| GraphSAGE [Hamilton et al., 2017] | 0.5121 | 0.4523 0.4290 | -0.1318 -0.2948 | 0.4759 0.7613 | 0.4077 | -0.0035 | 0.7618 | 0.8946 | 0.6397 0.6408 | 0.7234 0.6001 | 0.7961 0.8132 | 0.7322 | ||
| GAT [Veliˇckovi´c et al., 2018] | 0.5016 | 0.8418 | 0.1641 | 0.7682 | 0.8763 | 0.7238 | ||||||||
| GIN [Xu et al., 2019] | 0.4928 | 0.4190 | -0.1601 | 0.3529 | 0.2176 | 0.6347 | 0.6768 | 0.7474 | 0.7225 | 0.6568 | 0.8257 | |||
| EMPP [An et al., 2025] | 0.4058 | 0.2872 | 0.5820 | 0.2733 | 0.1244 | 0.8115 | 0.7328 | 0.7804 | 0.6983 | 0.2713 | 0.1223 | 0.8150 | ||
| EMPP∗ [An et al., 2025] | 0.7520 | 0.8391 | 0.0587 | 2.0454 | 4.6518 | -0.2126 | 0.9696 | 1.4393 | 0.6016 | 1.0356 | 1.5991 | 0.6211 | ||
| Moleculeformer [Qin et al., 2025] | 0.3353 | 0.2165 | 0.6966 | 0.2710 | 0.1274 | 0.8068 | 0.8985 | 1.2785 | 0.4202 | 0.5642 | 0.5420 | 0.8192 | ||
| GotenNet [Aykent and Xia, 2025] | 0.5565 | 0.6819 | -0.0591 | 0.3743 | 0.2860 | 0.5950 | 0.8360 | 1.1393 | 0.5379 | 0.4194 | 0.2938 | 0.9067 | ||
| SchNet | +PCEvo | 0.3330 | 0.1853 | 0.7694 | 0.2057 | 0.0758 | 0.8954 | 0.5275 | 0.5253 | 0.8494 | 0.2269 | 0.0924 | 0.9712 | |
| Origin. | 0.4688 | 0.4917 | 0.3413 | 0.3617 | 0.2580 | 0.6336 | 0.6159 | 0.6006 | 0.8050 | 0.2944 | 0.1551 | 0.9514 | ||
| [Sch¨utt et al., 2018] | Improve. | 28.97% | 62.30% | 125.41% | 43.13% | 70.61% | 41.31% | 14.35% | 12.54% | 5.52% | 22.94% | 40.45% | 2.08% | |
| DimeNet | +PCEvo | 0.5502 | 0.4888 | 0.3362 | 0.3711 | 0.2373 | 0.6824 | 0.6955 | 0.8305 | 0.7117 | 0.5553 | 0.5210 | 0.8242 | |
| [Gasteiger et al., 2020] | Origin. | 0.6162 | 0.6871 | 0.1406 | 0.4392 | 0.3322 | 0.4835 | 0.7173 | 0.7877 | 0.6814 | 0.5642 | 0.5420 | 0.8192 | |
| Improve. | 10.71% | 28.86% | 139.04% | 15.50% | 28.55% | 41.13% | 3.04% | -5.43% | 4.45% | 1.58% | 3.88% | 0.61% | ||
| Equiformer | +PCEvo Origin. | 0.3971 0.5189 | 0.3152 | 0.0726 | 0.8637 | 0.5463 | 0.5210 | 0.9593 | ||||||
| [Liao and Smidt, 2023] | 0.5251 | 0.5319 | 0.2292 0.3098 | 0.0963 0.1698 | 0.7366 | 0.8261 | 1.0350 | 0.8055 0.5609 | 0.2592 0.4264 | 0.2920 | 0.9057 | |||
| 23.46% | 39.98% | 17.25% | 39.19% | 5.91% | ||||||||||
| Improve. | 631.98% | 26.02% | 43.29% | 33.87% | 49.66% | 43.60% | 55.72% | |||||||
| +PCEvo | 0.4609 | 0.2905 | 0.9035 | 0.2490 | 0.1178 | |||||||||
| 0.2346 | 0.3693 | 0.2585 | ||||||||||||
| [Wang et al., 2024b] | Improve. | 26.25% | ||||||||||||
| 22.39% | 53.62% | 2.78% | 3.70% | 9.19% | ||||||||||
| 16.04% | ||||||||||||||
| 38.52% | 497.95% | 22.36% | 21.33% | 0.32% | ||||||||||
| 0.4852 | ||||||||||||||
| Origin. | 0.7107 | 0.1297 | ||||||||||||
| 0.5889 | 0.3181 | |||||||||||||
| 0.9603 | ||||||||||||||
| ViSNet | ||||||||||||||
| 0.7685 | ||||||||||||||
| 0.2159 | ||||||||||||||
| -0.1158 | ||||||||||||||
| 0.8791 | ||||||||||||||
| 0.1001 | ||||||||||||||
| 0.4570 | 0.8696 | 0.4073 | ||||||||||||
| 0.4725 | ||||||||||||||
| 0.9635 | ||||||||||||||
| Methods | ESOL | FreeSolv | Lipophilicity | Avg. |
|---|---|---|---|---|
| GCN [Kipf and Welling, 2017] | 1.431 | 2.870 | 0.712 | 1.671 |
| GIN [Xu et al., 2019] | 1.452 | 2.765 | 0.850 | 1.689 |
| N-GRAM [Liu et al., 2019] | 1.100 | 2.510 | 0.880 | 1.497 |
| Hu et al. [Hu et al., 2020] | 1.100 | 2.764 | 0.739 | 1.534 |
| GROVER [Rong et al., 2020] | 1.423 | 2.947 | 0.823 | 1.731 |
| MolCLR [Wang et al., 2022] | 1.113 | 2.301 | 0.789 | 1.401 |
| Equiformer [Liao and Smidt, 2023] | 1.037 | 2.672 | 0.989 | 1.566 |
| SchNet [Sch¨utt et al., 2018] | 0.912 | 2.255 | 0.923 | 1.363 |
| DimeNet [Gasteiger et al., 2020] | 1.135 | 2.589 | 1.043 | 1.589 |
| ViSNet [Wang et al., 2024b] | 1.049 | 3.158 | 0.944 | 1.717 |
| PCEvo SchNet (Ours) | 1.060 | 1.958 | 0.762 | 1.260 |
| PCEvo DimeNet (Ours) | 1.117 | 1.843 | 0.925 | 1.295 |
| PCEvo ViSNet (Ours) | 0.969 | 2.539 | 0.798 | 1.436 |
| Methods | ESOL (1128) | FreeSolv (642) | Lipophilicity (4200) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| R=0.1 | R=0.2 | R=0.8 | R=0.1 | R=0.2 | R=0.8 | R=0.1 | R=0.2 | R=0.8 | ||
| SchNet | +PCEvo Origin. Improve. | 1.484 1.098 -35.15 | 1.568 1.046 -49.94 | 1.060 0.912 -16.21 | 3.490 3.972 12.15 | 2.383 4.042 41.06 | 1.958 2.255 13.18 | 1.112 1.112 -0.02 | 0.854 1.067 19.96 | 0.762 0.923 17.45 |
| DimeNet | +PCEvo Origin. Improve. | 1.489 2.156 30.92 | 1.663 2.249 26.06 | 1.117 1.135 1.54 | 3.623 5.287 31.47 | 2.555 4.910 47.96 | 1.843 2.589 28.82 | 1.111 1.083 -2.54 | 0.980 1.065 7.99 | 0.925 1.043 11.29 |
| ViSNet | +PCEvo Origin. Improve. | 1.235 1.341 7.93 | 1.165 1.333 12.56 | 0.969 1.049 7.70 | 2.857 4.255 32.87 | 2.684 3.801 29.40 | 2.539 3.158 19.59 | 1.080 1.104 2.18 | 0.837 1.052 20.43 | 0.798 0.944 15.51 |
Table 4: Overall experiments on MoleculeNet under different train/test splits. RMSE is reported for each task, where R denotes the training sample ratio.
3.1 Learning Formulation
Given a labeled dataset D = {(Gi, yi)}Ni=1 and the induced evolutionary dataset Devo, we compare static endpoint learning and path-consistent learning. Here ̂R(·) denotes the empirical risk (sample average of the loss) minimized during training.
Static model. The static objective Lstatic supervises absolute property prediction on D. We denote by Hstatic the hypothesis class of all static predictors realizable by the backbone when parameters vary:
Path-consistent learning. The consistency objective Lcons enforces that the summed stepwise deltas along τ = (G(0) s , . . . ,G(T) s ) match the endpoint difference (yt - ys). With ht = fθ(G(t) s ), the predicted total change is
We denote by Hcons the hypothesis class of all delta predictors realizable by the MLP head when its parameters vary:
3.2 Generalization Bound
We adopt Rademacher complexity to compare the generalization of static endpoint learning and edit-path learning.
Assumption 1 (Effective sample size under mixing). Editlevel samples induced by virtual paths form a weakly dependent sequence. For instance, they satisfy β-mixing with
∑k≥1 β(k) < ∞. Then the edit-level learning admits an effective sample size
where ¯L is the average path length.
Assumption 1 states that, although edit-level samples generated along paths are weakly dependent, their statistical effect can be captured by an effective sample size neff, so the generalization bound applies by replacing n with neff .
Let Rn(H) denote the empirical Rademacher complexity. By the standard Rademacher generalization theory [Yin et al., 2019; Bartlett et al., 2005], the generalization gap scales as O(Rn(H) + √log(1/δ)/n) uniformly over f ∈ H. Under Assumption 1, edit-level learning obeys the same scaling with n replaced by neff (up to constants absorbed into cmix).
Theorem 1 (Edit decomposition yields a tighter generalization bound). Assume ℓ(·, ·) is bounded in [0, 1] and is 1Lipschitz in its first argument. Assume ∥h∥2 ≤ Bstatic and ∥∆h∥2 ≤ Bedit. If hypotheses in Hstatic and Hcons are LLipschitz with respect to their inputs, then:
(i) Complexity scaling. The empirical Rademacher complexity scales with the input radius and the sample size. In particular,
(ii) Generalization bounds. With probability at least 1-δ,
The two bounds share the same form, but differ in the effective sample size and the input radius. Edit-path learning replaces (N,Bstatic) with (neff,Bedit), where neff is induced by path decomposition and ∆h is edit-local. In typical settings, a single edit produces a local perturbation in representation space, so Bedit ≤ Bstatic. Therefore, the edit-path bound becomes tighter whenever
In particular, the static generalization gap scales as
while edit-path learning follows the same scaling with (N,Bstatic) replaced by (neff,Bedit). Finally, enforcing path consistency further restricts the admissible solutions within Hcons, which can only reduce the effective complexity and tighten the above bound.
4 Experiments
Datasets. We conduct our evaluations on the QM9 dataset [Ramakrishnan et al., 2014], focusing on the prediction of the highest occupied molecular orbital (ϵHOMO) and lowest unoccupied molecular orbital (ϵLUMO). For physicochemical property prediction, we further employ the ESOL, FreeSolv, and Lipophilicity datasets fromMoleculeNet [Wu et al., 2018].
Baselines. We evaluate PCEvo against a comprehensive set of backbone methods, grouped into three categories: 2D GNNs/Transformer: GCN [Kipf and Welling, 2017], GraphSAGE [Hamilton et al., 2017], GAT [Veliˇckovi´c et al., 2018], GIN [Xu et al., 2019], and Moleculeformer [Qin et al., 2025]; 3D geometry-aware: SchNet [Sch¨utt et al., 2018], DimeNet [Gasteiger et al., 2020], Equiformer [Liao and Smidt, 2023], ViSNet [Wang et al., 2024b], and GotenNet [Aykent and Xia, 2025]; Pretraining: N-GRAM [Liu et al., 2019], GROVER [Rong et al., 2020], MolCLR [Wang et al., 2022], Hu et al. [Hu et al., 2020], and EMPP [An et al., 2025].
Implementation Details. We designed specific data splitting protocols to simulate varying degrees of data scarcity. For the QM9 dataset, we constructed extremely few-shot training/testing sets containing randomly sampled 100 and 1,000 molecules. For the smaller MoleculeNet datasets, we simulated few-shot learning by using 10%, 20%, and 80% of the total data for training; the 10% data were allocated for testing. Performance was assessed using three standard regression metrics: mean absolute error (MAE), mean squared error (MSE), and the Pearson correlation coefficient (PCC).
4.1 Overall Experiments
To evaluate the effectiveness and scalability of PCEvo for molecular representation, we conduct experiments on QM9 and MoleculeNet. Following our path construction procedure, for each target molecule, we retrieve the top-N=5 structural neighbors and enumerate up to Pmax=50 valid edit paths for each molecular pair under topological dependency constraints.
On QM9, we adopt two low-resource settings with N=100 and N=1000 labeled training samples (results in Table 2). PCEvo yields consistent improvements across four 3D backbones (SchNet, DimeNet, Equiformer, and ViSNet), and the correlation recovery is particularly pronounced in few-shot settings (N=100): for ϵHOMO, Equiformer improves PCC from 0.07 to 0.53 (+0.46). Moreover, compared with recent strong baselines such as EMPP, Moleculeformer, and GotenNet, PCEvo achieves better performance under the same fewshot protocol. These results indicate that when the chemical space is sparsely covered, PCEvo can effectively enhance the generalization of backbone models.
On MoleculeNet, since the benchmarks are intrinsically small-scale, we evaluate PCEvo under both the standard split (80% training; Table 3) and explicit low-resource splits with training ratios R ∈ 0.1, 0.2, 0.8 (Table 4). The results show that integrating PCEvo into SchNet, DimeNet, and ViSNet leads to consistent gains across tasks and training ratios. The improvement on FreeSolv is especially evident; for example, with SchNet at R=0.2, RMSE decreases from 4.042 to
| Pmax | N | Lcons | MAE↓ | MSE↓ | PCC↑ |
|---|---|---|---|---|---|
| 5 | 1 | ✓ | 0.487 | 0.430 | 0.145 |
| 5 | 1 | ✗ | 0.672 | 0.881 | -0.088 |
| 5 | 3 | ✓ | 0.385 | 0.265 | 0.659 |
| 5 | 3 | ✗ | 0.518 | 0.480 | -0.108 |
| 5 | 5 | ✓ | 0.319 | 0.179 | 0.761 |
| 5 | 5 | ✗ | 0.390 | 0.273 | 0.639 |
| 1 | 1 | ✓ | 0.687 | 0.942 | -0.085 |
| *1 | 1 | ✗ | 0.469 | 0.492 | 0.341 |
| 1 | 3 | ✓ | 0.672 | 0.894 | -0.088 |
| 1 | 3 | ✗ | 0.677 | 0.904 | -0.086 |
| 1 | 5 | ✓ | 0.494 | 0.443 | 0.127 |
| 1 | 5 | ✗ | 0.486 | 0.428 | 0.153 |
2.383. Meanwhile, under the standard split, PCEvo also outperforms several widely used pretraining baselines: for instance, PCEvo SchNet achieves an average RMSE of 1.260, improving over MolCLR (1.401) by 0.141.
Overall, PCEvo exhibits stable and transferable improvements across backbones and few-shot settings, and compares favorably to a range of pretraining methods. These results suggest that moving beyond static endpoint regression by decomposing supervision into edit-wise steps and enforcing path-consistency can yield more robust molecular representations in few-shot settings.
4.2 Ablation Study
To isolate the effect of the path-consistency constraint Lcons, we conduct a controlled ablation study. We use SchNet as the backbone, train under the 100-shot, and evaluate on a heldout validation set of 100 disjoint molecules, with ϵHOMO as the target property. Across all runs, we keep the static endpoint supervision Lstatic enabled. Therefore, within each (N, Pmax) configuration, the only difference is whether Lcons is enabled.
Main finding: Lcons is effective when multiple paths are available. Table 5 shows that relative to the single path setting (Pmax = 1), multi-path training (Pmax = 5) consistently improves performance when the path-consistency constraint Lcons is enabled. This trend holds across all neighbor budgets N ∈ 1, 3, 5, indicating that the benefit of Lcons is robust to the choice of N. In contrast, simply increasing the number of paths without Lcons does not lead to reliable gains and can even degrade performance in few-shot settings.
On the role of naive duplication. In our training construction, endpoint molecules are reused across different molecular pairs and paths. Such reuse mainly increases the number of training instances, but does not necessarily introduce additional chemical diversity at the endpoints; therefore, the observed gains cannot be explained by sample count alone. Table 5 provides a controlled comparison supporting this point: once the path-consistency constraint is removed, increasing the path budget (Pmax > 1) or the neighbor budget (N > 1) no longer yields consistent improvements; instead, performance becomes unstable under some configurations.

4.3 Hyperparameter Sensitivity Analysis
To analyze the impact of the maximum number of virtual paths Pmax and the number of source neighbors N on PCEvo, we conduct experiments on the QM9 dataset under the 100shot setting using SchNet as the backbone, with results shown in Fig. 4. Regarding the number of virtual paths, we observe that a single path (Pmax = 1) yields negligible gains over the baseline, indicating that simple augmentation is insufficient. However, increasing Pmax significantly boosts performance by enforcing consistency across diverse topological orderings. This confirms that path-consistent via virtual evolutionary is central to the PCEvo's success. Regarding the context size N, a clear trade-off exists between diversity and relevance. Performance peaks at N = 5; utilizing larger neighborhoods (N ≥ 15) degrades accuracy, as distant neighbors introduce chemically irrelevant scaffolds that generate noisy and overly complex edit paths.
5 Conclusion
In this work, we propose PCEvo, a path-consistent molecular representation method that augments conventional static regression supervision with a virtual evolutionary edit-path consistency constraint. This design enables the model to learn how local structural edits accumulate into global property variations, thereby yielding more robust structure-property mappings. Experiments on QM9 and MoleculeNet under few-shot settings show that PCEvo consistently reduces error, improves stability, and achieves SOTA performance against strong baselines.
Acknowledgments
This work was supported in part by the National Key Research and Development Program of China (2023YFC2705705), the Natural Science Foundation of China (No. 62476203), Key Project of Traditional Chinese Medicine Joint Fund of Hubei Provincial Natural Science Foundation (No.2025AFD47), Hubei Province Science and Technology Innovation Plan Project (No.2025BCB035), the Guangdong Provincial Nat¬ural Science Foundation General Project (No. 2025A1515012155), the Shenzhen Natural Science Foundation Project (No. JCYJ20250604122534006, JCYJ20230807090211021). The Hubei Jiangxia laboratory development project (No. 2025JXKF034),the New Cornerstone Science Foundation through the XPLORER PRIZE,The Innovative Research Group Project of Hubei Province under Grants 2024AFA017.
@inproceedings{ijcai2026p619,
title = {PCEvo: Path-Consistent Molecular Representation via Virtual Evolutionary},
author = {Li, Kun and Hu, Longtao and Yu, Jiajun and Xiong, Yida and Zhang, Hongzhi and Chen, Jiameng and Cai, Xiantao and Wu, Jia and Hu, Wenbin},
booktitle = {Proceedings of the Thirty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-26}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Diego Calvanese},
pages = {5558--5566},
year = {2026},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2026/619},
url = {https://doi.org/10.24963/ijcai.2026/619},
}
TY - CPAPER TI - PCEvo: Path-Consistent Molecular Representation via Virtual Evolutionary AU - Li, Kun AU - Hu, Longtao AU - Yu, Jiajun AU - Xiong, Yida AU - Zhang, Hongzhi AU - Chen, Jiameng AU - Cai, Xiantao AU - Wu, Jia AU - Hu, Wenbin T2 - Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2026 SP - 5558 EP - 5566 DO - 10.24963/ijcai.2026/619 UR - https://doi.org/10.24963/ijcai.2026/619 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: