← Lab /AI/ML

TAD identifies which incident log segments most shape LLM output geometry

Topological Attribution Distance can pinpoint the most influential log segments affecting LLM responses

AI/ML arXiv 17 Aug 2026 Method Prototype evidence

Published as “Topological Attribution Distance (TAD): Revealing Segment-Level RAG Influence on LLM Output Geometry for Incident Log Analysis”

Why it matters

Enables security analysts to automatically pinpoint which logs actually shaped an LLM’s investigation report, reducing manual triage and increasing trust in AI-assisted incident response.

Summary

TAD achieves up to 98% accuracy (average >97%) and a 39%+ precision advantage over the best prior baseline when attributing incident logs to LLM outputs, demonstrated on a real-world GOAD cyber-attack log dataset across four LLMs and three difficulty scenarios. The evidence comes from Table III showing consistent accuracy and F1 gains, but precision drops to 57.7% in the hardest (Indirect) case.

What they found 2

  1. TAD outperforms baselines with >97% average accuracy and >39% precision gap.

    “Our results demonstrate that TAD significantly outperforms existing baselines with over 97% accuracy on average in tracing the top-attributed logs, and achieving over 39% gap in Precision compared to the best-performing baseline in all three scenarios.”

  2. TAD achieves the highest accuracy and F1 in almost all settings.

    “TAD obtains the best accuracy and F1-score in almost all three settings, although the margin differs.”

Caveats 2

  • Precision in the hardest Indirect scenario is only 57.70%, far lower than the 94.23% in the Direct case.
  • TAD's precision varies across difficulty levels, indicating reduced effectiveness when the response shares few tokens with logs.

What’s new here 4

  • Provides segment-level attribution by comparing topological signatures of response embeddings with and without each retrieved segment.
  • Uses persistence diagrams and Wasserstein distance to quantify geometric changes across transformer layers.
  • Works on highly structured, token-overlapping logs where token-level or similarity methods fail.
  • Produces deterministic, model-internal scores rather than relying on LLM-based judges.