Demonstration venue · read-only. Every page can be browsed; the buttons that would change it are switched off. Create an account to run TaxoReview on your own data. A simulation from public publication records: the people listed were not invited and did not agree to review.
? Tutorial for this page

Shahar Katz

dblp:348/4607 · DBLP profile ↗
← Back
6ranked-venue papers
3as first author
6since 2021 · last 2026
—ORCID · none

Domains — the database's venue-derived domains; a paper can count in several

Artificial intelligence and machine learning · 6 · 3 first-author · 6 since 2021Graphics, computer vision, multimedia, augmented reality and games · 1 · 1 since 2021

Expertise — from the expertise taxonomy: the topics of the expert's papers under the CCF categories. A weight counts papers with recency: 1 for a paper about the topic, 0.3 when the topic is its context, halved every five years.

Artificial intelligence
4 papers
Trustworthy machine learning · 38% Deep learning architectures and training · 36% Language models and text generation · 18%
Network and information security
1 paper
Security and privacy of machine learning · 100%
Software engineering, system software, and programming languages
1 paper
Program synthesis and code generation · 100%

Topics — the 12 heaviest of 14, each with the papers that count most for it

TopicWeightPapersLastEvidence papers
Machine learning › Trustworthy machine learning
interpretability
1.822026
TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensors · ACL (1) 2026
Backward Lens: Projecting Language Model Gradients into the Vocabulary Space · EMNLP 2024
Natural language and speech › Language models and text generation
alignment
1.012026
AlignTree: Efficient Defense Against LLM Jailbreak Attacks · AAAI 2026
Machine learning › Trustworthy machine learning › interpretability
attention analysis
1.012026
TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensors · ACL (1) 2026
Machine learning › Trustworthy machine learning
robustness
1.012026
AlignTree: Efficient Defense Against LLM Jailbreak Attacks · AAAI 2026
Machine learning › Deep learning architectures and training › transformer
transformer analysis
1.012026
TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensors · ACL (1) 2026
Security and privacy of machine learning
adversarial attack
1.012026
AlignTree: Efficient Defense Against LLM Jailbreak Attacks · AAAI 2026
Security and privacy of machine learning › large language model safety
jailbreak defense
1.012026
AlignTree: Efficient Defense Against LLM Jailbreak Attacks · AAAI 2026
Machine learning › Deep learning architectures and training › sequence modeling › sequence generation
autoregressive generation
0.912025
Segment-Based Attention Masking for GPTs · ACL (1) 2025
Machine learning › Deep learning architectures and training › attention mechanism › selective attention
masked attention
0.912025
Segment-Based Attention Masking for GPTs · ACL (1) 2025
Machine learning › Deep learning architectures and training › attention mechanism
transformer attention
0.912025
Segment-Based Attention Masking for GPTs · ACL (1) 2025
Program synthesis and code generation
code generation with language models
0.912025
Execution Guided Line-by-Line Code Generation · NeurIPS 2025
Machine learning › Learning paradigms › continual learning
gradient projection
0.812024
Backward Lens: Projecting Language Model Gradients into the Vocabulary Space · EMNLP 2024

Methods — techniques the papers use, named apart from their topics

