Inference Performance: Good, But Missing Tensor APIs

Beyond CPU and GPU, the one aspect of the Snapdragon 855 that Qualcomm made a lot of noise about is the new Hexagon 690 accelerator block.

The new unit doubles its vector pipelines, essentially doubling performance for traditional image processing tasks as well as machine inferencing workloads. Most importantly, Qualcomm now includes a dedicated “Tensor Accelerator” block which promises to even better offload inferencing tasks.

I’ve queried Qualcomm about the new Tensor Accelerator, and got some interesting answers. First of all- Qualcomm isn’t willing to disclose more about the performance of this IP block; the company had advertised a total of “7 TOPS” computing power on the part of the platform, but they would not dissect this figure and attribute it individually to each IP block.  

What was actually most surprising however was the API situation for the new Tensor accelerator. Unfortunately, the block will not be exposed to the NNAPI until sometime later in the year for Android Q, and for the time being the accelerator is only exposed via in-house frameworks. What this means is that none of our very limited set of “AI” benchmarks is able to actually test the Tensor block, and most of what we’re going to see in terms of results are merely improvements on the side of the Hexagon’s vector cores.

Inference Performance

First off, we start off with “AiBenchmark” – we first starred the new workload in our Mate 20 review, to quote myself:

“AI-Benchmark” is a new tool developed by Andrey Ignatov from the Computer Vision Lab at ETH Zürich in Switzerland. The new benchmark application, is as far as I’m aware, one of the first to make extensive use of Android’s new NNAPI, rather than relying on each SoC vendor’s own SDK tools and APIs. This is an important distinction to AIMark, as AI-Benchmark should be better able to accurately represent the resulting NN performance as expected from an application which uses the NNAPI.

Andrey extensive documents the workloads such as the NN models used as well as what their function is, and has also published a paper on his methods and findings.

One thing to keep in mind, is that the NNAPI isn’t just some universal translation layer that is able to magically run a neural network model on an NPU, but the API as well as the SoC vendor’s underlying driver must be able to support the exposed functions and be able to run this on the IP block. The distinction here lies between models which use features that are to date not yet supported by the NNAPI, and thus have to fall back to a CPU implementation, and models which can be hardware accelerated and operate on quantized INT8 or FP16 data. There’s also models relying on FP32 data, and here again depending on the underlying driver this can be either run on the CPU or for example on the GPU.

AIBenchmark - 1a - The Life - CPU AIBenchmark - 6 - Ms.Universe - CPU AIBenchmark - 7 - Berlin Driving - CPU

In the first set of workloads which I’ve categorised by being run on the CPU, we see the Snapdragon 855 perform well, although it’s not exactly extraordinary. Performance here is much more impacted by the scheduler of the system and exactly how fast the CPU is allowed to get to its maximum operating performance point, as the workload is of a short burst nature.

AIBenchmark - 1c - The Life - INT8 AIBenchmark - 3 - Pioneers - INT8 AIBenchmark - 5 - Cartoons - INT8

Moving onto the 8-bit integer quantised models, these are for most devices hardware accelerated. The Snapdragon 855’s performance here is leading in all benchmarks. In the Pioneers benchmark we more clearly see the doubling of the performance of the HVX units as the new hardware posts inference times little under half the time of the Snapdragon 845.

The Cartoons benchmark here is interesting as it showcases the API and driver aspect of NNAPI benchmarks: The Snapdragon 855 here seems to have massively better acceleration compared to its predecessors and competing devices. It might be that Qualcomm has notably improved its drivers here and is much better able to take advantage of the hardware, compared to the past chipset.

AIBenchmark - 1b - The Life - FP16 AIBenchmark - 2 - Zoo - FP16 AIBenchmark - 4 - Masterpiece - FP16

The FP16 workloads finally see some competition for Qualcomm as the Kirin’s NPU exposes support for its hardware here. Qualcomm should be running these workloads on the GPU, and here we see massive gains as the new platform’s NNAPI capability is much more mature.

AIBenchmark - 8 - Image Enhancement - FP32

The FP32 workload sees a similar improvement for the Snapdragon 855; here Qualcomm finally is able to take full advantage of GPU acceleration which gives the new chipset a considerable lead.

AIMark

Alongside AIBenchmark, it still might be useful to have comparisons with AIMark. This benchmark rather than using NNAPI, uses Qualcomm’s SNPE framework for acceleration. Also this gives us a rare comparison against Apple’s iPhones where the benchmark makes use of CoreML for acceleration.

鲁大师 / Master Lu - AImark - VGG16 鲁大师 / Master Lu - AImark - ResNet34 鲁大师 / Master Lu - AImark - Inception V3

