Manuscript Offprint
arXiv:2609.04636Blind Random Search with Noisy Loss Measurements: Averaging, Thresholding, and Almost Sure Convergence
Abstract
Blind random search repeatedly draws a candidate point and replaces the current estimate whenever the candidate has a lower loss. In the absence of noise, the true loss is observed directly. It decreases strictly at every accepted update and is monotone nonincreasing over all iterations. Measurement noise can make a worse candidate appear better and thereby break this monotonicity. To recover almost sure convergence under noise, we incorporate averaging and thresholding into the original decision criterion. These two classical tools are coupled. As the sample sizes grow, the positive threshold shrinks at a matched rate. These modifications allow blind random search to recover eventual monotonicity of the true loss under noisy measurements and to converge almost surely.
1 Introduction
In many practical optimization problems, direct gradient measurements are not naturally available, while measurements of the objective function are generally noisy. Obtaining gradients from system outputs can also require detailed knowledge of the relationships between system inputs and outputs, whereas methods based on function measurements can avoid such a detailed model [1, pp. 150–153] [2]. These methods appear both in practical applications and in broader black box optimization procedures. For example, Chin et al. considered traffic signal control [3], while Regis considered deterministic constrained black box optimization [4]. Among methods based on function measurements, this paper focuses on blind random search. The method independently samples candidate points over without adapting its sampling strategy to information obtained earlier in the search [1, pp. 37–38]. This makes blind random search useful when little exploitable information about the objective is available [5, pp. 19–21].
In the absence of noise, blind random search repeatedly samples candidates throughout the domain and accepts one only when its loss is below the current loss [1]. Consequently, the sequence of loss values at the current estimates, , is nonincreasing. In practice, loss measurements are often corrupted by noise [2]. We write an observation as , where denotes measurement noise and . Under noise, an apparent improvement may conceal a true deterioration [6]. The algorithm can therefore accept a candidate with higher true loss, and the monotonicity of the noiseless search is lost.
Averaging and thresholding are two common mechanisms for mitigating noise in comparison based search [1]. Averaging reduces the variance of loss estimates, whereas thresholding reduces false acceptances caused by noise by requiring the observed improvement to exceed a positive margin [1]; convergence has been established for several methods using one or both mechanisms [6–8]. To ensure reliable comparisons, these methods remeasure the loss at the current estimate for every comparison, so that the observations used in each comparison are independent of the past selection history [7]. Such remeasurement, however, increases measurement cost. Devroye considered discarding data after a comparison wasteful [9, p. 706] and worked with two methods that store historical search points and their associated observations [8,9].
We share Devroye’s view that observations are valuable. Our algorithm combines increasing averaging with a vanishing positive threshold and reuses accumulated measurements at the current estimate. Consequently, the observations used in a comparison are no longer independent of the past selection history. Controlling that bias is a central contribution of the proof. We show that the true loss is eventually nonincreasing and that the search converges almost surely to the global minimizer.
-
Initialization: Fix an integer and select an initial estimate . Compute the initial averaged loss over observations, , and set with and (so the search step below is defined at ).
-
Search step (iteration ):
- Randomly generate a candidate point . From fresh observations, compute the averaged loss value at the candidate point,
- Accept the candidate if
where the dynamic threshold is
where is the known subgaussian scale parameter formalized in Assumption A2.
-
If accepted: set and .
-
If rejected: set .
Draw one additional fresh observation and update the running average,
- At the end of iteration , is the arithmetic mean of exactly observations at . Increase by one and return to the search step.
- Termination: Stop when a predefined criterion is met, such as a maximum number of noisy loss measurements, or when the user is otherwise satisfied with the current estimate.
Relation to prior search rules under noise.
Devroye's statistical search decision rule recomputes independent sample means at the current estimate and the candidate point in each noisy comparison; earlier measurements at the current estimate are not pooled into the loss estimate used in the next comparison [7, p. 47]. ISSARS [6, Sec. 3.2] compares new sample means at both points. Theorems 5 and 6 of Devroye and Krzyżak [8, Thms. 5–6] instead use formed from two new empirical distribution functions. Equation (1) compares the averaged loss value at the candidate point with the pooled loss estimate at the current estimate. Devroye's learning-memory method may store historical search points and their associated observation summaries [9, Sec. III], whereas the nonsequential strategy analyzed by Devroye and Krzyżak retains every sampled point and repeatedly augments its observations [8, Sec. 10]. Our method instead stores only the current estimate and its pooled loss estimate, adds one new observation after every rejection, and couples growing sample sizes to a vanishing threshold, creating the selection bias studied in Section 3.
3 Convergence Analysis
Let be the loss function and the iteration index of the algorithm of Section 2. We first recall the subgaussian noise model used in the convergence analysis.
Definition 1 (Subgaussian random variable). A random variable with mean zero is subgaussian with variance proxy if
This condition implies for [10, Def. 2.2 and Eq. (2.9)]. It also implies ; the variance proxy need not equal the actual variance. Examples include centered Gaussian, centered Bernoulli, and scaled Rademacher distributions, as well as bounded distributions with mean zero. For a Student’s distribution with finite degrees of freedom, the tails decrease only as powers of . Such a distribution cannot satisfy the preceding subgaussian tail bound and is therefore not subgaussian.
The convergence result is established under the following standing assumptions.
A1 (Separation of the minimizer). is a minimizer of on and, for every ,
This condition implies that is the unique minimizer.
A2 (Noise). Each observation has the form , where all noise variables drawn by the algorithm, across all iterations and across both the current estimate’s and the candidate’s observations, are mutually independent and identically distributed, have mean zero, and are subgaussian with a common variance proxy .
A3 (Reachability). For every and every ,
for some independent of . Candidate draws are independent across iterations and independent of the measurement noise, and their sampling distributions are fixed in advance as functions of .
Theorem 1: Suppose that Assumptions A1–A3 hold. Then the sequence generated by the algorithm satisfies , and , all almost surely as .
Proof. The proof has eight parts. Parts I–IV control the comparison noise uniformly and show that the current noise average converges to zero, although the observations entering that average depend on earlier acceptance decisions. Part V establishes eventual monotonicity of the true loss; Parts VI and VII show that candidates near the optimum recur and are eventually accepted; Part VIII adapts the sample path argument of [1, Thm. 2.1]. All statements below hold almost surely unless otherwise noted.
Part I: Comparison noise and selection bias
Under the cumulative averaging rule, at iteration the average is the arithmetic mean of the observations in the accumulated sample. Write
where is the average noise in the observations used to compute , whereas is the average noise in the new observations used to compute . Define the difference between the two noise averages and the increment in the true loss by
The acceptance test is equivalently
Under Assumption A2, each newly drawn measurement error is independent, identically distributed, and has mean zero. Conditional on the search history, is therefore centered and subgaussian with variance proxy because it averages new measurements [10, p. 24]. The pooled average does not follow the centered distribution of a fresh independent average: it includes measurements from the most recently accepted point and is reused rather than remeasured at every comparison.
The acceptance rule is
The decision therefore combines a change in the true loss with the observed noise: a smaller average of the candidate measurement errors makes acceptance more likely. Before the decision, . Whenever , conditioning on acceptance gives
Thus, an accepted candidate average has negative conditional mean even though

