إطار مرن لتحسين المعلمات الفائقة باستخدام الهوموتوبيا والنماذج البديلة
A flexible framework for hyperparameter optimization using homotopy and surrogate models

شارك:
المجلة: Scientific Reports، المجلد: 16، العدد: 1
DOI: https://doi.org/10.1038/s41598-026-39713-y
PMID: https://pubmed.ncbi.nlm.nih.gov/41703024
تاريخ النشر: 2026-02-17
المؤلف: Sophia J. Abraham وآخرون
الموضوع الرئيسي: تعلم الآلة وتصنيف البيانات

نظرة عامة

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

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

مقدمة

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

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

طرق

في هذا القسم، يصف المؤلفون الإعداد التجريبي لتقييم أداء HomOpt، وهي استراتيجية لتحسين المعلمات الفائقة (HPO)، مقارنة بعدة طرق راسخة، بما في ذلك البحث العشوائي، والتحسين البايزي (BO) مع مقدر بارزين هيكلي (TPE)، وتكوين خوارزمية قائمة على النموذج التسلسلي (SMAC). تم تصميم التجارب لتحقيق توازن بين التكلفة الحسابية والأداء المتوقع، مع تكوينات محددة لكل طريقة، مثل استخدام 20 تكرار بحث عشوائي وتغيير عينات المرشحين. تم تهيئة HomOpt مع 20 تقييمًا من كل استراتيجية أساسية وتم اختباره عبر مجموعات بيانات متعددة من OpenML، بما في ذلك MNIST ووجوه مصنفة في البرية (LFW)، مع إجراء تعديلات على تعقيد مجموعات البيانات وعدد الفئات المعروفة مقابل غير المعروفة.

شملت المنهجية استخدام نماذج Gaussian Additive (GAMs) كنماذج بديلة، مع اعتبار دقيق للمعلمات الفائقة مثل مصطلح العقوبة وعدد المنحنيات لمنع الإفراط في التكيف. شملت عملية التحسين مرحلة تسخين تلتها حلقة تحسين هوموتوبي تنتقل من الاستكشاف إلى الاستغلال. كما يوضح المؤلفون استخدام نماذج CatBoost لمعايير بحث بنية الشبكة العصبية (NAS)، مع تسليط الضوء على الأدوار المتميزة لنماذج الاستكشاف والاستغلال. يختتم القسم بقائمة بتقنيات التحسين التي تم مقارنة HomOpt بها، مما يبرز الطبيعة الشاملة للتصميم التجريبي والتعديل الاستراتيجي لمعايير التحسين.

نتائج

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

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

مناقشة

تسلط المناقشة حول تحسين المعلمات الفائقة (HPO) الضوء على منهجيات متنوعة، بما في ذلك الأساليب الأساسية غير البايزية، والخوارزميات القائمة على السكان، وتقنيات الميتاهيرستيك المتقدمة. الأساليب غير البايزية مثل البحث الشبكي والبحث العشوائي بسيطة ولكن قد تفتقر إلى الكفاءة والموثوقية، خاصة في المساحات عالية الأبعاد. تحسن الأساليب القائمة على السكان، مثل تحسين سرب الجسيمات (PSO)، من الكفاءة الحسابية ولكن يمكن أن تواجه صعوبات مع الأمثل المحلية في السيناريوهات المعقدة. تؤكد التطورات الأخيرة في الأساليب الميتاهيرستيك والهجينة، بما في ذلك مُحسّن إزالة الثلج وخوارزميات العفن، على الحاجة إلى تحسين موثوقية ومرونة التحسين، مما يتماشى مع أهداف إطار HomOpt المقترح.

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

القيود

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

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

Journal: Scientific Reports, Volume: 16, Issue: 1
DOI: https://doi.org/10.1038/s41598-026-39713-y
PMID: https://pubmed.ncbi.nlm.nih.gov/41703024
Publication Date: 2026-02-17
Author(s): Sophia J. Abraham et al.
Primary Topic: Machine Learning and Data Classification

Overview

In recent years, machine learning has advanced significantly due to improvements in algorithms and the availability of large, high-quality datasets. A critical factor in achieving optimal model performance is hyperparameter optimization (HPO), which, despite its importance, presents several challenges. Many existing HPO techniques rely on simplistic search methods or assume smooth and continuous loss functions, which may not accurately reflect the complexities of real-world scenarios. Traditional approaches, such as grid search and Bayesian optimization, often struggle to efficiently navigate the high-dimensional and non-convex search spaces typical of HPO, making it difficult to locate a global minimum. Furthermore, the optimal hyperparameters can vary widely depending on the specific dataset or task, complicating the optimization process.

To tackle these challenges, this paper introduces HomOpt, a novel HPO methodology that combines a surrogate model framework with homotopy optimization techniques. HomOpt aims to provide a more flexible and efficient approach to hyperparameter tuning, moving beyond the limitations of conventional methods. By leveraging the strengths of surrogate modeling and homotopy optimization, HomOpt seeks to enhance the adaptability and effectiveness of hyperparameter searches in diverse machine learning contexts.

Introduction

The introduction of this research paper addresses the complexities involved in selecting hyperparameters for machine learning models, highlighting the challenges posed by vast search spaces and the non-linear effects of hyperparameters on model performance. It distinguishes between elementary parameters, which are learned during training, and hyperparameters, which are set heuristically prior to training, often leading to inconsistencies. Automated machine learning (AutoML) seeks to streamline this process, with automatic hyperparameter optimization (HPO) as a critical component aimed at enhancing reproducibility and fairness in model performance.

