知道何时停止:符合输出尺寸规格的评价和验证
Knowing When to Stop: Evaluation and Verification of Conformity to Output-size Specifications
摘要:
诸如序列到序列和图像到序列的模型广泛用于现实世界的应用中。虽然这些神经架构产生可变长度输出的能力使它们对机器翻译和图像描述等问题非常有效,但它也使它们容易受到模型产生不期望长度输出的形式的失败的影响。这种行为可能会产生严重的后果,例如使用增加的计算,并在预期输出一定长度的下游模块中引发故障。出于更好地理解这些模型的失败的需要,本文提出并研究了新的输出大小调制问题,并做出了两个关键的技术贡献。首先,为了评估模型的鲁棒性,我们开发了一个易于计算的可微代理目标,可以与基于梯度的算法一起使用,以找到输出延长输入。其次,更重要的是,我们开发了一种验证方法,可以正式验证网络是否总是在一定长度内产生输出。在机器翻译和图像描述上的实验结果表明,我们的输出加长方法可以产生比输入长50倍的输出,而我们的验证方法可以在给定模型和输入域的情况下证明输出长度低于一定的大小。
英文摘要:
Models such as Sequence-to-Sequence and Image-to-Sequence are widely used in real world applications. While the ability of these neural architectures to produce variable-length outputs makes them extremely effective for problems like Machine Translation and Image Captioning, it also leaves them vulnerable to failures of the form where the model produces outputs of undesirable length. This behavior can have severe consequences such as usage of increased computation and induce faults in downstream modules that expect outputs of a certain length. Motivated by the need to have a better understanding of the failures of these models, this paper proposes and studies the novel output-size modulation problem and makes two key technical contributions. First, to evaluate model robustness, we develop an easy-to-compute differentiable proxy objective that can be used with gradient-based algorithms to find output-lengthening inputs. Second and more importantly, we develop a verification approach that can formally verify whether a network always produces outputs within a certain length. Experimental results on Machine Translation and Image Captioning show that our output-lengthening approach can produce outputs that are 50 times longer than the input, while our verification approach can, given a model and input domain, prove that the output length is below a certain size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。