Skip to content

Whose Fault Is It Anyway? SILC: Safe Integration of LLM-Generated CodeWhose fault is it anyway? SILC: Safe Integration of LLM-Generated Code

arXiv· arXiv:2410.18703· Peisen Lin, Yuntong Zhang, Andreea Costea, Abhik Roychoudhury·Indexed by this site · 26 days ago· Originally publishedDefenses
AI summary

Researchers propose the SILC framework, which locates the responsible party and allocates cleanup obligations for memory problems that arise when multiple software components are composed into a system. These components may each be safe individually but unsafe when composed, and the core of the problem is often inconsistency between the requirements and assumptions of the components, including code generated by AI assistants. The framework approaches code understanding from the perspective of safety properties rather than traditional functionality, using Incorrectness Logic to extract implicit non-functional assumptions from automatically generated code and make them explicit, so as to detect their inconsistency with the requirements of existing code; for this purpose the authors extend Incorrectness Separation Logic with fault tracing and cleanup insertion capabilities. In experiments on millions of lines of code in open-source projects, where some existing functionality was regenerated by AI assistants, the authors empirically found that AI assistants generate unsafe code, and demonstrated the framework's role in proposing responsibility attribution and cleanup obligations.

Read originalarxiv.org