3D rendering

  • T-Scan: Visualizing Transformer Internals


    Transformer fMRI - Code and MethodologyT-Scan is a technique designed to inspect and visualize the internal activations of transformer models, offering a reproducible measurement and logging method that can be extended or rendered using various tools. The project includes scripts for downloading a model, running a baseline scan, and a Gradio-based interface for causal intervention, allowing users to perturb up to three dimensions and compare baseline versus perturbed behavior. Logs are consistently formatted to facilitate easy comparison and visualization, though the project does not provide a polished visualization tool, leaving rendering to the user's preference. The method is model-agnostic but currently targets the Qwen 2.5 3B model for accessibility, aiming to assist those in interpretability research. This matters because it provides a flexible and extendable framework for understanding transformer internals, which is crucial for advancing AI interpretability and transparency.

    Read Full Article: T-Scan: Visualizing Transformer Internals