Ad

calm: Continuous Autoregressive Language Models

CALM introduces a novel language modeling paradigm by predicting continuous vectors representing chunks of tokens, enhancing efficiency and scalability. It enables new scaling dimensions for LLMs.
Screenshot of shaochenze/calm homepage

CALM (Continuous Autoregressive Language Models) addresses the limitations of traditional token-by-token language modeling. CALM learns to predict a continuous vector representing a chunk of K tokens, streamlining the language modeling process. This advancement is achieved through an autoencoder that compresses token chunks into continuous vectors, followed by a continuous-domain language model that performs autoregressive prediction within this vector space. This approach aims to significantly improve both training and inference efficiency.

CALM introduces a new scaling dimension, semantic bandwidth (K), allowing for increased information processing capability with a single step. The repository provides a comprehensive suite of algorithms, including a robust autoencoder, energy-based training, BrierLM for likelihood-free evaluation, and temperature sampling for controlled text generation.

  • Efficiency: Reduces autoregressive steps, improving training and inference speed.
  • Scalability: Introduces semantic bandwidth (K) as a new scaling parameter.
  • Likelihood-Free Toolkit: Offers algorithms like BrierLM for robust model evaluation.
  • Training Scripts: Includes scripts for training the autoencoder and CALM language model.
  • Baseline Model: Includes training for a standard autoregressive model for comparison.

The project is actively developed with well-documented training scripts and a clear focus on performance evaluation. The repository includes comprehensive data processing and training procedures. The BrierLM evaluation metric and the Energy-Based training approach appear to offer a novel development with positive preliminary results. Further research and experimentation are ongoing.

CALM benefits researchers and developers seeking more efficient and scalable language models. It is valuable for applications requiring processing large amounts of text or for scenarios where computational resources are limited. CALM offers a novel approach to language modeling, presenting an alternative to traditional autoregressive models and providing tools for evaluation and experimentation.

Languages:
Summarize:
Share:
Stars
809
Forks
92
Issues
6
Created
8 months ago
Commit
2 months ago
License
MIT
Archived
No
Updated 17 days ago

Similar Repositories