arXiv:2608.24712cs.LGAug 2026

Manuscript Offprint

arXiv:2608.24712

Constrained Hyperparameter Optimization for Streaming Data

Bruno Veloso, João Gama

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Bruno Veloso 1,2^{1,2}[0000-0001-7980-0972] and João Gama 1,2^{1,2}[0000-0003-3357-1195]

1^{1} FEP - School of Economics and Management, University of Porto, Porto, Portugal

2^{2} INESC TEC, Porto, Portugal {bveloso, jgama}@fep.up.pt

Abstract. Optimization of hyperparameters is a critical factor to obtain optimal model performance. While existing research has predominantly concentrated on batch-learning scenarios, addressing the complexities inherent in data streams presents a challenge. The deployment of sophisticated methodologies to manage data streams becomes highly important. Consequently, the capacity for self-adjusting hyperparameters during online learning phases emerges as a goal.

Many hyperparameters exhibit constraints and are confined within bounded search spaces, rendering specific solutions unacceptable upon applying optimization operators. To solve this issue, employing boundary constraint-handling techniques becomes imperative to rectify invalid solutions. This paper presents strategies for effectively managing boundary constraints within constrained numerical optimization problems. Recent methodologies, including heuristic and evolutionary-based optimization, employ a "boundary" strategy, wherein values that surpass boundary thresholds for a given hyperparameter are realigned to the respective limits. Our study introduces four strategies to navigate boundary constraints in online optimization algorithms. Through empirical investigations conducted on established datasets, we demonstrate that adopting boundary strategies outperforms the "boundary" strategy.

Keywords: Constrained Hyper Parameters · Optimization · Data Streams

1 Introduction

The rapid advancement of communication technology has led to an increase in data generation, opening up doors to various applications, including predictive maintenance, healthcare monitoring, and automation. Extracting valuable insights from these dynamic data streams is crucial for the private and public sectors. At the same time, automated machine learning (AutoML) has seen significant growth in the past two decades, focusing on hyper-parameter optimization, resulting in various algorithms, such as grid search [15], random search [5], Bayesian Optimisation [18], Evolutionary Algorithms [1], and Swarm Algorithms [12], to optimize hyper-parameters.

Most offline process automation methods rely on training with static data batches. However, these supervised models often need help with concept drift.

Veloso and Gama

Adapting the model to the current data distribution requires restarting the tuning process whenever a concept drift occurs [8]. Hence, progress in online AutoML, especially in hyper-parameter self-tuning, is crucial. While research in this area is limited, some notable approaches address fundamental aspects and challenges of evolving data streams [2]. Some approaches adapt traditional offline learning to an incremental process [3], while others suggest restarting hyper-parameter tuning after a concept drift [27, 20].

The optimization process involves systematically exploring the search space to identify optimal values of the objective function. However, such exploration may inadvertently cause solution vectors to violate their specified bounds, yielding invalid results. Numerous methods for handling boundary constraints have been proposed in the literature to address this issue, particularly in batch learning.

In this study, we have adapted heuristic-based (Nelder-Mead [27]) and evolutionary-based (micro-evolutionary [21]) online optimization algorithms to better accommodate boundary-constrained optimization problems. Our primary objectives include conducting a single pass over the data, effectively detecting and responding to concept drift, and rectifying invalid configurations generated by these algorithms to be coherent with the boundary constraints.

The boundary constraint methods adapted and integrated into the online hyper-parameter optimization algorithms include Centroid [11], Random [23], Reflection [26], and Wrapping [24] to restore invalid vectors to the admissible region. Despite their efficacy, these methods were not originally devised for online constrained problems, where solutions must remain within the admissible region throughout the optimization process.

The principal contributions of our proposal include:

– Utilizing advanced hyper-parameter optimization techniques, two state-of-the-art optimizers were adapted to incorporate boundary constraint strategies.

– Subsequently, comprehensive and rigorous evaluations were conducted, using different datasets and employing diverse boundary constraint methodologies.

The document is organized into five sections. Section 2 presents the related work, focusing on online hyper-parameter optimization algorithms and boundary constraint strategies. Section 3 describes hyper-parameter optimization algorithms and the adopted boundary constraint strategies. Section 4 presents the experiments and results, while Section 5 consolidates the conclusions.

References (29)