# Performance issues with tflite quantized models on ARM Cortex-A73 CPU

**URL:** <https://discuss.ai.google.dev/t/performance-issues-with-tflite-quantized-models-on-arm-cortex-a73-cpu/31906>\
**Category:** General Discussion\
**Tags:** tflite, models\
**Created:** [June 25, 2024, 1:50pm UTC](https://discuss.ai.google.dev/t/performance-issues-with-tflite-quantized-models-on-arm-cortex-a73-cpu/31906 "2024-06-25T13:50:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Kudelski](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/michal_kudelski/32/10455_2.png) [@Michal\_Kudelski](https://discuss.ai.google.dev/u/Michal_Kudelski)\
**Post date:** [June 25, 2024, 1:50pm UTC](https://discuss.ai.google.dev/t/performance-issues-with-tflite-quantized-models-on-arm-cortex-a73-cpu/31906/1 "2024-06-25T13:50:08Z")

</div>

Hi everyone,

We are working on effective deployment of AI models on various devices such as smartphones and smart TVs.

We observed an interesting phenomenon:

- a significant speed-up when moving from float32 models to int8 models on **Cortex\_A55** (25ms → 5ms inference time)
- a much lower speed-up when moving from float32 models to int8 models on **Cortex\_A73** (23ms → 18ms inference time)

Do you have any idea what may be the reason of this? It seems that XNNPACK (with quantized models support) does not activate correctly on A73 CPU?

Some technical details:

- we use tflite with XNNpack (latest TFLite version), we tested both uint8 and int8 models
- we use per-tensor quantization
- our convolutional architectures are based on FSMN ([https://arxiv.org/pdf/1512.08301](https://arxiv.org/pdf/1512.08301)) and DeepFSMN ([https://arxiv.org/pdf/1803.05030](https://arxiv.org/pdf/1803.05030))
- we use the benchmark tool for our comparisons ([Performance measurement &nbsp;|&nbsp; TensorFlow Lite](https://www.tensorflow.org/lite/performance/measurement)) and also our own compiled binaries (C++ environment), both benchmarks show similar results

Best regards,  
Michal

---

<div class="post-metadata">

**Author:** ![Aniket\_Dubey](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/aniket_dubey/32/16664_2.png) [@Aniket\_Dubey](https://discuss.ai.google.dev/u/Aniket_Dubey)\
**Post date:** [July 31, 2024, 9:32am UTC](https://discuss.ai.google.dev/t/performance-issues-with-tflite-quantized-models-on-arm-cortex-a73-cpu/31906/3 "2024-07-31T09:32:36Z")

</div>

Hi @Michal_Kudelski ,

There are several factors in play when running on resource constrained devices, from what i see from the ARM comparison pdf table the Cortex-A55 is a more recent design (Armv8.2-A) compared to the Cortex-A73 (Armv8-A)  
also the Cortex-A55 explicitly supports Dot Product operations, which can be highly beneficial for int8 computations in neural networks. This feature might not be as optimized or present in the same form in the Cortex-A73.

 ![Screenshot 2024-07-31 at 3.03.14 PM](https://d3qe71uytubmmx.cloudfront.net/original/3X/d/1/d13ab9fa4abe9e6f446b03a2363d4542aa9edb11.png)

Thank You .
