TL;DR
SKETCH (Semantic Knowledge and Structure Enrichment) is a novel framework that reimagines learning from text-attributed graphs (TAGs) by decoupling node aggregation from graph convolutions. By retrieving semantically and structurally relevant node texts and feeding them into a long-context language model, SKETCH achieves state-of-the-art performance with significantly lower computational overhead than traditional Graph Neural Networks (GNNs).
The Challenge: The Computational Wall in TAG Learning
Text-attributed graphs—where nodes contain text (like academic abstracts) and edges represent relationships (like citations)—are ubiquitous. Traditionally, researchers have attempted to combine Language Models (LMs) for text and GNNs for structure. However, this integration faces a "computational wall." Direct end-to-end training is prohibitively expensive, and "cascaded" approaches (using fixed LM embeddings for GNNs) ignore the deep interaction between textual content and graph topology. Furthermore, GNNs can be memory-intensive and slow on large, dense graphs.
The SKETCH Framework: Decoupled Aggregation
SKETCH addresses these issues by moving the "aggregation" step—gathering information from neighbors—to the beginning of the pipeline, before the LM processes the data.
The framework consists of two primary retrieval streams:
- Semantic Aggregation: This module uses sentence-transformers and the FAISS engine to perform a global search across the graph, identifying nodes that are semantically similar to the "anchor" node, even if they aren't directly connected.
- Structural Aggregation: This module identifies nodes that share many common neighbors with the anchor node. To ensure efficiency on large graphs, the authors use MinHash, a locality-sensitive hashing technique that estimates Jaccard similarity between neighborhoods without exhaustive computation.
Once the most relevant nodes are identified, their text is concatenated with the anchor node's text and fed into a long-context LM (e.g., Llama-3 or Nomic) for final prediction.
Key Insights and Ideas
- Decoupling is Efficient: By removing iterative graph convolutions during training, SKETCH avoids the memory bottlenecks typical of GNNs.
- Granular Understanding: Feeding raw text from multiple nodes into an LM allows for "token-level" learning across the graph structure, providing more detail than the vector aggregation used in GNNs.
- The Power of Hashing: The use of MinHash is a critical innovation for scalability. It allows the system to capture complex multi-hop relationships in a fraction of the time required by traditional matrix-based methods.
Datasets and Results
The authors evaluated SKETCH on three standard benchmarks: ACM (citation network), Wikipedia (hyperlink network), and Amazon (product graph).
Key results include:
- Superior Accuracy: SKETCH outperformed all state-of-the-art baselines, including tailored TAG frameworks like GLEM and InstructGLM, with an average improvement of 1.2%.
- Performance on ACM: Using Llama-3-8b, SKETCH reached 82.3% test accuracy, surpassing GLEM (79.8%).
- Lightweight Options: Even with the smaller Nomic model (137M parameters), the framework achieved a highly competitive 81.1% on ACM.
Limitations and Future Work
SKETCH is limited by the LM's context window (e.g., 8,000 tokens), which may require aggressive pruning in very dense neighborhoods. Additionally, while training is efficient, inference on large models like Llama-3-8b remains time-consuming. Future work will explore even longer-sequence models (like T5) and quantization techniques to further reduce hardware requirements.
Summary updated