Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)

Toufique Ahmed, Kunal Suresh Pai, Prémkumar Dévanbu, Earl T. Barr

2024 · 72 citations · 30 references

DOIFull text

Open access

Concepts

Abstract

Large Language Models (LLM) are a new class of computation engines, "programmed" via prompt engineering. Researchers are still learning how to best "program" these LLMs to help developers. We start with the intuition that developers tend to consciously and unconsciously collect semantics facts, from the code, while working. Mostly these are shallow, simple facts arising from a quick read. For a function, such facts might include parameter and local variable names, return expressions, simple pre- and post-conditions, and basic control and data flow, etc.

References

30