Chapter 1. INTRODUCTION
1.1 Challenges in Heterogeneous Edge Computing Systems
The proliferation of Internet of Things (IoT) devices and the increasing demand for real-time data processing have propelled the adoption of edge computing. Heterogeneous edge computing systems, which integrate diverse processing units such as general-purpose CPUs and specialized Neural Processing Units (NPUs), offer enhanced performance and energy efficiency by catering to varied computational tasks. However, this heterogeneity introduces significant challenges in resource management, particularly in balancing computational workloads and memory bandwidth utilization. The shared memory architecture between the main core and the NPU often becomes a bottleneck, leading to contention and reduced system performance. Effective management of memory bandwidth is critical to ensure seamless task execution, especially when handling priority-based applications that demand different levels of computational resources and memory access patterns.
1.2 Shared Memory Resource Management
In heterogeneous edge computing environments, the main core and the NPU typically share a common memory pool. This shared architecture necessitates sophisticated memory management strategies to prevent contention and ensure that high-priority tasks receive the necessary bandwidth without being impeded by lower-priority operations. Traditional memory management techniques focus on static allocation or simple dynamic allocation based on fixed priorities. However, these approaches often fail to adapt to the dynamic nature of real-time applications, leading to suboptimal performance and inefficient resource utilization. Dynamic memory bandwidth management that can respond to instantaneous system conditions and task priorities is essential for maintaining high throughput and low latency in edge computing systems.
1.3 Quantization Techniques in Edge Computing
Quantization is a widely adopted technique in deep learning model optimization, especially for deployment on resource-constrained edge devices. By reducing the precision of neural network weights and activations, quantization decreases memory footprint and computational complexity, enabling faster inference and lower energy consumption. Fixed-point quantization schemes, such as INT8, are particularly favored for their compatibility with existing hardware accelerators. However, the choice of quantization levels significantly impacts both the accuracy of the neural network and the efficiency of memory bandwidth utilization. Adaptive quantization strategies that can dynamically adjust quantization levels based on real-time system conditions and task priorities present a promising avenue for enhancing the performance of heterogeneous edge computing systems.
1.4 Limitations of Current Approaches
Despite the advancements in quantization and memory management techniques, several limitations persist in current heterogeneous edge computing systems:
- Static Quantization Levels: Most existing quantization methods employ fixed quantization levels that do not adapt to varying memory bandwidth conditions or task priorities, leading to inefficiencies in resource utilization.
- Lack of Priority-Based Management: Traditional memory management approaches often do not account for the varying priorities of tasks, resulting in scenarios where high-priority tasks may experience delays due to contention with lower-priority operations.
- Memory Congestion: Shared memory architectures can suffer from congestion, especially when multiple processing units simultaneously access memory with high bandwidth demands, degrading overall system performance.
- Accuracy Trade-offs: Aggressive quantization can lead to significant accuracy losses in neural network models, particularly in scenarios requiring high precision, such as medical image analysis or security applications.
Addressing these limitations is crucial for developing robust and efficient heterogeneous edge computing systems capable of handling diverse and demanding real-time applications.
1.5 Research Goal
This thesis aims to address the challenges of memory bandwidth management and task prioritization in heterogeneous edge computing systems through the development of a dynamic quantization strategy. The primary objectives are as follows:
- Dynamic Quantization Control: Develop an adaptive quantization mechanism that adjusts the quantization levels of NPU tasks in real-time based on current memory bandwidth conditions and the priorities of executing tasks.
- Priority-Based Task Management: Implement a priority-based scheduler that allocates memory bandwidth preferentially to high-priority tasks executed by the main core, while dynamically reducing the quantization bits for lower-priority NPU tasks to alleviate memory congestion.
- Efficient Resource Utilization: Ensure optimal utilization of shared memory resources by balancing memory bandwidth allocation between the main core and the NPU, thereby enhancing overall system performance without compromising the accuracy required for critical applications.
- Performance Evaluation: Conduct comprehensive experiments to evaluate the effectiveness of the proposed adaptive quantization approach in managing memory bandwidth and improving system performance in various heterogeneous edge computing scenarios.
By achieving these objectives, the proposed framework seeks to enhance the performance and reliability of heterogeneous edge computing systems, making them more suitable for deployment in environments with stringent real-time processing and accuracy requirements.
1.6 Outline of the Thesis
This thesis is structured as follows:
-
Chapter 2: Background and Related Work
This chapter reviews the existing literature on heterogeneous edge computing systems, memory bandwidth management, and quantization techniques. It discusses the limitations of current approaches and identifies gaps that the proposed research aims to address.
-
Chapter 3: System Architecture and Design
This chapter presents the overall architecture of the proposed bandwidth-aware quantization control framework. It details the dynamic quantization strategy, priority-based task management mechanisms, and the integration between the main core and the NPU.
-
Chapter 4: Dynamic Quantization Mechanism
This chapter delves into the specifics of the adaptive quantization strategy, including the algorithms used to adjust quantization levels based on real-time memory bandwidth conditions and task priorities.
-
Chapter 5: Priority-Based Task Scheduling
This chapter describes the design and implementation of the priority-based scheduler that dynamically allocates memory bandwidth to tasks based on their priority levels.
-
Chapter 6: Experimental Setup and Evaluation
This chapter outlines the experimental setup, including the hardware and software environments used for testing. It presents the methodology for evaluating the performance of the proposed framework and discusses the results obtained from various benchmark scenarios.
-
Chapter 7: Discussion and Future Work
This chapter interprets the experimental results, highlighting the strengths and potential areas for improvement in the proposed approach. It also suggests directions for future research to further enhance memory bandwidth management and task prioritization in heterogeneous edge computing systems.
-
Chapter 8: Conclusion
This chapter provides a summary of the research contributions, reiterates the significance of the findings, and concludes the thesis.
Contributions of This Work
-
Adaptive Quantization Strategy: Developed a dynamic quantization control mechanism that adjusts quantization levels in real-time based on memory bandwidth conditions and task priorities, optimizing resource utilization in heterogeneous edge computing systems.
-
Priority-Based Memory Bandwidth Management: Implemented a priority-based task scheduler that ensures high-priority tasks receive preferential access to memory bandwidth, thereby mitigating congestion and enhancing system responsiveness.
-
Improved System Performance: Demonstrated significant performance improvements through experimental evaluations, showcasing the effectiveness of the adaptive quantization approach in managing memory bandwidth and maintaining task accuracy.
-
Framework for Heterogeneous Systems: Established a comprehensive framework that integrates dynamic quantization control with priority-based task management, providing a scalable solution for diverse edge computing environments.
-
Empirical Validation: Conducted extensive experiments to validate the proposed framework across various scenarios, ensuring its robustness and applicability to real-world heterogeneous edge computing systems.
A. Abbreviations and Acronyms
- CPU - Central Processing Unit
- NPU - Neural Processing Unit
- GPU - Graphics Processing Unit
- FPGA - Field-Programmable Gate Array
- INT8 - 8-bit Integer
- FP32 - 32-bit Floating Point
- PIM - Processing-in-Memory
- QoS - Quality of Service
- SLA - Service Level Agreement
- DMBS - Dynamic Memory Bandwidth Scheduler
- QoE - Quality of Experience
- ML - Machine Learning
- CNN - Convolutional Neural Network
- DNN - Deep Neural Network
- IoT - Internet of Things