VISION: مساعد ذكاء اصطناعي معياري للتفاعل الطبيعي بين الإنسان والأداة في المرافق العلمية
VISION: a modular AI assistant for natural human-instrument interaction at scientific user facilities

شارك:
المجلة: Machine Learning Science and Technology، المجلد: 6، العدد: 2
DOI: https://doi.org/10.1088/2632-2153/add9e4
تاريخ النشر: 2025-05-16
المؤلف: Zhenyun Du وآخرون
الموضوع الرئيسي: الحوسبة العلمية وإدارة البيانات

نظرة عامة

يقدم التقرير VISION، وهو نظام مبتكر للتحكم الصوتي في خط الأشعة يستخدم عمليات قائمة على نماذج اللغة الكبيرة (LLM) على محطة عمل خط الأشعة خفيفة الوزن، محققًا زمن استجابة منخفض. تمثل هذه الابتكار تقدمًا كبيرًا في تشغيل خط الأشعة، مما يساهم في تطوير نظم الذكاء الاصطناعي الفيزيائية العلمية. يسمح التصميم المعياري والقابل للتوسع لـ VISION بأداء أدوار ومهام متنوعة بكفاءة، مما يسهل تحسين قدرات الأدوات بشكل مستمر مع الحد الأدنى من جهد التكيف للأدوات الجديدة.

يقترح المؤلفون أن VISION سيعزز التعاون بين البشر والتحكمات الحاسوبية، مما يحسن الأداء في خطوط الأشعة السنكروترونية وغيرها من المرافق العلمية. يُتصور أن يقود هذا النظام إلى عصر جديد تصبح فيه الاتصالات القائمة على اللغة الطبيعية الواجهة الأساسية للتجارب العلمية، مما يعزز في النهاية الاكتشاف المدعوم بالذكاء الاصطناعي من خلال مفهوم القشرة الخارجية العلمية.

مقدمة

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

تستكشف الورقة أيضًا إمكانيات الذكاء الاصطناعي (AI) وتعلم الآلة (ML) لتحسين العمليات في مرافق المستخدم العلمية، مما يسهل المهام من اكتشاف المواد إلى تنفيذ التجارب. يشير المؤلفون إلى الاهتمام المتزايد في الاستفادة من نماذج اللغة الكبيرة (LLMs) لمجموعة متنوعة من التطبيقات في العلوم الفيزيائية، بما في ذلك التنقل في الأدبيات، وتوليد الفرضيات، وأتمتة التجارب. يتم تقديم نموذج VISION، الرفيق العلمي الافتراضي، كخطوة مهمة نحو دمج الذكاء الاصطناعي في عمليات خط الأشعة، مما يعرض قدراته في التحكم التجريبي وتحليل البيانات من خلال معالجة اللغة الطبيعية. يهدف التصميم المحدث لـ VISION إلى تبسيط مهام خط الأشعة ويمثل تقدمًا نحو نظام شامل للذكاء الاصطناعي في البحث العلمي. يتم تقديم مزيد من التفاصيل حول تصميم VISION ووظائفه في الأقسام التالية من الورقة.

طرق

في هذا القسم، يصف المؤلفون بنية معيارية مصممة لتطوير نظام شامل مدفوع بنماذج اللغة الكبيرة (LLMs) للتجارب العلمية. يقدمون مفهوم الكتل المعرفية (cogs)، التي تعمل كوحدات محددة المهام تستخدم استدعاءات LLM مصممة مسبقًا، مما يوضح الفروق بين الكتل، والمساعدين، والوكلاء في سياق وظائف الذكاء الاصطناعي. يعالج هذا الإطار المفاهيمي الغموض الموجود في الأدبيات بشأن وكلاء الذكاء الاصطناعي.

التصميم المقترح هو كل من معياري وقابل للتوسع، ويتكون من مجموعة من الكتل المصممة لمهام محددة. تسهل هذه المعمارية دمج أحدث نماذج الذكاء الاصطناعي، وتسمح بالتوسع السريع لاستيعاب مهام أو سير عمل جديدة، وتمكن من التكيف السهل مع خطوط الأشعة أو الأدوات المختلفة. بالإضافة إلى ذلك، يتم إنشاء قاعدة بيانات علائقية لدعم المراقبة طويلة الأمد والرؤى التشغيلية. يوضح المؤلفون التطبيق العملي لنظامهم، المشار إليه باسم VISION، في مهام خط الأشعة في العالم الحقيقي، باستخدام مدخلات لغة طبيعية متعددة الأنماط. يستفيد النشر من محطة عمل خط الأشعة الحالية أثناء إجراء جميع معالجة تعلم الآلة على خادم GPU مخصص (HAL)، مما يفصل بشكل فعال واجهة المستخدم الرسومية لخط الأشعة عن معالجة تعلم الآلة لتسهيل النشر.

