[Paper Review] Quality Up in Polynomial Homotopy Continuation by Multithreaded Path Tracking
This paper presents a multithreaded path tracker for polynomial homotopy continuation that improves solution quality by leveraging multiple cores to offset the computational cost of quad double arithmetic. By exploiting parallelism in polynomial evaluation and Newton iteration, the method achieves significant speedup and quality up—demonstrated by up to 7.57x speedup on 8 cores for degree-20 polynomials—enabling higher-precision solutions critical for singularities and ill-conditioned systems.
Speedup measures how much faster we can solve the same problem using many cores. If we can afford to keep the execution time fixed, then quality up measures how much better the solution will be computed using many cores. In this paper we describe our multithreaded implementation to track one solution path defined by a polynomial homotopy. Limiting quality to accuracy and confusing accuracy with precision, we strive to offset the cost of multiprecision arithmetic running multithreaded code on many cores.
Motivation & Objective
- Address the high computational cost of multiprecision arithmetic in polynomial homotopy continuation, especially for high-precision solutions.
- Improve solution quality by utilizing multiple cores to compensate for the performance overhead of quad double arithmetic.
- Optimize path tracking for systems where polynomial evaluation dominates computation, particularly in high-degree or ill-conditioned problems.
- Enable efficient computation of isolated singularities via deflation, which requires high-precision derivatives and multithreading.
- Establish thresholds for dimension and degree where multithreading yields optimal speedup and quality improvement.
Proposed method
- Implement a multithreaded path tracker using pthreads on a shared-memory multicore system to parallelize polynomial evaluation and Newton iteration stages.
- Use quad double arithmetic (QD-2.3.9) to achieve high-precision solutions, treating it as a cost that can be offset by parallelism.
- Apply algorithmic differentiation techniques to efficiently compute all derivatives needed for the Jacobian matrix, reducing the cost of derivative evaluation.
- Optimize polynomial evaluation using recursive monomial product computation (Speelpenning’s example), enabling faster evaluation of sparse polynomials.
- Treat the continuation parameter t as a special variable to reduce overhead, improving performance by a factor of 3 compared to treating it as a regular variable.
- Use linear extrapolation to estimate quality up factors, defined as the ratio of correct decimal places with p cores to those with one core, under fixed execution time.
Experimental results
Research questions
- RQ1What is the quality up factor achievable when using multiple cores to compute higher-precision solutions in polynomial homotopy continuation?
- RQ2At what problem dimensions and degrees does multithreading yield optimal speedup for path tracking with quad double arithmetic?
- RQ3How does the performance of multithreaded polynomial evaluation compare to traditional single-threaded evaluation, especially for high-degree polynomials?
- RQ4Can multithreading effectively reduce the computational burden of high-precision arithmetic in Newton’s method for path tracking?
- RQ5To what extent does optimizing polynomial and derivative evaluation improve overall path tracking performance in a multithreaded setting?
Key findings
- For a 40-dimensional system with degree-20 polynomials, the multithreaded path tracker achieved a speedup of 7.567 on 8 cores, indicating strong scalability.
- On a 20-dimensional system with degree-10 polynomials, the speedup reached 7.327 with 8 threads, showing that higher-degree polynomials benefit more from parallelism.
- The new algorithm for polynomial evaluation reduced execution time by a factor of 8.59 for degree-5 polynomials in 20x20 systems, with a pure speedup of 2.85 after accounting for t-treatment overhead.
- For 40x40 systems with degree-20 polynomials, the new evaluation method achieved a 15.56x speedup over the old method, with a pure speedup of 5.19 after adjusting for t-treatment cost.
- The quality up factor was estimated as linear in the number of cores, with the potential to achieve a quality up of p on p cores under optimal conditions.
- The threshold dimension for good speedup increases with polynomial degree, as Gaussian elimination cost becomes more significant in lower-degree systems.
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.