Heuristic approaches to obtain low-discrepancy point sets via subset selection
필름·전자재료 · (13) 프리즘 필름
기본 정보
- 저자
- DOI
- 10.1016/j.jco.2024.101852
- 저널
- Journal of Complexity
- 발행년도
- 2024
- 발행기관
- Elsevier BV
- 피인용수
- 6
- 라이선스
- cc-by-nc
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.jco.2024.101852
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W4392882198
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 83,937자
본문 펼치기
섹션 본문 90문단 · 48,973자
(제목 없음)
1Building upon the exact methods presented in our earlier work [J.Complexity, 2022], we introduce a heuristic approach for the star discrepancy subset selection problem.The heuristic gradually improves the current-best subset by replacing one of its elements at a time.While we prove that the heuristic does not necessarily return an optimal solution, we obtain very promising results for all tested dimensions.For example, for moderate point set sizes 30 ≤ n ≤ 240 in dimension 6, we obtain point sets with L ∞ star discrepancy up to 35% better than that of the first n points of the Sobol' sequence.Our heuristic works in all dimensions, the main limitation being the precision of the discrepancy calculation algorithms.We also provide a comparison with a recent energy functional introduced by Steinerberger [J.Complexity, 2019], showing that our heuristic performs better on all tested instances.
Introduction
2Discrepancy measures are designed to quantify how regularly a point set is distributed in a given space.Many discrepancy measures exist, one of the most common ones being the L ∞ star discrepancy.The L ∞ star discrepancy of a point set P ⊆ [0, 1] d measures the worst absolute difference between the Lebesgue measure of a d-dimensional box anchored in (0, . . ., 0) and the proportion of points that fall inside this box.The L ∞ star discrepancy gained significant attention because of the Koksma-Hlawka inequality [19,20] which bounds the error made in numerical integration.While Quasi-Monte Carlo integration is their main application [6], point sets of low L ∞ star discrepancy are also used for one-shot optimization [4], design of experiments [28], computer vision [26], and financial mathematics [13].
3Throughout this paper, we write n for the number of points of a d-dimensional point set.We write sequence for an infinite series of points and set for a finite one, both are closely linked as results on sequences in dimension d correspond to those on sets in dimension d+1 (see [22]).Well-known sequences and constructions such as Sobol', Halton, Hammersley, or digital nets achieve discrepancies of order log d−1 (n)/n for the first n elements of the sequence in dimension d (see [24] for a detailed description).However, the driving focus behind the construction of these sequences is to obtain the optimal asymptotic order for the L ∞ star discrepancy.While random points -whose star discrepancy scales in d/n [8] -are not as good in the asymptotic setting, they often outperform low-discrepancy sequences for practical applications where the number of samples n might be too small to reach the asymptotic advantage [1].
4The lack of low-discrepancy constructions adapted to specific n and d combinations led us to introduce the Star Discrepancy Subset Selection Problem (SDSSP) in [5].We showed that the SDSSP is an NP-hard problem and proposed two exact methods, a branch-and-bound algorithm and an MILP formulation, to solve it for low n and d ∈ {2, 3}.In this specific setting, we obtained point sets of much better discrepancy than the known low-discrepancy sets of the same size (Sobol', Halton and Faure for example), with only the Fibonnacci sequence being competitive for specific point set sizes in dimension 2.
5Our contribution: Extending [5], we provide here a heuristic to solve the problem in much higher dimensions, as well as with a higher number of points.We introduce a swap-based heuristic, which attempts to replace a point of the chosen subset by one currently not chosen, using the box with the worst local discrepancy to guide our swap-choice.A further brute-force check is then used to guarantee that the final point set is a local minimum.This approach is able to obtain point sets of much smaller discrepancy than the known constructions for all dimensions for which the discrepancy can be reliably computed, hence significantly improving on the range of settings that can be handled by the exact methods presented in [5].
6With different instantiations of the heuristic, we obtain point sets that are between 10 and 40% better than the initial Sobol' set of the same size.Initial experiments also show that choosing a subset of size k close to the initial point set size n leads to better results, especially when the dimension d and the target set size n increase, which was also observed with exact methods.Our results lead to clear improvements for the inverse star discrepancy, with the number of points required to obtain L ∞ star discrepancy lower than a given threshold being sometimes divided by 2.
7Finally, we also compare our method with the energy functional on the points' position introduced by Steinerberger [30], which is minimized by gradient descent to obtain a point set with low discrepancy.His approach can be used on any point set in any dimension but he provides results mostly for dimensions 2 and 3. We give a detailed comparison of his method with ours as well as some extended testing in higher dimensions in Section 4.4.We show that not only can we clearly outperform the results obtained by this approach, but also combining the two methods allows us to build point sets whose discrepancy is competitive with that of the Sobol' sequence.This can be done with any starting point set, it does not require a good number theoretic construction.We note that the sets obtained this way are not as good as those obtained by using Subset Selection on the Sobol' sequence.
8Related work: Despite the extensive research on optimal asymptotic constructions, there is little similar work attempting to build point sets directly.Apart from the mentioned work by Steinerberger [30], the most similar work was by Doerr and de Rainville in [10] where they used evolutionary algorithms to optimize the permutations used to build generalized Halton sequences.Their work had a very similar goal but was limited to improving one specific sequence.
9Structure of the paper: We recall in Section 2 some important results on the L ∞ star discrepancy.In particular, we give a brief reminder on the structure of the L ∞ star discrepancy function, describe the two main methods of computing it and recall the main results on the Star Discrepancy Subset Selection problem.In Section 3 we introduce the new heuristics to solve the problem in higher dimensions.Section 4 will describe our numerical evaluation and the quality of the obtained point sets, as well as a comparison with Steinerberger's energy functional.
10Availability of code: Our code and obtained point sets are available at https://github.com/frclement/SDSSP_Heuristics.
General results on the star discrepancy
11The L ∞ star discrepancy of a point set represents the worst absolute difference between the proportion of points that fall inside a box and the proportion of volume taken by this box.Formally, the L ∞ star discrepancy of a point set P ⊆ [0, 1] d is defined as
12where λ(q) is the Lebesgue measure of the box [0, q).For the asymptotic order of the L ∞ star discrepancy, there exist several sequences reaching an order of O(log d (n)/n).These are known as low-discrepancy sequences and exhibit the best asymptotic L ∞ star discrepancy known today.However, the best lower bound for the star discrepancy in dimension d states that there exist constants c, C depending only on the dimension such that d * ∞ (P ) ≥ c log C+(d−1)/2 (n)/n [3].It is conjectured that in any dimension d there exists a constant c d such that any n-point set verifies d * ∞ (P ) ≥ c d log d−1 (n)/n.This would give us a matching bound to the low-discrepancy sets mentioned previously.The difference with the O(log d (n)/n) bound is due to the set/sequence distinction: for sequences we have to consider all the different sets of increasing sizes that make the sequence.The relation between the two settings was shown by Roth in [27].However, the above-mentioned conjecture has only been proven to hold in dimensions 1 and 2 [29].More detailed bounds can be found in [6].
13Despite being defined as a continuous problem over all possible anchored boxes, calculating the star discrepancy can be treated as a discrete problem [23].First, we notice that any closed anchored box in [0, 1] d can be obtained as the limit of a sequence of bigger open boxes that contain the same number of points.The only exception is [1, . . ., 1] and this closed box cannot give the worst discrepancy value as its local discrepancy is 0. Following the notation introduced in [5], we define D(q, P ) to be the number of points of P that fall inside the open anchored box [0, q) and D(q, P ) the number of points of P that fall inside the closed anchored box [0, q].We define the two following functions:
14The local discrepancy in a point q ∈ [0, 1] d is given by the maximum of δ(q, P ) and δ(q, P ).It is also not necessary to consider all possible values for q.Indeed, we can define for all j ∈ {1, . . ., d} the grid
15with Γ j (P ) := {x
16As shown in more detail in [9], the star discrepancy computation reduces to the following discrete problem
17δ(q, P ), max q∈Γ(P )
18δ(q, P ) .
19(5)
Star discrepancy: problem-specific algorithms
20The decision version of the star discrepancy computation has been shown to be NP-hard [16], and even W [1]-hard a few years later [14].Directly solving the discrete problem introduced above would require calculating n d local discrepancies, this can be reduced to O(n d /(d!)) by noticing that only boxes whose outer edges (i.e not involving 0) have at least one point on them can reach the worst discrepancy value.These specific boxes are called critical boxes.In Figure 1, the critical boxes are visible as the intersection points of the grid lines.Critical boxes are defined for both open and closed boxes, the difference being that for open boxes the points defining its edges will not be inside the box.
21The best known exact algorithm to compute the star discrepancy value of a given point set runs in O(n 1+d/2 ), it was proposed by Dobkin, Eppstein and Mitchell in [7].Based on a space decomposition originally used to solve Klee's measure problem, the algorithm carefully builds O(n d/2 ) disjoint boxes covering [0, 1] d .For each of these boxes B i , it is then possible to formulate a dynamic programming problem whose solution corresponds to the box with the worst local discrepancy whose corner is in B i .Each of these dynamic programming problems can be solved in linear time, leading to the stated overall complexity.We will be writing DEM algorithm to refer to this algorithm from now on.
22On the heuristics side, the best known algorithm is a Threshold Accepting algorithm by Gnewuch, Wahlström and Winzen [17], building upon an initial work by Winker and Fang [32].Threshold Accepting is quite similar to Simulated Annealing: at each step, a neighbouring candidate point in Γ(P ) is selected.If the local discrepancy is not worse than that of the current "incumbent" plus a threshold then it is selected, and it is discarded otherwise.The threshold gradually decreases during the run of the algorithm, to allow for exploration initially before guaranteeing stability.A dynamic choice of the neighbourhood structure is introduced in [17].The number of coordinates that can be changed is increased over time, while the maximal length of steps in each of these coordinates is decreased.Finally, the algorithm uses a problemspecific rounding procedure based on critical boxes referred to as snapping.Using the DEM algorithm as a baseline to validate their results, Gnewuch et al. showed that their algorithm was returning correct values whenever the DEM algorithm was functioning.Based on their results, it seems to be reliable enough until somewhere between dimensions 12 and 20 for a few hundred points.We will be calling this heuristic TA heuristic in this paper.A more detailed description of these algorithms and other attempts to compute the star discrepancy can be found in Chapter 10 in [9].
The star discrepancy subset selection problem (SDSSP)
23We recall the star discrepancy subset selection problem (SDSSP) introduced in δ(q, P * ), max
24which is equivalent to arg min
25δ(q, P * ), max q∈Γ(P ) δ(q, P * ) .
26It was shown that the decision version of this problem is NP-hard.The SDSSP problem is also non-monotonic: the best solution for k < k is not necessarily contained in the one for k, see [5] for an example in dimension 1.
27We introduced two exact methods to solve the problem [5].The first is an MILP formulation which relies on introducing two constraints for each grid point: one for the open box and one for the closed box associated to each grid point.A binary variable can be associated to each point in P and the points inside each box are known in advance regardless of the subset, therefore each constraint can be defined knowing only P .Each constraint lower-bounds our objective by the local discrepancy.Minimizing this objective as well as adding a constraint forcing that k points need to be taken gives us the optimal star discrepancy for a subset of size k of P .We then solve the MILP with a solver (in this case SCIP [2]), but only for dimension 2 due to solver limitations.The solver works quite well in 2d for up to 140 points but is very quickly limited by the runtime as well as by the size of the file describing all the constraints.It performs better when k and n are close, since the linear relaxation is a tighter bound (the relaxation is integral for k = n).In 3d, we are not able to solve the problem with the MILP formulation.
28The second approach, based on a combinatorial branch-and-bound method, considers the points in a sorted order in one dimension and at each branching step to either accept or reject a point in the subset.At each step of the branch-and-bound, we update local discrepancy values associated with well-chosen grid points to obtain a lower bound on the final discrepancy value.More precisely, for each box, given the already accepted and rejected points, we determine the best possible final local discrepancy by assuming that the remaining points are optimally picked for this box, which gives us a lower bound for the discrepancy value that can be obtained for this box.The upper bound is initialized with a greedy heuristic which builds a subset by taking points one by one, greedily minimizing the star discrepancy at each step.The upper bound is then updated whenever we find a better solution.The branch-and-bound algorithm also successfully solves the problem in 2 and 3 dimensions for up to 140 points, but could not finish within the 30 minutes cutoff on larger instances.Nevertheless, the MILP and the branch-and-bound return subsets of up to 50% smaller L ∞ star discrepancy than standard low-discrepancy sets of the same size (Sobol', Halton,...).
A Heuristic Approach for the Star Discrepancy Subset Selection Problem
29To generalize the results of SDSSP to higher dimensions and to larger point sets, we introduce in this section a general method and several instantiations of it.The main working principle of this method is to keep the best subset found so far and, at each step, to attempt replacing some of the points inside this subset with some of the currently not chosen ones.The point set with the best discrepancy is then kept: either the initial one or the set obtained after the swaps.In case of a tie, the initial set is kept.For j ∈ {1, . . ., n}, we call j-swap the simultaneous replacement of j points inside the set with j points outside the set.
30The main idea is to keep a current subset and to improve it via well-chosen 1-swaps.During a first step, we only consider the points defining the worst local discrepancy box as candidates to be removed from the chosen subset.That is, if the discrepancy of the current subset P * is attained in q ∈ [0, 1] d , up to d points x ∈ P * ∩ [0, q] with x i = q i for some i ∈ {1, . . ., d} are considered to be replaced by a point y ∈ P \ P * .If no improving 1-swap is found, we then consider all remaining 1-swaps during the second step.At any point, if an improving 1-swap is found, we go back to the beginning of Step 1 with our new point set.
31We note that our current choices for the heuristic are strongly influenced by the cost of discrepancy calculations.A single run with the brute-force check can require thousands of discrepancy calculations, each with a cost of O(k d/2+1 ) for the DEM algorithm.Choosing carefully which swap to try should be a key focus in designing heuristics to tackle this problem.For ease of explanation, we will only consider the case when a closed box reaches the maximal local discrepancy value, the open box case is treated very similarly.
32Initialization.Let P ⊆ [0, 1] d with |P | = n be the input point set and k ≤ n the target size.For each coordinate i ∈ {1, . . ., d}, let π i be the permutation ordering the points P ∪ (1, . . ., 1) by their i-th coordinate.In other words, p πi(1),i ≤ p πi(2),i ≤ . . .≤ p πi(n+1),i = 1.
33The algorithm is initialized with a randomly selected subset P 1 , for which the discrepancy d * ∞ (P 1 ) and the corner a = (a 1 , . . ., a d ) of the closed box B 1 = [0, a] defining this discrepancy value are computed.To improve this subset, points in B 1 ∩ P 1 must be replaced by points in P \(B 1 ∩ P 1 ), otherwise the local discrepancy for B 1 will at best stay the same.Since the discrepancy maximum can only be reached for a critical box, in every dimension j ∈ {1, . . ., d} there exists p πj (cj ) with c j ∈ {1, . . ., n + 1} such that p πj (cj ) = a j and p πj (cj ) ∈ B 1 .These points will be called edge points.
34Step 1: Breadth-first search.A dimension j ∈ {1, . . ., d} is picked at random and the heuristic checks if p πj (cj +1) is in P 1 .If it is not, we compute the discrepancy of (P 1 \{p πj (cj ) })∪{p πj (cj +1) }.If this discrepancy is strictly lower than that of P 1 , the chosen subset is changed to P 2 := (P 1 \{p πj (cj ) }) ∪ {p πj (cj +1) }.There is a new critical box B 2 returned during the discrepancy computation and we go back to the beginning of
35) is in P 1 , dimension j + 1 mod d is then considered, where we do the same operations.This continues until either we have found a better subset or all dimensions have been considered.If all dimensions are checked without finding an improvement, the heuristic goes back to the first dimension considered.It then does the same operations, but with p πj (cj +2) rather than p πj (cj +1)
36Largest empty boxes for P A and P B Top curve:
37An illustration of the different points of the proof of Proposition 3.1: the q i are in red, p i in blue if i < k + 1 and green otherwise.The lower curve corresponds to xy = 1 − 1/k, the upper one to xy = 1 − α.They are not up to scale for readability.The red lines represent how blue points are built, whereas the blue and green boxes are the discrepancy-defining boxes for P A and P B respectively.The L∞ star discrepancy of
38. However, it is impossible to transition from P A to P B without changing the whole set at once.
39for all j ∈ {1, . . ., d}.This continues until either we find a new subset with better discrepancy or until we have tried all possible swaps between p πj (cj ) and p πj (bj ) , with j ∈ {1, . . ., d}, b j ∈ {c j + 1, . . ., n + 1}, and p πj (bj ) / ∈ P 1 .In the first case, we go back to the beginning of Step 1 with our new point subset and new worst box.
40Step 2: Brute-force check.In the second case, the heuristic tries all remaining valid swaps until either a better subset is found and we go back to Step 1 or we can guarantee our current point set is a local minimum.The valid swaps to check are of two types.They can either involve an edge point: for any j ∈ {1, . . ., d}, p πj (cj ) is swapped with p πj (bj ) for any b j such that b j ∈ {1, . . ., c j − 1} and p πj (bj ) / ∈ P 1 .Or they swap a point strictly inside the box with one outside: p πj (aj ) such that a j ∈ {1, . . ., c j − 1} and p πj (aj ) ∈ P 1 is swapped with p h / ∈ P 1 ∪ B 1 with h ∈ {1, . . ., n}.Restarts.Multiple runs of the heuristic with different starting positions are performed to limit the influence of the initial subset.The discrepancy computations are done with the DEM algorithm in low dimensions (d ≤ 7) and with the TA heuristic for all other dimensions, both algorithms returning the discrepancy value and the box reaching it.In our experiments, to compare the performance of both discrepancy calculation methods in the context of Subset Selection, we will highlight which algorithm is used.
41Rather than the current breadth-first search, we also tried a depth-first search where all swaps involving p πj (cj ) for a given j were done before moving to the next dimension.This did not give any noticeable improvements, and we expect our current method to perform better as it should swap points that are on average closer, with less risk of unbalancing our subset.Efficiently finding the optimal swap and the correct number of swaps to perform at once are both open questions.
42While our empirical evaluation of these heuristics will prove promising performance (Section 4), we nevertheless start with a somewhat negative result about the global convergence of our heuristics.Proposition 3.1.Let k-SDSSP-j be the problem of obtaining the minimal star discrepancy subset of size k by only doing improving j-swaps.For every d ≥ 2, there exist point sets P in dimension d for which the k-SDSSP-j has local minima which are not global minima if n ≥ 2k and j < k, or n < 2k and j < n − k.
43Proof.We first consider a base case for j = k − 1, d = 2, and n = 2k.Its extension to all the other combinations of d, j, and n will be described afterwards.
44Base case: We construct a point set P ⊆ [0, 1] 2 of size 2k and let j = k − 1, represented in Figure 2. To build P , we first consider a very small constant α and a set of k + 1 points (q i,1 , q i,2 ) that satisfy q i,1 q i,2 = 1 − α.We assume the indices to be sorted such that for all i, q i,1 < q i+1,1 .We further require that q i,1 q i+1,2 > 1 − 1/(2k).These points are the red triangles in Figure 2. We then use these k + 1 points to build the first k points of P , the set P A := {(q i,1 , q i+1,2 ) : 1 ≤ i ≤ k} := {(p i,1 , p i,2 ) : i ∈ {1, . . ., k}} given by blue squares in Figure 2. From each point p i in P A with i ≥ 2, we can build a point p k+i , with p k+i,1 := p i,1 and p k+i,2 := p i,2 − δ, where δ is a small positive constant strictly upper-bounded by min i∈{1,...,k−1} |p i,2 − p i+1,2 | and such that p k+i,1 p k+i,2 ≥ 1 − 1/k.p k+1 is such that p k+1,2 = p 1,2 − δ and p k+1,1 = p 1,1 − γ, where γ is strictly positive smaller than p 1,1 and such that p k+1,1 p k+1,2 ≥ 1 − 1/k.The set formed by these points is defined as P B , represented by green discs in Figure 2.
45We first note that for any subset P k of P of size k, the L ∞ star discrepancy of P k will be given by the largest box in [0, 1] d containing no points of P k .Any open box containing points will have local discrepancy at most 1 − 1/k (the maximal volume minus the minimal number of points) and any closed box containing points will have local discrepancy at most 1 − (1 − 1/k) = 1/k (the maximal number of points minus the minimal volume of a box containing a point).On the other hand, the largest empty box will always have volume at least 1 − 1/k (all the points are above the curve xy = 1 − 1/k, see Figure 2) and thus local discrepancy at least 1 − 1/k.
46We now show that P A is a local optimum but not a global one.First of all, P A has discrepancy exactly 1 − α, obtained for one of the k + 1 empty boxes whose top-right corner is either (p 1,1 , 1), (
47has to be empty.By the ordering given above, this empty box will have a volume greater than that of p h+1,1 p h,2 , the discrepancy of P A .
48By the above, P A is a local minimum.However, for P B , the largest empty boxes will have volume p k+i+1,1 p k+i,2 for i ∈ {1, . . ., k − 1}.By construction p k+i+1,1 = p i+1,1 and p k+i,2 < p i,2 .Since the discrepancy of P B is given by the largest empty box, we can conclude that d * ∞ (P B ) < d * ∞ (P A ), P A is hence a local minimum for the k-SDSSP-j problem, but not a global one.
49Higher dimensions: Taking the same point set with 1's added for all the coordinates in dimensions greater than 2 gives the exact same proof.
50More points n > 2k: We can add all the n − 2k new points to the region above the curve xy = 1 − α.Taking any of these never reduces the volume of the largest empty box, thus a local/global minimum in the base case is still a local/global optimum.
51Fewer swaps j < k − 2: A local optimum for j = k − 2 swaps is still a local optimum for j < k − 2 swaps, the global optimum is unchanged.
52Fewer points n < 2k: The same construction is no longer possible and at least 2k − n points have to be shared between any two sets.If j ≥ n − k then there are no local optima which are not also global optima, as any subset can be transformed to any other in a single step.If we remove the first 2k − n points from P (this is less than n, we are removing only points from P A ), we want the set P LO := {p i : i ∈ {2k − n + 1, 3k − n}} to be a local minimum.We note that we are keeping the numbering from the base case, i.e, the points in P are numbered from 2k − n + 1 to 2k.This requires us to be unable to switch all the n − k "unshared" points to those in P B (note that p 1 and p k+1 no longer have a special role as p 1 no longer exists), therefore j < n − k.The proof is then the same.
53While the above point set should not arise often, in practice experiments confirm the existence of many local minima for 1-swaps, even for very few points (n = 10) and k close to n.An example is shown in Figure 3. Finally, we have ignored so far the possibility of swapping points when the discrepancy values are equal (and not just when strictly inferior).We call this type of exchange a plateau move.Should plateau moves be allowed, the proof above would no longer hold, as all sets have the same discrepancy barring the optimal one.Any swaps would always be kept until P B is reached.If the swaps are chosen randomly, the expected time taken would correspond to the expected number of steps to go from (0, . . ., 0) (k times) to (1, . . ., 1) with j swaps at each step.We expect the result to still be valid with plateau moves, but the proof will need to involve three different discrepancy values and the simple "empty box" worst value will not be sufficient.
54In practice, plateau moves were forbidden as they were found to greatly limit the performance of the heuristic.While discrepancy is a global property, only the worst local discrepancy explicitly influences the global L ∞ star discrepancy value.It is therefore possible to make a point set worse for future steps while keeping the same discrepancy value, for example by swapping two points both inside the worst critical box or two points outside it.Further work is necessary to verify if good tie-breakers could be used, for example the second-worst local discrepancy value or the discrepancy of some well-chosen projections of our sets.
Experimental Study
55In this section, we study the performance of our heuristic in different dimensions and slightly different instantiations.We also consider how performance evolves when two of the problem's parameters are fixed, for example d and k or d and n.Finally, we provide a detailed comparison with Steinerberger's energy functional and a potential application of the combination of the two methods.
Experimental setup
56All the different parts of the code were done in C. The Sobol' sequence generation was done with the GNU Scientific Library, using the procedure gsl_qrng_sobol.Whenever randomness was required (for the first chosen subset and the dimension choice in Step 1 of the heuristics), rand() was used and initialized with srand(1).The heuristics were implemented by us, with the exception of the two methods for calculating the star discrepancy (DEM algorithm and TA heuristic) which were provided to us by Magnus Wahlström.The experiments were run on a Debian/GNU Linux 11 computer, with a Quad Core Intel Core i7-6700 processor and 32 GB RAM.gcc 10.2.1 was used with the -O3 compilation flag.Experiments were run with four types of heuristic instantiations, either with the TA heuristic or the DEM algorithm, each with or without the brute-force check.They are available at https://github.com/frclement/SDSSP_Heuristics.The instantiations will be referred to as TA_BF, TA_NBF, DEM_BF or DEM_NBF, starting with TA if it is the TA heuristic and ending with BF if it did the brute-force check, NBF if not.We considered points in dimensions {4, 5, 6, 8, 10, 15, 25}, all ground sets are taken from the Sobol' sequence.Initial experiments were run for n ∈ {100, 150, 200, 250} and k ∈ {n − 10, n − 20, n − 30, n − 40, n − 50, n − 60, n − 70}, with a maximum of 10 runs for each instance.Further experiments to refine the parameter choices or get more precise results were done with slightly different values of n and k (but still of the same order of magnitude).They will be described for the relevant results.Each heuristic experiment was given a 1 hour cutoff, with the best value found so far returned if the heuristic had not finished by then.More precisely, if all 10 runs could finish in one hour then the value returned is the best of those, but for the larger instances the value returned may be the best value found in the first unfinished run.
Experiment results
57Figures 4 and 5 show the performance of our different instantiations in dimensions 3 and 6, respectively.Plots change color to highlight when we are changing the ground set from which these points are selected (i.e., when we increment the previous n by 50).Whenever a heuristic was not able to terminate, we plot the best discrepancy value obtained during the run.
58Figure 4 shows the performance of the different instantiations compared to the Sobol' sequence (black) in dimension 3. DEM_BF is the best performing version of the heuristic, with DEM_NBF outperforming it only for the two smallest instances.For k ≥ 70, DEM_BF improves over the Sobol' set of the same size by between 17 and 27%.DEM_NBF is also performing better with a 14% decrease in the discrepancy on average.However, the TA variants are struggling: TA_NBF improves the Sobol' sequence by only 8% on average and TA_BF improves it by 2%, both being worse than the Sobol' set of similar size for numerous instances.In dimension 3, the DEM algorithm is much faster than the TA heuristic which has a similar runtime regardless of the dimension.This allows the DEM instantiations to run multiple instances within the 1 hour time limit.For example, TA_BF does not finish even once for n = 200 and k = 130, whereas DEM_BF takes around 41 seconds for a single run.For n = 150 and k = 80, DEM_BF finishes a run in 6 seconds, DEM_NBF in 0.8 seconds and TA_NBF in 500 seconds.
59Figure 5 shows that all 4 instantiations have relatively similar performances in dimension 6, all 4 having the best performance on at least one instance.On each instance, the best performing heuristic gives a 10 to 35% improvement on the discrepancy of the Sobol' sequence of the same size.Even taking the worst performing one, with the exception of 30 points for the TA_BF heuristic, we have a 7 to 30% improvement.We note that from n ≥ 120 and n − k ≥ 30 onwards, both _BF instantiations are often (or always for DEM_BF) unable to finish a single run.We introduced the subset selection problem largely because in higher dimensions a smaller number of samples might not guarantee that low-discrepancy sets would have enough points to reach the asymptotic regime.The tests in dimensions 3 and 6 show that subset selection is more effective in dimension 6, despite the instantiations running fewer tries.For example, DEM_BF does not finish a single run in dimension 6 but does 10 separate runs in dimension 3.This seems to confirm our hypothesis that subset selection will perform better in higher dimensions, for which an exponential number of points is required to reach the asymptotic bounds.
60Given these initial results, further tests were done only on the DEM_BF and TA_NBF instantiations.In lower dimensions, the DEM algorithm is faster than the TA heuristic.Each heuristic run is fast enough to allow for a brute-force check and the DEM_BF instantiation gives us the best possible subsets with our method.It also guarantees the correctness of the discrepancy value.For higher dimensions, both the DEM algorithm and the brute-force check become too expensive, TA_NBF is the only reliably fast instantiation.
61We now fix the dimension (here d = 6) and the resulting point set size (k = 90) to find the best ground set size n to obtain higher quality point sets.In Figure 6, we see that DEM_BF performs well for all different values of n, whereas TA_NBF works better for n − k close to 20.The first 90 points of the Sobol' sequence have discrepancy 0.126, and only a single instance for TA_NBF fails to improve this value.The best instances, for DEM_BF with n − k ∈ {10, 20, 30}, give a 20% improvement over the Sobol' sequence.These values for n − k are linked to our results on exact methods in [5], where the greatest discrepancy improvements were also observed for n − k = 20.
62For n 1 > n 2 and a fixed k, the optimal subset selection solution for n 1 is better than the one for n 2 .However, we observe that increasing n is not a good strategy for our heuristic, in particular for TA.We expect this to come from a larger search space which the heuristic cannot explore well and from more sub-optimal local optima our heuristic could converge towards.
63We then performed a similar experiment with fixed n and varying k to verify that we obtained coherent results, this time in dimension 5.The results are shown in Figure 7.We first note that the increase in discrepancy when k decreases is expected as we have smaller point sets.The heuristic performs well for all different values of k, with both instantiations always outperforming the Sobol' sequence.DEM_BF improves the Sobol' sequence discrepancy by between 12 and 33% and TA_NBF by 2 to 26%.Once again, TA_NBF performs much better when the difference between n and k is small whereas DEM_BF seems to be much more reliable for all values.The discrepancy of the point sets obtained with the heuristics behaves less erratically than the initial Sobol' sequence as the new point sets avoid discrepancy spikes for specific point set sizes.The noticeable improvement obtained by going from 200 to 195 points suggests that removing very few carefully chosen points could also lead to large discrepancy improvements.While we expect this to happen because our heuristics perform better (the search space is much smaller), this could be a promising direction for cheaper methods of improving low-discrepancy point sets.
64Figure 8 gives the best values obtained by TA_NBF and DEM_BF for k = n − 20 and k = n − 30, which should be the best conditions for our heuristic given the previous results.We notice that there is very little difference between both algorithms, and with k = n − 20 or k = n − 30.In all cases, our heuristic is clearly outperforming the Sobol' sequence, the discrepancy value for 170 points of Sobol' is reached at 120 or 130 points for all our point sets.Our heuristic improves the Sobol' sequence's discrepancy by 8 to 30% depending on the instantiation choice.For each choice of k and n, the worst instantation improves by between 8 and 25% the discrepancy, whereas the best performing one improves by 15 to 30%.While the plots here show results in dimension 6, our experiments show that our heuristic performs well for all dimensions for which we can compute the discrepancy.We note that results become poorer for much larger n: if n = 500 and k = 480, the benefit of using subset selection becomes quite small.Appendix A gives a greater set of values obtained during our experiments.
Improvements for the inverse star discrepancy
65Obtaining point sets with better star discrepancy naturally leads to improvements for the inverse star discrepancy problem: given a discrepancy target ε, what is the minimal n such that there exists a point set P such that |P | = n and d * ∞ (P ) ≤ ε? Table 1 shows the improvement in inverse star discrepancy by using a subset selection approach.For applications where the evaluation of each point can take a whole day of calculations, the 15 to 50% gain is substantial.These values were obtained by only taking results from our previous experiments (either in figures or the tables in Appendix Appendix A).We did not try to find the smallest values to reach these discrepancy targets.It is likely that our results could be further improved by a more targeted search.Adapting parameters to the desired instance, increasing the number of runs or removing the 1 hour cutoff are possible options to obtain better results.
66We note that the star discrepancy of some known sequences may have been theoretically overestimated, or most likely simply never calculated.In [25], Open Problem 42 lists some open questions with targets for the inverse star discrepancy, as well as a conjecture that n = 10d would be a sufficient number of points to reach d * ∞ = 0.25.The open questions had been solved by Hinrichs [18] for the first, and later by de Rainville and Doerr [10] for all three, each time by building a new point set.Our experiments on the Sobol' sequence show that n = 7d points are sufficient at least for lower dimensions (smaller than 10).Figure 9 shows how the discrepancy of the Sobol' sequence evolves for specific dimensions, as well as a comparison with our subset selection sets.
67All three open problems seem to be solved by taking a few hundred points rather than the thousands suggested, confirming de Rainville and Doerr's results without requiring a new set construction.For example, in dimension 15, 146 points have a discrepancy of 0.198, in dimension 30 320 points have a discrepancy of 0.193 and in dimension 25 1205 points have a discrepancy of 0.0996 which can then be lifted to a 50-dimensional point set with discrepancy smaller than 0.2 using Hinrichs' lifting procedure [18].We acknowledge that these discrepancy values may not be exact as we used the Threshold Accepting heuristic, which does not give us any correctness guarantee.However, there is such a large margin both in discrepancy value and number of points that we believe the Sobol' sequence to solve these problems.It is also possible to use subset selection to improve these values even further.
68Figure 10 shows the number of points of the Sobol' sequence that are needed to reach discrepancy less than or equal to 0.2 depending on the dimension.This number of points should not be seen as an exact value, but as an upper-bound.Indeed, we found this via binary search to avoid having to compute discrepancy values for all possible n.However, since the star discrepancy of the Sobol' sequence is not monotonous in n (see Figure 8), it is possible we have missed better point sets.Nevertheless, we observe a linear relation between the dimension and the number of points, close to n = 10d.This reinforces our impression that even the n = 10d conjecture from [25] is overestimating the number of points necessary to reach discrepancy ≤ 0.25.
Comparison with the energy functional
69In [30], Steinerberger introduced the following functional for a point set
70This expression was derived from the Erdős-Koksma-Turán inequality ( [11,12,21]), modified to allow the use of gradient descent for optimization.Starting with a given point set of any kind, he applied standard gradient descent until convergence to obtain a new point set which should be better distributed and hopefully have lower discrepancy.He provided a number of examples in dimension 2, while underlining that specific point sets could not be improved by his functional.We ran more extensive experiments in higher dimensions, especially in a setting where n is not necessarily far larger than d.We implemented the functional in C.
71Table 2 shows our results and compares the obtained point sets with the results obtained via our subset selection approach.While the energy functional manages to improve in most cases the discrepancy of the input point set, it is much less effective than Subset Selection.In particular, it is sometimes unable to improve the Sobol' sequence, for example for d = 5 and k = 100.Subset selection is therefore more effective than the functional at creating a new point set with lower discrepancy.Furthermore, the functional cannot be applied to our new point sets to obtain better point sets.Applying the energy functional optimization to our own low-discrepancy point sets makes them noticeably worse, removing a large part of the initial gain of subset selection.Table 3 gives the discrepancies of point sets obtained by DEM_BF or TA_NBF (n is the nearest multiple of 50 in each line), to which we apply the energy functional to obtain the point sets for the third column.The Sobol' point sets are added as a comparison point in the last column.We observe that the functional makes the point sets noticeably worse, sometimes even worse than the Sobol' point set of corresponding size.This also shows that the energy functional cannot be used as a surrogate for the discrepancy, the point sets obtained in column 3 in Table 3 had much lower energy than those in the second column.Despite this, the energy functional has one clear advantage over our method (apart from the runtime), in that it can take any point set as starting position.While this is not impossible for subset selection, the quality of the starting set strongly limits the quality of the resulting set with our method.For example, Figure 13 compares the effectiveness of Subset Selection, the energy functional and a combination of the two on random point sets generated in Python with the random module.For each (n, d) pair, 50 random instances are generated.The Sobol' sets are added as a comparison, the energy functional should be compared to the n points line (red) and the two others to the n − 20 line (blue).The sets obtained with only subset selection are a lot worse than the low-discrepancy sets, and in the majority of cases worse than those with only the energy functional.However, the combination of the two methods is always at least competitive It also shows that while the discrepancy of the point sets obtained with the energy functional is not always as good as it could be, the point set created is regular enough to be used as a starting point for subset selection.
Conclusion and Future Work
72Building on our previous paper on subset we introduced a heuristic that allowed us to obtain better point sets in all dimensions for which the star discrepancy can be computed, with on average a 20% lower discrepancy than the initial point set.The obtained point sets were compared with known lowdiscrepancy sequences as well as with an energy functional by Steinerberger.We also provided some initial guidance on the optimal choice of parameters from the problem, with k = n − 20 being a good baseline, where k is the subset size and n the input set size.
73There are also a remaining number of open questions, both on our current heuristic and more general aspects of the problem.Firstly, we have only considered 1-swaps so far, it is likely that heuristics would perform better with more change possibilities at each step.Proposition 3.1 shows it would not bring better theoretical guarantees and it would entail more computations, but the heuristic would have a better capacity to explore the possible subsets.The second step is also very expensive: determining a limited set of pairs to check before initiating a restart rather than testing all combinations is likely to improve the heuristics.
74Secondly, this problem has shown the limits of current algorithms to compute the star discrepancy.They are expensive and can only give lower bounds when n and d get too high.Some sort of surrogate to replace the star discrepancy evaluations would be extremely useful, as well as interesting in itself to better understand the star discrepancy behaviour.As we have shown, Steinerberger's functional would not be good enough for such purposes.A slightly less ambitious goal could be to find a better upper bound for the star discrepancy.Current upper bounds can be obtained either via Thiémard's approach [31] or bracketing covers [15], neither of which are fast enough for our purposes.functional and for interesting comments on it and on the inverse star discrepancy.Our work is financially supported by ANR-22-ERCS-0003-01 project VARIATION, by the CNRS INS2I project IOHprofiler, and by Campus France Pessoa project 49173PH.
Figure 1 :
75Figure 1: Discrepancy values for a random point set of 15 points in dimension 2
[ 5 ]
76. Given a point set P ⊆ [0, 1] d of size |P | = n and an integer 0 < k ≤ n, find a subset P * of P such that |P * | = k and d ∞ (P * ) is minimal among all other subsets of P of size k.This comes down to solving the problem arg min P * ⊆P |P * |=k max max q∈Γ(P * )
Figure 3 :
77Figure 3: Two k = 8 subsets taken from the first n = 10 points of the Sobol' sequence in dimension 2. The ten initial points are shown, with those present in both subsets shown as blue circles.The points shown as red squares and the blue points form a local optimum for 1-swap with discrepancy 0.234.The black triangles plus the blue points correspond to the global optimum of discrepancy 0.203.Neither of the two sets can be improved via 1-swaps.
Figure 4 :
78Figure 4: Performance of the different instantiations in dimension 3, from left to right: TA_BF, TA_NBF, DEM_BF and DEM_NBF.Different colors indicate a change of the initial set size (red for n = 100, blue for n = 150, green for n = 200 and yellow for n = 250), and the black curve corresponds to the Sobol' sequence (it is the same in all four plots).The plot includes the k = n case for all four different n, the rightmost point in this color.
Figure 5 :
79Figure 5: Performance of the different instantiations in dimension 6, from left to right: TA_BF, TA_NBF, DEM_BF and DEM_NBF.Different colors indicate a change of the initial set size (red for n = 100, blue for n = 150, green for n = 200 and yellow for n = 250), and the black curve corresponds to the Sobol' sequence (it is the same in all four plots).The plot includes the k = n case for all four different n, the rightmost point in each color.
Figure 6 :Figure 7 :
80Figure 6: Best discrepancy obtained for different values of n, k fixed to 90, and d = 6, with a cutoff time of 1 hour.
Figure 8 :
81Figure 8: Best discrepancy values obtained with our heuristic for d = 6 and k=n − 20 or k = n − 30
Figure 9 :
82Figure 9: Discrepancy values obtained for the Sobol' sequence in different dimensions, compared with the values obtained by subset selection (dashed lines).
Figure 10 :
83Figure 10: Number of points needed to obtain a discrepancy of 0.2 in different dimensions.
Figure 13 :
84Figure 13: A comparison of Subset Selection (middle in each plot), the energy functional (left in each plot) and the combination of the two methods for random points (right in each plot).This is done in dimensions 2 (left), 3 (middle) and 4 (right) and with an initial n = 70 (top), n = 120 (middle) and n = 170 (bottom).The horizontal lines represent the discrepancy values of the Sobol' sets of relevant size, n (red) and n − 20 (blue) in each plot.
851, p k,2 ) or (p i+1,1 , p i,2 ) for i ∈ {1, . . ., k − 1}.By definition of j-swaps, we replace j of the points inside P A by points in P B (since P A ∪ P B = P ).Let P C be our new point set, |P A ∩ P C | = 1.Let p i be the point in P A ∩ P C .There are now two different cases to consider: • If p k+i is not in P C , then the box with upper-right corner in (p i+1,1 , p i,2 ) is still empty.None of the other points could be inside since we have p 1,2 ≥ p k+1,2 ≥ p 2,2 ≥ . . .≥ p k,2 ≥ p 2k,2 and the first coordinates are ordered in the reverse order.The discrepancy of P C is therefore at least that of P A .
86• If p k+i is in P C , then there exists h ∈ {1, . . ., k} such that p h and p k+h are not in P C .The box with upper-right corner in (p h+1,1 , p h−1,2 ) (with
Table 1 :
87Number of points necessary to reach target discrepancies for Subset Selection and Sobol' in dimensions 4 and 5
Table 2 :
88Comparison of the Energy functional and Subset Selection.The functional is applied to the Sobol' set of the same size, the subset selection results are taken from our general experiments with n − k = 50 for DEM_BF or TA_NBF.
Table 3 :
89Figure 11: Percentage improvement of Subset Selection and the Energy functional compared to the Sobol' sequence, associatedTable2.Applying the Energy functional to our Subset Selection point sets.These point sets were obtained with k = n − 50, see Appendix A. ' set of similar size, and even better in the vast majority of cases.This suggests a new method of computing low-discrepancy point sets, without requiring any knowledge of existing sequences or number theory: starting from any random set, applying successively the energy functional and then subset selection generates good low-discrepancy point sets.
Table A .
905: Discrepancy values obtained in dimension 5 for the different heuristics, only the _NBF version were run for n ≥ 200.The -in the DEM column indicate that not a single run finished.Table A.7: Discrepancy values obtained in dimension 8, 10, 15 and 25 for TA.DEM_NBF could finish only for the smallest k in dimension 8 and is omitted here.Set size Subset size k TA_NBF d = 8 TA_NBF d = 10 TA_NBF d = 15 TA_NBF d = 25
참고문헌 24건
- A Panorama of Discrepancy Theory Lecture notes in mathematics · Springer Nature · 2014 10.1007/978-3-319-04696-9
- Digital Nets and Sequences 2010 10.1017/cbo9780511761188
- Irregularities of distribution, VII Acta Arithmetica · Polish Academy of Sciences · 1972 10.4064/aa-21-1-45-50
- Hardness of discrepancy computation and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" altimg="si9.gif" display="inline" overflow="scroll"><mml:mi>ε</mml:mi></mml:math>-net verification in high dimension Journal of Complexity · Elsevier BV · 2011 10.1016/j.jco.2011.09.001
- An Algorithm to Compute Bounds for the Star Discrepancy Journal of Complexity · Elsevier BV · 2001 10.1006/jcom.2001.0600
- Funktionen von beschränkter Variatiou in der Theorie der Gleichverteilung Annali di Matematica Pura ed Applicata (1923 -) · Springer Science+Business Media · 1961 10.1007/bf02415361
- Bracketing numbers for axis-parallel boxes and applications to geometric discrepancy Journal of Complexity · Elsevier BV · 2007 10.1016/j.jco.2007.08.003
- Discrepancy and convex programming Annali di Matematica Pura ed Applicata (1923 -) · Springer Science+Business Media · 1972 10.1007/bf02412017
- Computing the discrepancy with applications to supersampling patterns ACM Transactions on Graphics · Association for Computing Machinery · 1996 10.1145/234535.234536
- Low-Discrepancy Sequences The Journal of Derivatives · 1997 10.3905/jod.1997.407985
- On irregularities of distribution Mathematika · Wiley · 1954 10.1112/s0025579300000541
- Random search for hyper-parameter optimization 2012
- A New Randomized Algorithm to Approximate the Star Discrepancy Based on Threshold Accepting SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2012 10.1137/110833865
- Finding optimal volume subintervals with k points and calculating the star discrepancy are NP-hard problems Journal of Complexity · Elsevier BV · 2008 10.1016/j.jco.2008.10.001
- A lower bound for the discrepancy of a random point set Journal of Complexity · Elsevier BV · 2013 10.1016/j.jco.2013.06.001
- Some theorems on diophantine inequalities Stichting Mathematisch Centrum. Zuivere Wiskunde · 1950
- A nonlocal functional promoting low-discrepancy point sets Journal of Complexity · Elsevier BV · 2019 10.1016/j.jco.2019.06.001
- On the Small Ball Inequality in all dimensions Journal of Functional Analysis · Elsevier BV · 2007 10.1016/j.jfa.2007.09.010
- The SCIP Optimization Suite 7.0 2020
- Monte Carlo and Quasi-Monte Carlo Methods 2012 Springer proceedings in mathematics & statistics · Springer International Publishing · 2013 10.1007/978-3-642-41095-6
- Star discrepancy subset selection: Problem formulation and efficient approaches for low dimensions Journal of Complexity · Elsevier BV · 2022 10.1016/j.jco.2022.101645
- The Design and Analysis of Computer Experiments Springer series in statistics · Springer Science+Business Media · 2003 10.1007/978-1-4757-3799-8
- MatBuilder ACM Transactions on Graphics · Association for Computing Machinery · 2022 10.1145/3528223.3530063
- Random Number Generation and Quasi-Monte Carlo Methods Society for Industrial and Applied Mathematics eBooks · Society for Industrial and Applied Mathematics · 1992 10.1137/1.9781611970081