cgra4ml: إطار عمل للأجهزة/البرمجيات لتنفيذ الشبكات العصبية للحوسبة العلمية على الحافة
cgra4ml : A Hardware/Software Framework to Implement Neural Networks for Scientific Edge Computing

شارك:
المجلة: ACM Transactions on Reconfigurable Technology and Systems، المجلد: 19، العدد: 2
DOI: https://doi.org/10.1145/3801097
تاريخ النشر: 2026-03-10
المؤلف: G Abarajithan وآخرون
الموضوع الرئيسي: الشبكات العصبية والتطبيقات

نظرة عامة

تقدم البحث cgra4ml، وهو إطار عمل مفتوح المصدر مصمم لتسهيل نشر تطبيقات تعلم الآلة (ML) في الحوسبة العلمية على الحافة. يقوم هذا الإطار بإنشاء مصفوفات قابلة لإعادة التهيئة ذات حبيبات خشنة (CGRA) قابلة للمعايرة في RTL SystemVerilog القابل للتوليف، مصممة خصيصًا لأنماط حساب ML الشائعة. يعزز cgra4ml تكامل النظام مع واجهات متوافقة مع AXI ومكونات الوصول المباشر إلى الذاكرة (DMA) مفتوحة المصدر، بينما يوفر أيضًا توليد البرامج الثابتة تلقائيًا لبرمجة المسرعات. يتضمن مجموعة شاملة من التحقق وطبقة برامج ثابتة وقت التشغيل، مما يمكّن من النشر عبر منصات نظام على شريحة (SoC) متنوعة. تشمل البنية التحتية المعيارية للإطار واجهة برمجة تطبيقات بايثون، وأجهزة SystemVerilog، وأدوات TCL، ووقت تشغيل C، مما يسمح للباحثين بالتركيز على الابتكار بدلاً من تعقيدات الأجهزة.

في الختام، يعمل cgra4ml كإطار عمل قوي لتنفيذ الشبكات العصبية على نطاق واسع في التطبيقات العلمية، داعمًا التخزين الخارجي وهياكل النماذج المتنوعة. يكمل الأدوات الحالية مثل hls4ml من خلال تمكين تصميمات أكثر تعقيدًا وكفاءة من خلال توليد RTL غير معتمد على البائع والتحقق المتكامل. من خلال تقليل عبء التطوير وتبسيط التصميم المشترك بين الأجهزة والبرامج، يوفر cgra4ml أساسًا عمليًا وقابلًا للتوسع لتعزيز الحوسبة العلمية عالية الأداء على الحافة.

مقدمة

تسلط مقدمة ورقة البحث الضوء على الاعتماد المتزايد على تعلم الآلة لمعالجة البيانات في الوقت الحقيقي في مجالات علمية متنوعة، بما في ذلك الفيزياء عالية الطاقة والتشخيصات الطبية الحيوية. تتطلب هذه التطبيقات استنتاج الشبكات العصبية على أجهزة مخصصة لتلبية المتطلبات الصارمة للسرعة وكفاءة الطاقة والإنتاجية. لقد سهلت الأطر الحالية، مثل hls4ml و finn، نشر الشبكات العصبية الصغيرة على FPGAs لكنها تواجه قيودًا في التوسع إلى نماذج أكثر تعقيدًا وتوفير المرونة والتحقق اللازمين لبيئات الإنتاج.

لمعالجة هذه التحديات، يقدم المؤلفون cgra4ml، وهو إطار عمل مفتوح المصدر مصمم لنشر الشبكات العصبية المتقدمة في الحوسبة العلمية على الحافة. يقوم cgra4ml بإنشاء محركات أجهزة CGRA قابلة للمعايرة، مما يوفر حلاً شاملاً يتضمن واجهة بايثون لتحديد النموذج، وواجهة RTL SystemVerilog، ومجموعة تحقق متكاملة. يستهدف الإطار كل من العلماء ومصممي الأجهزة، مما يمكّن من تنفيذ نماذج أكبر ويسهل الاختبار التكراري للتحسينات. تشمل المساهمات الرئيسية لـ cgra4ml إطار تصميم مشترك للأجهزة والبرامج، وهندسة CGRA ديناميكية، وتوليد برامج ثابتة تلقائيًا، ودعم تحقق واسع. تظهر نتائج التقييم أن cgra4ml يحقق أداءً تنافسيًا وقابلية للتوسع، مما يجعله حلاً قابلاً للتطبيق لاستنتاج علمي في الوقت الحقيقي على الحافة.

