Exposing the Unsaid: Visualizing Hidden LLM Bias through Stochastic Path Aggregation
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) exhibit representational and syntactic biases that are difficult to evaluate due to the stochastic nature of text generation. Standard auditing methods rely on a single output inspection or static automated metrics. These approaches obscure the underlying probability distributions and fail to capture biases hidden in lower-probability generation branches. This paper introduces TreeTracer, a visual analytics tool designed to evaluate LLM bias through aggregated comparison. Using a systematic perturbation analysis pipeline, the tool replaces ontology-defined terms in each input prompt, aggregates hundreds of stochastic generations into a syntax-aligned hierarchical structure, and then performs classification-aware node merging with an auxiliary language model. The resulting structure is visualized through a custom Sankey diagram. By juxtaposing two ontology-driven trees, the workspace enables direct comparison between semantic contexts and supports systematic bias detection. Because any visualization reflects only a subset of the model's learned behavior, the system further applies contrastive inference to compute and directly display counterfactual token probabilities across contexts, reducing the risk of misinterpreting the presence of bias. We validate the workspace through case studies comparing an unaligned baseline model GPT-2 XL against the constitutionally aligned Apertus models. The visual aggregation successfully exposes hidden representational harms, such as counterfactual pronoun suppression and conversational marginalization of individuals. A preliminary user study confirms that the aggregated comparative interface reduces cognitive load and effectively supports analysts in detecting systemic biases.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 28 of its 41 references that are in the map. First posted on arXiv 24 Apr 2026.
Builds on
28 of 41 references.
References · 28
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 1,006
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 924
- 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 710
- 2023Bias and Fairness in Large Language Models: A Surveycited by 639
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
- 2021Towards Understanding and Mitigating Social Biases in Language Modelscited by 296
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 263
- 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Promptscited by 226
- 2021Societal Biases in Language Generation: Progress and Challengescited by 202
16 more
- 2021Causal Inference in Natural Language Processing: Estimation, Prediction, Interpretation and Beyondcited by 178
- 2022"I'm sorry to hear that": Finding New Biases in Language Models with a Holistic Descriptor Datasetcited by 162
- 2020The Language Interpretability Tool: Extensible, Interactive Visualizations and Analysis for NLP Modelscited by 125
- 2020Attention Flows: Analyzing and Comparing Attention Mechanisms in Language Modelscited by 49
- 2019Embedding Comparator: Visualizing Differences in Global Structure and Local Neighborhoods via Small Multiplescited by 38
- 2024LLM Comparator: Visual Analytics for Side-by-Side Evaluation of Large Language Modelscited by 29
- 2025Benchmarking Adversarial Robustness to Bias Elicitation in Large Language Models: Scalable Automated Assessment with LLM-as-a-Judgecited by 23
- 2022Informativeness and Invariance: Two Perspectives on Spurious Correlations in Natural Languagecited by 21
- 2022Using Natural Sentences for Understanding Biases in Language Modelscited by 19
- 2021LMdiff: A Visual Diff Tool to Compare Language Modelscited by 17
- 2022Visual Comparison of Language Model Adaptationcited by 14
- 2024Understanding Large Language Model Behaviors through Interactive Counterfactual Generation and Analysiscited by 8
- 2022Mind Your Bias: A Critical Review of Bias Detection Methods for Contextual Language Modelscited by 6
- 2023Revealing the Unwritten: Visual Investigation of Beam Search Trees to Address Language Model Prompting Challengescited by 6
- 2025Learning the Wrong Lessons: Syntactic-Domain Spurious Correlations in Language Modelscited by 6
- 2024generAItor: Tree-in-the-Loop Text Generation for Language Model Explainability and Adaptationcited by 5
Built on by
Not cited yet.