an image showing a programmer verifying code using a magnifying glass in a pixel art style.

The Challenge of Verifying AI-Generated Code

Tao Dong
5 min readJul 8, 2024

--

The verification challenge, quantified

Figure 3 from Mozannar et al. (2024): Taxonomy of programmer’s activities when interacting with CodeRec– CUPS.
Figure 3 from Mozannar et al. (2024): Taxonomy of programmer’s activities when interacting with CodeRec.

Two approaches to tackling the verification challenge

Lightweight Anchored Explanations of Just-Generated Code

Figure 1 from Yan et al. (2024): Ivie augments the interactive programming assistant with instant explanations that help programmers examine generated code.
Figure 1 from Yan et al. (2024)

Validating AI-Generated Code with Live Programming

Figure 1 from Ferdowsi et al. (2024): Leap is a Python environment that enables validating AI-generated code suggestions via Live Programming
Figure 1 from Ferdowsi et al. (2024)

Combining these two approaches

Final thoughts

References

--

--

Tao Dong
Tao Dong

Written by Tao Dong

I’m a HCI researcher and UX Lead focused on applying AI to the full lifecycle of software engineering. Personal website: https://www.taodong.net/.

No responses yet