                                          Hierarchical Graph Tokenization for Molecule-Language Alignment



                                                                                           et al., 2014) via Mean Absolute Error (MAE).

Table 3. Results of molecular property prediction tasks (regression)

on QM9. We report the result in MAE. †: few-shot in-context                                The results of molecular property prediction are given in

learning (ICL) results from (Fang et al., 2024). ∆ϵ refers to the                          Table 3 and Table 4 for regression and classification, re-

HOMO-LUMO energy gap.                                                                      spectively. We can find that HIGHT always significantly

 M ETHOD                                          HOMO ↓   LUMO ↓   ∆ϵ ↓     AVG ↓

                                                                                           boosts the performance in both types of tasks. Remark-

 Alpaca† (Dubois et al., 2023)                       -        -        -     322.109

 Baize† (Xu et al., 2023)                            -        -        -     261.343       ably, in CYP450 (Zhao et al., 2023), HIGHT significantly

 LLama2-7B (Touvron et al., 2023b) (5-shot ICL)   0.7367   0.8641   0.5152   0.7510

 Vicuna-13B (Chiang et al., 2023) (5-shot ICL)    0.7135   3.6807   1.5407   1.9783        outperforms the state-of-the-art model, demonstrating the

 Mol-Instruction (Fang et al., 2024)              0.0210   0.0210   0.0203   0.0210        advances of LGLM with hierarchical graph tokenization.

 InstructMol-G                                    0.0111   0.0133   0.0147   0.0130

 HIGHT-G                                          0.0078   0.0086   0.0095   0.0086        Interestingly, Llama-2 (Touvron et al., 2023b) can match the

                                                                                           state-of-the-art performance in HIV in a few-shot setting,

                                                                                           while performing significantly worse in other datasets, for

averaged across classes, respectively, HIGHT demonstrates                                  which we suspect some data contamination might exist.

significant improvements up to 14%.

                                                                                           Molecular description requires the LGLMs to generate a

The results of the tokenization-focused comparison are                                     caption of the molecule. We adopt the widely used bench-

given in Table 2. Following the practice in LVLMs, we                                      mark ChEBI-20 (Edwards et al., 2021) which evaluates

present the F1 scores, accuracies, and the ratio that the                                  the linguistic distances of the generated molecule captions

model answers “Yes” (Li et al., 2023c). Given the imbal-                                   of molecular characteristics such as structure, properties, bi-

ance of positive and negative samples, we separately report                                ological activities etc.. We report the metrics of BLEU (Pap-

the F1 scores for different classes. It can be found that the                              ineni et al., 2002), ROUGE (Lin, 2004) and Meteor (Baner-

LGLMs with node-centric tokenization consistently answer                                   jee & Lavie, 2005). The LGLMs are trained using the

with “Yes” despite the absence of the corresponding func-                                  ChEBI-20 train split, selected according to the best train-

tional groups. In contrast, HIGHT significantly reduces the                                ing loss, and evaluated using the test split.

worst class hallucination up to 40% in terms of F1 scores,

and improves the accuracies up to 30%. The improvements                                    As shown in Table 5, HIGHT consistently brings significant

are consistent and significant with both vicunna and llama2                                improvements over LGLMs with node-centric tokenization.

LLM backbones.                                                                             Nevertheless, compared to the molecular foundation models

                                                                                           such as MoT5 (Edwards et al., 2022) pretrained on a signifi-

Ablations with different inputs and LLM backbones.                                         cant amount of molecule-text related corpus, there remains

We also conduct simple ablation studies by additionally                                    a gap for regression-based LGLMs even with HIGHT. The

incorporating the 1D sequence inputs with SELFIES (Fang                                    gap calls for future investigations on how to incorporate

et al., 2024; Cao et al., 2023). Contrary to previous results                              HIGHT into the pretraining of the LGLMs properly.

that additionally feeding the 1D sequence always improves

the performance of LGLMs, we find that the additional                                      Chemical reaction prediction requires the LGLMs to pre-

1D sequence may increase the degree of the hallucination.                                  dict the results of the chemical reaction analysis, which

We suspect that it could be caused by the extremely long                                   are crucial for AI-aided drug discovery (Fang et al., 2024).

sequences of the SELFIES (Krenn et al., 2019) that may                                     Reagent prediction aims to predict the suitable reagents for

distract the attention signals of LLMs. Nevertheless, HIGHT                                a particular chemical reaction. Forward reaction prediction

still suffers less from the distraction and performs better.                               aims to predict the products of a chemical reaction, given the

                                                                                           reactants and the reagents. Retrosynthesis prediction aims

In addition, when without HiPubChem (or with the HIGHT                                     to predict the suitable reactants given a target product. The

architecture), LGLMs will still suffer the hallucination, due                              inputs and outputs for chemical reaction related tasks adopt

to the low quality of the instruction tuning data, demonstrat-                             the SELFIES (Krenn et al., 2019) as recommended by (Fang

ing the necessity of both components of HIGHT.                                             et al., 2024). We report both linguistic distance metrics such

                                                                                           as BLEU (Papineni et al., 2002) and Levenshtein (Yujian

5.3. Molecular-Centric Benchmarks                                                          & Bo, 2007), and molecular similarity measures such as

Molecular property prediction requires LGLMs to an-                                        similarity of the molecular fingerprints (Landrum, 2016).

swer about particular properties given the molecule. We                                    As shown in Table 6, across all tasks in chemical reaction

use 8 datasets BACE, BBBP, HIV, SIDER, ClinTox, MUV,                                       prediction, LGLMs with HIGHT consistently and signif-

and Tox21 from MoleculeNet, and CYP450 from GIM-                                           icantly improve the performances compared to the node-

LET (Zhao et al., 2023) to evaluate the classification perfor-                             centric tokenization. Meanwhile, LGLMs with HIGHT

mance with ROC-AUC. We also adopt the regression-based                                     achieve state-of-the-art results in several tasks and metrics,

property prediction datasets from (Fang et al., 2024), where                               compared to other regression-based LGLMs that even incor-

we evaluate several quantum chemistry measures such as                                     porate a stronger LLM backbone such as Mol-Instruction,

HUMO, LUMO, and HUMO-LUMO gap (Ramakrishnan



                                                                                       7

