How does Adaptive Softmax speed up large language models?
TechnicalML ENGINEER LLMMachine Learning EngineerAI EngineerGenAI DeveloperAdaptive Softmax speeds up large language models by reducing the computational cost of predicting rare words. It does this by dividing the vocabulary into clusters, allowing the model to focus on the most likely words first. This hierarchical approach significantly cuts down the number of calculations needed during training and inference.
For instance, instead of computing probabilities for the entire vocabulary, it only calculates for the top few clusters, which can lead to a substantial reduction in time and resources, especially with large datasets.