[Paper Review] Pixel Arrays: A fast and elementary method for solving nonlinear systems
This paper introduces the pixel array (PA) method, a fast, non-iterative algorithm for approximating all solutions to nonlinear systems within a bounding box by treating relations as pixelated boolean matrices and combining them via generalized array multiplication. The method is significantly faster than Newton-based solvers—over 7,200x faster in one benchmark—while avoiding false negatives and handling non-differentiable or discontinuous functions.
We present a new method, called the pixel array method, for approximating all solutions in a bounding box for an arbitrary nonlinear system of relations. In contrast with other solvers, our approach requires that the user must specify which variables are to be exposed, and which are to be left latent. The entire solution set is then obtained---in terms of these exposed variables---by performing a series of array multiplications on the $n_i$-dimensional plots of the individual relations $R_i$. This procedure introduces no false negatives and is much faster than Newton-based solvers. The key is the unexposed variables, which Newton methods can make no use of. In fact, we found that with even a single unexposed variable our method was more than 10x faster than Julia's NLsolve. Due to its relative simplicity, the pixel array method is also applicable to a broader class of systems than Newton-based solvers are. The purpose of this article is to give an account of this new method.
Motivation & Objective
- To develop a fast, elementary method for computing the entire solution set of nonlinear systems within a specified bounding box.
- To address the limitations of iterative solvers that require initial guesses and often miss solutions or fail on non-smooth functions.
- To enable solution approximation in terms of only user-specified 'exposed' variables, while treating others as latent.
- To provide a method that is robust to discontinuities and non-differentiable functions, unlike traditional Newton-type methods.
- To demonstrate that unexposed variables can dramatically accelerate computation, offering a key advantage over existing solvers.
Proposed method
- Represent each nonlinear relation as a multidimensional boolean pixel array, where each pixel indicates whether a point satisfies the relation within a given tolerance.
- Use generalized array multiplication (generalizing matrix multiplication, trace, and Kronecker product) to combine multiple relations and compute the solution set in terms of exposed variables.
- Leverage the associativity and monotonicity of array multiplication to ensure no false negatives and to allow efficient computation through optimal clustering of operations.
- Preserve error bounds from initial pixel plots through the multiplication process, ensuring solution accuracy is maintained.
- Implement the method in Julia using efficient array operations, enabling high performance on systems with sparse or structured relations.
- Allow users to specify which variables are exposed (reported in output) and which are latent (used internally but not recovered), enabling speed optimization.
Experimental results
Research questions
- RQ1Can a non-iterative, elementary method based on array multiplication outperform iterative solvers like NLsolve in finding all solutions to nonlinear systems?
- RQ2How does the presence of unexposed (latent) variables affect the computational speed of solving nonlinear systems?
- RQ3To what extent can the pixel array method handle non-differentiable or discontinuous functions where Newton-based methods fail?
- RQ4Can array multiplication preserve error bounds from initial pixel plots and still yield accurate solution approximations?
- RQ5How does the performance of the pixel array method compare to symbolic solvers like Mathematica’s Solve and NSolve on systems without closed-form solutions?
Key findings
- The pixel array method computed the solution set in 1.5 seconds for a system that caused NLsolve to not terminate after over three hours, achieving a speedup of over 7,200x.
- Even with a single unexposed variable, the PA method was more than 10x faster than Julia’s NLsolve on benchmark systems.
- The method successfully solved systems that Mathematica’s NSolve failed to process, returning the error 'This system cannot be solved with the methods available to NSolve'.
- The method introduced no false negatives due to the monotonicity of array multiplication, ensuring all true solutions were preserved.
- Error bounds from the initial pixel plots were preserved through the array multiplication process, as proven in Theorem 4.1.
- The method is robust to non-differentiable and discontinuous functions, unlike Newton-based solvers that require smoothness and differentiability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.