一句话:通过对比正确与错误样本执行轨迹,自动诊断问题词嵌入并修复,从而提升 RNN 模型准确率。
RNN 可处理变长文本输入,广泛用于软件系统与软件工程任务,但其依赖第三方预训练词嵌入;有问题的词嵌入会导致模型准确率下降。论文提出 TRADER,自动诊断问题词嵌入如何影响模型性能:比较正确执行与错误执行样本的模型执行轨迹,定位问题嵌入及其影响,并将诊断结果作为指导对词嵌入进行加固/修复。实验在真实模型与数据集上表明,TRADER 能持续有效地提升准确率,平均提升 5.37%,在 RNN 模型相关文献中属于显著改进。
Recurrent Neural Networks (RNN) can deal with (textual) input with various length and hence have a lot of applications in software systems and software engineering applications. RNNs depend on word embeddings that are usually pre-trained by third parties to encode textual inputs to numerical values. It is well known that problematic word embeddings can lead to low model accuracy. In this paper, we propose a new technique to automatically diagnose how problematic embeddings impact model performance, by comparing model execution traces from correctly and incorrectly executed samples. We then leverage the diagnosis results as guidance to harden/repair the embeddings. Our experiments show that TRADER can consistently and effectively improve accuracy for real world models and datasets by 5.37% on average, which represents substantial improvement in the literature of RNN models.