<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Deeplite on Medium]]></title>
        <description><![CDATA[Stories by Deeplite on Medium]]></description>
        <link>https://medium.com/@deeplite_team?source=rss-35885f4ff299------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xWTxAWtdsohndkOq.jpg</url>
            <title>Stories by Deeplite on Medium</title>
            <link>https://medium.com/@deeplite_team?source=rss-35885f4ff299------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 17:09:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deeplite_team/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MCUBench: Benchmarking Tiny Object Detectors on Microcontroller Units]]></title>
            <link>https://medium.com/@deeplite_team/mcubench-benchmarking-tiny-object-detectors-on-microcontroller-units-4c7d2fcecf20?source=rss-35885f4ff299------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c7d2fcecf20</guid>
            <dc:creator><![CDATA[Deeplite]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 20:05:16 GMT</pubDate>
            <atom:updated>2025-04-15T20:05:16.137Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>This blog is a summary of the research paper </strong><a href="https://8074457.fs1.hubspotusercontent-na1.net/hubfs/8074457/PDF%20Assets/Deeplite_MCUBench_ECCV2024.pdf"><strong>Sah, Sudhakar, et al. “MCUBench A Benchmark of Tiny Object Detectors on MCUs.”</strong></a><strong> Proceedings of the IEEE/CVF European Conference on Computer Vision 2024, accepted at the </strong><a href="https://sites.google.com/nvidia.com/cadl2024/program?authuser=0"><strong>ECCV 2024 CADL Workshop</strong></a><strong>. You can find the CADL Workshop presentation </strong><a href="https://8074457.fs1.hubspotusercontent-na1.net/hubfs/8074457/PDF%20Assets/Deeplite_MCUBench_id30_CADLW_ECCV2024.pdf"><strong>here</strong></a><strong>.</strong></h4><p>In the rapidly evolving field of computer vision, object detection plays a crucial role in applications ranging from self-driving cars to security systems. However, deploying these advanced models on resource-constrained devices like Microcontroller Units (MCUs) presents unique challenges. Enter MCUBench, a comprehensive benchmark designed to evaluate the performance of tiny object detectors on MCUs.</p><p>What is MCUBench?</p><p>MCUBench is a benchmark featuring over 100 tiny YOLO-based object detection models evaluated on the VOC and COCO dataset across seven different MCUs. This benchmark provides detailed data on mean average precision (mAP) , latency, RAM, and Flash usage for various input resolutions for YOLO-based detectors. By conducting a controlled comparison with a fixed training pipeline and head but varying backbone, neck and resolution, MCUBench collects comprehensive performance metrics.</p><p>Key Contributions</p><p><strong>Comprehensive Benchmark:</strong> MCUBench includes over 100 tiny YOLO-based object detection models specifically designed for MCU-grade hardware. These models are trained on the VOC /COCO dataset and selected through Pareto analysis across four different MCU platforms.</p><p><strong>Performance Insights: </strong>The benchmark demonstrates that integrating modern detection heads and training techniques allows various YOLO architectures, including older models like YOLOv3, to achieve an excellent mean Average Precision (mAP)-latency tradeoff on MCUs.</p><p><strong>Model Selection Tool: </strong>MCUBench provides trained weights of the models, enabling application developers to select and fine-tune models based on their specific average precision, latency, RAM, and Flash trade-offs, without the need to train multiple models independently.</p><p>Methodology</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RlypidG9khkZENqD.jpg" /></figure><p>The benchmark process involves several steps:</p><ol><li>Initial Model Training: Models are trained on the Pascal VOC /COCO dataset and evaluated on seven different Nucleo boards from STMicroelectronics.</li><li>Model Pre-selection: Pareto-optimal models are selected based on their VOC /COCO mAP and on-device latency.</li><li>Expanded Search Space: Selected models are fine-tuned at different resolutions to generate a final set of Pareto-optimal models.</li><li>Final Model Ranking: Models are evaluated on seven different MCUs to build new Pareto curves, highlighting the trade-offs between mAP and latency.</li></ol><p>Hardware Benchmarking</p><p>MCUBench evaluates models on a diverse range of MCUs, including the STM32H7, STM32F4, STM32F7, and STM32L4 series. Each MCU offers different configurations of RAM, Flash, processor type, and clock frequency, allowing for a comprehensive analysis of performance across various hardware platforms.</p><p>Results</p><p>The benchmarking procedure revealed interesting characteristics of YOLO-based models on different MCUs. For instance, older YOLO architectures, when equipped with modern detection heads, can outperform newer models on MCUs. The results also highlighted the importance of optimizing resolution and width for enhancing model performance on constrained devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*k_p54XaJti4MPgeR.jpg" /></figure><p>Conclusion</p><p>MCUBench is a valuable tool for benchmarking the MCU performance of contemporary object detectors. It aids in model selection based on specific constraints, providing a clear understanding of the trade-offs between accuracy, latency, RAM, and Flash usage. This benchmark can significantly benefit developers looking to deploy efficient object detection models on low-footprint devices.</p><p><strong>Want to benchmark your MCU?</strong></p><p>Contact us at <a href="/service/mailto:info@deeplite.ai">info@deeplite.ai</a> and we will get you set up!</p><p>I hope you enjoyed this blog summary of the article. Please let me know if you have any questions or feedback. 😊</p><p><em>Originally published at </em><a href="https://blog.deeplite.ai/deeplite-mcubench-benchmarking-tiny-object-detectors-0-0-1"><em>https://blog.deeplite.ai</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c7d2fcecf20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Token Pruning using a Lightweight Background Aware Vision Transformer]]></title>
            <link>https://medium.com/@deeplite_team/token-pruning-using-a-lightweight-background-aware-vision-transformer-259d3adc28c8?source=rss-35885f4ff299------2</link>
            <guid isPermaLink="false">https://medium.com/p/259d3adc28c8</guid>
            <dc:creator><![CDATA[Deeplite]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 20:02:08 GMT</pubDate>
            <atom:updated>2025-04-15T20:02:08.453Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Enhancing Vision Transformers</strong></p><p>In the rapidly evolving field of computer vision, Vision Transformers (ViTs) have emerged as a powerful tool for tasks such as object detection and image segmentation. However, their high computational requirements pose significant challenges, especially for deployment on edge devices with limited resources. Sudhakar Sah, Ph.D. and a research team at Deeplite introduces a novel approach to address this issue: the Background Aware Vision Transformer (BAViT).</p><p><strong>The Challenge</strong></p><p>ViTs process images by dividing them into small patches, or tokens, which are then analyzed to identify objects. As image resolution increases, the number of tokens grows, leading to higher memory usage and latency. This makes it difficult to deploy ViTs on edge devices, which are often constrained by limited computational power and memory.</p><p><strong>Introducing BAViT a Background Aware Vision Transformer</strong></p><p>BAViT is designed to reduce the number of tokens processed by ViTs by identifying and pruning background tokens. This pre-processing step significantly reduces runtime memory and increases throughput without compromising the accuracy of object detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*BaWilyRmqmz1K05M4BJmPQ.jpeg" /><figcaption><em>Figure 2: From left to right; a) original image, b) foreground object area in transparency and c) 16x16 grid with red grids as foreground and gray grids as background</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*BaWilyRmqmz1K05M4BJmPQ.jpeg" /><figcaption><em>Figure 2: From left to right; a) original image, b) foreground object area in transparency and c) 16x16 grid with red grids as foreground and gray grids as background</em></figcaption></figure><p><em>Figure 1: Comparison of background token identification results between Sparse DETR, Focus DETR and BAViT models</em></p><p><strong>Methodology</strong></p><p>The BAViT model uses semantic information from segmentation maps and bounding box annotations to classify tokens as either foreground or background.</p><p>The process involves:</p><ol><li><strong>Token Classification</strong>: BAViT uses a lightweight ViT model to classify tokens based on their importance. Tokens identified as background are pruned, reducing the number of tokens that need to be processed by the main ViT model.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*BaWilyRmqmz1K05M4BJmPQ.jpeg" /><figcaption><em>Figure 2: From left to right; a) original image, b) foreground object area in transparency and c) 16x16 grid with red grids as foreground and gray grids as background</em></figcaption></figure><ol><li><strong>Integration with Object Detection Models</strong>: BAViT can be integrated with object detection models like DETR and YOLOS, serving as a pre-processing block that enhances performance on edge devices.</li></ol><p><strong>Results</strong></p><p>The study demonstrates that using a 2-layer BAViT model as a pre-processor for YOLOS can increase throughput by 30–40% with a minimal drop in mean Average Precision (mAP).</p><p><em>Figure 3: Foreground/background token classification comparing the original image to the sparse image generated by BAViT</em></p><p>Specifically, the BAViT model achieved:</p><ul><li><strong>75% and 88% accuracy</strong> in separating background and foreground tokens on the VOC dataset using 2 and 10 layers, respectively.</li><li><strong>71% and 80% accuracy</strong> on the COCO dataset using 2 and 10 layers, respectively.</li></ul><p>Token pruning was demonstrated by using BAViT as a pre-processing block to the YOLOS-tiny transformer model. Total number of tokens for 2 layers of BAViT is 1152 and total number of tokens for 12 layers of BAViT is 12288 (1024 tokens per layer for 512×512 input). BAViT+YOLOS-F is the fine-tuned YOLOS model using only Foreground tokens (30 epochs)</p><p><em>Figure 4: Token Pruning on YOLOS-tiny model using BAViT transformer as a pre-processing block</em></p><p><strong>Conclusion</strong></p><p>The introduction of BAViT marks a significant advancement in the deployment of ViTs on edge devices. By efficiently pruning background tokens, BAViT reduces computational load and enhances performance, making it a valuable tool for real-world applications in computer vision.</p><p><strong>Future Work</strong></p><p>The researchers suggest further exploration into optimizing the BAViT model and integrating it with other vision tasks. The potential for BAViT to improve the efficiency of ViTs on edge devices opens up new possibilities for the deployment of advanced computer vision models in resource-constrained environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=259d3adc28c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ActNAS: Generating efficient CNN Models with Mixed Activation Functions]]></title>
            <link>https://medium.com/@deeplite_team/actnas-generating-efficient-cnn-models-with-mixed-activation-functions-12e916074bb3?source=rss-35885f4ff299------2</link>
            <guid isPermaLink="false">https://medium.com/p/12e916074bb3</guid>
            <dc:creator><![CDATA[Deeplite]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 19:52:50 GMT</pubDate>
            <atom:updated>2025-04-15T22:15:48.110Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>ActNAS: Generating efficient CNN Models with Mixed Activation Functions</strong></p><p>In the rapidly advancing field of machine learning, the pursuit of more efficient and accurate models is unceasing. A recent study by Sudhakar Sah, Ph.D and research colleagues from Deeplite introduces <strong>ActNAS</strong>, a novel approach to enhancing YOLO (You Only Look Once) models using mixed activation functions. This groundbreaking research, presented at the FITML workshop at NeuRIPS 2024, explores the potential of combining different activation functions within a single model architecture to optimize performance across various edge devices.</p><p><strong>The Role of Activation Functions</strong></p><p>Activation functions are key components in neural networks, introducing non-linearity that enables the learning of complex patterns. Traditionally, a single activation function is used throughout a model. However, different functions offer varying trade-offs between speed and accuracy. For instance, ReLU is fast but less accurate, while SiLU and SELU are slower but more precise.</p><p>The study delves into the intricacies of these functions, highlighting their unique strengths and weaknesses. ReLU, known for its simplicity and computational efficiency, often falls short in capturing complex patterns. On the other hand, SiLU and SELU, though computationally intensive, excel in accuracy, making them suitable for tasks requiring high precision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLsIoOoHOjz2GsU0UC4RHg.png" /><figcaption><em>Figure 1: Latency-mAP plot of YOLO5n and YOLO8m for two different NPUs. SiLU models are slowest and ReLU models are fasted on both edge devices</em></figcaption></figure><p><strong>The ActNAS Approach</strong></p><p>ActNAS leverages Neural Architecture Search (NAS) to design CNN models with optimized mixed activation functions. This method evaluates the impact of these functions on latency, memory usage, and accuracy across CPU, NPU, and GPU edge devices. <a href="https://arxiv.org/html/2410.10887v2">The results are promising: the best model generated through ActNAS shows a slight improvement in mean Average Precision (mAP) compared to the baseline SiLU model, while being 22.28% faster and consuming 64.15% less memory on the reference NPU device1</a>.</p><p><strong>Methodology</strong></p><p>The methodology involves a comprehensive search space where each activation function is systematically replaced and evaluated. This iterative process ensures that the optimal combination of activation functions is identified, balancing the trade-offs between latency and accuracy. The study’s findings underscore the potential of mixed activation functions in enhancing model efficiency, particularly for deployment on resource-constrained devices.</p><ol><li><strong>Search Space Generation</strong>: The research team created a search space by systematically replacing each activation function in the reference YOLO model with a set of candidate activations: ReLU, SiLU, Hardswish, ReLU6, and LeakyReLU. <a href="https://arxiv.org/html/2410.10887v2">This process resulted in 345 candidate models for YOLO5n, as the reference model has 69 activations and there are 5 candidate activations for each layer</a><a href="https://arxiv.org/abs/2410.10887">2</a>.</li><li><strong>Evaluation Metrics</strong>: Each candidate model was evaluated based on its accuracy, latency, and memory usage. The accuracy was measured using mean Average Precision (mAP), while latency and memory usage were recorded for each model. <a href="https://arxiv.org/html/2410.10887v2">This comprehensive evaluation ensured that the best-performing models were identified based on a balanced trade-off between these metrics</a><a href="https://arxiv.org/abs/2410.10887">2</a>.</li><li><strong>Hardware-Aware Optimization</strong>: The ActNAS approach also incorporated hardware-aware optimization techniques. <a href="https://arxiv.org/html/2410.10887v2">This involved tailoring the models to leverage architectural and compiler-level optimizations specific to each hardware platform, ensuring optimal performance across diverse devices</a><a href="https://arxiv.org/abs/2410.10887">2</a>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6G8wRpLSNm8uAumdHiAWQA.png" /><figcaption><em>Figure 2: Activation NAS Process</em></figcaption></figure><p><strong>Results</strong></p><p>The results of the ActNAS approach were significant:</p><ul><li><strong>Performance Improvement</strong>: The best model generated through ActNAS demonstrated a slight improvement in mAP compared to the baseline SiLU model. <a href="https://arxiv.org/html/2410.10887v2">Specifically, the model was 22.28% faster and consumed 64.15% less memory on the reference NPU device1</a>.</li><li><strong>Efficiency Gains</strong>: The mixed activation models showed a reduction in latency by 30–70% compared to the baseline model using SiLU activation across all layers. <a href="https://arxiv.org/html/2410.10887v2">This highlights the potential of mixed activation functions in enhancing model efficiency</a><a href="https://arxiv.org/abs/2410.10887">2</a>.</li><li><strong>Hardware Adaptability</strong>: The hardware-aware models were able to leverage architectural and compiler-level optimizations, resulting in highly efficient performance tailored to each hardware platform. <a href="https://arxiv.org/html/2410.10887v2">However, it was noted that a model optimized for one device might not necessarily perform well on another type of device</a><a href="https://arxiv.org/abs/2410.10887">2</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BhhlAty6CN4qs6nEMHIa-g.png" /><figcaption><em>Figure 3: Performance of YOLO5n reference models and ActNAS models on different edge devices</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IFcC_GC7GjDqWeYnnEfwg.png" /><figcaption><em>Figure 4: Performance of YOLO8m reference models and ActNAS models on different edge NPUs</em></figcaption></figure><p><strong>Implications and Future Directions</strong></p><p>The implications of this research are far-reaching. By demonstrating that mixed activation functions can significantly enhance the efficiency of YOLO, and by extension CNN models in general, ActNAS paves the way for more robust and adaptable machine learning applications. This innovation is particularly relevant for edge computing, where resource constraints necessitate highly efficient models.</p><p>Future research could explore the application of ActNAS to other neural network architectures, potentially unlocking new levels of performance across a broader range of tasks. Additionally, the integration of hardware-aware optimization techniques could further enhance the adaptability of these models, ensuring optimal performance across diverse hardware platforms.</p><p><strong>Conclusion</strong></p><p>The introduction of ActNAS marks a significant milestone in the evolution of CNN model design. By harnessing the power of mixed activation functions, this approach not only improves model efficiency but also opens new avenues for the deployment of machine learning applications in real-world scenarios. As the field continues to evolve, innovations like ActNAS will undoubtedly play a crucial role in shaping the future of artificial intelligence.</p><p><a href="https://arxiv.org/html/2410.10887v2%22%20/t%20%22_blank">1</a>: <a href="https://arxiv.org/abs/2410.10887">ActNAS: Generating Efficient YOLO Models using Activation NAS — arXiv.org</a><a href="https://arxiv.org/html/2410.10887v2"> </a><a href="https://arxiv.org/abs/2410.10887">2</a>: <a href="https://arxiv.org/html/2410.10887v2">ActNAS: Generating Efficient YOLO Models using Activation NAS — arXiv.org</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12e916074bb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Edge AI: How Better Models Will Drive AI Processor Sales]]></title>
            <link>https://medium.com/@deeplite_team/unlocking-edge-ai-how-better-models-will-drive-ai-processor-sales-13340fae5b59?source=rss-35885f4ff299------2</link>
            <guid isPermaLink="false">https://medium.com/p/13340fae5b59</guid>
            <category><![CDATA[ai-processor]]></category>
            <category><![CDATA[edge-ai]]></category>
            <category><![CDATA[npu]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai-model-deployment]]></category>
            <dc:creator><![CDATA[Deeplite]]></dc:creator>
            <pubDate>Fri, 13 Sep 2024 20:09:25 GMT</pubDate>
            <atom:updated>2024-09-16T14:04:46.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Unlocking Edge AI: How Better Models Will Drive AI Processor Sales" src="https://cdn-images-1.medium.com/max/1024/1*Gz5_Jdu5NCUqSAUk7r3s7w.png" /></figure><p>The rapid advancements in artificial intelligence (AI) have revolutionized various industries, promising enhanced productivity, efficiency, and innovation. However, the journey from developing AI models to deploying them on AI processors is fraught with challenges. End users often struggle to make state-of-the-art models work on the latest AI processors, leading to delays in application delivery and impacting the sales of AI processors. This article explores these challenges and how a semiconductor company can assess the gaps in solving these challenges, and the tools they need to address them to accelerate AI processor sales and drive return on investment (ROI) for both end users and semiconductor companies.</p><p><a href="https://info.deeplite.ai/unlock_edge_ai_download_0-0"><strong>Download the White Paper</strong></a></p><h4>The Shift from Traditional Applications to AI</h4><p>Historically, end-users wrote their own code to run custom applications on processors and the semiconductor companies provided the processors as requested by the end-users. And it worked. In the traditional paradigm, the <em>end-user was expected </em>to develop their own application, and they were happy to do it. AI has changed this dynamic significantly. In the new paradigm, the <em>AI model </em><strong><em>is</em></strong><em> the application</em>!</p><p>When developing an AI application, person detection for example, the end-user doesn’t need to start from scratch. There are many open and closed source detection models that the end user can grab off the shelf. For end users, it’s about the performance of the model not the underlying code. It’s now about getting the model to run on the target hardware at the performance KPIs required by the application. This leads to a whole new set of challenges for the end-user that the semiconductor companies must now be ready to address.</p><h4>Challenges Faced by End Users in Edge AI</h4><p><strong>Technical Complexity</strong>: Developing and deploying AI models on edge devices involves significant technical complexity. End users must navigate various steps, including model selection, hardware selection, architecture modification, manual optimization, and post-processing code development. This traditional approach can take weeks or even months, delaying time to market and reducing ROI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6r2qaeNwI7BHtzJR0e_Jvw.jpeg" /><figcaption>Figure 1: Traditional approach to model deployment requires many tedious steps for end-users</figcaption></figure><p><strong>Compatibility Issues</strong>: State-of-the-art AI models are developed independently from the hardware processors that may ultimately run them. As the architecture behind these new models advance, these new techniques are often not supported on the AI processors in market. Semiconductor companies are always playing catch up. As a result, most semiconductor companies that excel in AI processor development lack deep learning models and use cases compatible with their existing hardware. This gap puts the onus on end users to adapt state-of-the-art models to work with the latest AI processors, often requiring extensive modifications and optimizations.</p><p><strong>Resource Constraints</strong>: Edge AI applications are constrained by limited processing power, energy consumption, and memory capacity. These limitations make it challenging to deploy sophisticated AI models efficiently on edge devices again falling at the feet of the end-users.</p><p><strong>Data Challenges</strong>: Collecting and preparing the right data for training AI models is another significant hurdle. Ensuring data quality, diversity, and relevance to the specific use case is crucial for achieving high model accuracy. Additionally, localized conditions can vary dramatically, affecting model performance at the edge. In this case, the semiconductor company can get a bye as the end-user is still responsible for getting good training data for their application but even here there a role to play for the semiconductor company.</p><h4>Impact on Chip Sales for Semiconductor Companies</h4><p>The challenges faced by end users in deploying AI models directly impact the sales of AI processors. Delays in application delivery slow down the sales cycle for AI processors, reducing revenue and ROI for semiconductor companies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Y2Yh3HI5nvsr54VPj5sww.jpeg" /><figcaption>Figure 2: Slower time to market for end-users means slower sales flow for semiconducter companies</figcaption></figure><p>According to McKinsey, AI could allow semiconductor companies to capture 40 to 50 percent of the total value from the technology stack, representing the best opportunity they’ve had in decades. However, to realize this potential, semiconductor companies must address the deployment challenges faced by end users.</p><h4>The Edge AI Maturity Landscape: Assessing Your Go to Market</h4><p>Deeplite’s Edge AI Maturity Landscape is a simple tool designed to help provide a high-level assessment of the Edge AI maturity of semiconductor companies. This matrix considers maturity on two dimensions:</p><p><strong>AI Processor Maturity (X-axis)</strong>: This dimension assesses whether the company has an NPU (neural processing unit or AI processor), multiple NPUs, or is working on a next-generation NPU, along with the robustness of their software stack.</p><p><strong>AI Model Zoo Maturity (Y-axis)</strong>: This dimension evaluates the existence of an AI model zoo, legacy vs. SOTA models, the number of use cases, and the ease of deploying models on the target hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKWIb9E-pNiPryt30XbG7Q.jpeg" /><figcaption>Figure 3: Edge AI Maturity Landscape</figcaption></figure><p>It’s not uncommon for leading semiconductor companies that are strong on AI processor maturity to have some work to do with respect to the model side of the assessment. The shift from traditional application development to AI applications where the model is the application has changed the end-user/semiconductor company relationship. Semiconductor companies that recognize and address this shift will be the big winners in the edge AI revolution.</p><h4>Best Practices for Enhancing Model Zoo Maturity &amp; End-User Convenience</h4><p>So, what’s a semiconductor company with one or more NPUs to do? The solutions are quite straight forward actually. The following best practices will help you bend the curve to top right on the AI Maturity Landscape.</p><p><strong>Robust SOTA Models</strong>: A best practice is to curate and maintain a comprehensive library of pre-optimized, commercially viable models for computer vision (CV) and generative AI (GenAI) applications. These models should be licenses for commercial use and certified on specific processors to ensure compatibility, which minimizes the need for extensive modifications by end users.</p><p><strong>Unambiguous Benchmarks</strong>: Providing clear and precise benchmarks for AI processors, especially for the pre-optimized model zoos, is crucial. These benchmarks help end-users easily identify models that meet their specific application Key Performance Indicators (KPIs). This ensures that users can select the most suitable models for their needs, leading to more efficient and effective AI implementations.</p><p><strong>Integrated Development Environment</strong>: Providing an integrated platform where end users can select the most suitable model from the model library, fine-tune it with their data, and deploy it seamlessly into real-world applications on their chosen processors is a key best practice. Such a platform should offer a complete suite of tools for model exploration, analytics, training, and deployment.</p><p><strong>Pre-Built Post-Processing Code</strong>: Including pre-built post-processing code within the model library can significantly expedite the deployment process for end users by reducing the time spent on manual optimization and code development.</p><p><strong>Synthetic Data Generation and Localized Learning Tools</strong>: To enhance model accuracy and performance at the edge, tools that enable synthetic data generation and localized learning are essential. They allow end users to augment their data sets with synthetic data and adapt models to local conditions effectively.</p><h4>Accelerating AI Processor Sales and ROI</h4><p>By providing robust pre-optimized models for a variety of common use cases and simplifying the deployment process, edge focused semiconductor companies can dramatically accelerate the time to market for AI applications. This, in turn, speeds up the sales cycle for AI processors, driving revenue and ROI for semiconductor companies. Here’s how:</p><p><strong>Faster Time to Market</strong>: Reduces the time required for model selection, optimization, and deployment from weeks or months to hours or days. This enables end users to bring AI applications to market faster, gaining a competitive edge and increasing revenue.</p><p><strong>Higher Model Accuracy</strong>: Providing tools for fine-tuning and synthetic data generation ensures that end users can achieve high model accuracy. This improves the performance of AI applications, enhancing user confidence and driving adoption.</p><p><strong>Reduced Costs</strong>: A pre-optimized model zoo and corresponding post-processing code reduces the need for extensive manual optimization and development, lowering deployment costs for end users. This gets applications into production faster and incentivises the development of even more applications.</p><p><strong>Increased Processor Sales</strong>: As end users can deploy AI models more efficiently, the demand for AI processors increases. Semiconductor companies benefit from accelerated sales cycles and higher revenue, capturing a larger share of the value from the AI technology stack.</p><h4>Conclusion</h4><p>The challenges faced by end users in deploying AI models on edge devices are significant, impacting the sales and ROI for semiconductor companies. Deeplite’s Edge AI Maturity Landscape offers a simple assessment tool for a semiconductor company to define their own edge AI maturity level.</p><p>By providing a comprehensive set of pre-optimized models for their AI processors along with the tools for fine-tuning and deployment for their customers, semiconductor companies will accelerate the time to market for AI applications, driving revenue and ROI for both them and their end users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6VF-268qS-nt5oihKR_uQ.jpeg" /><figcaption>Figure 4: Getting to top right drives ROI for end users and semiconductor companies</figcaption></figure><p><a href="https://info.deeplite.ai/unlock_edge_ai_download_0-0"><strong>Download the White Paper</strong></a></p><h4>About Deeplite</h4><p>Deeplite dramatically accelerates the adoption of NPUs and reduces the time to market for AI applications by offering state-of-the-art models, pre-optimized for your AI processors along with the necessary tools for training and deploying these models into a production environment.</p><p>Since, 2019 Deeplite has developed a comprehensive suite of hardware agnostic and hardware aware AI model optimization IP. Using these advanced techniques, Deeplite’s Models-as-a-Service and Deeplite Studio are bending the Edge AI Maturity curve to top right for our semiconductor customers and giving their end-users the tools they need to rapidly evaluate, test and deploy AI applications into the real world. Visit <a href="http://www.deeplite.ai/">www.deeplite.ai</a> for more information or contact us at <a href="/service/mailto:info@deeplite.ai">info@deeplite.ai</a>.</p><p>Article authored by <a href="https://www.linkedin.com/in/nickromanoprofile/"><strong>Nick Romano</strong></a>, Cofounder and CEO, Deeplite, Inc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13340fae5b59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing YOLOBench: Benchmarking Efficient Object Detectors on Embedded Systems]]></title>
            <link>https://medium.com/@deeplite_team/introducing-yolobench-benchmarking-efficient-object-detectors-on-embedded-systems-ceff516ccbca?source=rss-35885f4ff299------2</link>
            <guid isPermaLink="false">https://medium.com/p/ceff516ccbca</guid>
            <category><![CDATA[yolo]]></category>
            <category><![CDATA[edge-ai]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <dc:creator><![CDATA[Deeplite]]></dc:creator>
            <pubDate>Wed, 25 Oct 2023 18:42:17 GMT</pubDate>
            <atom:updated>2024-01-30T20:55:52.075Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>We are excited to release YOLOBench, a latency-accuracy benchmark of over 900 YOLO-based object detectors for embedded use cases (Accepted at the ICCV 2023 </strong><a href="https://sites.google.com/view/rcv2023/"><strong>RCV workshop</strong></a><strong>, you can read the full paper on </strong><a href="https://arxiv.org/abs/2307.13901v2"><strong>arXiv</strong></a><strong>).</strong></p><p><em>TL;DR — Check out the interactive </em><a href="https://huggingface.co/spaces/deepliteai/yolobench"><strong><em>YOLOBench app</em></strong></a><em> on HuggingFace Spaces where you can find the best YOLO model for your edge device!</em></p><p><strong>Background</strong></p><p>Choosing a YOLO object detection model in 2023 is more difficult than it may seem. Since the YOLOv3 architecture was introduced back in 2018, a whole zoo of improved YOLO-based object detection architectures has been introduced from YOLOv4, YOLOR, and Scaled-YOLOv4 to most recently YOLOv8, YOLO-NAS and GoldYOLO. While these models constantly push the Pareto frontier hitting the optimal balance of inference latency and detection accuracy on benchmark datasets such as MSCOCO, it is often not clear how a given model would perform on specific target domain data and what prediction latency per image it would reach on the target hardware.</p><p>Below are good examples of plots used to compare architectures from the YOLO series with each other:</p><figure><img alt="Comparison on MS COCO min-val on a V100" src="https://cdn-images-1.medium.com/max/1024/1*vJuVodKLibcO2SLMUGeneQ.png" /><figcaption>Figure 1 — Source: <a href="https://twitter.com/alexeyab84/status/1662595900651237377">Alexey Bochkovskiy on Twitter</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMNBP33b0UGyan0jgc3szw.png" /><figcaption>Figure 2 — Source: Ultralytics YOLOv8 repository</figcaption></figure><p>or maybe like this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hSZsG0a8nHyb0zJphgP-MQ.png" /><figcaption>Figure 3 — Source: <a href="http://arxiv.org/abs/2301.05586">arxiv.org/abs/2301.05586</a></figcaption></figure><p>Looking at these plots, it is not obvious which of the YOLO models is best suited for a given use case. All the benchmarks above report MS-COCO minival mAP@0.5:0.95 numbers (on 640x640 images), but the latency numbers presented are collected from a V100 GPU in one case, an A100 GPU in another, and finally a Tesla T4 GPU. But what if the use case is to deploy a model to detect shelf items in a retail store on a Raspberry Pi 4 board with TFLite or on a board with a specialized accelerator chip, like Orange Pi or Khadas VIM3? The numbers above don’t translate well to an embedded use case with a model running on very different hardware.</p><p>Furthermore, distinctions within the YOLO series extend beyond mere variations in neural network architecture. They encompass diverse aspects of the training process, from distinct implementations of the training loop, various training strategies, loss functions, and data augmentation techniques, to a wide array of hyperparameter configurations. For example, some of the YOLO models, like YOLOv5 and YOLOv7, have anchor-based detection heads, while others like YOLOv6 and YOLOv8 are anchor-free. This poses a multi-dimensional complexity for anyone who would attempt to disentangle the effects brought about by the actual architectural advances (e.g. RepVGG-style blocks and ELAN blocks of YOLOv7) vs. the many other factors that also play a role in the final mean average precision score. Add to this the fact that we still don’t have the latency numbers we get for all these models on embedded boards. The hardware where we want to deploy our model!</p><p>To summarize, there are several issues one should consider when thinking about the generalization of existing benchmarks:</p><ul><li>Approximate proxy metrics for latency such as the number of parameters or the MAC count are used in some benchmarks, while others report inference latency on server-grade GPUs such as V100 or A100. Both of these approaches do not directly translate into the actual latency on embedded devices (where inference can be done on edge GPUs, CPUs, NPUs etc.),</li><li>Mean average precision scores are reported on the COCO minival or test dataset, which might not directly map to data from a specific production domain,</li><li>Some architecture parameters are considered fixed during benchmarking (like the input image resolution, which is usually fixed at 640x640 for COCO), but are known to act as useful scaling “knobs“ that move the model in the accuracy-latency space (refer to the <a href="https://arxiv.org/abs/2010.14819">TinyNet paper</a> for more details on this),</li><li>Finally, as we mentioned above, many things are different between model families even within a single reported benchmark, starting from training loop implementation, all the way to using extra data (e.g. pre-training on the larger Objects365 dataset) or pseudo-labelling the extra unlabelled images from COCO dataset.</li></ul><p><strong>Introducing YOLOBench</strong></p><p>To address the challenges of how modern YOLO models compare against each other on embedded hardware in fair and controlled conditions, we have created <a href="https://arxiv.org/abs/2307.13901">YOLOBench</a>, a benchmark dataset of latency and accuracy values of over 900 models ranging from YOLOv3 to YOLOv8 architectures on 4 datasets and 5 initial hardware platforms. We have focused our attention on different backbone and neck topologies of YOLO models, while fixing all the other dimensions in the possible solution space, such as the training code, the hyperparameter settings, the detection head structure, and loss function. This enabled us to separate the effect that YOLO backbone and neck have when all other training pipeline features are fixed. To accomplish this, we used a state-of-the-art training pipeline provided by Ultralytics for YOLOv8, combined with the same detection head and loss function from that codebase.</p><p>While using other training pipelines or tricks might result in better results for a given YOLO model, our approach was to evaluate how different backbone-neck structures introduced in the YOLO series compare against each other when other pipeline components are fixed. We wanted to answer questions such as does most of the gain in latency-accuracy trade-off come from the DNN topologies proposed in YOLOv6, v7, and v8 compared to older models like YOLOv3 and v4?</p><p>There is quite a lot of innovation that came with each new YOLO architecture in terms of the backbone and neck structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9Djmeno0lnou1NNRGhkVA.png" /><figcaption>Figure 4 — Model architectures and hyperparameters used to generate the YOLOBench search space</figcaption></figure><p>Each model in the series is distinct in the DNN blocks used to build the architecture such as the usage of RepVGG-style blocks in YOLOv6 to the more efficient ELAN and C2f bottlenecks of YOLOv7 and YOLOv8. There are usually only a few model variations for each YOLO in the depth-width space considered, such as the <em>n</em>, <em>s</em>, <em>m</em> and <em>l </em>models in YOLOv5 and YOLOv8 releases. With YOLOBench, we have expanded the coverage by looking at 12 depth-width variations, each one at 11 different input resolutions, from 160x160 to 480x480. This results in 132 models per architecture in the YOLO series.</p><p>Applying this approach to all the different YOLO families considered, this resulted in about 1000 architectures in the search space. We filtered out some of these models by training the whole search space on the VOC dataset from scratch and only including the models close to the latency-accuracy Pareto frontier. The selected models were then pre-trained on COCO, as is typically done, and then fine-tuned on 3 different downstream datasets (VOC, WIDER FACE, and SKU-110k), each with different input resolutions.</p><p>The inference latency values were measured on an initial set of 5 different hardware platforms:</p><ul><li>NVIDIA Jetson Nano GPU (ONNX Runtime, FP32)</li><li>Khadas VIM3 NPU (AML NPU SDK, INT16)</li><li>Raspberry Pi 4 Model B CPU (TFLite with XNNPACK, FP32)</li><li>Intel® Core™i7–10875H CPU (OpenVINO, FP32)</li><li>OrangePi NPU (RKNN-Toolkit2, FP16)</li></ul><p><strong>The Result</strong></p><p>In our YOLOBench benchmarks, we made a fascinating discovery. Your choice of hardware matters! We dug deep into the performance trends of YOLO models and found that the perfect choice isn’t just about what you’re trying to do but also where you plan to run it. Instead of a one-size-fits-all, there are many sweet spots in YOLO-based object detection models. In addition, adjusting things such as depth, width, and resolution (in a smart way!) can have a big impact on accuracy and speed.</p><p>So, without further ado let’s look at the results starting with the VOC dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8xxX1rYFv1L8YsG6R7QRmw.png" /><figcaption>Figure 5 — VOC dataset results on different hardware</figcaption></figure><p>Quite a lot going on there! Each point in the above plot represents one model (one architecture at one input resolution). What if, for a better visualization, we only plotted those points that belong to the <em>Pareto frontier</em> in the latency-accuracy space?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mL6abDnMzw6wqPxX2pXsBw.png" /><figcaption>Figure 6 — Pareto Frontier, VOC on different hardware</figcaption></figure><p>Now we can see some peculiarities in these data. Here’s the juicy part: different hardware platforms have their own set of best models. As you can see, there is quite a lot going on in the optimal model set! Some patterns show YOLOv7 models being prominent in the higher mAP region on all hardware except on the VIM3 NPU, where it was YOLOv6–3.0 that shone! Interestingly, by leveraging a modern training pipeline and a new detection head we also see some YOLOv3 and YOLOv4 models on the Pareto frontier! The reality is that there is no single winner here. Your choice for your optimal model depends on your task and the hardware you will deploy to.</p><p>Here is another good example. Below are the results for the SKU-110k dataset. This is a specific dataset designed for retail item detection. Clearly a domain quite different from VOC and MSCOCO:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O9rPWxAUmxQirrAnVmmOXQ.png" /><figcaption>Figure 7 — Pareto Frontier MS COCO on same hardware as Figure 6</figcaption></figure><p>Quite the difference! The YOLOv7 models shine less, but more YOLOv5 models appear in the optimal set. On the VIM3 NPU, YOLOv6 models clearly take the lead, while they also maintain a significant presence on ARM CPUs within the Pareto frontier. On the other side, the GPU and Intel CPU plots reveal a more diverse landscape. Surprisingly, the newer, V8 models do not dominate these scenarios.</p><p><strong>Conclusion</strong></p><p>There is no silver bullet in YOLO-based models. The best pick strongly depends on your use case, hardware choice and how you tweak things like depth-width and input resolution. The insights available in YOLOBench just might be your secret recipe for finding the perfect model. You can get more tips and tricks in our <a href="https://arxiv.org/abs/2307.13901v2">paper</a> or check out our <a href="https://huggingface.co/spaces/deepliteai/yolobench">YOLOBench</a> interactive HuggingFace spaces application! Select your preferred dataset, target hardware and see the results across the YOLO-based models with instructions on downloading and using your preferred model.</p><p><strong>Want to add your hardware to </strong><a href="https://huggingface.co/spaces/deepliteai/yolobench"><strong>YOLOBench</strong></a><strong>?</strong></p><p>Our initial set of benchmark hardware is just a start! Showcase your hardware with YOLOBench users by adding results from more models and datasets on different set of hardware devices. If you’d like to have your hardware benchmarked on over 900 YOLO-based object detectors you can find the instructions here and we’ll get right back to you!</p><p><a href="https://info.deeplite.ai/add_yolobench_data"><strong><em>GET MY YOLOBENCH HARDWARE KIT!</em></strong></a></p><p>Tune in to the next blogpost in this series to see how YOLOBench data could be used to discover new YOLO-like architectures, which are optimal for a specific embedded device of interest!</p><p>Original article authored by:<br><strong>Ivan Lazarevich Ph.D.</strong>, Deep Learning Engineer Lead, Deeplite, Inc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ceff516ccbca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>