{"contenttype":"result","language":"en","availableLanguages":"en","rcn":"1164064","id":"101062011_PSHORIZON","title":"Periodic Reporting for period 1 - DIME (Distributed Inference for Energy-efficient Monitoring at the Network Edge)","teaser":"Deep Learning (DL) inference on data from end devices such as IoT sensors, smartphones, and drones enhances operational efficiency and functionality in sectors like industrial automation, smart cities, remote healthcare, and smart agriculture. Performing the DL inference...","description":"periodic","summary":"Deep Learning (DL) inference on data from end devices such as IoT sensors, smartphones, and drones enhances operational efficiency and functionality in sectors like industrial automation, smart cities, remote healthcare, and smart agriculture. Performing the DL inference locally on the devices, aka edge ML inference, promises to boost energy efficiency, responsiveness, and alleviate privacy concerns. Nevertheless, the research emphasis had been in design of embedded DL models with higher accuracy without systematically studying their latency and energy consumption on the devices. Consequently, existing distributed DL inference techniques does not achieve important trade-offs between accuracy, latency, and energy consumption. In this context, the DIME project has made significant contributions toward building efficient edge ML systems. \n\nIn order to understand the trade-offs between accuracy, latency, and on-device energy consumption per inference, in this project we conducted a comprehensive measurement study on multiple devices that span different processor types, including CPU, GPU and TPU, using datasets of varying complexity. Further, to assess the performance of distributed DL inference between a device and a server, we also conducted measurements for offloading the data samples using different communication protocols WiFi and Bluetooth, and the measurements for runtimes of state-of-the-art DL models on two distinct servers, one with NVDIA Tesla GPU and the other with A100 GPU. \n\nWe also studied the algorithmic problem of distributing the inference tasks between devices and the edge servers. We proposed a new inference load balancing algorithm that maximizes the inference accuracy while satisfying a delay constraint for the application. Further, we proposed a new distributed DL inference framework called Hierarchical Inference (HI). Using this framework, we did significant work on improving the efficiency of the DL inference systems. We also evaluated the performance of the HI systems using the measurements. The algorithmic strategies proposed in DIME enable reliable and energy-efficient inference on devices by augmenting their capabilities with large DL models in the cloud leading to the large-scale adoption of edge AI systems with significant societal and economic benefits","workPerformed":"1) The primary objective of ML research so far has been to find\/build models that provide the highest inference accuracy on the test dataset, while specialized hardware such as Graphic Processor Units (GPUs) and Tensor Processing Units (TPUs) have been used to accelerate the training and inference of the large ML models. Energy and latency per inference has received relatively less attention. This is especially true for embedded ML models, that have been designed in the recent past, to run on resource-constrained microcontroller units (MCUs). In DIME, we contributed to filling this gap by performing comprehensive measurements of accuracy, latency, and energy for running embedded Deep Learning models on five IoT devices ranging from a highly resource-constrained MCUs to a moderately powerful single-board computer with GPU. In particular, we studied two widely used commodity MCUs, Arduino Nano 33 BLE Sense and ESP32, one ML-specialized MCU, Coral Dev Board Micro, that has a TPU, and two popular single-board computers, Raspberry Pi, with a CPU, and Jetson Orin Nano, with a GPU, which are submitted in [Behera, 2024].\n\nEarly Exit with HI (EE-HI): Lower-latency on-device models are necessary for HI implementation. Toward this end, in [Behera, 2024], we proposed the EE-HI system by combining the HI system with the early exit technique [Teerapittayanon,2016], which reduces time per inference by introducing exit branches in between layers of the DL model. To this end, we modify the base models by adding early exit branches to create new local ML models. This allows for inferences to be accepted early based on the likelihood of the data sample being a simple sample. After the data samples are processed by the early exit local ML, HI is applied on top of it. We train a logistic regression module that decides if the local inference (at the final layer) for each data sample suffices or if it needs to be offloaded to the remote server for further inference. The proposed architecture of early exit with HI for Convolutional Neural Networks (CNNs) is shown in the figure below.\n\n[Behera, 2024] Adarsh Prasad Behera, Paulius Daubaris, I\u00f1aki Bravo, Jos\u00e9 Gallego, Roberto Morabito, Joerg Widmer, Jaya Prakash Varma Champati, \u201cExploring the Boundaries of On-Device Inference: When Tiny Falls Short, Go Hierarchical,\u201d under submission, ACM Conference on Embedded Networked Sensor Systems (SenSys), 2024.\n\n2) DIME contributed to new algorithmic solutions answering the question, where to schedule and perform the computation for ML inference (inference tasks) for applications from different end devices: locally on the device or on an edge server (near ML) or in the cloud (far ML)? Key aspects I considered in answering this question include, a) reliability and latency QoS requirement of the application, and b) energy consumption at the end devices and edge servers.  Inference Scheduling: We studied the problem of partitioning the set of inference tasks between a tinyML model on a device and an edge server for maximizing inference accuracy under delay constraint. We designed and implemented novel approximation algorithms on Raspberry Pi. We also showed that the algorithms are asymptotically optimal [Fresa,2023]. Further, to address efficient inference task scheduling in edge servers, we built an edge inference-serving system InferEdge [Fresa,2024], which optimizes both model selection and resource allocation. A novel aspect of InferEdge is that it facilitates a weight parameter to tune the trade-off between inference accuracy and average service rate. \n\n[Fresa,2023] Andrea Fresa, Jaya Prakash Champati, \u0022Offloading Algorithms for Maximizing Inference Accuracy on Edge Device in an Edge Intelligence System,\u0022 in IEEE Transactions on Parallel and Distributed Systems (TPDS), vol. 34, no. 7, pp. 2025-2039, July 2023.\n[Fresa,2025] Andrea Fresa, Claudio Fiandrino, Joerg Widmer, Jaya Prakash Champati, \u201cInferEdge: Online Model Selection and Resource Allocation for Efficient Inference at the Edge,\u201d planned submission, IEEE INFOCOM, 2025.\n\n3) DIME contributed to efficient distributed DL inference by proposing Hierarchical Inference (HI). In our work [Al-Atat, 2023], we showed the feasibility of HI for image classification applications. We used a simple threshold (for the confidence of the tinyML) for HI decisions in order to categorize if the classification output by the tinyML is correct or incorrect. Edge Impulse, a leading tinyML company, featured a post about [Ata23] citing HI as a promising distributed inference technique.  In [Beh23], we further explored using linear regression and model calibration [Guo17] techniques to improve the HI decision making beyond the simple threshold rule. Furthermore, noting that the ground truth about the accepted inference is not known to the end device, in [Moo23], we studied an online learning problem which falls in the domain of Prediction with Expert Advice (PEA) with the added challenge of continuous experts. In an ongoing work [Dutta, 2024], we transformed the problem into PEA with growing number of experts. For a natural extension of the Hedge algorithm we proved O(\u221a(T ln\u2061\u3016N_T \u3017 )) regret bound that improves over the lower bound O(\u221a(TN_T )). Further, as the devices are computing limited, we developed an efficient online learning algorithm that has smaller runtime and has O(\u221a(T ln\u2061\u3016N_T \u3017 )) regret [Al-Atat,2024].\n\n [Al-Atat, 2023] Ghina Al-Atat, Andrea Fresa, Adarsh P. Behera, Vishnu N. Moothedath, James Gross, Jaya Prakash Champati, \u201cThe Case for Hierarchical Deep Learning Inference at the Network Edge\u201d, in Proc.  NetAI workshop, ACM Mobisys, 2023.\n\n[Behera, 2023] Adarsh P. Behera, Roberto Morabito, Joerg Widmer, Jaya Prakash Champati, \u201cImproved Decision Module Selection for Hierarchical Inference in Resource-Constrained Edge Devices\u201d, in Proc. ACM MobiCom (short paper), 2023.\n\n[Moothedath,2024] Vishnu N. Moothedath, Jaya Prakash Champati, James Gross, \u0022Getting the Best Out of Both Worlds: Algorithms for Hierarchical Inference at the Edge,\u0022 in IEEE Transactions on Machine Learning in Communications and Networking, vol. 2, pp. 280-297, 2024.\n\n[Dutta, 2024] Puranjay Dutta, Jaya Prakash Champati, Sharayu Moharir, \u0022Improved Regret Bounds for Growing Number of Experts,\u0022 planned submission to Association for the Advancement of Artificial Intelligence (AAAI), 2025.\n\n[Al-Atat,2024] Ghina Al-Atat, Puranjay Datta, Sharayu Moharir, Jaya Prakash Champati, \u201cRegret Bounds for Online Learning for Hierarchical Inference,\u201d under submission, ACM International Symposium on Mobile Ad Hoc Networking and Computing (MobiHoc), 2024.","finalResults":"The results of the DIME project significantly contributed to performing efficient DL inference at the edge. Existing techniques for DL inference at the edge can be broadly classified into: 1) on-device inference, where all the inferences are performed locally, 2) DNN-partitioning, where a DL models is split between the device and an edge server, and 3) remote inference, where all the data samples are offloaded and the inferences are performed on edge server\/cloud. In this project, I advanced this line or research by proposing novel inference load balancing algorithms and designed the HI systems. Specifically, HI has been receiving considerable attention from other research groups working in the field of edge AI. The paper [Beytur, 2024], recently published in a top-tier conference IEEE INFOCOM, has extended the ideas of HI that I proposed in the DIME project.  \n\n[Beytur, 2024] Hasan Burhan Beytur, Ahmet Gunhan Aydin, Gustavo de Veciana, Haris Vikalo. \u201cOptimization of Offloading Policies for Accuracy-Delay Tradeoffs in Hierarchical Inference\u201d, in Proc. IEEE INFOCOM, 2024.\n\nFurther, the measurements study I did is unique and timely. They not served as a basis for evaluating different DL inference strategies on devices, but also are of independent interest to the embedded ML research community. We made them available for free access on Github. I also plan to submit the measurements as a tinyML benchmark at MLCommons,  a non-profit organization that aims to accelerate machine learning innovation. This will further increase DIME\u2019s positive impact on society through its use by industry as well.","periodNumber":"1","periodFrom":"2022-06-01","periodTo":"2024-05-31","reportTypeDescription":"Periodic Reporting for period 1","identifiers":{"reportId":"311023"},"sourceUpdateDate":"2024-08-22 01:43:58","contentCreationDate":"2024-09-03 16:43:14","contentUpdateDate":"2024-09-03 16:43:11","lastUpdateDate":"2025-01-21 18:10:12","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"pubsum","title":"Report Summary","description":"Result: Publishable summary (FP7 SESAM) and Summary for publication (H2020 SyGMa)","displayCode":"\/Report Summary","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"en","rcn":"239165","id":"101062011","acronym":"DIME","title":"Distributed Inference for Energy-efficient Monitoring at the Network Edge","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"project","title":"Project","description":"Project factsheets","displayCode":"\/Project","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/305\/967","title":"internet of things","displayCode":"\/natural sciences\/computer and information sciences\/internet\/internet of things","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/25\/73\/453\/58525161","title":"sensors","displayCode":"\/engineering and technology\/electrical engineering, electronic engineering, information engineering\/electronic engineering\/sensors","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"digitalAgenda","title":"Digital agenda","description":"This tracker monitors Horizon Europe\u2019s financial contribution to the development of digital technologies and the digitisation of the economy and society (known as \u2018Digital transition\u2019).","displayCode":"\/Digital agenda","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"cleanAir","title":"Clean air","description":"This tracker monitors the Horizon Europe\u2019s financial contribution to the clean air policy (National Emission Ceiling Directive) aiming to improve ambient air quality and tackle air pollution, to protect the environment and human health.","displayCode":"\/Clean air","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"ai","title":"Artificial intelligence","description":"This tracker monitors Horizon Europe\u2019s financial contribution to the development and deployment of AI-based technologies and solutions. Projects that develop AI-tools as part of their research method are included","displayCode":"\/Artificial intelligence","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"climate","title":"Climate action","description":"This tracker monitors the Horizon Europe\u2019s financial contribution to both mitigating climate change (e.g., contributions to the reduction of greenhouse gas emissions) and adapting to climate change by building resilience (e.g., regarding floods, droughts, spatial planning and better governance, adaptation to changing climate in value chains, etc.).","displayCode":"\/Climate action","attributes":{"weight":"40","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"biodiversity","title":"Biodiversity","description":"This tracker monitors the Horizon Europe\u2019s financial contribution to Europe\u2019s biodiversity\u2019s path to recovery including species protection, ecosystem conservation, and habitat rehabilitation, all essential for resilience in climate adaptation and addressing ecosystem services but also environmental crime and the health-environment connection.","displayCode":"\/Biodiversity","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"en","code":"HORIZON-TMA-MSCA-PF-EF","title":"HORIZON TMA MSCA Postdoctoral Fellowships - European Fellowships","description":"HORIZON TMA MSCA Postdoctoral Fellowships - European Fellowships","displayCode":"\/HORIZON TMA MSCA Postdoctoral Fellowships - European Fellowships","attributes":{"classification":"projectFundingSchemeCategory","type":"relatedProjectFundingSchemeCategory"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"en","rcn":"705729","id":"HORIZON.1.2","code":"HORIZON.1.2","frameworkProgramme":"HORIZON","pga":"HORIZON.1.2","title":"Marie Sk\u0142odowska-Curie Actions (MSCA)","parent":{"rcn":"705726\/705725","code":"HORIZON.1\/HORIZON"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"legalbasis","title":"Legal Basis","description":"Programme: Legal basis for research funding","displayCode":"\/Legal Basis","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedLegalBasis","uniqueProgrammePart":"true"}},{"availableLanguages":"en","rcn":"706003","id":"HORIZON_HORIZON-MSCA-2021-PF-01-01","code":"HORIZON-MSCA-2021-PF-01-01","frameworkProgramme":"HORIZON","title":"MSCA Postdoctoral Fellowships 2021","parent":{"rcn":"20300","code":"HORIZON-Topics"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"topic","title":"Topic","description":"Programme: Part of the Commission work programme implementing legal basis","displayCode":"\/Topic","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedTopic"}}]},"contenttype":"project","attributes":{"source":"corda","type":"relatedProject"}},{"language":"en","availableLanguages":"en,any","uri":"\/docs\/results\/horizon\/101062\/101062011_PS\/system1.png","alternativeText":"Hierarchical Inference framework for distributed DL inference","mimetype":"image\/png","size":"125952","contenttype":"webItem","attributes":{"source":"corda","type":"relatedResultAttachment"}},{"language":"en","availableLanguages":"en,any","uri":"\/docs\/results\/horizon\/101062\/101062011_PS\/eehi.png","alternativeText":"Hierarchical Inference with Early Exit technique in CNN","mimetype":"image\/png","size":"38912","contenttype":"webItem","attributes":{"source":"corda","type":"relatedResultAttachment"}}]},"modelVersion":"132","icaVersion":"20.0.1-7111aba0"}