Weight-based Decomposition: A Case for Bilinear MLPs

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Pearce, Michael T., Dooms, Thomas, Rigg, Alice
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910476165709824
author Pearce, Michael T.
Dooms, Thomas
Rigg, Alice
author_facet Pearce, Michael T.
Dooms, Thomas
Rigg, Alice
contents Gated Linear Units (GLUs) have become a common building block in modern foundation models. Bilinear layers drop the non-linearity in the "gate" but still have comparable performance to other GLUs. An attractive quality of bilinear layers is that they can be fully expressed in terms of a third-order tensor and linear operations. Leveraging this, we develop a method to decompose the bilinear tensor into a set of sparsely interacting eigenvectors that show promising interpretability properties in preliminary experiments for shallow image classifiers (MNIST) and small language models (Tiny Stories). Since the decomposition is fully equivalent to the model's original computations, bilinear layers may be an interpretability-friendly architecture that helps connect features to the model weights. Application of our method may not be limited to pretrained bilinear models since we find that language models such as TinyLlama-1.1B can be finetuned into bilinear variants.
format Preprint
id arxiv_https___arxiv_org_abs_2406_03947
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Weight-based Decomposition: A Case for Bilinear MLPs
Pearce, Michael T.
Dooms, Thomas
Rigg, Alice
Machine Learning
Artificial Intelligence
Gated Linear Units (GLUs) have become a common building block in modern foundation models. Bilinear layers drop the non-linearity in the "gate" but still have comparable performance to other GLUs. An attractive quality of bilinear layers is that they can be fully expressed in terms of a third-order tensor and linear operations. Leveraging this, we develop a method to decompose the bilinear tensor into a set of sparsely interacting eigenvectors that show promising interpretability properties in preliminary experiments for shallow image classifiers (MNIST) and small language models (Tiny Stories). Since the decomposition is fully equivalent to the model's original computations, bilinear layers may be an interpretability-friendly architecture that helps connect features to the model weights. Application of our method may not be limited to pretrained bilinear models since we find that language models such as TinyLlama-1.1B can be finetuned into bilinear variants.
title Weight-based Decomposition: A Case for Bilinear MLPs
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2406.03947