Debugging Tabular Log as Dynamic Graphs

Chumeng Liang, Zhanyang Jin, Zahaib Akhtar, Mona Pereira, Haofei Yu, Jiaxuan You · DOI

Abstract

Tabular logs are essential for monitoring complex systems, yet traditional debugging methods often struggle with scalability or flexibility. We present GraphLogDebugger, a framework that reimagines tabular logs as evolving dynamic graphs. By representing log entries as nodes and interactions as edges, we employ a lightweight Graph Neural Network (GNN) for anomaly detection via link prediction. Our approach significantly outperforms Large Language Model (LLM) baselines in both accuracy and computational efficiency, achieving near-perfect F1 scores on complex system logs while operating up to 3,000 times faster than state-of-the-art LLM reasoners.

Introduction

In modern computing environments, tabular logs serve as the primary record for system behavior, ranging from server operations to financial transactions. Detecting anomalies within these logs is critical for system reliability. Current approaches typically rely on domain-specific parsers, which are rigid and difficult to maintain, or LLM-based reasoners, which are computationally expensive and prone to "hallucinations" where anomalous logs are incorrectly classified as normal due to superficial similarities.

A key limitation of existing methods is the failure to capture the underlying structural relationships between entities. We propose that logs are best understood as a dynamic graph, where the evolution of connections between objects and events provides a "digital twin" of the system's state over time.

Methodology: The GraphLogDebugger Framework

GraphLogDebugger transforms the anomaly detection task into a graph-based link prediction problem. The process consists of three main stages:

1. Heterogeneous Graph Construction

Log entries are decomposed into Objects (entities like User IDs or Companies) and Events (actions like "Access Denied" or "Split Stocks"). These are extracted using a two-branch approach: event text is processed via a small, pre-trained text encoder (all-MiniLM-L6-v2), while objects are assigned learnable embeddings.

2. Dynamic Modeling

As new logs arrive, edges are created between the event node and its associated object nodes. Identical objects are merged across time steps, building a web of historical interactions that captures the system's evolution.

The GraphLogDebugger framework: from two-branch node extraction to dynamic graph construction and GNN-based link prediction.

Instead of heavy LLM reasoning, we utilize a 3-layer Graph Attention Network (GAT). The model evaluates the likelihood of a new connection given the historical graph state. If the probability of a link is low, it is flagged as an anomaly. This structural approach is more robust than text-only models, which can be fooled by consistent formatting in anomalous logs.

In contrast, standard LLM approaches treat logs as isolated or sequentially retrieved text blocks, often missing the deeper relational context required for accurate debugging.

The baseline LLM processing pipeline, which relies on structured prompting and text-based reasoning, often failing to capture complex relational dependencies.

Experimental Evaluation

We evaluated GraphLogDebugger across four diverse datasets: Arxiv (scientific publications), HDFS (Hadoop system logs), Analyst (financial records), and Landslide (geological events).

Key Results

  • Superior Accuracy: GraphLogDebugger consistently achieved the highest F1 scores. Notably, on the HDFS dataset—a complex system log—LLM-based Retrieval-Augmented Generation (RAG) methods failed completely (F1 = 0), while our framework achieved a near-perfect F1 of 0.993.
  • Massive Speedup: The framework is built for high-throughput environments, processing 500 to 1,000 iterations per second. This is a significant improvement over LLM-RAG, which struggled to process even 0.3 iterations per second.
  • Connectivity Advantage: Performance actually improves as node connectivity increases. Conversely, RAG performance often drops with high connectivity because it struggles to retrieve and process a sufficiently diverse set of historical context from its database.

Conclusion

GraphLogDebugger demonstrates that structural connectivity is often more informative than raw text semantics for log debugging. By leveraging lightweight GNNs, we provide a scalable, high-performance alternative to LLMs for real-world anomaly detection. Future work will explore online bug correction and the integration of non-textual features, such as raw numerical sensor data, into the graph nodes.

Summary updated

BibTeX
@misc{liang2025debugging,
  author = {Chumeng Liang and Zhanyang Jin and Zahaib Akhtar and Mona Pereira and Haofei Yu and Jiaxuan You},
  title = {{Debugging Tabular Log as Dynamic Graphs}},
  year = {2025},
  eprint = {2512.22903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.22903},
}
Figure