paper-with-me

홈 › Papers

An introduction to graphical tensor notation for mechanistic interpretability

2024-02-02 · Jordan K. Taylor

Graphical tensor notation is a simple way of denoting linear operations on tensors, originating from physics. Modern deep learning consists almost entirely of operations on or between tensors, so easily understanding tensor operations is quite important for understanding these systems. This is especially true when attempting to reverse-engineer the algorithms learned by a neural network in order to understand its behavior: a field known as mechanistic interpretability. It's often easy to get confused about which operations are happening between tensors and lose sight of the overall structure, but graphical tensor notation makes it easier to parse things at a glance and see interesting equivalences. The first half of this document introduces the notation and applies it to some decompositions (SVD, CP, Tucker, and tensor network decompositions), while the second half applies it to some existing some foundational approaches for mechanistically understanding language models, loosely following `A Mathematical Framework for Transformer Circuits'', then constructing an example `induction head'' circuit in graphical tensor notation.

📄 PDF Abstract BibTeX arXiv:2402.01790

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Multi-Head Attention 설명 없음
Adam 설명 없음
Residual Connection 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

Very Basics of Tensors with Graphical Notations: Unfolding, Calculations, and Decompositions

2024-11-25 · Tatsuya Yokota

Tensor network diagram (graphical notation) is a useful tool that graphically represents multiplications between multiple tensors using nodes and edges. Using the graphical notation, complex multiplications between tenso…

When Are Two Networks the Same? Tensor Similarity for Mechanistic Interpretability

2026-05-14 · ML Nissen Gonzalez, Melwina Albuquerque, Laurence Wroe, Jacob Meyer Cohen 외 arxiv

Mechanistic interpretability aims to break models into meaningful parts; verifying that two such parts implement the same computation is a prerequisite. Existing similarity measures evaluate either empirical behaviour, l…

Geospatial Mechanistic Interpretability of Large Language Models

2025-05-06 · Stef De Sabbata, Stefano Mizzaro, Kevin Roitero

Large Language Models (LLMs) have demonstrated unprecedented capabilities across various natural language processing tasks. Their ability to process and generate viable text and code has made them ubiquitous in many fiel…

Spatial Reasoning

Graphical Design of Interpretable Architectures

2026-08-19 · Pietro Barbiero arxiv

Designing, implementing, and comparing interpretable architectures requires a formal language to represent them. The most common representations fall short in one of two ways. Symbolic equations give no global view of an…

SG-PALM: a Fast Physically Interpretable Tensor Graphical Model

2021-05-26 · Yu Wang, Alfred Hero

We propose a new graphical model inference procedure, called SG-PALM, for learning conditional dependency structure of high-dimensional tensor-variate data. Unlike most other tensor graphical models the proposed model is…

Spatio-Temporal Forecasting