Skip to content
DeepForgeby svx
All problems

Proxy-Gold Reward Gap Detector

Problem

Detect suspicious proxy reward growth from evaluation endpoints.

Return True when the proxy gain (end - start) exceeds the gold gain by more than max_gap, indicating the proxy kept improving while true quality did not.

Hint

A widening proxy-gold gap is one of the cheapest reward-hacking alarms.

Test cases

case 1
in: [1,3,1,1.2,1]
expected: true
case 2
in: [1,2,1,2.5,1]
expected: false
case 3
in: [1,1,1,1,0]
expected: false
Starter codePython
def proxy_gold_gap(proxy_start, proxy_end, gold_start, gold_end, max_gap):
    # Your code here
    pass

3 test cases · run your code against them in the editor