Figure 1: Decomposition at iteration : accumulated measurements at the current estimate (blue and yellow), new candidate measurements (green), and the measurement added after a rejection (red).
every underlying error has mean zero. Upon acceptance, , and the candidate measurements initialize the average at the new current estimate. Hence the resulting current noise average is not centered and does not follow the distribution of an ordinary average of independent measurement errors.
Because of this selection bias, we study by separating the sample present when the current estimate was established from the measurements added after subsequent rejections, as illustrated in Fig. 1.
Part II: Realized sample decomposition
We now represent by tracing how the algorithm forms the accumulated sample. Let be the sample size when the current estimate was established. Before the first acceptance, . If the most recent acceptance occurred at iteration , then .
Let be the initialization noises. For , let be the noise in the th of the measurements taken at the candidate point in iteration , and set . After the first acceptance, is the average noise from the most recently accepted candidate. If the candidate at iteration is rejected, let be the noise in the additional loss measurement drawn at the current estimate. With this notation,
The first term represents the measurements used to establish the current estimate: the initialization measurements before the first acceptance, or the measurements at the most recently accepted candidate thereafter. Their average is , and their weight in the current average of measurements is . The second term represents one additional measurement at the current estimate for each later rejection. There are such noise terms, each with weight . The new candidate average is .
Figure 1 illustrates the same construction. Blue denotes these measurements, and yellow denotes the measurements added after later rejections. Green denotes the new measurements at the candidate point. If the candidate is accepted, the green measurements form the accumulated sample at iteration , so and . If the candidate is rejected, the blue and yellow measurements remain in the accumulated sample, and one new measurement is taken at . Its noise is the red , and .
All and are i.i.d. subgaussian variables with mean zero and variance proxy ; the notation distinguishes noise in the candidate measurements from noise in the additional measurements.
Part III: Comparison bound for a deterministic history
This decomposition reduces the distributional analysis of to a family of averages indexed by deterministic . For each , define the possible current noise average
(3) where the second sum is zero when . Equation (2) then gives
For fixed , is the average of independent noises and is subgaussian with variance proxy . Because acceptance decisions make random, we first control uniformly over deterministic and then substitute . The proof of Theorem 1 in [9, pp. 709–710] uses a related argument: Lemma 3 bounds all later sample sizes before the result is applied to points generated by the search.
This decomposition is used in Parts III and IV to establish the following two claims. Almost surely,
Uniform control of the comparison noise. For each deterministic , define
The fresh errors are independent of the earlier errors that form . Consequently, is independent of . Hence, for every ,
Thus is subgaussian with variance proxy . Applying the tail bound to both sides gives
Part IV: Uniform control of noise with probability one
There are at most possible values of at iteration . Consequently,
Because , we have , so the bound on the right is summable in . The first Borel–Cantelli lemma [11, p. 188] implies that only finitely many of these events occur almost surely, so their indices form a finite exceptional set. On this event of probability one, let be the first index beyond this set (or if the set is empty). After substituting the value selected by the algorithm, the following holds for every :
Convergence of the current noise average. The fresh candidate average is subgaussian with variance proxy . Hence
Because , this bound is summable in , so the first Borel–Cantelli lemma [11, p. 188] gives a.s. for all sufficiently large . Since , this bound and (4) imply and . Therefore,
Part V: Eventual monotonicity
If the acceptance test holds, then the identity established in Part I gives and . For , Part IV gives , hence
Along iterations on which a candidate is rejected, and trivially. Therefore, on the event of probability one defining for every .
Part VI: Infinitely many candidates near the optimum
Fix and define
and analogously with replaced by . Note . By the reachability assumption,
Define the independent events .
Then , and the second Borel-Cantelli lemma [11, p. 188] gives
i.e., candidates in are generated infinitely many times almost surely.
Part VII: Eventual acceptance
Since , Part IV gives, almost surely, for all sufficiently large (and hence beyond ),
On the event , the definitions give and , so . Combining with (6),
The acceptance test is satisfied, hence .
By (5), almost every sample path has infinitely many indices at which occurs and (6) holds. If at any such index, the argument above gives . Once , Part V's monotonicity ensures every subsequent iterate also lies in . Therefore
Part VIII: Convergence
Applying Part VII to , , and intersecting the resulting events of probability one, the sample path argument based on monotonicity used in the proof of [1, Thm. 2.1] gives a.s. Assumption A1 then gives a.s. Finally, and Part IV give a.s.
4 Numerical Experiments
4.1 Experimental Setup
The experiments examine three questions at finite budgets: whether the proposed method continues to improve as the measurement budget grows, what is gained by reusing measurements at the current estimate, and what happens when measurement noise is ignored.
We use two test problems adapted from Spall's Examples 2.1 and 6.6 [1]. The first is the noisy quadratic problem , with , , , , and . The second sets in the skewed quartic loss:
where is the upper triangular matrix of ones, , , , and . In both problems, measurements have the form , where all measurement errors are i.i.d. . Within each search, candidate points are i.i.d. uniform on .
We compare three approaches. The proposed method follows Section 2 with and . The remeasurement benchmark computes the averaged loss value at the candidate point in the same way and uses the same threshold, but replaces the pooled average at the current estimate by an average of k new measurements at each comparison; neither average is reused in the next comparison. The naive method stores one noisy loss measurement at the current estimate, obtains one noisy loss measurement at each candidate point, and accepts a candidate only when its measured loss is lower than the stored value; no positive threshold is used. Each noisy loss measurement counts once toward the measurement budget. The rule using a single measurement intentionally reproduces the original baseline based on blind random search without noise control, providing a direct contrast with averaging and thresholding.