support vector machine · 2.0random forest classifier · 2.0linear operator representation · 1.0high-order tensor decomposition · 1.0large language model · 0.9fine-tuning · 0.9classifier-free guidance · 0.9beam search · 0.9vocabulary space projection · 0.8low-rank decomposition · 0.8
YearPublicationVenuePosition
2026 AlignTree: Efficient Defense Against LLM Jailbreak Attacks
abstract
Large Language Models (LLMs) are vulnerable to adversarial attacks that bypass safety guidelines and generate harmful content. Mitigating these vulnerabilities requires defense mechanisms that are both robust and computationally efficient. However, existing approaches either incur high computational costs or rely on lightweight defenses that can be easily circumvented, rendering them impractical for real-world LLM-based systems. In this work, we introduce the AlignTree defense, which enhances model alignment while maintaining minimal computational overhead. AlignTree monitors LLM activations during generation and detects misaligned behavior using an efficient random forest classifier. This classifier operates on two signals: (i) the refusal direction - a linear representation that activates on misaligned prompts, and (ii) an SVM-based signal that captures non-linear features associated with harmful content. Unlike previous methods, AlignTree does not require additional prompts or auxiliary guard models. Through extensive experiments, we demonstrate the efficiency and robustness of AlignTree across multiple LLMs and benchmarks.
Gil Goren, Shahar Katz, Lior Wolf
AAAI2
2026 TensorLens: End-to-End Transformer Analysis via High-Order Attention Tensors
abstract
Attention matrices are fundamental to transformer research, supporting a broad range of applications including interpretability, visualization, manipulation, and distillation.Yet, most existing analyses focus on individual attention heads or layers, failing to account for the model's global behavior.While prior efforts have extended attention formulations across multiple heads via averaging and matrix multiplications or incorporated components such as normalization and FFNs, a unified and complete representation that encapsulates all transformer blocks is still lacking.We address this gap by introducing TensorLens, a novel formulation that captures the entire transformer as a single, input-dependent linear operator expressed through a high-order attentioninteraction tensor.This tensor jointly encodes attention, FFNs, activations, normalizations, and residual connections, offering a theoretically coherent and expressive linear representation of the model's computation.TensorLens is theoretically grounded and our empirical validation shows that it yields richer representations than previous attention-aggregation methods.Our experiments demonstrate that the attention tensor can serve as a powerful foundation for developing tools aimed at interpretability and model understanding.
Ido Atad, Itamar Zimerman, Shahar Katz, Lior Wolf
ACL (1)3
2025 Segment-Based Attention Masking for GPTs
abstract
Causal masking is a fundamental component in Generative Pre-Trained Transformer (GPT) models, playing a crucial role during training.Although GPTs can process the entire user prompt at once, the causal masking is applied to all input tokens step-by-step, mimicking the generation process.This imposes an unnecessary constraint during the initial "prefill" phase when the model processes the input prompt and generates the internal representations before producing any output tokens.In this work, attention is masked based on the known block structure at the prefill phase, followed by the conventional token-by-token autoregressive process after that.For example, in a typical chat prompt, the system prompt is treated as one block, and the user prompt as the next one.Each of these is treated as a unit for the purpose of masking, such that the first tokens in each block can access the subsequent tokens in a non-causal manner.Then, the model answer is generated in the conventional causal manner.The Segment-by-Segment scheme entails no additional computational overhead.When integrated using a lightweight fine-tuning into already trained models such as Llama and Qwen, MAS quickly increases models' performances.Our code will be available at: https://github.com/shacharKZ/ MAS-Segment-
Shahar Katz, Liran Ringel, Yaniv Romano, Lior Wolf
ACL (1)1
2025 Reversed Attention: On The Gradient Descent Of Attention Layers In GPT
abstract
Shahar Katz, Lior Wolf. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2025.
Shahar Katz, Lior Wolf
NAACL (Long Papers)1
2025 Execution Guided Line-by-Line Code Generation
abstract
We present a novel approach to neural code generation that incorporates real-time execution signals into the language model generation process. While large language models (LLMs) have demonstrated impressive code generation capabilities, they typically do not utilize execution feedback during inference, a critical signal that human programmers regularly leverage. Our method, Execution-Guided Classifier-Free Guidance EG-CFG, dynamically incorporates execution signals as the model generates code, providing line-by-line feedback that guides the generation process toward executable solutions. EG-CFG employs a multi-stage process: first, we conduct beam search to sample candidate program completions for each line; second, we extract execution signals by executing these candidates against test cases; and finally, we incorporate these signals into the prompt during generation. By maintaining consistent signals across tokens within the same line and refreshing signals at line boundaries, our approach provides coherent guidance while preserving syntactic structure. Moreover, the method naturally supports native parallelism at the task level in which multiple agents operate in parallel, exploring diverse reasoning paths and collectively generating a broad set of candidate solutions. Our experiments across diverse coding tasks demonstrate that EG-CFG significantly improves code generation performance compared to standard approaches, achieving state-of-the-art results across various levels of complexity, from foundational problems to challenging competitive programming and data science tasks.
Boaz Lavon, Shahar Katz, Lior Wolf
NeurIPS2
2024 Backward Lens: Projecting Language Model Gradients into the Vocabulary Space
abstract
Understanding how Transformer-based Language Models (LMs) learn and recall information is a key goal of the deep learning community.Recent interpretability methods project weights and hidden states obtained from the forward pass to the models' vocabularies, helping to uncover how information flows within LMs.In this work, we extend this methodology to LMs' backward pass and gradients.We first prove that a gradient matrix can be cast as a low-rank linear combination of its forward and backward passes' inputs.We then develop methods to project these gradients into vocabulary items and explore the mechanics of how new information is stored in the LMs' neurons.Our code is available
Shahar Katz, Yonatan Belinkov, Mor Geva, Lior Wolf
EMNLP1