                                    Hierarchical Graph Tokenization for Molecule-Language Alignment





Table 1. Detailed results in motif hallucinations on MotifHallu. Due to the imbalance of samples from positive and negative classes,

we incorporate diverse evaluation metrics to provide a detailed comparison between different methods in terms of hallucination.

       M ETHOD                               Macro F1 ↑ F1 (pos) ↑ F1 (neg) ↑ Micro F1 ↑ AUROC ↑ Acc ↑ Yes Ratio

                                                            4, 124      19, 800

      GIMLET (Zhao et al., 2023)                         50.0            0.1            99.9        0.05        49.9      82.6       0.2

      Galactica-6.7B (Taylor et al., 2022)               56.6           17.5            95.7        12.9        50.7      77.6       8.5

      InstructMol (Cao et al., 2023)                     52.6           95.7             9.5        28.3        48.4      20.0      94.5

      HIGHT                                              66.8           85.5            48.2        29.7        53.2      39.1      69.4





  Table 2. Results of motif hallucinations on MotifHallu.                            not include the baselines with “-GS” for tasks other than

 M ETHOD                           F1 (pos) ↑   F1 (neg) ↑   Acc ↑   Yes Ratio

                                                                                     MotifHallu as we find that incorporating the 1D input

 Node-centric Tokenization

 InstructMol-G                       95.7          9.5       19.9      94.5          does not always bring improvements in the experiments.

 InstructMol-G (LLama-2-7b-chat)     99.6         2.8        18.3      98.7

 InstructMol-GS                      97.1         10.6       20.9      94.4          For non-regression-based models, including the pretrained

 Hierarchical Tokenization                                                           models such as KV-PLM (Zeng et al., 2022), GraphCL (You

 HIGHT-G                             85.5         48.2       39.1      74.7

 HIGHT-G (LLama-2-7b-chat)           55.1         65.2       46.6      49.3          et al., 2020) and GraphMVP (Liu et al., 2022), and

 HIGHT-GS                            84.5         42.7       35.1      73.1          molecular foundation models that are trained with tremen-

 Ablation variants of HIGHT                                                          dous molecule-centric datasets such as MolT5-based meth-

 HIGHT-G w/o HiPubChem               96.6         12.5       21.6      96.6

 HIGHT-GS w/o HiPubChem              98.2         6.5        19.4      93.3          ods (Edwards et al., 2022), Galactica (Taylor et al., 2022),

                                                                                     MoMu (Su et al., 2022), MolFM (Luo et al., 2023a), Uni-

5. Experimental Evaluation                                                           Mol (Zhou et al., 2023), MolXPT (Liu et al., 2023e), GIT-

We conduct extensive experiments to compare HIGHT with                               Mol (Liu et al., 2024c), and BioMedGPT (Luo et al., 2023b).

previous node-centric tokenization across 14 real-world                              We adopt the results from the previous works Fang et al.

tasks, including property prediction, molecular description,                         (2024); Cao et al. (2023) if applicable.

and chemical reaction prediction. The details and examples                           For regression-based LGLMs, we consider LLMs such as

regarding the datasets and tasks involved in the experiments                         ChatGPT (OpenAI, 2022), Llama (Touvron et al., 2023a) as

are given in Appendix C. We briefly introduce the setups                             well as instruction tuned LLMs such as Alpaca (Dubois

below and leave the details in Appendix D.                                           et al., 2023), Baize (Xu et al., 2023), ChatGLM (Zeng

                                                                                     et al., 2023) and Vicuna (Chiang et al., 2023). We also

5.1. Experimental settings                                                           consider parameter-efficient finetuned LLMs using the

                                                                                     backbone of llama2 (Touvron et al., 2023b) as done by

Architecture. The GNN backbone is a 5-layer GIN (Xu

                                                                                     Mol-Instructions (Fang et al., 2024).

et al., 2019) with a hidden dimension of 300. The adapter

is a single-layer MLP. We consider base LLMs of vicuna-

                                                                                     5.2. Motif Hallucination

v-1.3-7B (Chiang et al., 2023) for all the tasks and llama-2-

7B-chat (Touvron et al., 2023b) for ablation studies.                                We begin with a proof-of-concept study with motif hallu-

Baselines. Since the focus of this work lies in the tok-                             cination. We mainly compare LGLMs with node-centric

enization, our main comparison focuses on between HIGHT                              to that with HIGHT tokenization with MotifHallu after

and node-centric tokenization. Nevertheless, we also in-                             stage 1 instruction tuning. For non-regression-based mod-

clude a series of existing LGLMs based on non-regression                             els, we include two state-of-the-art LGLMs GIMLET (Zhao

LLMs and regression LLMs, to provide an overview of the                              et al., 2023) and Galactica (Taylor et al., 2022). We do

performance achieved by HIGHT. We would like to note                                 not include the other regression-based models as we found

that there are existing differences in pretraining data and                          they consistently answered “Yes”, making a nuanced F1

information used between HIGHT and those baselines. For                              comparison less informative for them. To avoid the issue

details, please refer to Table 7 in the Appendix.                                    of format following, we compare the loss values by feeding

                                                                                     the answers of “Yes” and “No” to the corresponding LLM,

For the node-centric based tokenization, we implement the                            calculating the language modeling losses, and taking the

baseline mainly based on InstructMol (Cao et al., 2023) with                         one from “Yes” and “No” with a lower loss as the answer.

a VQVAE tokenizer from Mole-BERT (Xia et al., 2023).

HIGHT is implemented based on the same architecture with                             Reduction of hallucination. Due to the class imbalance

only the tokenizer replaced. We use the suffix “-G” to refer                         issue in MotifHallu, we first report comprehensive met-

to LGLMs with only 2D graph input and “-GS” to refer to                              rics in Table 1. It can be found that HIGHT maintains great

LGLMs with both 2D graph and 1D selfies input (Krenn                                 balance for both positive and negative classes compared to

et al., 2019; Fang et al., 2024; Cao et al., 2023). We do                            baselines. Especially, in terms of macro F1 scores that are



                                                                                 6

