Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
21–30 of 328 posts
Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#22Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#23> The confidence intervals are represented as latency ± (lower, upper), in which latency corresponds to the fifth percentile of latency measurements across 100 different machines. Lower and upper refer to the bounds of the 95% confidence interval for this percentile. Does anybody know why they chose fifth percentile? I though we should always choose the fastest time when measuring performance.
If we measured sorting algorithms by the fastest measurement, we might conclude that BubbleSort is the fastest possible sort algorithm on some inputs. (Bubblesorting an already-sorted list makes at most one comparison per list element)
Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#24Does anyone have high level guidance on when (deep) RL is worth pursuing for optimization (e.g. optimizing algorithm design) rather than other approaches (e.g genetic)?
My rule of thumb is when it’s easy to specify a reward function but infinite ways to traverse the action space - versus having a constrained state and action space (small n solution traversal pathways) and only a few possible paths to traverse.
Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#25Earlier quoted context omitted.
> up to 70% faster So O(0.3(N log N))? That's still O(N log N)
In the real world, we care about runtime as much as, if not more than, computational complexity.
Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#26The most interesting part of this paper to me is that they let the agent guess how efficient it’s own solutions were and only had the model experimentally verify it’s guesses in 0.002% of cases. This allowed the model to search much faster than another program that didn’t guess and had to run every program.
That sounds like intuition.
Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#27It is astounding how something as well as studied as sorting still has opportunities for further improvements!
Doing an empirical algorithm search to find which algorithms fit well on modern CPUs/memory systems is pretty common, see e.g. FFTW, ATLAS, https://halide-lang.org/
Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#28Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#29It is astounding how something as well as studied as sorting still has opportunities for further improvements!
Re: Deepmind Alphadev: Faster sorting algorithms discovered using deep RL
#30LLVM merge: https://reviews.llvm.org/D118029 Benchmark: https://bit.ly/3AtesYf Benchmark seems to be in the range of a 1-5% improvement for 80% of sizes.