arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.08211cs.LGstat.ML
收藏

通过线性规划广义导数的可微组合损失

Differentiable Combinatorial Losses through Generalized Gradients of Linear Programs

Virginia Commonwealth University(弗吉尼亚联邦大学)

Xi Gao, Han Zhang, Aliakbar Panahi, Tom Arodz

摘要:

当样本具有内部结构时,我们经常会看到训练过程中优化的目标与推理过程中模型的目标之间的不匹配。例如,在序列到序列建模中,我们对高质量的翻译句子感兴趣,但训练通常在单词级别使用最大似然。自然的训练时间损失将涉及组合问题--基于动态规划的全局序列比对--但是组合问题的解决方案相对于其输入参数是不可微的,因此替代地使用可微损失。在这里,我们展示了如何执行梯度下降的组合优化算法,涉及连续的参数,例如边缘权重,并可以有效地表示为线性规划。我们证明梯度下降的有用性超过组合优化在序列到序列建模使用可微编码器-解码器架构与softmax或Gumbel-softmax,并在图像分类在弱监督设置,而不是正确的类为每张照片,只有组的照片标记正确,但无序的类集在训练过程中可用。

英文摘要:

When samples have internal structure, we often see a mismatch between the objective optimized during training and the model's goal during inference. For example, in sequence-to-sequence modeling we are interested in high-quality translated sentences, but training typically uses maximum likelihood at the word level. The natural training-time loss would involve a combinatorial problem -- dynamic programming-based global sequence alignment -- but solutions to combinatorial problems are not differentiable with respect to their input parameters, so surrogate, differentiable losses are used instead. Here, we show how to perform gradient descent over combinatorial optimization algorithms that involve continuous parameters, for example edge weights, and can be efficiently expressed as linear programs. We demonstrate usefulness of gradient descent over combinatorial optimization in sequence-to-sequence modeling using differentiable encoder-decoder architecture with softmax or Gumbel-softmax, and in image classification in a weakly supervised setting where instead of the correct class for each photo, only groups of photos labeled with correct but unordered set of classes are available during training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