CLJun 18, 2024

Interpreting Bias in Large Language Models: A Feature-Based Approach

arXiv:2406.12347v14 citations
Originality Incremental advance
AI Analysis

This work addresses bias in LLMs for NLP practitioners, offering a novel method for analysis and mitigation, though it is incremental in building on existing interpretability techniques.

The paper tackled the problem of social bias propagation in large language models by introducing a feature-based analytical approach, revealing the complex nature of bias and emphasizing the need for tailored debiasing strategies, with empirical validation on models like LLaMA-2-7B and Mistral-7B-v0.3.

Large Language Models (LLMs) such as Mistral and LLaMA have showcased remarkable performance across various natural language processing (NLP) tasks. Despite their success, these models inherit social biases from the diverse datasets on which they are trained. This paper investigates the propagation of biases within LLMs through a novel feature-based analytical approach. Drawing inspiration from causal mediation analysis, we hypothesize the evolution of bias-related features and validate them using interpretability techniques like activation and attribution patching. Our contributions are threefold: (1) We introduce and empirically validate a feature-based method for bias analysis in LLMs, applied to LLaMA-2-7B, LLaMA-3-8B, and Mistral-7B-v0.3 with templates from a professions dataset. (2) We extend our method to another form of gender bias, demonstrating its generalizability. (3) We differentiate the roles of MLPs and attention heads in bias propagation and implement targeted debiasing using a counterfactual dataset. Our findings reveal the complex nature of bias in LLMs and emphasize the necessity for tailored debiasing strategies, offering a deeper understanding of bias mechanisms and pathways for effective mitigation.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes