Closed joecummings closed 1 year ago
Add ability for diverse beam search according to this paper: https://ojs.aaai.org/index.php/AAAI/article/view/12340
"DBS produces sequences that are significantly different from each other by incorporating diversity constraints within groups of candidate sequences during decoding; moreover, it achieves this with minimal computational or memory overhead."
Request from TorchText partners.
@jacobkahn I'm planning on taking a stab at this.
We'll track the PR here.
Feature Description
Add ability for diverse beam search according to this paper: https://ojs.aaai.org/index.php/AAAI/article/view/12340
Use Case
"DBS produces sequences that are significantly different from each other by incorporating diversity constraints within groups of candidate sequences during decoding; moreover, it achieves this with minimal computational or memory overhead."
Additional Context
Request from TorchText partners.