<?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 K Jagrutha Aditya on Medium]]></title>
        <description><![CDATA[Stories by K Jagrutha Aditya on Medium]]></description>
        <link>https://medium.com/@kja8586?source=rss-14cc797ab895------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tNe9RxzVzGj3W-XY</url>
            <title>Stories by K Jagrutha Aditya on Medium</title>
            <link>https://medium.com/@kja8586?source=rss-14cc797ab895------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:12:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kja8586/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[Edge AI and Model Optimization: Making AI Efficient]]></title>
            <link>https://medium.com/@kja8586/edge-ai-and-model-optimization-making-ai-efficient-cc0ab8efd51d?source=rss-14cc797ab895------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc0ab8efd51d</guid>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[edge-ai]]></category>
            <category><![CDATA[performance-evaluation]]></category>
            <category><![CDATA[model-optimization]]></category>
            <dc:creator><![CDATA[K Jagrutha Aditya]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 09:09:29 GMT</pubDate>
            <atom:updated>2026-03-03T09:09:29.345Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Brief Introduction to Edge AI</strong></h3><p>Traditionally, AI models run on powerful cloud servers where data is sent, processed, and returned with predictions. This approach, known as <strong>Cloud AI</strong>, offers high computational power but depends heavily on internet connectivity and centralized infrastructure.</p><p>In contrast, <strong>Edge AI</strong> runs machine learning models directly on local devices such as smartphones, IoT sensors, cameras, and embedded systems. Instead of sending data to the cloud, computation happens near the data source — at the “edge” of the network.</p><h4><strong>Cloud AI vs Edge AI</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwCA2eBPagqRLg05TPqMVQ.png" /></figure><h4><strong>Why Do We Need Edge AI?</strong></h4><p>Edge AI is essential because:</p><ul><li><strong>Real-time decisions — </strong>Critical in autonomous systems and smart devices</li><li><strong>Privacy</strong> — Sensitive data stays on-device</li><li><strong>Limited connectivity</strong> — Works without constant internet</li><li><strong>Reduced bandwidth cost</strong> — Less data transmission</li></ul><p>However, edge devices have <strong>limited memory, storage, and computational power</strong>. This makes deploying large deep learning models challenging.</p><p>This is where <strong>model optimization techniques</strong> become crucial.</p><h3>Model Optimization Techniques for Edge AI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2bGvfjUJaDtpK4PAJp7LRQ.png" /><figcaption>Major Model Optimization techniques</figcaption></figure><h4><strong>Model Pruning</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*yy-I2EQvzUWj3hCjF1lcGA.png" /><figcaption>Sample model pruning</figcaption></figure><p>How it works?</p><ul><li>Removes unimportant or near- zero weights.</li><li>Leads to sparsity — fewer computations and smaller files.</li></ul><p>Types:</p><ul><li>Unstructured pruning: Removes individual weights (fine-grained).</li><li>Structured pruning: Removes filters, channels, or neurons (hardware-friendly).</li></ul><p><strong>Unstructured Pruning</strong></p><p>Remove individual weights (connections) based on some criterion, usually:</p><ul><li>Smallest magnitude (|w|)</li><li>Least contribution to loss</li></ul><p>Advantages:</p><ul><li>High compression ratio</li><li>Maintains model’s original structure</li><li>Can prune up to 80–95% of weights</li></ul><p>Disadvantages:</p><ul><li>Sparse structure is irregular → BAD for GPUs/CPUs/MCUs</li><li>Requires special sparse kernels to benefit</li><li>Edge AI accelerators vary in support</li></ul><p><strong>Structured Pruning</strong></p><p>This removes entire filters, channels, heads, neurons, or blocks. Instead of pruning weights inside a filter, we remove whole filters.<br>Advantages:</p><ul><li>Hardware-friendly → reduces FLOPs directly</li><li>Easy to accelerate on: ARM CPUs ,NVIDIA GPUs, Edge AI accelerators (Hailo, GPX10)</li><li>Reduces: Latency, Power, Memory footprints</li></ul><p>Disadvantages:</p><ul><li>Lower compression than unstructured pruning</li><li>Risk of accuracy drop if pruning too much</li></ul><h4>Weight Clustering</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*qN5FMk-ra6GHcshR13ak5g.png" /><figcaption>Weight clustering example</figcaption></figure><p>How it works?</p><ul><li>Groups similar weights into clusters with shared values.</li><li>Reduces entropy and improves compression ratio.</li><li>Helps after pruning by quantizing remaining weights.</li><li>Typically 8–32 clusters per layer.</li></ul><h4>Quantization</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*pgOHROV-iWBUwLx8b9MUyQ.png" /></figure><p>How it works?</p><ul><li>Converts FP32 weights/activations to INT8 or lower.</li></ul><p>Types:</p><ul><li>Post-Training Quantization (PTQ)– After training, simple conversion.</li><li>Quantization-Aware Training (QAT) — Simulates quantization during training to preserve accuracy.</li></ul><p>Major benefits:</p><ul><li>4× smaller model</li><li>2–4× faster inference</li><li>Lower energy consumption</li></ul><h4>Other Optimization techniques:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*Ti6GuijTE-vQt_X2WNvygw.png" /><figcaption>Knowledge Distillation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*w98WVsuKTB44uBxbdcCgkA.png" /><figcaption>Neural Architecture Search(NAS)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*y6eXdgwZQy8T8d_Of67p9g.png" /><figcaption>Lower Rank Factorization</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*mpJDRfXA5hBgn-F6wGCYnQ.png" /><figcaption>Compiler Graph Optimization</figcaption></figure><h3><strong>Conclusion</strong></h3><p>Edge AI enables intelligent systems to operate directly on devices, improving latency, privacy, and reliability. However, due to hardware limitations, model optimization becomes essential.</p><p>Techniques like:</p><ul><li>Pruning</li><li>Weight clustering</li><li>Quantization</li><li>Knowledge distillation and more</li></ul><p>help make AI models smaller, faster, and more energy-efficient — enabling real-world Edge AI applications.</p><p>For basic code refer:</p><p><a href="https://github.com/kja8586/Model_Optimization">GitHub - kja8586/Model_Optimization</a></p><p>The above repo contains a pipeline to optimize a baseline CNN model that can be deployed on edge devices.</p><p>In the repo the pipeline follows the following order:</p><ul><li>Structured Pruning</li><li>Unstructured pruning</li><li>Weight Clustering</li><li>Quantization Aware Training</li><li>Conversion to tflite</li></ul><p>Each strategy is evaluated using:</p><ul><li>Model Accuracy</li><li>Raw Model Size (KB)</li><li>Gzipped Model Size (KB)</li><li>Total Parameters</li><li>Convolution Filter Count</li></ul><p>This makes it easy to compare trade-offs between compression and performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc0ab8efd51d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>