                               Hierarchical Graph Tokenization for Molecule-Language Alignment



                                This molecule is a cyclohexadienecarboxylic acid having the

                                C=C bonds at the 1- and 3-positions…



                                                                                    🤖

                                This molecule has 1 carboxylic acids group, and

                                2 side-chain hydroxyls groups…









   Node-level



                                            Large Language Model



                      HIGHT



                                                                          "Can you tell me more

                                 Node         Motif      Text Tokenizer   about this molecule?"

   Motif-level







                       (a) Overview of the HIGHT framework.                                               (b) Summary of performance.



Figure 1. (a) Illustration of HIGHT: Given a molecule (i.e., PubChem ID 3, 5,6-Dihydroxycyclohexa-1,3-diene-1-carboxylic acid),

HIGHT detects the motifs and incorporates the “supernodes” for each motif (The whole graph is also considered as a “super motif”.).

Then, HIGHT tokenizes the molecule into both node-level (i.e., atoms) and motif-level (i.e., functional groups) tokens. The hierarchical

view enables LLMs to align the molecular structures and the language descriptions of the molecule better. (b) Performance Overview:

HIGHT significantly reduces the hallucination of LGLMs and improves the downstream performance across various molecule-centric

tasks. Due to the heterogeneity of the evaluation metrics in each task, we perform some transformations on the numerical values. In

MotifHallu, we report the macro F1 scores. For Property Classification and Molecular Caption, we report the averaged scores of all the

subtasks or submetrics. For Property Regression, we normalize the values to the range between 1 and 100, i.e., for a, the reported number

is 0.5/a. For Chemical Reaction Prediction, we report the averaged values of BLEU, RDK, MACCS, and MORGAN.





kenization strategies (Sec. 3.2). This observation motivates                          we also propose the first hallucination benchmark

the following research question:                                                      MotifHallu, synthesized through question-answering

                                                                                      based on common functional groups.

       Is there a feasible approach to integrate the intrinsic

        hierarchical molecular information into LLMs?                              • We conduct extensive experiments with 14 real-world

                                                                                     benchmarks. The results show that HIGHT significantly

To tackle the problem, we propose a new molecule-language                            reduces the hallucination on MotifHallu by up to 40%

alignment strategy called HIerarchical GrapH Tokenization                            and consistently improves the performances on down-

(HIGHT). As illustrated in Fig. 1, HIGHT adopts a hierarchi-                         stream molecule-language tasks.

cal graph tokenizer and a hierarchical molecular instruction

tuning dataset to facilitate a better alignment of molecule                        Hence, HIGHT together with MotifHallu and

and language modalities. Specifically, inspired by the suc-                        HiPubChem, lay the solid foundation for developing graph

cess of hierarchical GNNs in molecular representation learn-                       foundation models via graph-language alignment.

ing (Zhang et al., 2021; Zang et al., 2023; Inae et al., 2023;

Luong & Singh, 2023), HIGHT transforms the original                                2. Preliminaries

molecular graph into a hierarchical graph with motif-level

and molecule-level nodes added in. Then, HIGHT employs                             Large Graph-Language Models. As LLMs have demon-

a Vector Quantized-Variational AutoEncoder (VQVAE) to                              strated great capabilities across a wide range of natural

obtain atom-level, motif-level, and molecule-level tokens                          language tasks, there has been an increasing interest in

separately with the self-supervised tasks (Zang et al., 2023).                     extending LLMs to broader applications where the text

                                                                                   data are associated with the structure information (i.e.,

In addition, to further encourage the encoding and alignment

                                                                                   graphs) (Jin et al., 2023; Li et al., 2023d; Wei et al., 2024;

of hierarchical information, HIGHT augments the original

                                                                                   Mao et al., 2024; Fan et al., 2024). A graph can be de-

molecular instruction tuning dataset with motif-level de-

                                                                                   noted as G = (V, E) with a set of n nodes v ∈ V and

scriptions. Our contributions can be summarized as follows:

                                                                                   a set of m edges (u, v) ∈ E. Each node u has node at-

                                                                                   tributes as xu ∈ Rd and each edge (u, v) has edge attributes

• To the best of our knowledge, we are the first to incor-

                                                                                   eu,v ∈ Rde . A number of LGLMs have been developed

  porate the hierarchical graph information into LGLMs,

                                                                                   to process graph-text associated data D = {G, c}, where

  with the consideration of both the architecture-level and

                                                                                   c = [c1 , ..., clc ] is to the caption of the graph G. For node-

  the instruction tuning data.

                                                                                   centric tasks, ci will associate with the nodes (Tang et al.,

• To facilitate the molecule-language alignment study,                             2023), while in this paper we focus on graph-centric tasks,



                                                                               2

