Shahar Katz

Shahar Katz

Tel Aviv University
2 previous affiliations
10Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Shahar Katz focuses on the interpretability of large language models, the internal mechanics of transformer architectures, and methods for improving model generation and generalization. His trajectory spans from visualizing information flow and attention mechanisms to analyzing the backward pass and gradient dynamics of generative models. Most recently, his work addresses execution-guided code generation and targeted neuron pruning to enhance robust reasoning.

Research Trajectory

In 2023, Katz investigated the internal mechanics of language models by projecting hidden states and memory values into vocabulary space to make them more human-interpretable. He introduced VISIT: Visualizing and Interpreting the Semantic Information Flow of Transformers, a tool that represents the forward pass of generative pre-trained transformers as an interactive flow graph. By analyzing the tokens represented through this projection, the work identified distinct patterns in the information flow inside the attention mechanism. This contribution advanced the research direction of Graph Theoretic Analysis of Transformer Attention and the broader area of Hierarchical Feature Abstraction Across Transformer Layers.

Expanding his focus to architectural efficiency in 2024, he developed Segment-Based Attention Masking for GPTs. By modifying the causal masking constraint during the initial prefill phase, this approach allows models to process known block structures more effectively before transitioning to standard autoregressive generation. This methodology contributed to work in the area of Bidirectional Attention for Decoder Only Representation and the research direction of Hybrid Masking for Faster Parallel Decoding.

Returning to interpretability later that year, Katz extended vocabulary projection techniques to the backward pass of language models. In Backward Lens: Projecting Language Model Gradients into the Vocabulary Space, he demonstrated that gradient matrices can be cast as low-rank linear combinations of their forward and backward inputs, enabling the projection of gradients into vocabulary items to understand how new information is stored in neurons. He further explored these dynamics in Reversed Attention: On The Gradient Descent Of Attention Layers In GPT, detailing how the backward pass implicitly calculates a "reversed attention" matrix that elucidates model behavior and editing dynamics.

In 2025, his research broadened to include generation steering and model generalization. With collaborators, he developed Execution Guided Line-by-Line Code Generation, which introduces a classifier-free guidance method that executes potential code completions at line boundaries and uses the resulting traces to steer token-level generation. Additionally, he contributed to Detecting and Pruning Prominent but Detrimental Neurons in Large Language Models, proposing a technique that uses integrated gradients to identify and remove neurons reliant on dataset-specific shortcuts, thereby improving robust reasoning capabilities.

Current Directions

Recent work investigates methods for actively steering model generation and refining internal representations for better generalization. The most recent papers in the evidence address execution-guided decoding strategies—specifically using stepwise program traces to guide code generation—and targeted activation pruning. By identifying and removing detrimental neurons that rely on superficial shortcuts rather than robust logic, this ongoing research aims to enhance the reasoning capabilities of large language models without requiring extensive retraining.

Profile updated

See something wrong? Report a mistake