Figure 2: Terminal gap in the true loss versus total measurement budget, shown on logarithmic axes. Each marker is the median over 200 independent runs for a selected value of the proposed method's comparison index K; no individual run is selected for display. Connecting lines join these medians across the reported values of K and are not fitted rates. Budgets are the median realized measurement counts of the proposed algorithm; within each run, the comparison methods are stopped under the same realized budget cap.
For each replication and each reported comparison index K of the proposed method, let denote the realized total number of noisy loss measurements consumed by the proposed method through comparison K. This count includes the initialization measurements, every measurement at a candidate point, and one additional measurement at the current estimate after each rejection. In the same replication, the remeasurement benchmark is run under that realized budget and completes the largest number of full comparisons whose cumulative measurement count does not exceed ; any unused remainder is smaller than the cost of its next comparison. The naive method uses exactly noisy loss measurements, including its initialization measurement. Thus, within each replication, the methods are matched by total measurement budget, not by the number of comparisons or candidate points.
For each problem, we perform 200 independent Monte Carlo replications. For every reported comparison index of the proposed method, each replication supplies a realized budget and a terminal gap for every method under that matched budget. In Fig. 2, the horizontal coordinate is the median of the 200 realized budgets, and the vertical coordinate for each method is the median of its 200 terminal gaps. Thus the figure reports medians, not averages, and no individual replication is selected. All search decisions use only noisy loss measurements; the true loss is evaluated only to report the terminal gap .
The Monte Carlo runs use NumPy 2.3.5 with the PCG64 generator and master seed 20260727. Within each replication, whenever both the proposed method and the remeasurement benchmark perform comparison , they use the same candidate point. Measurements at the current estimate for these methods and all random variables for the naive method are generated from separate streams. Whenever new independent Gaussian loss measurements are required at a point, we draw a new and generate their average directly as . This random variable has exactly the distribution of the average of independent measurements. The variates used to generate different averages are independent, except that when both methods perform comparison , the same variate is used to generate the averaged loss value at the shared candidate point. When the proposed method accepts a candidate, the averaged loss value at the candidate point becomes the pooled mean at the current estimate and is subsequently reused as specified by the algorithm. After a rejection, the additional measurement at the current estimate uses a new independent error. Although the individual measurements represented by an average are not generated explicitly, all are charged to .
For the quadratic problem, the reported are 100, 250, 500, 1000, 2000, 3500, and 5000; for the quartic problem, they are 100, 250, 500, 1000, 2000, 3000, and 4000. Both continue at , , and . With , the proposed method uses measurements at a candidate point at comparison , in addition to its one initialization measurement and one measurement at the current estimate after each rejection. Therefore,
where is the number of rejections among the first comparisons. For example, , so , consistent with the first plotted budget of approximately measurements. For the three additional comparison indices, the proposed method and the remeasurement benchmark are simulated directly. For the naive method, nested running minima are generated from the corresponding distributions of the order statistics, with the loss distribution for a single candidate evaluated numerically.
4.2 Results and Discussion
Figure 2 shows the median values of the terminal gaps. For the quadratic problem, the gaps for the proposed method and the remeasurement benchmark decrease at similar rates. Both become much smaller than the gap for naive blind random search as the budget grows. The two controlled methods share averaging and thresholding, which explains their much faster decrease. Their performance remains close, but the proposed algorithm generally performs better. At the largest budget, the median gaps are 0.0125 for the proposed algorithm, 0.0154 for the remeasurement benchmark, and 0.446 for naive blind random search.
For the quartic problem with , naive blind random search initially performs better at small budgets because it evaluates each candidate only once and can therefore explore more broadly. The smallest reported budget is about measurements. At this budget, the proposed method, the remeasurement benchmark, and the naive method have tested 100, 71, and about 5,250 candidate points, respectively. The more candidates are tested, the more likely the smallest measured loss is to be driven by an unusually negative noise realization rather than a correspondingly small true loss. The naive method keeps this misleadingly low value, which later candidates rarely beat; it therefore plateaus while both controlled methods continue to improve and overtake it. The gaps for the proposed method and the remeasurement benchmark again remain close, with the proposed algorithm generally attaining the lower gap. At the largest budget, their median gaps are 0.184 and 0.210, compared with 1.20 for naive blind random search. Relative to the initial gaps (6 for the quadratic problem, 87.3 for the quartic), the proposed algorithm reduces the median terminal gap in the true loss by 99.79% in both problems. The remeasurement benchmark gives comparable reductions of 99.74% and 99.76%, whereas naive blind random search gives 92.57% and 98.63%, respectively.
Across the 400 runs at the largest tested budget, none of the 2801 accepted updates increased the true loss. This empirical result is consistent with the eventual monotonicity established in the convergence analysis, but it is not a convergence proof or rate estimate.
5 Conclusions
This paper makes two contributions to blind random search with noisy loss measurements. First, it combines increasing averaging with a vanishing positive threshold in the decision criterion. We prove that the resulting search converges almost surely to the global minimizer. Their combination ensures that the true loss is eventually nonincreasing almost surely, despite the measurement noise.
Second, the algorithm compares an averaged loss value at the candidate point, based on new measurements, with a pooled average at the current estimate, rather than forming a new average at the current estimate for every comparison. Pooling reduces repeated measurements at the current estimate, but it also creates selection bias. The proof resolves this dependence by obtaining a uniform bound over all possible current noise averages before the acceptance history selects the realized one.
Under matched total measurement budgets, the numerical experiments show that pooled reuse performs similarly to the remeasurement benchmark and generally somewhat better than it. These results demonstrate the advantage of pooling and motivate the treatment of its associated selection bias in the convergence analysis.
Future work will investigate more efficient schedules for the running average and threshold. It will also examine whether pooled comparisons and the associated control of selection bias can be extended to localized random search, simulated annealing, genetic algorithms, and other stochastic search methods.
References
[1] J. C. Spall, Introduction to Stochastic Search and Optimization: Estimation, Simulation, and Control. Wiley, 2003.
[2] J. C. Spall, “Developments in stochastic optimization algorithms with gradient approximations based on function measurements,” in Proceedings of the 1994 Winter Simulation Conference, J. D. Tew, S. Manivannan, D. A. Sadowski, and A. F. Seila, Eds., Lake Buena Vista, FL, USA, 1994, pp. 207–214.
[3] D. C. Chin, J. C. Spall, and R. H. Smith, “Evaluation of system-wide traffic signal control using stochastic optimization and neural networks,” in Proc. 1999 American Control Conference, San Diego, CA, USA, 1999, pp. 2188–2194.
[4] R. G. Regis, “A hybrid surrogate-assisted accelerated random search and trust region approach for constrained black-box optimization,” in Machine Learning, Optimization, and Data Science (LOD 2021), ser. Lecture Notes in Computer Science, vol. 13164, G. Nicosia et al., Eds. Cham, Switzerland: Springer, 2022, pp. 162–177.
[5] F. J. Solis and R. J.-B. Wets, “Minimization by random search techniques,” Mathematics of Operations Research, vol. 6, no. 1, pp. 19–30, 1981.
[6] D. L. J. Alexander, D. W. Bulger, J. M. Calvin, H. E. Romeijn, and R. L. Sherriff, “Approximate implementations of pure random search in the presence of noise,” Journal of Global Optimization, vol. 31, no. 4, pp. 601–612, 2005.
[7] L. P. Devroye, “On the convergence of statistical search,” IEEE Transactions on Systems, Man, and Cybernetics, vol. SMC-6, no. 1, pp. 46–56, 1976.
[8] L. Devroye and A. Krzyżak, “Random search under additive noise,” in Modeling Uncertainty: An Examination of Stochastic Theory, Methods, and Applications, M. Dror, P. L’Ecuyer, and F. Szidarovszky, Eds., vol. 46, International Series in Operations Research & Management Science. Boston, MA: Kluwer Academic Publishers, 2002, pp. 383–417.
[9] L. P. Devroye, “On random search with a learning memory,” in Proc. IEEE Conf. on Cybernetics and Society, Washington, DC, USA, 1976, pp. 704–711.
[10] M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Cambridge, U.K.: Cambridge University Press, 2019.
[11] W. Feller, An Introduction to Probability Theory and Its Applications, vol. 1, 2nd ed. Wiley, 1957.