Challenge: Hand coding weights for efficient sequence memorisation

· Source: AI Alignment Forum · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, extended

Summary

Researchers hand-coded weights for one-layer MLPs that memorise labels for input token sequences of length two. The number of facts their hand-coded models can memorise with 90% accuracy scales roughly linearly with the models' parameter count, just like trained models for the same architecture. However, their hand-coded models' scaling prefactor still falls short of trained models' by a factor of 9.7. A hybrid solution, hand-coding MLP input weights and learning output weights, falls short by a factor of 3.5. The research aims to understand how LLMs encode look-ups, identifying MLP layers as primary storage sites. The MLP is found to be the most critical component for memorization, enabling 60%-373% more facts, and a community challenge is posed to find better non-gradient descent constructions.

Key takeaway

For AI Scientists investigating LLM factual storage, this research highlights the MLP layer's central role in sequence memorization. You should focus mechanistic interpretability efforts on MLP weights, as hand-coding reveals a substantial gap in efficiency compared to trained models. Consider exploring hybrid weight initialization strategies to bridge this performance gap, particularly by optimizing unembedding matrices as linear classification problems. This could accelerate understanding of how models learn to store facts.

Key insights

Hand-coding MLP weights for sequence memorization reveals a significant performance gap compared to trained models, despite similar scaling.

Principles

Method

The proposed hand-coding algorithm assigns unique neuron sets to labels, sets embedding weights to ensure zero ReLU output for assigned facts, and uses negative unembedding weights for readout.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by AI Alignment Forum.