paper-with-me

Papers

LLM Embedding-based Attribution (LEA): Quantifying Source Contributions to Generative Model's Response for Vulnerability Analysis

2025-06-12 · Reza Fayyazi, Michael Zuzak, Shanchieh Jay Yang

Security vulnerabilities are rapidly increasing in frequency and complexity, creating a shifting threat landscape that challenges cybersecurity defenses. Large Language Models (LLMs) have been widely adopted for cybersecurity threat analysis. When querying LLMs, dealing with new, unseen vulnerabilities is particularly challenging as it lies outside LLMs' pre-trained distribution. Retrieval-Augmented Generation (RAG) pipelines mitigate the problem by injecting up-to-date authoritative sources into the model context, thus reducing hallucinations and increasing the accuracy in responses. Meanwhile, the deployment of LLMs in security-sensitive environments introduces challenges around trust and safety. This raises a critical open question: How to quantify or attribute the generated response to the retrieved context versus the model's pre-trained knowledge? This work proposes LLM Embedding-based Attribution (LEA) -- a novel, explainable metric to paint a clear picture on the 'percentage of influence' the pre-trained knowledge vs. retrieved content has for each generated response. We apply LEA to assess responses to 100 critical CVEs from the past decade, verifying its effectiveness to quantify the insightfulness for vulnerability analysis. Our development of LEA reveals a progression of independency in hidden states of LLMs: heavy reliance on context in early layers, which enables the derivation of LEA; increased independency in later layers, which sheds light on why scale is essential for LLM's effectiveness. This work provides security analysts a means to audit LLM-assisted workflows, laying the groundwork for transparent, high-assurance deployments of RAG-enhanced LLMs in cybersecurity operations.

📄 PDF Abstract BibTeX arXiv:2506.12100

Code (1)

rezzfayyazi/lea 공식 구현 pytorch

Tasks

AttributeRAGRetrieval-augmented Generation

Similar Papers 제목 키워드 기반

On Measuring Intrinsic Causal Attributions in Deep Neural Networks

2025-05-14 · Saptarshi Saha, Dhruv Vansraj Rathore, Soumadeep Saha, Utpal Garain 외

Quantifying the causal influence of input features within neural networks has become a topic of increasing interest. Existing approaches typically assess direct, indirect, and total causal effects. This work treats NNs a…

MaxShapley: Towards Incentive-compatible Generative Search with Fair Context Attribution

2025-12-05 · Sara Patel, Mingxun Zhou, Giulia Fanti arxiv

Generative search engines based on large language models (LLMs) are replacing traditional search, fundamentally changing how information providers are compensated. To sustain this ecosystem, we need fair mechanisms to at…

Which Modality Decides? Counterfactual Modality Attribution for Multimodal LLMs

2026-07-29 · Vahidin Hasic, Chao Wang, Luis C. Garcia-Peraza-Herrera, David Watson 외 arxiv

Multimodal large language models (MLLMs) increasingly support high-stakes decision making by combining complementary information from images and text. While existing explainability methods identify influential image regi…

Decision Making

Towards Fine-Grained Interpretability: Counterfactual Explanations for Misclassification with Saliency Partition

2025-11-11 · Lintong Zhang, Kang Yin, Seong-Whan Lee arxiv

Attribution-based explanation techniques capture key patterns to enhance visual interpretability; however, these patterns often lack the granularity needed for insight in fine-grained tasks, particularly in cases of mode…

Towards Fine-Grained Interpretability: Counterfactual Explanations for Misclassification with Saliency Partition

2025-01-01 · CVPR 2025 1 · Lintong Zhang, Kang Yin, Seong-Whan Lee

Attribution-based explanation techniques capture key patterns to enhance visual interpretability. However, these patterns often lack the granularity needed for insight in fine-grained tasks, particularly in cases of …

counterfactualCounterfactual Explanation