Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)
Toufique Ahmed, Kunal Suresh Pai, Prémkumar Dévanbu, Earl T. Barr
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.
Topics & Concepts
Computer scienceAutomatic summarizationIntuitionControl flowProgramming languageSimple (philosophy)Natural language processingArtificial intelligenceSemantics (computer science)Language modelCognitive sciencePsychologyEpistemologyPhilosophyTopic ModelingNatural Language Processing TechniquesSoftware Engineering Research