طرق

في هذا القسم، يقدم المؤلفون تقييمًا تجريبيًا يقارن أداء cgra4ml و hls4ml على لوحة تقييم ZCU104، التي تستخدم FPGA Zynq UltraScale+ XCZU7EV-FFVC1156-2-E MPSoC. تسلط التجارب الضوء على قدرة cgra4ml على تنفيذ نماذج أعمق، مثل ResNet-50 و PointNet، التي تتجاوز قيود الحجم لـ hls4ml، كما هو موضح في الجدول 3.

بالإضافة إلى ذلك، تظهر نتائج تنفيذات ASIC كفاءة الطاقة والمساحة للهندسة المعمارية القابلة لإعادة التهيئة ذات الحبيبات الخشنة (CGRA) المعتمدة على مستوى نقل السجل (RTL) التي تم تطويرها باستخدام إطار عمل cgra4ml. تؤكد هذه النتائج على مزايا cgra4ml في التعامل مع النماذج المعقدة مع تحسين استخدام الموارد على منصات FPGA.

نقاش

يسلط النقاش الضوء على الاعتماد المتزايد على الشبكات العصبية في الحوسبة العلمية عبر مجالات متنوعة، بما في ذلك فيزياء الجسيمات والهندسة الطبية الحيوية. يمثل مصادم الهادرونات الكبير (LHC) مثالًا على هذا الاتجاه، حيث يولد كميات هائلة من البيانات التي تتطلب معالجة منخفضة الكمون وعالية الإنتاجية. يتم استبدال الخوارزميات التقليدية بالشبكات العصبية، لا سيما في أنظمة الزناد حيث أصبحت تنفيذات FPGA و ASIC معيارًا. تسهل الأطر مثل hls4ml و finn نشر الشبكات العصبية على الأجهزة، لكنها تواجه تحديات في التوسع إلى نماذج أكبر واستيعاب التكميم دون 8 بت، وهو أمر حاسم للتطبيقات العلمية.

يهدف تقديم cgra4ml إلى معالجة هذه القيود من خلال توفير إطار عمل معياري يدعم تنفيذات الشبكات العصبية الأكبر وتكامل الأجهزة بكفاءة. من خلال الاستفادة من هندسة CGRA، يمكّن cgra4ml إعادة استخدام العناصر المعالجة بشكل مكاني وتحسين معالجة البيانات، بينما يقوم أيضًا بتوليد RTL SystemVerilog غير معتمد على البائع. يبسط هذا النهج الانتقال من تصميمات FPGA إلى ASIC ويشمل إطار تحقق شامل لضمان الصحة الوظيفية. تم تصميم سير عمل cgra4ml لتمكين العلماء ومصممي الأجهزة، مما يسمح لهم بالتركيز على تطوير النماذج والتجارب دون أن تثقل كاهلهم تفاصيل تحسين الأجهزة المعقدة.

Journal: ACM Transactions on Reconfigurable Technology and Systems, Volume: 19, Issue: 2
DOI: https://doi.org/10.1145/3801097
Publication Date: 2026-03-10
Author(s): G Abarajithan et al.
Primary Topic: Neural Networks and Applications

Overview