النتائج

في قسم النتائج، يوضح المؤلفون عملية تقييم المكونات الفردية، المشار إليها باسم “cogs”، داخل نظامهم. تم إنشاء مجموعات بيانات تقييم صغيرة خصيصًا لكل cog لتقدير الأداء، على الرغم من عدم تضمين هذه المجموعات في مطالب النظام. أبلغت نتائج التقييم عن تحسين مطالب النظام لنماذج اللغة الكبيرة (LLMs) المعنية. تم إجراء جميع التقييمات مع ضبط درجة حرارة العينة على 0، وتم حساب المتوسطات على مدار خمس جولات. بالنسبة للمقاييس التي تظهر تباينًا، يتم الإبلاغ عن الانحرافات المعيارية للعينة (±). عندما كانت هناك إجابات صحيحة متعددة متاحة، تم اختيار أفضل إجابة لكل مقياس لحساب المتوسطات.

تم تقييم النماذج المحلية باستخدام طرق التكميم الافتراضية لـ Ollama (Q4_0 أو Q4_K_M)، ما لم يُذكر خلاف ذلك، مع توفر مزيد من التفاصيل في الملحق B.2 من المعلومات التكميلية. يبرز هذا النهج المنظم للتقييم تحسين النماذج بشكل منهجي بناءً على بيانات الأداء التجريبية.

المناقشة

في هذا القسم، يناقش المؤلفون بنية ووظائف VISION، وهو مساعد ذكاء اصطناعي مصمم لتسهيل التجارب في خط الأشعة من خلال استخدام كتل معرفية متخصصة (cogs). كل cog هو وحدة محددة المهام تعمل ضمن سير عمل محدد، مما يسمح بتفاعلات منظمة بناءً على مدخلات المستخدم. يدمج نظام VISION مكونات متنوعة، بما في ذلك واجهة مستخدم رسومية (GUI) للتفاعل بلغة طبيعية (NL)، وخادم خلفي عالي الأداء لاستنتاج النموذج، وقاعدة بيانات علائقية لتسجيل العمليات. تدعم المعمارية ثلاثة أنواع من سير العمل: تنفيذ أوامر خط الأشعة، إضافة وظائف مخصصة، والاستجابة لاستفسارات النانوساينس عبر دردشة، مما يظهر قدرة VISION على التكيف في بيئات علمية معقدة.

يتم تقييم أداء الكتل الفردية، مثل الناسخ، والمصنف، والمشغل، من خلال مقاييس متنوعة، بما في ذلك معدلات خطأ الكلمات (WER) ودرجات F1. يتم ضبط cog الناسخ للتعرف على المصطلحات الخاصة بالمجال، بينما يقوم cog المصنف بتفسير مدخلات المستخدم لتحديد الإجراء المناسب أو cog الذي يجب استدعاؤه. يقوم cog المشغل بترجمة أوامر NL إلى كود بايثون قابل للتنفيذ للتحكم في خط الأشعة. يؤكد المؤلفون على أهمية التصنيف الدقيق والأداء القوي عبر الكتل لضمان التشغيل الفعال، لا سيما في البيئات ذات المخاطر العالية حيث تكون الدقة حاسمة. قد تتضمن التحسينات المستقبلية تطوير بيئة وهمية لاختبار تنفيذ الكود وتحسين القدرات العامة لـ cog المشغل.

Journal: Machine Learning Science and Technology, Volume: 6, Issue: 2
DOI: https://doi.org/10.1088/2632-2153/add9e4
Publication Date: 2025-05-16
Author(s): Zhenyun Du et al.
Primary Topic: Scientific Computing and Data Management

Overview

The report presents VISION, a pioneering voice-controlled beamline system that utilizes large language model (LLM)-based operations on a light-duty beamline workstation, achieving low latency. This innovation marks a significant advancement in beamline operation, contributing to the development of scientific physical AI ecosystems. VISION’s modular and scalable architecture allows it to perform various roles and tasks efficiently, facilitating the continuous enhancement of instrument capabilities with minimal adaptation effort for new instrumentation.

