Papers
Topics
Authors
Recent
Search
2000 character limit reached

Large Language and Graph Assistant (LLaGA)

Updated 23 March 2026
  • LLaGA is a hybrid neural architecture that merges large language models with explicit graph reasoning to process both text and structured data.
  • It employs three intercommunicating agents—Graph Generator, Task Planning, and Task Execution—to construct and utilize semantic knowledge graphs.
  • State-of-the-art results are achieved through advanced tokenization, cross-modal alignment, and iterative graph construction for diverse applications.

A Large Language and Graph Assistant (LLaGA) is a hybrid neural architecture that integrates LLMs with explicit modeling and reasoning over graph-structured data, handling both structured (graphs) and unstructured (text) modalities. LLaGA systems enable context-aware prediction (such as node classification and link prediction) and generative tasks (such as summarization and knowledge-graph-driven synthesis) by decomposing workload into intercommunicating agentic modules. Recent LLaGA frameworks achieve state-of-the-art performance and strong generalizability, benefiting from advanced graph construction, adaptive tokenization, scenario-aware task planning, and tight language-graph alignment (Yang et al., 2024).

1. Core Problem Formulation and System Architecture

A LLaGA system receives as input both structured graph data (explicit edges, e.g., user-item, citation networks) and unstructured text data (paragraphs, reviews, abstracts). Both input types are merged into a single heterogeneous graph G=(V,E,N,R)G=(V, E, N, R), where VV is the set of entity nodes, EE the set of edges, NN the node-type vocabulary, and RR the edge-type vocabulary; each meta-edge (nh,r,nt)(n_\mathrm{h}, r, n_\mathrm{t}) encodes relational semantics between types. The LLaGA is modeled as an agentic function

Y=f(O;LLM)Y = f(O; \mathrm{LLM})

where OO is the observation and YY is the output, which can be predictive (e.g., node classification, link prediction) or generative (e.g., text summarization, related-work generation).

The system decomposes into three interacting LLM-driven agents:

  1. Graph Generator Agent: Automatically constructs semantic knowledge graphs (SKGs) from text, uncovering implicit relationships.
  2. Task Planning Agent: Interprets the user’s natural language query, determines required (sub-)tasks, and grounds explicit graphs.
  3. Task Execution Agent: Selects predictive or generative heads, executes planned tasks, matches and invokes appropriate tools.

This modular division allows seamless routing and execution of heterogeneous tasks by integrating graph and LLMs at multiple stages (Yang et al., 2024).

2. Semantic Knowledge Graph Construction

The Graph Generator Agent constructs a SKG in a two-phase, iterative LLM-based pipeline:

  • Scaffold Knowledge Extraction: An LLM extracts top-level concepts from input text via a dedicated system prompt xsys_skx_\mathrm{sys\_sk}, yielding initial scaffold nodes.
  • Knowledge Description Augmentation: For each scaffold node, another LLM prompt VV0 generates detailed descriptions, enabling richer semantic context.
  • Iterative Refinement: This process repeats—feeding augmented descriptions back into the two prompts to spawn finer-grained nodes and descriptions—yielding a hierarchical semantic graph.
  • SKG Assembly: As iterations conclude, the node set VV1 and edge set VV2 are finalized, linking spawned child nodes to their parent scaffold nodes.

Optionally, the SKG can be embedded using a Graph Neural Network (e.g., GCN) to produce node representations suitable for downstream LLM consumption: VV3 with VV4 from a text encoder (Yang et al., 2024).

3. Agentic Task Planning and Tokenization

The Task Planning Agent transforms a user query into executable graph-aware actions:

  • Intent Identification: Uses LLM parsing to extract (1) the graph source VV5 (files or text), (2) task type (predictive or generative), and (3) user annotations (target labels, desired output style).
  • Graph-Token Grounding: Converts graph data into PyG or DGL objects, handling both explicit user-uploaded graphs and SKGs from previous steps.
  • Graph Tokenization: Each node’s textual attributes are encoded (e.g., via SBERT); optional meta-type embeddings are fused. A GNN further integrates local semantic and structural context, and VV6-hop subgraphs are sampled per node to form graph tokens suitable as LLM input.

This joint tokenization pipeline aligns textual and structural features, preparing hybrid node representations for the final prediction/execution steps (Yang et al., 2024).

4. Task Execution, Orchestration, and Dynamic Error Handling

The Task Execution Agent is responsible for operating on the processed graph representations:

  • Predictive Tasks: System prompt VV7 is built, and the LLM is called with graph tokens to emit both predictions VV8 and optional reasoning traces.
  • Generative Tasks: System prompt VV9 is created; the LLM generates free-form text outputs given SKG tokens.
  • Orchestration and Error Recovery: Domain constraint violations (e.g., missing required labels) trigger clarification sub-prompts. The system iterates, updating its action plan or modifying its understanding until eligible outputs are produced.

Success hinges on both predictive accuracy and the ability to correct or adapt plan execution dynamically via LLM-driven feedback loops (Yang et al., 2024).

5. Language–Graph Model Fusion and Alignment Fine-Tuning

LLaGA achieves joint modeling by tightly coupling graph and language features:

  • Input-Level Fusion: Graph embeddings are linearly projected into the token space of the LLM through a trainable adapter EE0: EE1
  • Cross-Modal Attention: Conceptual extension to transformer attention, enabling bi-directional flow: EE2
  • Alignment Fine-Tuning: Two flavors are used:
    • Intra-type alignment: LLM is trained to autoregressively predict textual node descriptions from graph token sequences.
    • Inter-type alignment: Model is tuned to handle mixed meta-type token streams, predicting both textual and type outputs.

These steps drive tight semantic alignment between the token-level representations of graph structure and linguistic content, enabling strong multi-task and zero-shot capabilities (Yang et al., 2024).

6. Experimental Setup, Empirical Results, and Ablations

Extensive evaluation spans prediction and generation across diverse datasets:

  • Predictive: IMDB, ACM (explicit graphs); Arxiv-Papers, ICLR-Peer Reviews (text only).
  • Generative: ACL/EMNLP Related Work Generation (SKG from titles+abstracts); GovReport Summarization (long-document SKG).

Key metrics include Micro-F1, Macro-F1, AUC (predictive); and Perplexity (PPL) or LLM-as-judge scores (generative). Notable findings:

Benchmark Task LLaGA / GraphAgent Improvement
IMDB→ACM Node Cls. +48.5% Micro-F1 vs HiGPT (zero-shot transfer)
ICLR-PR Node Cls. Mi-F1 = 0.667 (outperforms GPT4o-mini, Gemini-1.5)
ACL/EMNLP Related-Work >30% lower PPL vs Llama3-8b, GraphRAG (generative)
Ablation SKG utility +20% predictive gain (with SKG)
Ablation Alignment +15% generative gain (with alignment-tuning)

These results highlight that both semantic graph construction and cross-modal alignment are essential for peak predictive and generative performance (Yang et al., 2024).

7. Architectural Schematic and Generalization

The system’s high-level orchestration:

EE3

This agentic, decoupled paradigm supports broad applicability: new data types (additional modalities), new domains (out-of-distribution generalization), and hybrid tasks (classification + generation) are handled via agent/adapter extensibility (Yang et al., 2024).


References

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Large Language and Graph Assistant (LLaGA).