Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Compressed Real Numbers for AI: a case-study using a RISC-V CPU (2309.07158v1)

Published 11 Sep 2023 in cs.LG, cs.AR, and cs.PF

Abstract: As recently demonstrated, Deep Neural Networks (DNN), usually trained using single precision IEEE 754 floating point numbers (binary32), can also work using lower precision. Therefore, 16-bit and 8-bit compressed format have attracted considerable attention. In this paper, we focused on two families of formats that have already achieved interesting results in compressing binary32 numbers in machine learning applications, without sensible degradation of the accuracy: bfloat and posit. Even if 16-bit and 8-bit bfloat/posit are routinely used for reducing the storage of the weights/biases of trained DNNs, the inference still often happens on the 32-bit FPU of the CPU (especially if GPUs are not available). In this paper we propose a way to decompress a tensor of bfloat/posits just before computations, i.e., after the compressed operands have been loaded within the vector registers of a vector capable CPU, in order to save bandwidth usage and increase cache efficiency. Finally, we show the architectural parameters and considerations under which this solution is advantageous with respect to the uncompressed one.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Federico Rossi (29 papers)
  2. Marco Cococcioni (5 papers)
  3. Roger Ferrer Ibàñez (1 paper)
  4. Filippo Mantovani (9 papers)
  5. Marc Casas (12 papers)
  6. Emanuele Ruffaldi (4 papers)
  7. Sergio Saponara (3 papers)
  8. Jesùs Labarta (1 paper)