The Spiral Discovery Network as an Automated General-Purpose Optimization Tool

The Spiral Discovery Method (SDM) was originally proposed as a cognitive artifact for dealing with black-box models that are dependent onmultiple inputs with nonlinear and/ormultiplicative interaction effects. Besides directly helping to identify functional patterns in such systems, SDMalso simplifies their control through its characteristic spiral structure. In this paper, a neural networkbased formulation of SDM is proposed together with a set of automatic update rules that makes it suitable for both semiautomated and automated forms of optimization. The behavior of the generalized SDM model, referred to as the Spiral Discovery Network (SDN), and its applicability to nondifferentiable nonconvex optimization problems are elucidated through simulation. Based on the simulation, the case is made that its applicability would be worth investigating in all areas where the default approach of gradientbased backpropagation is used today.


Introduction
The question of how to gain an understanding of the operation of a system arises naturally in a wide range of application areas.However, this question is not always easy to answer, in part because different use cases favor different approaches.While a set of closed formulae might be useful when it comes to predicting exactly how the system will operate under specific conditions, they may be difficult to formulate when the conditions themselves and/or their effects are hard to characterize.In such cases, black-box identification and heuristic modelling approaches are often used.
The neural network presented in this paper, referred to as the Spiral Discovery Network (SDN), is a generalized version of the Spiral Discovery Method, which is a semiautomated cognitive artifact [1,2].SDM originally served the purpose of helping users to discover systematic relationships between multiple inputs to a system and the system's output behavior, even when the inputs have nonlinear effects and multiplicative cross-effects on the output.The goal in extending the SDM model is to extend its applicability to automated settings in which neural networks (or other parametric black-box models) tune their behavior based on a set of functional constraints, such as requirements on the structure of their output or other external error feedback signals.
Through the formulation proposed in this paper, it turns out that SDM is applicable whenever a data-driven approach is available to the identification of a system and whenever the effects of various changes in its inputs can be evaluated in a reasonable amount of time.When the evaluations are performed by humans, SDM shows motivations and characteristics similar to those of the paradigm of interactive evolutionary computation [3,4]; however, it shows differences in terms of the logic through which it helps to discover parametric spaces.Its extended version, SDN, is also more generally applicable by allowing for automated evaluations.As discussed in the conclusions of the paper, SDN is noteworthy in that it does not rely on gradient information, a feature that can be seen to reduce the complexity of the required computations, as well as being potentially helpful in cases where the performance of gradient-based solutions is far from optimal (for a detailed discussion on such cases, the reader is referred to [5]).
The paper is structured as follows.Section 2 provides a short overview of the literature on nonconvex optimization in order to position the relevance of this work with respect to 2 Complexity earlier results.Section 3 then briefly reviews the background of the original Spiral Discovery Method (SDM).Section 4 introduces the tensor-algebra based numerical structures behind the original SDM formulation.In Section 5, the neural network-based Spiral Discovery Network (SDN) is introduced.A simulation example is provided in Section 6 in order to demonstrate the viability of the model in handling nonconvex and nondifferentiable optimization problems.Finally, Section 7 concludes the paper.

