EEL:高效编码格以进行重排序
EEL: Efficiently Encoding Lattices for Reranking
AI总结:
本文提出 EEL,通过一次 Transformer 前向传播高效编码整个输出格,并结合 token 分解重排序器提取高分假设,在三项生成任务中实现显著加速且保持性能。
摘要:
条件文本生成任务的标准解码方法通常会搜索具有较高模型概率的输出假设,但根据人类对质量的判断,这可能无法产生最佳假设。通过重排序来优化“下游”指标可以更好地优化质量,然而许多受关注的指标是由预训练语言模型计算的,将其应用于大量假设时速度很慢。我们探索了一种通过使用 Transformers 高效编码生成输出格来对假设进行重排序的方法,我们将该方法称为 EEL。只需对整个格进行一次 Transformer 前向传播,我们就可以近似计算每个 token 的上下文化表示,就好像它仅单独属于单个假设的一部分一样。我们将这种方法与一类新的 token 分解重排序器(TFR)相结合,从而能够从格中高效提取重排序器评分较高的假设。实验表明,与指数级更慢的逐个编码每个假设的方法相比,我们的方法产生的退化误差极小。在三个文本生成任务上将 EEL 与 TFR 结合应用时,结果表明,与朴素重排序相比,该方法实现了显著的加速,并且在下游指标上的表现通常优于可比方法。
英文摘要:
Standard decoding approaches for conditional text generation tasks typically search for an output hypothesis with high model probability, but this may not yield the best hypothesis according to human judgments of quality. Reranking to optimize for "downstream" metrics can better optimize for quality, but many metrics of interest are computed with pre-trained language models, which are slow to apply to large numbers of hypotheses. We explore an approach for reranking hypotheses by using Transformers to efficiently encode lattices of generated outputs, a method we call EEL. With a single Transformer pass over the entire lattice, we can approximately compute a contextualized representation of each token as if it were only part of a single hypothesis in isolation. We combine this approach with a new class of token-factored rerankers (TFRs) that allow for efficient extraction of high reranker-scoring hypotheses from the lattice. Empirically, our approach incurs minimal degradation error compared to the exponentially slower approach of encoding each hypothesis individually. When applying EEL with TFRs across three text generation tasks, our results show both substantial speedup compared to naive reranking and often better performance on downstream metrics than comparable approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。