Skip to main navigation Skip to search Skip to main content

Semantic Pathway: An Interactive Visualization of Hidden States and Token Influence in LLMs

  • Stony Brook University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Transformer-based language models have demonstrated remarkable capabilities across various tasks, yet their internal mechanisms-such as layered representations, distributed attention, and evolving token semantics-remain challenging to interpret. We present Semantic Pathway, an interactive visual analytics tool designed to reveal how token representations evolve across layers in autoregressive Transformer models such as GPT-2. The system integrates layerwise semantic trajectories, attention overlays, and output probability views into a unified interface, enabling users to trace how meaning accumulates and decisions emerge during generation. To reduce visual and interaction complexity, Semantic Pathway incorporates attention-based influence filtering, optional nearest-token projections, and a Compare Mode for analyzing divergence across alternate outputs. The design prioritizes interpretability and usability, supporting both fine-grained inspection and high-level exploration of sequence modeling behavior. This work contributes to ongoing efforts to make language models more interpretable, educationally accessible, and open to diagnostic insight.

Original languageEnglish
Title of host publicationProceedings - 2025 IEEE Visualization Conference - Short Papers, VIS 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages56-60
Number of pages5
ISBN (Electronic)9798331566135
DOIs
StatePublished - 2025
Event2025 IEEE Visualization Conference, VIS 2025 - Vienna, Austria
Duration: Nov 2 2025Nov 7 2025

Publication series

NameProceedings - 2025 IEEE Visualization Conference - Short Papers, VIS 2025

Conference

Conference2025 IEEE Visualization Conference, VIS 2025
Country/TerritoryAustria
CityVienna
Period11/2/2511/7/25

Keywords

  • Attention Weights
  • Hidden States
  • Interactive Visualization
  • Interpretability
  • Large Language Models
  • Semantic Pathway Visualization
  • Token Influence
  • Transformer Models

Fingerprint

Dive into the research topics of 'Semantic Pathway: An Interactive Visualization of Hidden States and Token Influence in LLMs'. Together they form a unique fingerprint.

Cite this