The authors propose that VISION will enhance collaboration between humans and computer controls, thereby improving performance at synchrotron beamlines and other scientific facilities. This system is envisioned to lead to a new era in which natural language-based communication becomes the primary interface for scientific experimentation, ultimately fostering AI-augmented discovery through the concept of a scientific exocortex.

Introduction

The introduction of this research paper discusses the challenges and advancements in the field of energy science, particularly in understanding the structure-property-performance relationships of functional materials. Given the complexity of material science experiments, which involve numerous compositional, processing, and environmental variables, exhaustive exploration is impractical. To enhance productivity and scientific progress, the integration of automation and autonomous algorithms is emphasized, particularly in material synthesis, processing, and characterization. The use of synchrotrons, which provide intense x-ray beams for detailed analysis of materials, is highlighted as a critical tool for scientific discovery.

The paper also explores the potential of artificial intelligence (AI) and machine learning (ML) to optimize operations in scientific user facilities, facilitating tasks from material discovery to experimental execution. The authors note the growing interest in leveraging large language models (LLMs) for various applications in physical sciences, including literature navigation, hypothesis generation, and experimental automation. The introduction of the Virtual Scientific Companion (VISION) prototype is presented as a significant step towards integrating AI in beamline operations, showcasing its capabilities in experimental control and data analysis through natural language processing. The upgraded architecture of VISION aims to streamline beamline tasks and represents progress towards a comprehensive AI ecosystem in scientific research. Further details on the VISION architecture and its functionalities are provided in subsequent sections of the paper.

Methods

In this section, the authors describe a modular infrastructure designed for developing an end-to-end system driven by large language models (LLMs) for scientific experimentation. They introduce the concept of cognitive blocks (cogs), which serve as task-specific units that utilize prompt-engineered LLM calls, thereby clarifying the distinctions between cogs, assistants, and agents in the context of AI functionalities. This conceptual framework addresses existing ambiguities in the literature regarding AI agents.

The proposed architecture is both modular and scalable, consisting of an ensemble of cogs tailored for specific tasks. This modularity facilitates the integration of the latest AI models, allows for rapid expansion to accommodate new tasks or workflows, and enables easy adaptation to various beamlines or instruments. Additionally, a relational database is established to support long-term monitoring and operational insights. The authors demonstrate the practical application of their system, referred to as VISION, in real-world beamline tasks, utilizing multi-modal natural language inputs. The deployment leverages an existing beamline workstation while performing all machine learning processing on a dedicated GPU server (HAL), effectively decoupling the beamline graphical user interface from the ML processing for streamlined deployment.

Results

In the Results section, the authors detail the evaluation process for individual components, referred to as “cogs,” within their system. Small evaluation datasets were specifically created for each cog to estimate performance, although these datasets were not included in the system prompts. The evaluation results informed the refinement of system prompts for the respective large language models (LLMs) employed. All evaluations were conducted with a sampling temperature set to 0, and averages were computed over five runs. For metrics exhibiting variability, the sample standard deviations are reported (±). When multiple ground truth answers were available, the best-performing answer for each metric was selected for average calculations.

Local models were assessed using Ollama’s default quantization methods (Q4_0 or Q4_K_M), unless stated otherwise, with further details available in Appendix B.2 of the supplementary information. This structured approach to evaluation underscores the systematic refinement of the models based on empirical performance data.

Discussion

In this section, the authors discuss the architecture and functionality of VISION, an AI assistant designed to facilitate beamline experiments through the use of specialized cognitive blocks (cogs). Each cog is a task-specific unit that operates within a deterministic workflow, allowing for structured interactions based on user inputs. The VISION system integrates various components, including a graphical user interface (GUI) for natural language (NL) interaction, a high-performance backend server for model inference, and a relational database for logging operations. The architecture supports three types of workflows: executing beamline commands, adding custom functions, and responding to nanoscience queries via a chatbot, demonstrating VISION’s adaptability in complex scientific environments.

The performance of individual cogs, such as the Transcriber, Classifier, and Operator, is evaluated through various metrics, including word error rates (WER) and F1 scores. The Transcriber cog is fine-tuned to recognize domain-specific jargon, while the Classifier cog interprets user inputs to determine the appropriate action or cog to invoke. The Operator cog translates NL commands into executable Python code for beamline control. The authors emphasize the importance of accurate classification and robust performance across cogs to ensure effective operation, particularly in high-stakes environments where precision is critical. Future enhancements may involve developing a mock environment for testing code execution and improving the overall capabilities of the Operator cog.