← Lab /AI/ML

PKM sparse coders train faster and are slightly more interpretable than TopK coders

PKM transcoders can match TopK transcoders’ reconstruction quality while training faster for certain model sizes, though they lag at very large expansion factors

AI/ML EleutherAI 30 May 2025 Measurement Prototype evidence

Published as “Product Key Memory Sparse Coders”

Why it matters

PKM offers faster training and modest interpretability gains for moderate expansion factors, but does not provide a clear advantage over TopK coders at larger scales.

Summary

The authors implemented product key memory (PKM) based sparse coders and compared them to standard TopK skip transcoders on three layers of SmolLM 2 using 0.3 B tokens of fineweb data. They found PKM models train faster for the same number of latents and achieve similar reconstruction loss for moderate expansion factors, while also scoring slightly higher on auto-interpretability metrics. However, at very large expansion factors (e.g., 512×) PKMs become slower to train and produce higher reconstruction error than the baseline, and the benefits are not consistent across all layers.

What they found 3

  1. PKM transcoders can be competitive with TopK transcoders, as they train faster even for larger expansion factors

    “PKM transcoders can be competitive with TopK transcoders, as they train faster even for larger expansion factors. After a certain size, however, the baseline models perform better.”

  2. PKM transcoders are slightly more interpretable than TopK transcoders

    “We find PKM transcoders to be slightly more interpretable than TopK transcoders. They also offer a natural grouping of latents.”

  3. PKM sparse autoencoders train faster for the same number of latents

    “Figure 2 - PKM sparse autoencoders train faster for the same number of latents.”

Caveats 7

  • After a certain size, however, the baseline models perform better.
  • Larger PKMs with very big expansion factors (x512) take longer to train than baseline models which achieve better FVU.
  • These results were not consistent across all layers and are unsure if there is a point to using PKMs instead of the normal SSTs.
  • Training used only 1/20 of the data normally used for these models, leading to lower absolute interpretability scores
  • Results vary across layers; benefits are not consistent
  • Larger expansion factors required smaller batch sizes, which slowed training and affected comparison fairness
  • PKM construction is less expressive because it cannot represent arbitrary combinations of latents

What’s new here 4

  • PKM transcoders train faster than TopK transcoders for comparable latent counts
  • PKM models achieve similar reconstruction loss to baselines at moderate expansion factors
  • Auto-interpretability scores are modestly higher for PKM coders
  • PKM architecture naturally groups latents, enabling similarity analyses