Historical Overview
Nonconvex optimization is a broad field of mathematics that finds many applications in engineering tasks where the goal is to find sufficiently good solutions on high-dimensional parametric manifolds.One of the most relevant examples today is finding useful architectures for (deep) neural networks or other kinds of graphical models, as well as finding the right set of parameters with which to operate them.The common approach in solving such problems is to iteratively refine a candidate solution in a way that incrementally improves upon it in terms of a globally defined loss function: this is known as gradient descent [6].
The general idea of gradient descent can be highly successful on parametric landscapes that are associated with a clearly defined cost function and contain no more than a small number of local minima in terms of that function.However, as soon as the value of a cost function becomes difficult to interpret or the cost function becomes so intractable that it is computationally difficult to determine its gradients and/or it produces an intractably large number of local minima, the naive solution of gradient-based iterative optimization often starts to break down.
The problem of dealing with local minima can be addressed to some degree by finding good trade-offs between exploration and exploitation, that is, by modifying the gradient descent approach slightly to counteract situations where the optimization process might slow down or stop.This approach is reflected in a host of existing solutions.One fruitful idea was to experiment with the scaling factor of the gradient, for example, by making it adaptive to changes in sign via the concept of "momentum" [7][8][9] or by making it specific to the different dimensions in the parameter space [10,11].Other ideas include the normalization of inputs across layers and batches (specifically in training neural network models) [12] or by simply adding noise to the gradients [13].
The above solutions notwithstanding, the general idea of modifying a candidate solution in the direction of the negative gradient of a loss function has largely remained unchallenged.Only recently have the remarks of G. Hinton and other highly regarded researchers become widely publicized, which suggest that gradient descent, at least based on backpropagation, may prove not to be the ultimate solution for training neural networks (see, e.g., the article entitled "Why We Should Be Deeply Suspicious of BackPropagation" by C. E. Perez on https://medium.com/intuitionmachine/the-deeply-suspicious-nature-of-backpropagation-9bed5e2b085e).
In this paper, the earlier idea of the Spiral Discovery Method is extended to the domain of automatic training in neural networks through a neural architecture.Instead of relying on gradients to update its search location, the method follows a hierarchical hyperspiral structure within the parametric space, thus gaining insight into search directions that may be fruitful.

Original Problem Formulation Behind SDM
In this section, we consider a generic formulation of the class of problems to which the original Spiral Discovery Method (SDM) can be applied.To this end, we will make use of the following concepts and notations: (i) A vector of generation parameters g ∈ R  (ii) A perceptually accessible output  ∈ R (iii) A system transfer function  : R  → R, which evaluates generation parameter vectors to produce perceptually accessible outputs (iv) An evaluation function  : R → R, which associates perceptually accessible outputs with a real number referred to as the perceptual value of a given output } referred to as the data set, which contains tuples of generation parameter vectors and perceptual values.
In the original problem formulation, the goal is to find a set of generation parameter vectors that are suitable for the generation of a controlled set of outputs, controlled, that is, from the perspective of the perceptually driven evaluation function.Most often, the problem would present itself in such a form that a user is given a perceptual value, V  , and the goal is to find a generation parameter vector, g  , suitable for the generation of an output that yields k  as its perceptual value.In general, solving this problem amounts to more than just inverting the system transfer function (if such an inversion were even possible to begin with), as the relationship between system output and its perception value, which is usually much too complex to be formulated analytically, also must be taken into account.
Application areas in which the above formulation is of interest include the following: (i) Tuning a set of parameters to a uni-or multimodal synthesis algorithm for perceptual continuity: for example, in a virtual reality with object-to-sound and object-to-vibration mappings, given a set of parameters used to generate audio signals and vibration patterns for spherical and block-like objects, the goal might be to find an appropriate set of generation parameters for certain kinds of polyhedra, conceptually situated "somewhere between" spheres and blocks.
(ii) Controlling inputs to complex black-box models based on derived quantifications of success: for example, inputs to a multispeaker system or a distributed Tensor algebraic formulation of the Spiral Discovery Method based on higher-order singular value decomposition and higher-order orthogonal iteration (figure adapted from [2]).
heating system in a large auditorium might be finetuned in order to accommodate extrinsic requirements of comfort and cost-effectiveness.
The overall characteristic of the problem formulation is that it encompasses problems where a set of parameters can be used to control a model, usually a black-box model, whose functionality can best be evaluated indirectly through effects that are not well understood, for example, perceptual effects, qualitative measures such as comfort, or aggregated measures such as cost-effectiveness.
It is clear that such formulation can be easily generalized to cases where the evaluation is performed not by humans, but by any kind of automatic process extrinsic to the system.Such processes might still involve a weaker link to human perception or more generally to qualitative cognitive measures but would nevertheless be directly or indirectly measureable and interpretable.

Tensor Algebraic Formulation of the Spiral Discovery Method
The original formulation of SDM is in a tensor algebraic form, shown in Figure 1.It is based on the discretization of a hypothetical function that maps vectors of perceptual values k  to generation parameters g  .In most cases, this function cannot be expressed analytically and might even be different depending on various circumstances, such as the user performing the evaluation.At the same time, a discretized form of the function can often be sampled through experiments (this idea is inspired by the Tensor Product model [14][15][16]).The discretization is stored in a tensor, F, such that all dimensions, save for the last one, correspond to discrete gradations along perceptual scales (e.g., "roughness," "softness," "degree of comfort," or "cost-effectiveness"), while the last dimension stores -dimensional generation parameter vectors corresponding to the perceptual configurations.

