WvanWoerden / G6K-GPU-Tensor

Lattice Sieving using GPU Tensor cores based on the General Sieve Kernel (G6K)
21 stars 6 forks source link

Continue BKZ even if we suspect SVP solution #9

Open verdiverdiverdi opened 2 years ago

verdiverdiverdi commented 2 years ago

Simulates the next couple of tours of BKZ, even when we expect to be able to attain an SVP dimension that solves the instance. This captures the cases where the decrease in required SVP dimension saves more time than the subsequent BKZ tours.

The next three BKZ tours are simulated using fpylll's built in simulator for ease, and the time required for these tours are calculated as a function of the time taken for most recent completed tour. It is then checked where a solution is likely to appear, and whether this saves enough time to justify these further tours.

A new factor passed via --lwe/favour-memory-factor determines how much weight we place on reducing the maximum SVP dim at the cost of further BKZ tours. Greater than 1 should reduce memory consumption at the cost of time.