paper-with-me

홈 › Papers

Tracr-Injection: Distilling Algorithms into Pre-trained Language Models

2025-05-15 · Tomás Vergara-Browne, Álvaro Soto

Motivated by the surge of large language models, there has been a push to formally characterize the symbolic abilities intrinsic to the transformer architecture. A programming language, called RASP, has been proposed, which can be directly compiled into transformer weights to implement these algorithms. However, the tasks that can be implemented in RASP are often uncommon to learn from natural unsupervised data, showing a mismatch between theoretical capabilities of the transformer architecture, and the practical learnability of these capabilities from unsupervised data. We propose tracr-injection, a method that allows us to distill algorithms written in RASP directly into a pre-trained language model. We showcase our method by injecting 3 different algorithms into a language model. We show how our method creates an interpretable subspace within the model's residual stream, which can be decoded into the variables present in the code of the RASP algorithm. Additionally, we found that the proposed method can improve out-of-distribution performance compared to our baseline, indicating that indeed a more symbolic mechanism is taking place in the inner workings of the model. We release the code used to run our experiments.

📄 PDF Abstract BibTeX arXiv:2505.10719

Code (1)

tvergara/tracr-injection 공식 구현 jax

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Tracr: Compiled Transformers as a Laboratory for Interpretability

2023-01-12 · NeurIPS 2023 11 · David Lindner, János Kramár, Sebastian Farquhar, Matthew Rahtz 외

We show how to "compile" human-readable programs into standard decoder-only transformer models. Our compiler, Tracr, generates models with known structure. This structure can be used to design experiments. For example, w…

Decoder

A Framework for Feature Discovery in Intracranial Pressure Monitoring Data Using Neural Network Attention

2026-01-12 · Jonathan D. Socha, Seyed F. Maroufi, Dipankar Biswas, Richard Um 외 arxiv

We present a novel framework for analyzing intracranial pressure monitoring data by applying interpretability principles. Intracranial pressure monitoring data was collected from 60 patients at Johns Hopkins. The data wa…

Machine learning algorithms to predict the risk of rupture of intracranial aneurysms: a systematic review

2024-12-06 · Karan Daga, Siddharth Agarwal, Zaeem Moti, Matthew BK Lee 외

Purpose: Subarachnoid haemorrhage is a potentially fatal consequence of intracranial aneurysm rupture, however, it is difficult to predict if aneurysms will rupture. Prophylactic treatment of an intracranial aneurysm als…

A CNN-LSTM Architecture for Detection of Intracranial Hemorrhage on CT scans

2020-05-22 · MIDL 2019 7 · Nhan T. Nguyen, Dat Q. Tran, Nghia T. Nguyen, Ha Q. Nguyen

We propose a novel method that combines a convolutional neural network (CNN) with a long short-term memory (LSTM) mechanism for accurate prediction of intracranial hemorrhage on computed tomography (CT) scans. The CNN pl…

Computed Tomography (CT)Ensemble Learning

Deep Feature Fusion via Graph Convolutional Network for Intracranial Artery Labeling

2022-05-22 · Yaxin Zhu, Peisheng Qian, Ziyuan Zhao, Zeng Zeng

Intracranial arteries are critical blood vessels that supply the brain with oxygenated blood. Intracranial artery labels provide valuable guidance and navigation to numerous clinical applications and disease diagnoses. V…

Decoder