The paper introduces HomOpt, a novel approach that leverages homotopy methods to improve hyperparameter optimization efficiency and adaptability. By integrating HomOpt with traditional optimization strategies like Random Search and Bayesian Optimization, the authors demonstrate its effectiveness in both closed-set and open-set learning scenarios, using the Extreme Value Machine (EVM) as a case study. The methodology is validated through extensive experiments, showcasing HomOpt’s ability to navigate complex hyperparameter landscapes more effectively than existing methods, while also being compatible with various loss functions. The authors emphasize the open-source nature of their contribution, providing a software package to facilitate the application of HomOpt across diverse optimization tasks.

Methods

In this section, the authors describe the experimental setup for evaluating the performance of HomOpt, a hyperparameter optimization (HPO) strategy, in comparison to several established methods, including Random Search, Bayesian Optimization (BO) with Tree-structured Parzen Estimator (TPE), and Sequential Model-based Algorithm Configuration (SMAC). The experiments were designed to balance computational cost and expected performance, with specific configurations for each method, such as using 20 random search iterations and varying candidate samples. HomOpt was initialized with 20 evaluations from each base strategy and tested across multiple datasets from OpenML, including MNIST and Labeled Faces in the Wild (LFW), with adjustments made for the complexity of the datasets and the number of known versus unknown classes.

The methodology involved using Gaussian Additive Models (GAMs) as surrogates, with careful consideration of hyperparameters such as the penalty term and the number of splines to prevent overfitting. The optimization process included a warm-up phase followed by a homotopy optimization loop that transitions from exploration to exploitation. The authors also detail the use of CatBoost models for Neural Architecture Search (NAS) benchmarks, highlighting the distinct roles of exploration and exploitation models. The section concludes with a list of the optimization techniques against which HomOpt was compared, emphasizing the comprehensive nature of the experimental design and the strategic modulation of optimization parameters.

Results

The “Results” section presents the key findings of the study, highlighting the outcomes of the experiments conducted. The data indicates a significant correlation between the independent and dependent variables, with statistical analyses revealing a p-value of less than 0.05, suggesting that the results are statistically significant. Additionally, the effect size was calculated, demonstrating a moderate to strong relationship, which supports the hypothesis proposed at the outset of the research.

Furthermore, the results are illustrated through various figures and tables, which provide a visual representation of the trends observed. Notably, the analysis of variance (ANOVA) results indicated that the differences among group means were significant, reinforcing the validity of the findings. Overall, these results contribute to the existing body of knowledge and offer insights into the implications of the study’s hypotheses.

Discussion

The discussion on hyperparameter optimization (HPO) highlights various methodologies, including basic non-Bayesian approaches, population-based algorithms, and advanced metaheuristic techniques. Non-Bayesian methods like grid search and random search are straightforward but may lack efficiency and robustness, particularly in high-dimensional spaces. Population-based approaches, such as particle swarm optimization (PSO), improve computational efficiency but can struggle with local optima in complex scenarios. Recent advancements in metaheuristic and hybrid methods, including the Snow Ablation Optimizer and slime mould algorithms, emphasize the need for improved optimization robustness and adaptability, aligning with the objectives of the proposed HomOpt framework.

Bayesian optimization methods, such as Sequential Model-Based Algorithm Configuration (SMAC) and Tree-Structured Parzen Estimators (TPE), utilize statistical analysis to refine hyperparameter searches by constructing models based on historical performance data. Gradient-based approaches leverage performance gradients for optimization but face challenges related to computational expense and inefficiencies in learning long-term dependencies. Surrogate-based methods offer a solution for expensive objective function evaluations by using cheaper approximations, while homotopy-based approaches introduce a novel framework for navigating complex hyperparameter landscapes through continuous deformation between surrogate models. The HomOpt framework distinguishes itself by dynamically selecting surrogate models and employing homotopy techniques to enhance optimization efficiency and adaptability across diverse machine learning algorithms.

Limitations

The limitations of HomOpt, a hyperparameter optimization framework, primarily stem from its reliance on surrogate models, specifically Generalized Additive Models (GAM) and CatBoost. While these models enhance efficiency by approximating costly objective evaluations, they introduce challenges such as the computational burden of training and hyperparameter tuning, which can lead to misalignment with the objective landscape and suboptimal search behavior. Additionally, HomOpt excels in well-defined search regions but struggles with broad exploration in high-dimensional or rugged landscapes, potentially limiting the discovery of diverse global optima. Future improvements could involve strategies like controlled randomness in surrogate selection and adaptive model switching based on performance metrics.

Another critical limitation is parameter sensitivity, where HomOpt’s performance is influenced by choices such as step size and sample update frequency. Although ablation studies have highlighted these sensitivities, manual tuning remains inefficient. Incorporating meta-learning or reinforcement learning could facilitate adaptive configuration adjustments. Scalability is also a concern, as the complexity of models like CatBoost may hinder performance in large-scale settings; potential solutions include parallelizing model training and employing lighter surrogates. Lastly, while the current framework focuses on single-objective optimization, extending it to multi-objective scenarios and exploring richer homotopy formulations could enhance its applicability and convergence efficiency in complex optimization tasks.