paper-with-me

Papers

LM-Debugger: An Interactive Tool for Inspection and Intervention in Transformer-Based Language Models

2022-04-26 · Mor Geva, Avi Caciularu, Guy Dar, Paul Roit, Shoval Sadde, Micah Shlain, Bar Tamir, Yoav Goldberg

The opaque nature and unexplained behavior of transformer-based language models (LMs) have spurred a wide interest in interpreting their predictions. However, current interpretation methods mostly focus on probing models from outside, executing behavioral tests, and analyzing salience input features, while the internal prediction construction process is largely not understood. In this work, we introduce LM-Debugger, an interactive debugger tool for transformer-based LMs, which provides a fine-grained interpretation of the model's internal prediction process, as well as a powerful framework for intervening in LM behavior. For its backbone, LM-Debugger relies on a recent method that interprets the inner token representations and their updates by the feed-forward layers in the vocabulary space. We demonstrate the utility of LM-Debugger for single-prediction debugging, by inspecting the internal disambiguation process done by GPT2. Moreover, we show how easily LM-Debugger allows to shift model behavior in a direction of the user's choice, by identifying a few vectors in the network and inducing effective interventions to the prediction process. We release LM-Debugger as an open-source tool and a demo over GPT2 models.

📄 PDF Abstract BibTeX arXiv:2204.12130

Code (1)

mega002/lm-debugger 공식 구현 pytorch

Tasks

Prediction

Similar Papers 제목 키워드 기반

Agentic Vulnerability Reasoning on Windows COM Binaries

2026-05-06 · Hwiwon Lee, Jongseong Kim, Lingming Zhang arxiv

Windows Component Object Model (COM) services run with elevated privileges and are widely accessible to authenticated users, making race conditions in these binaries a critical surface for local privilege escalation. We …

KnowledgeDebugger -- an Exploration Tool for Knowledge Localization and Editing in Transformers

2026-07-01 · Eric Benz, Lennart Stöpler, Nikolai Bolik, Artur Andrzejak arxiv

Recent research has increasingly focused on understanding how Transformers store and process knowledge, as well as how this knowledge can be edited. Research work in this area is often conducted in two phases: first, phe…

knowledge editing

Towards a Neural Debugger for Python

2026-03-10 · Maximilian Beck, Jonas Gehring, Jannik Kossen, Gabriel Synnaeve arxiv

Training large language models (LLMs) on Python execution traces grounds them in code execution and enables the line-by-line execution prediction of whole Python programs, effectively turning them into neural interpreter…

Code Generation

Debug2Fix: Can Interactive Debugging Help Coding Agents Fix More Bugs?

2026-02-20 · Spandan Garg, Yufan Huang arxiv

While significant progress has been made in automating various aspects of software development through coding agents, there is still significant room for improvement in their bug fixing capabilities. Debugging and invest…

Interactive Debugging and Steering of Multi-Agent AI Systems

2025-03-03 · Will Epperson, Gagan Bansal, Victor Dibia, Adam Fourney 외

Fully autonomous teams of LLM-powered AI agents are emerging that collaborate to perform complex tasks for users. What challenges do developers face when trying to build and debug these AI agent teams? In formative inter…

AI Agent