arXiv:2608.28362cs.CRAug 2026

Manuscript Offprint

arXiv:2608.28362

Optimal Adversarial Testing: Extracting Honest Test Results from Dishonest Test Takers

Owen Cox, April Xu, Weiyu Xu

Abstract

In applications, it is often required to test objects or people to determine their qualities in terms of certain metrics. However, besides being naturally noisy, the test results can be corrupted by adversarial behaviors of objects or people being tested (test takers). For example, dishonest test takers can cheat in the exams to distort the test results. With the development of AI technologies, such distortions driven by cheating using AI technologies are becoming more commonplace and severe. In this paper, we propose optimal testing strategies which can still recover needed test results even if there are cheaters polluting the results. The proposed testing strategies will optimally re-test selected group of test takers using different testing security measures. We determine the optimal testing strategies using a dynamic programming method.

Keywords: optimal testing strategy, sampling theory, adversarial game

1 Introduction

In many applications, it is often required to test objects or people to determine their qualities in terms of certain metrics. That would require sampling or testing each object or person to obtain test or sampling results of them.

However, the test results can be noisy since they may be affected by natural perturbations or noises. In addition, besides being naturally noisy, the test results can be corrupted by adversarial behaviors of objects or people being tested (test takers). For example, dishonest test takers can cheat in the exams to distort the test results. With the development of AI technologies, such distortions driven by AI-aided cheating are becoming more commonplace and more severe [1,3,5,6][1,3,5,6]. In order to make the final testing results faithful, the testing or sampling of the objects or people must be done in a way such that the test organizers are able to thwart the adversarial actions of tested objects or people.

*Department of Electrical and Computer Engineering, University of Iowa, Iowa City, IA 52242.

†^{\dagger}Iowa City Math Club.

‡^{\ddagger}Department of Electrical and Computer Engineering, University of Iowa, Iowa City, IA 52242.

§Owen Cox helped coded and ran the numerical experiments, April Xu derived (1), helped with separate codes for verifications, ran the numerical experiments and prepared references and formulas in LaTex. Weiyu Xu supervises the research.

There may be different goals of testing, for example, determining the admission of students to a program or a collage, or determining the ranking of persons in a competition. In this paper, we consider testing which aims to select a number of top students. Suppose that there are n people that we need to test. At the end of the tests, we need to select the top kk ( k<nk < n) people, say, to declare them as winners out of the n people. For example, in the American Mathematics Competition (AMC) series organized by Mathematical Association of America (MAA), the organizers aim to select (approximately) 60 top performing students to participate in the Mathematical Olympiad Program (MOP) each year, out of around 300,000 students [2]. Or even one step further, the AMC organizers aim to select the USA national teams out of the approximately 300,000 students to attend international math competitions including EGMO (European Girls' Mathematical Olympiad), RMM (Romanian Master of Mathematics), and IMO (International Mathematical Olympiad). We note that such scenarios happen in many disciplines, such as selection of physics, chemistry, biology, and informatics teams, or even in college exams.

The successful selection of the top k students depends on the faithfulness of the test results, which in turn depends on the honesty or integrity of test takers. In an alarming trend, some dishonest test takers use AI tools or other cheating mechanisms to cheat in exams, leading to unfaithful test results. Contrary to traditional ways of cheating, the new ways of cheating using AI tools are very effective in increasing cheaters' test scores. Moreover, such cheating aided by AI technologies is more stealthy, and even harder to catch and detect [1, 3, 5, 6]. Cheating test takers can go to various lengths to cheat: some may simply copy from neighbors; some may steal the exam contents beforehand by purchasing them or by computer system hacking; some may purchase answers from corrupt human coaches; some may use concealed or planted cell phones to access AI technologies to answer these questions; and some even use more stealthy AI glasses to cheat.

To defeat such cheating, it would require test organizers having much stricter proctoring, such as using metal detectors to search for any concealed electronic devices including cell phones and smart glasses on each test taker; or to make the test sites electromagnetic (EM) signal proof; or to carefully check the test sites to prevent cheaters from planting AI devices including cell phones in hidden places (note that cheaters can avoid proctors and use electronic devices to access AI tools in bathroom break). Unfortunately, it may be unrealistic or too expensive to implement these measures on a large scale. Sometimes local laws and policies do not even allow some of the strict-proctoring measures at exam sites. When the number of students can be large, it will be expensive to implement strict proctoring on a large scale. For example, it may be simply impossible to adopt the strictest proctoring measures for all the 300,000 students taking part in the AMC tests.

This raises the following question: how to achieve the goal of selecting the top k students accurately, economically and efficiently even if there may be many cheaters in the tests?

In this paper, we propose optimal testing strategies which can still faithfully achieve the testing goals even if there are cheaters polluting the raw testing results. The proposed testing strategies will optimally re-test selected group of test takers using different levels of testing security measures. We determine the optimal (re)testing strategies using a dynamic programming method. We also consider a game-theoretic setting where the adversarial test takers can allocate cheating resources according to the testing strategies of test organizers. Our proposed approach can be extended to a continuous-valued version (when the number of tested people or objects goes to infinity) of the considered problem. To the best of our knowledge, this is the first paper which formulates the adversarial testing problem in terms of AI cheating and computes the optimal re-testing strategy when there are adversarial test takers using AI technologies.