学习修剪:加速重复计算
Learning to Prune: Speeding up Repeated Computations
摘要:
经常会遇到必须解决一系列类似计算问题的情况。在每个实例上运行具有最坏情况运行时保证的标准算法将无法利用跨问题实例共享的有价值的结构。例如,当一个通勤者开车从工作地点到家时,通常只有少数几条路线是最短的路径,一个不利用这种公共结构的简单算法可能会花费大部分时间来检查那些永远不会在最短路径上的道路,更普遍的是,我们经常会忽略大部分可能永远不会包含最优解的搜索空间。我们提出了一种算法,学习最大限度地修剪重复计算的搜索空间,从而减少运行时间,同时可证明输出正确的解决方案,每个周期具有高概率。我们的算法采用了一个简单的探索利用技术类似于在线算法中使用的,虽然我们的设置是完全不同的。我们证明,相对于我们的模型修剪搜索空间,我们的方法是最佳的常数因子。最后,我们说明了我们的模型和算法的适用性,三个经典问题:最短路径路由,字符串搜索和线性规划。我们目前的实验证实,我们的简单算法是有效的,在显着减少解决重复计算的运行时间。
英文摘要:
It is common to encounter situations where one must solve a sequence of similar computational problems. Running a standard algorithm with worst-case runtime guarantees on each instance will fail to take advantage of valuable structure shared across the problem instances. For example, when a commuter drives from work to home, there are typically only a handful of routes that will ever be the shortest path. A naive algorithm that does not exploit this common structure may spend most of its time checking roads that will never be in the shortest path. More generally, we can often ignore large swaths of the search space that will likely never contain an optimal solution. We present an algorithm that learns to maximally prune the search space on repeated computations, thereby reducing runtime while provably outputting the correct solution each period with high probability. Our algorithm employs a simple explore-exploit technique resembling those used in online algorithms, though our setting is quite different. We prove that, with respect to our model of pruning search spaces, our approach is optimal up to constant factors. Finally, we illustrate the applicability of our model and algorithm to three classic problems: shortest-path routing, string search, and linear programming. We present experiments confirming that our simple algorithm is effective at significantly reducing the runtime of solving repeated computations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。