"While edge AI presents great potential and opportunity, developers also face many challenges along the way. On the hardware side, they need to consider security, power consumption and other factors while ensuring the overall performance of the application. On the software side, they need to create, train, deploy and maintain machine learning models in the device." "Matteo said.
ST's AI research and development program began ten years ago, starting from the basic research of machine learning technology, and gradually developed to specialize in AI optimization for edge devices with limited hardware resources:
In 2018, ST released the first STM32 AI library (Cube AI)
In 2020, ST will expand the layout and support of artificial intelligence to automotive, Linux and other fields.
In 2021, the NanoEdge AI ecosystem will be released.
In 2022, a MEMS sensor ISPU with integrated more advanced hardware accelerators was released, capable of running smaller deep learning networks within the same sensor;
In 2023, the STM32 developer Cloud Model Library was released and the Stellar family of MCU tools was updated.
According to the data, STM32 currently ranks first in the number of submitted projects in the MLPerfTiny5 benchmark, with 73% of submitted projects based on STM32 development.
STM32N6 integrated with self-developed NPU is a representative hardware solution of ST. Its machine learning model, developed in collaboration with partner Lacroix for multi-object recognition tracking AI algorithms, showed that the 18-frames-per-second pedestrian, bicycle, and car detection and tracking algorithms were all executed on the NPU, with less than 5% of the load based on the Cortex kernel. On the security side, the product not only integrates the trust zone internally, but also adds the security function peripherals, such as tamper resistance, with these new features, customers and developers can not only protect the data in the memory, but also protect the machine learning model.
Matteo says software presents more of a challenge to developers than hardware. To this end, "providing powerful development tools and support to make it easier for developers to create, train, and deploy models" became ST's core goal. As ST's comprehensive AI development platform, ST Edge AI integrates all the tools and modules needed for edge AI development, from creating use cases with model libraries, to collecting data sets, to deploying models to specific hardware, covering the entire development process, including embedded hardware engineers. All developers, including software engineers and machine learning engineers.
The ST Edge AI suite supports a wide range of deep learning frameworks, including TensorFlow Lite, Keras, PyTorch and other trained machine learning models. It is compatible with the NVIDIA toolkit and provides connectivity to cloud services such as Amazon Cloud Technologies (AWS) and Microsoft Azure, and is compatible with simulation tools such as MATLAB.
"There is currently no universal approach to edge AI development, but it is important to provide guidance and information to developers in the process of developing edge AI solutions. Therefore, the ST Edge AI suite takes this factor into account and can help users find the best methods and tools based on their knowledge and resources. We also consider merging and unifying the user experience of various tools to simplify the design process of AI libraries. Matteo said that both the ST Edge AI and Nano AI Studio are available for free to STM32 customers, while other ARM Cortex-M microcontrollers are also available for free under special licensing agreements.
Big Models And Edge AI
AI large model is undoubtedly the most popular research field in the world. But in Matteo's view, at least for now, large language models (LLMS) are still unable to run on edge AI devices. "We think that in the near future, there will be models, Transformers or LLMS with similar performance but smaller data volumes on the market that may bring a fresher experience to edge AI." 'he said.
From the current actual use situation, the vast majority of artificial intelligence models, including machine learning-based models (such as decision trees, random forests, SVM) and deep learning models (based on fully connected architectures, CNN convolutional neural networks, etc.)RNN recurrent neural networks can run on ST products, the only limitation comes from the complexity of the model and the number of parameters. Therefore, keeping a close eye on the development of the LLM large model and the LLM basic architecture Transformer will be one of the next important directions for ST.
Matteo also mentioned in-memory computing and memory in one technology as an important trend in the development of edge AI. ST believes that "such products will be a game changer for the market" because their performance will be improved to ten times the current level, while consuming only one-tenth of the power.
Of course, innovation is not just in hardware products or platforms, there are also many innovations in software tools and compilers related to NPU and memory computing that require a lot of fine-tuning and optimization.
He stressed that AI developers need to radically shift their thinking from traditional algorithms based on "if-then-else" to AI algorithms that focus on data sets. In particular, there needs to be a shift in thinking when validating overall solutions, with more focus on the definition of use cases, the creation of data sets, and their validation.
At the same time, when it comes to chip design and manufacturing, designing the end product is more important than the chip design itself, as customers need to embed new processes in data set creation, product testing, and manufacturing, and AI capabilities need to be specifically tested before they can be brought to market.