         Hierarchical Graph Tokenization for Molecule-Language Alignment





               Yongqiang Chen 1 2 3 Quanming Yao 4 Juzheng Zhang 5 James Cheng 3 Yatao Bian 6





                         Abstract                                     languages (Radford et al., 2019; OpenAI, 2022; Touvron

                                                                      et al., 2023a; Bubeck et al., 2023). Recently, there has been

     Recently, there has been a surge of interest in

                                                                      a surge of interest in extending the capabilities of LLMs

     extending the success of large language mod-

                                                                      to graph-structured data (Jin et al., 2023; Li et al., 2023d;

     els (LLMs) from texts to molecules. Most ex-

                                                                      Wei et al., 2024; Mao et al., 2024; Fan et al., 2024), par-

     isting approaches adopt a graph neural network

                                                                      ticularly molecular graphs (Zhao et al., 2023; Cao et al.,

     to represent a molecule as a series of node to-

                                                                      2023). Inspired by the success of large vision-language

     kens for molecule-language alignment, which,

                                                                      models (Zhang et al., 2024b; Liu et al., 2023a), recent ef-

     however, have overlooked the inherent hierar-

                                                                      forts in developing large graph-language models (LGLMs)

     chical structures in molecules. Notably, higher-

                                                                      typically adopt a graph neural network (GNN) (Xu et al.,

     order molecular structures contain rich semantics

                                                                      2019) to tokenize molecules as a series of node embed-

     of functional groups, which encode crucial bio-

                                                                      dings (or node tokens), and then leverage an adapter such

     chemical functionalities of the molecules. We

                                                                      as a Multi-layer perceptron (MLP) or a Q-former (Li et al.,

     show that neglecting the hierarchical informa-

                                                                      2023a) to transform the node tokens into those compatible

     tion in tokenization will lead to subpar molecule-

                                                                      with LLMs (Fan et al., 2024). To bridge the gap between

     language alignment and severe hallucination. To

                                                                      the graph and language modalities, LGLMs will undergo

     address this limitation, we propose HIerarchical

                                                                      a molecule-language instruction tuning with the molecu-

     GrapH Tokenization (HIGHT). HIGHT employs

                                                                      lar graph and the corresponding captions describing the

     a hierarchical graph tokenizer that encodes the

                                                                      molecules (Jin et al., 2023; Li et al., 2023d; Fan et al., 2024).

     hierarchy of atom, motif, and molecular levels

     of informative tokens to improve the molecu-                     Despite recent progress, the tokenization in existing LGLMs

     lar perception of LLMs. HIGHT also adopts an                     neglects the essential hierarchical structures inherent in

     augmented instruction tuning dataset, enriched                   molecular graphs. In particular, in molecular graphs,

     with the hierarchical graph information, to fur-                 the high-order substructures, such as motifs or functional

     ther enhance the molecule-language alignment.                    groups, encode rich semantics of the biochemical function-

     Extensive experiments on 14 real-world bench-                    alities of the molecules (Milo et al., 2002; Bohacek et al.,

     marks verify the effectiveness of HIGHT in re-                   1996; Sterling & Irwin, 2015). For example, the presence

     ducing hallucination by 40%, and significant im-                 of a hydroxide functional group (“-OH”) often indicates

     provements in various molecule-language down-                    a higher water solubility. Therefore, such substructural

     stream tasks. The project is available at https:                 cues are essential for enabling LLMs to reason about the

     //higraphllm.github.io/.                                         molecules in a chemically meaningful way. However, exist-

                                                                      ing LGLMs mostly tokenize molecules solely at the atom

                                                                      (node) level, and feed LLMs with only node-level tokens.

1. Introduction                                                       Consequently, it requires LLMs to implicitly infer the un-

                                                                      derlying substructures during the instruction tuning stage.

Large language models (LLMs) have demonstrated impres-                The absence of the critical substructures not only increases

sive capabilities in understanding and processing natural             the unnecessary burdern on the LLMs, but also leads to

   Most of the works were done when Yongqiang Chen was a              misaligned representations and a higher likelihood of hal-

PhD student at CUHK. 1 MBZUAI 2 Carnegie Mellon University            lucinations in downstream tasks. To quantify the issue, we

3

  The Chinese University of Hong Kong 4 Tsinghua University           introduce a diagnostic benchmark, called MotifHallu,

5

  University of Maryland, College Park 6 Department of Computer       which evaluates the perception ability of LGLMs about

Science, National University of Singapore. Correspondence to:         the existence of common functional groups. Surprisingly,

Yatao Bian <bianyt@comp.nus.edu.sg>.

                                                                      we find that existing LGLMs often produce false-positive

Proceedings of the 42 nd International Conference on Machine          predictions (i.e., keep answering “Yes” for any functional

Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025           groups), highlighting a critical limitation in current graph to-

by the author(s).



                                                                  1

