A new implementation of the ELIZA chatbot utilizes a sparse autoencoder architecture to store conversation entries in a latent memory layer, aiming to improve upon traditional keyword-matching methods. The system employs a T5 encoder-decoder structure with a 32,768-neuron memory layer, where similar entries are activated via contrastive learning.

  • The model achieves logarithmic memory scaling (log(n)) and strong resistance to catastrophic forgetting by using monosemantic neurons and activating only top-k connections.
  • Training on 10,000 QA pairs from the 'naklecha/minecraft-question-answer-700k' dataset allowed for latent memorization of all entries within three hours.
  • Unlike standard ELIZA which outputs exact stored sequences, the decoder can slightly modify responses, though it still requires a similar entry to exist for every question.

The author notes that while the approach demonstrates speed and memory efficiency, current limitations prevent scaling to larger datasets to fully verify the compression and forgetting mitigation claims.