Semantic Correctness: Beyond Output, Into Intent

Semantic correctness evaluates if code's underlying logic truly matches its intended purpose, not just if it passes test cases. Benchmarks like CodeJudge and SemBench use LLMs or static analysis to evaluate semantic understanding, uncovering issues like incorrect data flow or variable liveness that functional tests miss.

Sources

Open the full topic