Token Generation Speed

Token Generation Speed (often measured as tokens per second, tps) is the metric defining how rapidly a Large Language Model (llm) produces output during autoregressive inference. It is a primary bottleneck in user experience and system throughput.

Key Determinants

Architectural Evolution: Beyond Transformers

Recent analysis highlights the limitations of the Transformer architecture, particularly regarding computational complexity and memory overhead. This has spurred interest in alternative architectures for improved efficiency and scalability:

  • State-Space Models (SSMs): Emerging as a viable alternative to Transformers, SSMs offer linear scaling with sequence length, addressing the quadratic computational cost associated with attention mechanisms in standard LLMs.
  • Recurrent Neural Networks (RNNs): Modern recurrent approaches are being revisited for their ability to maintain state efficiently, potentially offering lower latency for specific inference patterns compared to autoregressive Transformer decoding.
  • Transformer Limitations: The dominance of Transformers in models like ChatGPT, Claude, and Gemini is being critically examined due to trade-offs in computational cost and scalability.

For a detailed breakdown of these architectural shifts and the race to replace Transformers, see Beyond Transformers: Exploring State-Space and Recurrent AI Model Architectures.

Optimization Techniques

References