Evaluation and security
Coding Gym Audit
Standard unit-test graders compared with a hardware-gated verifier on reward-hacked GPU kernels.
Project overview
This study runs the same GPU kernels through two graders. The first is a standard unit-test grader. The second is a hardware-gated verifier.
The unit-test grader accepts reward-hacked kernels. The hardware-gated verifier rejects them.
What the unit-test grader accepts
An agent returns early from an async stream, so the timer stops before the kernel finishes.
An agent leaves the output buffer stale or unwritten, and the grader reads old values as a pass.
On a 4,096-bin histogram, a 1% relative tolerance accepts 1,091 of 4,096 wrong bins.
What the hardware-gated verifier checks
Every output buffer is filled with 0xFFFFFFFF before the run. Any unwritten value fails the check.
Timing is taken after device synchronization, so an early stream return cannot shorten the measured time.
A 108 ULP bound against the float64 reference accepts only 4 of 4,096 bins.
Results
Wrong bins accepted at 1% relative tolerance
Bins accepted under the 108 ULP bound
Poison value written to every output buffer