GraphiT: Encoding Graph Structure in Transformers
We show that viewing graphs as sets of node features and incorporating structural and positional information into a transformer architecture is able to outperform representations learned with classical graph neural networks (GNNs). Our model, GraphiT, encodes such information by (i) leveraging relative positional encoding strategies in self-attention scores based on positive definite kernels on graphs, and (ii) enumerating and encoding local sub-structures such as paths of short length. We thoroughly evaluate these two ideas on many classification and regression tasks, demonstrating the effectiveness of each of them independently, as well as their combination. In addition to performing well on standard benchmarks, our model also admits natural visualization mechanisms for interpreting graph motifs explaining the predictions, making it a potentially strong candidate for scientific applications where interpretation is important. Code available at https://github.com/inria-thoth/GraphiT.
Code (1)
Similar Papers 제목 키워드 기반
GraphiT: Efficient Node Classification on Text-Attributed Graphs with Prompt Optimized LLMs
The application of large language models (LLMs) to graph data has attracted a lot of attention recently. LLMs allow us to use deep contextual embeddings from pretrained models in text-attributed graphs, where shallow emb…
Node ClassificationGraphITE: Estimating Individual Effects of Graph-structured Treatments
Outcome estimation of treatments for target individuals is an important foundation for decision making based on causal relations. Most existing outcome estimation methods deal with binary or multiple-choice treatments; h…
counterfactualDecision MakingMultiple-choiceSecuring the supply of graphite for batteries
The increasing demand for graphite in batteries has led to concerns around supply chain security. Currently, over 92% of global anode material is produced in China, posing a geopolitical risk for other countries reliant …
Colloidal graphite/graphene nanostructures using collagen showing enhanced thermal conductivity
Time kinetics of interaction of natural graphite (GR) to colloidal graphene (G) collagen (C) nanocomposites was studied at ambient conditions, and observed that just one day at ambient conditions is enough to form colloi…
FormGRAPHITE: Graph-Based Interpretable Tissue Examination for Enhanced Explainability in Breast Cancer Histopathology
Explainable AI (XAI) in medical histopathology is essential for enhancing the interpretability and clinical trustworthiness of deep learning models in cancer diagnosis. However, the black-box nature of these models often…
DiagnosticGraph Attentionwhole slide images