paper-with-me

홈 › Papers

Retromorphic Testing: A New Approach to the Test Oracle Problem

2023-10-10 · Boxi Yu, Qiuyang Mang, Qingshuo Guo, Pinjia He

A test oracle serves as a criterion or mechanism to assess the correspondence between software output and the anticipated behavior for a given input set. In automated testing, black-box techniques, known for their non-intrusive nature in test oracle construction, are widely used, including notable methodologies like differential testing and metamorphic testing. Inspired by the mathematical concept of inverse function, we present Retromorphic Testing, a novel black-box testing methodology. It leverages an auxiliary program in conjunction with the program under test, which establishes a dual-program structure consisting of a forward program and a backward program. The input data is first processed by the forward program and then its program output is reversed to its original input format using the backward program. In particular, the auxiliary program can operate as either the forward or backward program, leading to different testing modes. The process concludes by examining the relationship between the initial input and the transformed output within the input domain. For example, to test the implementation of the sine function $\sin(x)$, we can employ its inverse function, $\arcsin(x)$, and validate the equation $x = \sin(\arcsin(x)+2k\pi), \forall k \in \mathbb{Z}$. In addition to the high-level concept of Retromorphic Testing, this paper presents its three testing modes with illustrative use cases across diverse programs, including algorithms, traditional software, and AI applications.

📄 PDF Abstract BibTeX arXiv:2310.06433

Code (1)

cuhk-shenzhen-se/retromorphictesting 공식 구현

Tasks

2k

Similar Papers 제목 키워드 기반

Retromorphic Testing with Hierarchical Verification for Hallucination Detection in RAG

2026-03-29 · Boxi Yu, Yuzhong Zhang, Liting Lin, Lionel Briand 외 arxiv

Large language models (LLMs) continue to hallucinate in retrieval-augmented generation (RAG), producing claims that are unsupported by or conflict with the retrieved context. Detecting such errors remains challenging whe…

Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programs

2024-06-28 · Shiyu Zhang, Haoyang Song, Qixin Wang, Yu Pei

Reinforcement Learning (RL) has gained significant attention across various domains. However, the increasing complexity of RL programs presents testing challenges, particularly the oracle problem: defining the correctnes…

Reinforcement Learning (RL)

Object-based Metamorphic Testing through Image Structuring

2020-02-12 · Adrian Wildandyawan, Yasuharu Nishi

Testing software is often costly due to the need of mass-producing test cases and providing a test oracle for it. This is often referred to as the oracle problem. One method that has been proposed in order to alleviate t…

Object

A Review on Oracle Issues in Machine Learning

2021-05-04 · Diogo Seca

Machine learning contrasts with traditional software development in that the oracle is the data, and the data is not always a correct representation of the problem that machine learning tries to model. We present a surve…

BIG-bench Machine Learning

Complexity of High-Dimensional Identity Testing with Coordinate Conditional Sampling

2022-07-19 · Antonio Blanca, Zongchen Chen, Daniel Štefankovič, Eric Vigoda

We study the identity testing problem for high-dimensional distributions. Given as input an explicit distribution $\mu$, an $\varepsilon>0$, and access to sampling oracle(s) for a hidden distribution $\pi$, the goal in i…

Vocal Bursts Intensity Prediction