Using predefined vector systems to speed up neural network multimillion class classification

arXiv cs.LG / 4/2/2026

📰 NewsSignals & Early TrendsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper addresses neural network label prediction whose typical cost scales linearly with the number of classes by leveraging structure in the latent-space geometry.
  • It proposes using a predefined vector system (with class prototypes/cluster centers) to turn label prediction into an O(1)-style closest-center search via efficient index extraction (largest and lowest values).
  • The method is designed to be computationally efficient and to avoid changing training accuracy, while also measuring inference-stage runtimes across multiple datasets.
  • Experiments report up to 11.6× overall acceleration versus conventional label-prediction approaches and suggest the technique can help detect the existence of new classes.

Abstract

Label prediction in neural networks (NNs) has O(n) complexity proportional to the number of classes. This holds true for classification using fully connected layers and cosine similarity with some set of class prototypes. In this paper we show that if NN latent space (LS) geometry is known and possesses specific properties, label prediction complexity can be significantly reduced. This is achieved by associating label prediction with the O(1) complexity closest cluster center search in a vector system used as target for latent space configuration (LSC). The proposed method only requires finding indexes of several largest and lowest values in the embedding vector making it extremely computationally efficient. We show that the proposed method does not change NN training accuracy computational results. We also measure the time required by different computational stages of NN inference and label prediction on multiple datasets. The experiments show that the proposed method allows to achieve up to 11.6 times overall acceleration over conventional methods. Furthermore, the proposed method has unique properties which allow to predict the existence of new classes.

Using predefined vector systems to speed up neural network multimillion class classification | AI Navigate