逐次减半Top-k算子
Successive Halving Top-k Operator
摘要:
我们提出了一种可微的连续减半方法,放松top-k算子,使基于梯度的优化成为可能。通过使用锦标赛风格的选择,避免了对整个分数向量迭代执行softmax的需要。因此,与先前的方法相比,以较低的计算成本实现了对top-k的更好的近似。
英文摘要:
We propose a differentiable successive halving method of relaxing the top-k operator, rendering gradient-based optimization possible. The need to perform softmax iteratively on the entire vector of scores is avoided by using a tournament-style selection. As a result, a much better approximation of top-k with lower computational cost is achieved compared to the previous approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。