paper-with-me

Papers

Explaining Fine Tuned LLMs via Counterfactuals A Knowledge Graph Driven Framework

2025-09-25 · Yucheng Wang, Ziyang Chen, Md Faisal Kabir arxiv

The widespread adoption of Low-Rank Adaptation (LoRA) has enabled large language models (LLMs) to acquire domain-specific knowledge with remarkable efficiency. However, understanding how such a fine-tuning mechanism alters a model's structural reasoning and semantic behavior remains an open challenge. This work introduces a novel framework that explains fine-tuned LLMs via counterfactuals grounded in knowledge graphs. Specifically, we construct BioToolKG, a domain-specific heterogeneous knowledge graph in bioinformatics tools and design a counterfactual-based fine-tuned LLMs explainer (CFFTLLMExplainer) that learns soft masks over graph nodes and edges to generate minimal structural perturbations that induce maximum semantic divergence. Our method jointly optimizes structural sparsity and semantic divergence while enforcing interpretability preserving constraints such as entropy regularization and edge smoothness. We apply this framework to a fine-tuned LLaMA-based LLM and reveal that counterfactual masking exposes the model's structural dependencies and aligns with LoRA-induced parameter shifts. This work provides new insights into the internal mechanisms of fine-tuned LLMs and highlights counterfactual graphs as a potential tool for interpretable AI.

📄 PDF Abstract BibTeX arXiv:2509.21241

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge Graphs

Similar Papers 제목 키워드 기반

Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluation

2024-05-08 · Amrita Bhattacharjee, Raha Moraffah, Joshua Garland, Huan Liu

With the development and proliferation of large, complex, black-box models for solving many natural language processing (NLP) tasks, there is also an increasing necessity of methods to stress-test these models and provid…

counterfactualInstruction Following

Explaining Text Classifiers with Counterfactual Representations

2024-02-01 · Pirmin Lemberger, Antoine Saillenfest

One well motivated explanation method for classifiers leverages counterfactuals which are hypothetical events identical to real observations in all aspects except for one feature. Constructing such counterfactual poses s…

AttributeCausal Inferencecounterfactual

Using LLMs for Explaining Sets of Counterfactual Examples to Final Users

2024-08-27 · Arturo Fredes, Jordi Vitria

Causality is vital for understanding true cause-and-effect relationships between variables within predictive models, rather than relying on mere correlations, making it highly relevant in the field of Explainable AI. In …

Causal Inferencecounterfactual

Large Language Models as Nondeterministic Causal Models

2025-09-26 · Sander Beckers arxiv

Recent work by Chatzi et al. and Ravfogel et al. has developed, for the first time, a method for generating counterfactuals of probabilistic Large Language Models. Such counterfactuals tell us what would - or might - hav…

Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentation

2026-01-21 · Shovito Barua Soumma, Asiful Arefeen, Stephanie M. Carpenter, Melanie Hingle 외 arxiv

Counterfactual explanations (CFEs) provide human-centric interpretability by identifying the minimal, actionable changes required to alter a machine learning model's prediction. Therefore, CFs can be used as (i) interven…

Data Augmentation