Overall, the Snapdragon 855 is able to post 2.5-3x performance boosts over the Snapdragon 845.

At the event, Qualcomm also showcased an in-house benchmark running InceptionV3 which was accelerated by both the HVX units as well as the new Tensor block. Here the phone was able to achieve 148 inferences/s – which although maybe apples to oranges, represents a 26% boost compared to the same model run in AIMark.

Overall, even though the Tensor accelerator wasn’t directly tested in today’s benchmark results, the Snapdragon 855’s inference performance is outstanding due to the overall much improved driver stack as well as the doubling of the Hexagon’s vector execution units. It will be interesting to see what vendors do with this performance and we should definitely see some exciting camera applications in the future.

CPU Performance & Efficiency: SPEC2006 System Performance - Slightly Underwhelming?
Comments Locked

132 Comments

View All Comments

  • WildBikerBill - Wednesday, January 16, 2019 - link

    What I want to know is...now that we know the high end, what do the affordable mid-range products become?
  • B3an - Wednesday, January 16, 2019 - link

    This SoC is VERY disappointing. Wont be upgrading this year to any phone that has this.

    Hopefully Samsungs new SoC for 2019 is much MUCH better than the utter joke they had in the Galaxy S9... That was a fucking disaster... I'm hoping it actually performs well in REAL WORLD cases this time, not just mostly meaningless benchmarks, but i doubt it. Samsung reminds me of when desktop PC GPU makers would cheat in benchmarks by using driver hacks.
  • serendip - Wednesday, January 16, 2019 - link

    It looks like Qualcomm is having an Intel-like moment where performance stops having meaningful increases year-on-year. For me, an SD835 device is more than fast enough and an 855 only makes sense for higher-performing larger devices like Windows tablets.

    Time to focus on the software then... my old SD650 device got a new lease on life with a clean build of Lineage on Android Pie. The same slowdown that hit the laptop/PC markets could cause a crash in the smartphone market as people keep their phones for 3-4 years instead of upgrading annually.
  • serendip - Wednesday, January 16, 2019 - link

    I doubt it. Apple seems to be the only one with a cracking chip design team. Huawei seems to be doing decent work with HiSilicon but ARM designs are still far behind.

    Does it matter though? Apple's latest chips are so overpowered for their phones and tablets, the performance numbers are more for bragging rights than anything else. That could change once they start using A-series chips in their laptops.
  • yankeeDDL - Sunday, January 20, 2019 - link

    Disclaimer: I have been using a Galaxy S8 (SD835) and I don't feel the need to upgrade anytime soon, however:
    a) Having more power is always nice, and there are times where the phone ... stutters, especially when moving from "heavy" games.
    b) The gap with the iphones is embarrassing, and I don't see any technical justification. Yes, the iPhones are optimized all around (HW+SW) thanks to their closed ecosystem, but nearly 2x gap on the GPU is a deliberate choice which should be, at the very least justified.

    We need competition in the mobile CPU/GPU, or Qualcomm will quickly become the Intel of mobile, sitting on his a** until something better comes along.
  • cha0z_ - Monday, January 21, 2019 - link

    Dunno why Andrei is so kind in his wording about the new snapdragon. For start it's nothing that more powerful vs the kirin 980 (while it was shaped to literally obliterate it in both CPU/GPU, especially the GPU). Also even the A11 is making a joke of it and the A12 sustained performance is higher than the sd855 peak in GPU... and CPU is also for the A12 and even A11.

    I would kinda understand for the sd855 to lack behind the A12 with 15% in CPU/GPU, will accept somewhat to lose to the A12 even with more, but losing to the A11 is roflmao funny. How in the world you can call it success when qualcomm(as a leader in that regard) can't catch up with apple for years? Recently even the GPU started to lag behind BIG time, before atleast that was on par. Well.. cool.
  • mfaisalkemal - Sunday, January 20, 2019 - link

    Hi Andrei, what do you think about 3 benchmark on https://www.asteroidsbenchmarks.com ?

    all of them include metal and vulkan api benchmark so we can comparing iOS and Vulkan mobile.

    The benchmark include off screen test.
  • DontTreadOnMe - Thursday, January 24, 2019 - link

    Does this A76 CPU support the pointer authentication codes that Apple have had since iPhone X? It seems like this is a potentially very useful security feature that it would be nice to see on Android devices.
  • Uol - Tuesday, January 29, 2019 - link

    thank you <a href="https://www.wikipedia.org/">site</a>
  • Nystiael - Thursday, February 7, 2019 - link

    Very nice. I will but it by I don't have the money atm.

    Greetings
    https://showbox-apk.mobi

Log in

Don't have an account? Sign up now