text
stringlengths 0
89.3k
|
---|
dant text in that neighborhood since LLMs are originally designed
|
for onedimensional sequential data only and have a limited input
|
length that is often much shorter than the total amount of neigh
|
borhood context Therefore integrating LLMs for textrich graphs
|
necessitates a method that can effectively compress neighborhood
|
text while still preserving structural information HiCom achieves
|
the goal by compressing the neighborhood in a structured manner
|
We construct a hierarchy of feature aggregation that corresponds to
|
different hops from the center node especially building the iterative
|
process of aggregating textual features from a nodes immediate
|
neighbors to capture local graph structures and then progressively
|
expanding this aggregation to include distant neighbors Such de
|
sign enables efficient usage of the graph structure and avoids input
|
explosion that would occur if one were to simply concatenating
|
all node attributes in sequence for encoding a large neighborhood
|
HiCom adapts a pretrained LLM as the backbone and adds ad
|
ditional learnable vocabularies and prediction layers to make the
|
model work as a graph compressor and a predictor All modules
|
are jointly finetuned with parameterefficient finetuning PEFT
|
to solve graph tasks eg node classification
|
In the following paragraphs we begin by demonstrating the
|
workflow of the HiCom framework with an illustrative exampleand then provide details about the compressor the predictor and
|
the computational complexity associated with HiCom Furthermore
|
we discuss techniques to improve the efficiency and effectiveness
|
of HiCom and examine its relationship with GNN message passing
|
41 The HiCom Framework
|
The Workflow We illustrate how HiCom works through a node
|
classification example shown in Figure 2 This illustration is for clas
|
sifying the target node π£0 Initially HiCom constructs a hierarchy
|
withπΏlevels for gathering context information in the neighborhood
|
ofπ£0 withπ£0in the last πΏth level left figure The hierarchy is
|
formed by sampling multihop neighbors of π£0 and the size of each
|
level is specified by the fanouts parameters with the πth entry for
|
levelπ For instance this example illustrates the construction of a
|
twolevel hierarchy with fanouts set to 32 which means two one
|
hop neighbors eg π£1andπ£2 ofπ£0and three twohop neighbors
|
for each onehop neighbor eg π£4π£8 andπ£9forπ£1π£5andπ£6forπ£2
|
are sampled Note that while three neighbors were intended for π£2
|
following the fanouts only two are included as those are all π£2has
|
This aspect introduces an implementation challenge that will be
|
elaborated in Section 42 The constructed hierarchy is represented
|
as a tree structure Considering the potentially extensive context
|
within this hierarchy the compression phase is the next step as
|
shown in the bottom right figure The compressor concatenates
|
the text tokens in each local neighborhood and compresses them
|
into summary vectors The summary vectors capture essential con
|
textual information while significantly reducing the input length
|
In this example an input in the lower hierarchy green tokens is
|
compressed from length nine into length two Note that dummy
|
tokens might be needed as placeholders for parallelization a topic
|
will be elaborated in Section 42 After two sets of summary vectors
|
π1andπ2 have been produced they are further compressed along
|
with the text on π£1andπ£2to produce a comprehensive summary
|
ofπ£0s neighborhood The final summary vectors for π£0becomeπ 0
|
Lastly the predictor combines π 0with the raw text of the target
|
node denoted as π₯0 to predict the label π¦0 as illustrated in the
|
upper right figure
|
The Compressor The compressor processes the text from neigh
|
boring nodes in a levelbylevel manner For the text data in the
|
βth level the compressor employs soft prompting as in AutoCom
|
pressor reviewed in Section 3 to instruct LLMs to compress the
|
input text into summary vectors πsoft prompt tokens are added
|
to LLMs existing vocabulary to compress inputs with length π‘to
|
summary vectors with length π We denote this compression oper
|
ation as ππΆππππ₯ omitting the tokenlevel detail An example
|
is depicted in Figure 2 with πequals 2 for visualization purposes
|
and we setπto be 50 in our experiments To compress input from
|
different levels hierarchically the summary vectors from βth level
|
nodes in the computation graph are consumed by the β1th level
|
being prepended to their embedding inputs Thus the summary
|
from levelβcan be carried to level β1for further compression
|
For example the compression of π£0s neighborhood in Figure 2
|
isπ0πΆππππ1π2π₯1π₯2π0will thus contain not only infor
|
mation from π₯1π₯2 but also information from π₯4π₯8π₯9π₯5 andπ₯6
|
through hierarchical compressionHierarchical Compression of TextRich Graphs via Large Language Models Conference acronym XX June 0305 2018 Woodstock NY
|
The Predictor When using the LLM as a predictor we append
|
and tune an extra prediction layer at the end of the model The
|
parameters in this layer are randomly initialized and tuned together
|
with the LLM backbone Similarly to the compressor operation the
|
predictor can also take in the combined summary vectors and text
|
tokens and therefore make predictions with both the node text and
|
the contextual information For example to make a prediction of π£0
|
in the illustration example π0π₯0is fed to the predictor as input
|
which concatenates the neighborhood summary vectors and the
|
feature information of node π£0
|
Computational Complexity One of the advantages of HiCom is
|
its efficiency for processing rich neighborhoods compared to the
|
LLM backbone This efficiency stems from the fact that the com
|
putational complexity of LLM forward passes grows quadratically
|
with the input length Specifically if we were to concatenate sam
|
pled neighbors directly to the target to form an input of length
|
π the resulting time complexity would be ππ2 However by di
|
viding the input into smaller segments of lengths π1π2ππ‘st
|
πΓπ‘
|
π1ππ and compressing them hierarchically the overall time
|
complexity is reduced to πΓπ‘
|
π1π2
|
π HiCom results in a lower
|
computational cost for processing long inputs and its advantage is
|
more prominent for longer inputs
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.