税务筹划软件的变形测试与重构
Metamorphic Testing and Debugging of Tax Preparation Software
摘要:
本文提出了一个数据驱动的框架,以提高美国税务准备软件系统的可信度。鉴于此类软件中的漏洞对其用户的法律影响,确保税务准备软件的合规性和可信度至关重要。在为税务准备系统开发调试辅助工具方面的主要障碍是没有明确的规格和难以获得预言机。我们认为,由于美国税法遵循先例的法律原则,因此有关纳税人个人税务准备软件结果的规范必须与被视为类似的个人进行比较。因此,这些规范自然是可用的,因为软件上的属性需要类似的输入提供类似的输出。受变形测试范式的启发,我们将这些关系称为变形关系。在与法律和税务专家的合作中,我们解释了美国国税局(IRS)出版物中一系列具有挑战性的财产的变形关系,包括Publication 596(Earned Income Tax Credit),Schedule 8812(Qualifying Children/Other Dependents)和Form 8863(Education Credits)。我们专注于我们的案例研究的开源税务准备软件,并制定了一个随机的测试用例生成策略,系统地验证的正确性,税务准备软件的变形关系指导。我们进一步帮助这个测试用例生成直观地解释软件的行为可疑的情况下,使用易于解释的决策树模型。我们的工具发现了几个严重程度不同的问责错误,从极端情况下的非稳健行为(当纳税申报接近于零时的不可靠行为)到更新版本的软件中缺少资格条件。
英文摘要:
This paper presents a data-driven framework to improve the trustworthiness of US tax preparation software systems. Given the legal implications of bugs in such software on its users, ensuring compliance and trustworthiness of tax preparation software is of paramount importance. The key barriers in developing debugging aids for tax preparation systems are the unavailability of explicit specifications and the difficulty of obtaining oracles. We posit that, since the US tax law adheres to the legal doctrine of precedent, the specifications about the outcome of tax preparation software for an individual taxpayer must be viewed in comparison with individuals that are deemed similar. Consequently, these specifications are naturally available as properties on the software requiring similar inputs provide similar outputs. Inspired by the metamorphic testing paradigm, we dub these relations metamorphic relations. In collaboration with legal and tax experts, we explicated metamorphic relations for a set of challenging properties from various US Internal Revenue Services (IRS) publications including Publication 596 (Earned Income Tax Credit), Schedule 8812 (Qualifying Children/Other Dependents), and Form 8863 (Education Credits). We focus on an open-source tax preparation software for our case study and develop a randomized test-case generation strategy to systematically validate the correctness of tax preparation software guided by metamorphic relations. We further aid this test-case generation by visually explaining the behavior of software on suspicious instances using easy to-interpret decision-tree models. Our tool uncovered several accountability bugs with varying severity ranging from non-robust behavior in corner-cases (unreliable behavior when tax returns are close to zero) to missing eligibility conditions in the updated versions of software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。