The research presents cgra4ml, an open-source modular framework designed to facilitate the deployment of machine learning (ML) applications in scientific edge computing. This framework generates parameterizable coarse-grained reconfigurable array (CGRA) accelerators in synthesizable SystemVerilog RTL, specifically tailored for prevalent ML compute patterns. cgra4ml enhances system integration with AXI-compliant interfaces and open-source Direct Memory Access (DMA) components, while also providing automatic firmware generation for accelerator programming. It includes a comprehensive verification suite and a runtime firmware stack, enabling deployment across various System-on-Chip (SoC) platforms. The framework’s modular infrastructure encompasses a Python API, SystemVerilog hardware, TCL toolflows, and a C runtime, allowing researchers to focus on innovation rather than hardware complexities.

In conclusion, cgra4ml serves as a robust framework for implementing large-scale neural networks in scientific applications, supporting off-chip storage and diverse model architectures. It complements existing tools like hls4ml by enabling more complex and efficient designs through vendor-agnostic RTL generation and integrated verification. By reducing development overhead and simplifying hardware-software co-design, cgra4ml provides a practical and extensible foundation for advancing high-performance scientific computing at the edge.

Introduction

The introduction of the research paper highlights the growing reliance on machine learning for real-time data processing in various scientific domains, including high-energy physics and biomedical diagnostics. These applications necessitate neural network inference on custom hardware to meet stringent requirements for speed, energy efficiency, and throughput. Existing frameworks, such as hls4ml and finn, have facilitated the deployment of small neural networks on FPGAs but face limitations in scaling to more complex models and providing the necessary flexibility and verification for production environments.

To address these challenges, the authors present cgra4ml, an open-source framework designed for deploying advanced neural networks in scientific edge computing. cgra4ml generates parametrizable Coarse-Grained Reconfigurable Array (CGRA) hardware engines, offering a comprehensive solution that includes a Python frontend for model specification, a SystemVerilog RTL backend, and an integrated verification suite. The framework targets both scientists and hardware designers, enabling the implementation of larger models and facilitating iterative testing of optimizations. Key contributions of cgra4ml include a co-design framework for hardware and software, a dynamic CGRA architecture, automated firmware generation, and extensive verification support. Evaluation results demonstrate that cgra4ml achieves competitive performance and scalability, making it a viable solution for real-time scientific inference at the edge.

Methods

In this section, the authors present an experimental evaluation comparing the performance of cgra4ml and hls4ml on the ZCU104 evaluation board, which utilizes the Zynq UltraScale+ XCZU7EV-FFVC1156-2-E MPSoC FPGA. The experiments highlight the capability of cgra4ml to implement deeper models, such as ResNet-50 and PointNet, which exceed the size limitations of hls4ml, as detailed in Table 3.

Additionally, the results from ASIC implementations demonstrate the power and area efficiency of the register-transfer level (RTL)-based coarse-grained reconfigurable architecture (CGRA) developed with the cgra4ml framework. These findings underscore the advantages of cgra4ml in handling complex models while optimizing resource utilization on FPGA platforms.

Discussion

The discussion highlights the increasing reliance on neural networks in scientific computing across various fields, including particle physics and biomedical engineering. The Large Hadron Collider (LHC) exemplifies this trend, generating vast amounts of data that necessitate low-latency and high-throughput processing. Traditional algorithms are being supplanted by neural networks, particularly in trigger systems where FPGA and ASIC implementations are becoming standard. Frameworks like hls4ml and finn facilitate the deployment of neural networks on hardware, but they face challenges in scaling to larger models and accommodating sub-8-bit quantization, which is crucial for scientific applications.

The introduction of cgra4ml aims to address these limitations by providing a modular framework that supports larger neural network implementations and efficient hardware integration. By leveraging a Coarse-Grained Reconfigurable Array (CGRA) architecture, cgra4ml enables spatial reuse of processing elements and optimized data handling, while also generating vendor-agnostic SystemVerilog RTL. This approach simplifies the transition from FPGA to ASIC designs and includes a comprehensive verification framework to ensure functional correctness. The cgra4ml workflow is designed to empower scientists and hardware designers, allowing them to focus on model development and experimentation without being bogged down by intricate hardware optimization details.