Complexity
The above described tensor, F, is first decomposed into a core tensor and a set of weighting matrices based on the higher-order singular value decomposition (HOSVD) [17].This is followed by an iterative rank-reduction step, known as higher-order orthogonal iteration (HOOI) [18], which creates a rank-reduced approximation of the complete system, such that its outputs are controlled by only a single parameter in the perceptual dimension of interest.The twist in the approach is that the "meaning" of this parameter, in other words, the hyperplane along which it influences the system, is cyclically changed through a numerical reconstruction of the system and the systematic manipulation of the core tensor.
The conceptual background of SDM can be well described through a 2-dimensional numerical example.Consider the function described by F: in which there are 2 generative parameters for 3 different perceptual gradations.Using singular value decomposition (SVD, instead of HOSVD because we are in case of two dimensions), we obtain ( Optimal rank-reduction in the 2-dimensional case consists simply of removing the second column of S and the second row of V or setting S(2, 2) = 0 (thus, in this simple case of two dimensions, HOOI needs not be used).Once S(2, 2) = 0, the second row of the core tensor consists of all zeros and can be removed (as a result, the second column of U is also removed).
After augmenting the matrix of singular values and the weighting matrices as specified by SDM, we obtain S = ( If  and  and the random values in the second, third, and fourth columns of Ũ are specified, the second, third, and fourth rows of S can be calculated such that the original system is reconstructed.Then, by modifying just the first column of weighting matrix Ũ, a linear subspace of the original 2-dimensional space can be explored, starting from any of the three perceptual gradations.By separating what is constant from the parts of the equation that are changed, we obtain Because the second term is a constant and the first one only depends on the first column of Ũ, the "slope" of the equation, that is, the ratio of change between the second and first output (as the first column of weighting matrix Ũ is modified), can be written as slope  = (13.040  ) k It is clear that based on (5) the slope can be set to any value just by modifying the values of  and .If the values of  and  are changed systematically between two extreme values, the slope of discovery will also oscillate along the principal component of the original matrix.

The Spiral Discovery Network Cell: A Neural Network-Based Formulation of SDM
The key observation of this paper is that SDM can be formulated in much simpler and at the same time more powerful terms using neural networks.The recurrent model shown in Figure 2 is capable of producing systematic, cyclic patterns similar to the original formulation, but at the same time it is adaptive based on a set of external feedback signals.The cell consists of the following modules: (i) A timer that functions as a modulo counter for updating the state of the cell at discrete time steps (ii) A perturbation module that determines the direction in which and the extent to which the slope of exploration is to be modified at each time step (iii) A hypervisor module that refreshes the hyperparameters of the perturbation module based on feedback signals A graphical representation of an SDN cell and its modules is shown in Figure 2. The updated activation at time  is a () =  () x + p () , P er tu rb at io n s

Reset
Hy per vis or Step Feedback where Generally speaking, the state of the SDN cell is updated in a series of timesteps which together constitute optimization cycles.In the update equations, x refers to the (normalized) principal component vector, the general direction in the parametric space that is being explored by the cell, while p refers to the perturbation vector that is added to the principal component.The relationship between the two is governed by the hyperparameter step sz.The value of  is incremented by step sz at each timestep to ensure that the path of parametric discovery expands in the general direction of the principal component (hence, step sz represents the degree of exploitation in the optimization process and can be calibrated based on the cycle length alone, owing to the fact that the principal component x is normalized to begin with).The direction and norm of p () , by contrast, which ultimately depends on the relationship between p (0) and p (max) , determine how far from the principal component the exploration will deviate (therefore, it is directly related to the concept of degree of exploration in the optimization process).cycle dir governs the direction in which the perturbations are changed and is dependent on the length of the cycle as well as the current phase within the cycle.The values of p (0) , p max , and x are dependent on the cycle (or more precisely on the discoveries made during the previous cycle) and are initialized as follows: Here, the value of a parameter within a cycle  is represented using square brackets, so that, for example, ℎ   [ − 1] refers to the value of the th hypervisor cell at time  of cycle  − 1.  ℎ  denotes the standard deviation of value of the th hypervisor cell.Both p update equations ensure the following: (i) The perturbations in the new cycle are centered, in each dimension, around the perturbation that was associated with the lowest cost function value in the previous cycle (note that ℎ  refers to the th hypervisor cell).
(ii) The maximum values of the perturbations are set to their starting value, plus a value that depends on the standard deviation of the corresponding hypervisor cell in the previous cycle, as well as its relation to the standard deviations of other hypervisor cells.
(iii) The principal component, x, is set to the initial principal component plus the normalized value of the perturbation.
It is worth noting that the way in which SDN cells encapsulate a complex set of functions with a specific functional logic is reminiscent of how long short-term memories reduce the complexity of backpropagation through time [19,20].In the case of SDN cells, the effects of a complete cycle are stored within the cell.Although these effects are deterministic, it would be worth investigating how the hyperparameters like step sz might themselves be learned.
Another approach that can be mentioned in connection with SDN cells is Particle Swarm Optimization (PSO) [21,22] and other metaheuristic approaches, such as genetic algorithms [23][24][25].PSO and genetic algorithms are somewhat similar to SDN cells in the sense that exploration evolves towards more promising areas of the parametric space.However, the two categories of approaches are also different in the way that they make a compromise between exploration and exploitation: even when evolving towards more promising regions, SDN cells still represent alternative regions to an extent that depends on how varied the obtained feedback values were (exploration); it is the principal direction of the next cycle that in turn influences exploitation.

Simulation Example
As a simulation example, we consider a surface described by two parameters,  and , that can take values of (0, 10].The surface is expressed through the following relationship (see also Figure 3): Figure 4 shows that the minimum location of the search (and parameters thereof) was found as early as in the 7th cycle, without recourse to any kind of gradient information.Although no location for the exact minimum (−10) was found, it can be argued that the obtained results come quite close to achieving this, for two reasons: (ii) The search itself was unconstrained (i.e., was not guided by the knowledge that only values between 0 and 10 were to be considered on the and -axes): of course, as expected, the fact that locations outside of the specified range had a loss value of 500 helped to guide the search.Although rudimentary, the example shows the potential value of SDM in dealing with optimization problems that are nonconvex and nondifferentiable.

Conclusions
In this paper, an extended, automated variant of the Spiral Discovery Method is proposed.The variant is formulated as a neural network, or rather as a component thereof, and is referred to as the Spiral Discovery Network (SDN) cell.The model of SDN cells incorporates several beneficial properties.First, it is capable of exploring large areas of parametric spaces through a parametric hyperspiral structure, such that the hyperspiral structure itself changes through adaptive cycles.
Second, it can rely on any kind of quantitative (perhaps even qualitative) feedback, not only gradient information, to achieve its adaptivity.These properties combined make SDN cells a candidate solution for optimization problems in which the parametric space is nonconvex and potentially even nondifferentiable.A rudimentary simulation was described in the paper to demonstrate the capabilities of SDN cells.One possible avenue of investigation as part of future work would be to consider how SDN cells might be used as part of a network to further improve optimization performance.
structure (based on HOSVD and HOOI)

Figure 2 :
Figure 2: Neural network inspired formulation of an SDN cell.The cell includes a timer neuron, hypervisor neurons, perturbation neurons, and output neurons providing activation at each time step .
(i) The range of values of the loss function was between 70 and −10; hence the value of −8.44 falls within 2% of error.

Figure 3 :
Figure 3: Two views of the complex surface to be minimized in simulation example.

Figure 4 :
Figure4: Cycles of SDN from left to right, top to bottom.Performance is indicated at the top of the plots, with the sizes of the evaluated locations inversely proportional to the value of the loss function (and scaled per plot).The figure shows that the smallest loss value, in a 2% vicinity of the minimum, was found as early as in the 7th cycle, without recourse to any kind of gradient value.