HiLDe: Intentional Code Generation via Human-in-the-Loop Decoding
Not on the map. Why?
Abstract (arXiv)
While AI programming tools hold the promise of increasing programmers' capabilities and productivity to a remarkable degree, they often exclude users from essential decision-making processes, causing many to effectively "turn off their brains" and over-rely on solutions provided by these systems. These behaviors can have severe consequences in critical domains, like software security. We propose Human-in-the-loop Decoding, a novel interaction technique that allows users to observe and directly influence LLM decisions during code generation, in order to align the model's output with their personal requirements. We implement this technique in HiLDe, a code completion assistant that highlights critical decisions made by the LLM and provides local alternatives for the user to explore. In a within-subjects study (N=18) on security-related tasks, we found that HiLDe led participants to generate significantly fewer vulnerabilities and better align code generation with their goals compared to a traditional code completion assistant.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 39 of its 52 references that are in the map. First posted on arXiv 28 May 2025.
Builds on
39 of 52 references.
References · 39
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2020Effect of Confidence and Explanation on Accuracy and Trust Calibration in AI-Assisted Decision Makingcited by 281
- 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 274
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 192
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 155
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
27 more
- 2023A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challengescited by 75
- 2024"I'm Not Sure, But...": Examining the Impact of Large Language Models' Uncertainty Expression on User Reliance and Trustcited by 67
- 2023Luminate: Structured Generation and Exploration of Design Space with Large Language Models for Human-AI Co-Creationcited by 64
- 2022Investigating Explainability of Generative AI for Code through Scenario-based Designcited by 47
- 2024Finetuning Large Language Models for Vulnerability Detectioncited by 40
- 2024WaitGPT: Monitoring and Steering Conversational LLM Agent in Data Analysis with On-the-Fly Code Visualizationcited by 39
- 2024DynaVis: Dynamically Synthesized UI Widgets for Visualization Editingcited by 37
- 2025Assistance or Disruption? Exploring and Evaluating the Design and Trade-offs of Proactive AI Programming Supportcited by 34
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 33
- 2024Improving Steering and Verification in AI-Assisted Data Analysis with Interactive Task Decompositioncited by 29
- 2023On the Design of AI-powered Code Assistants for Notebookscited by 28
- 2024Supporting Sensemaking of Large Language Model Outputs at Scalecited by 27
- 2024Beyond Code Generation: An Observational Study of ChatGPT Usage in Software Engineering Practicecited by 25
- 2023Generation Probabilities Are Not Enough: Uncertainty Highlighting in AI Code Completionscited by 20
- 2024Can We Trust Large Language Models Generated Code? A Framework for In-Context Learning, Security Patterns, and Code Evaluations Across Diverse LLMscited by 19
- 2023Poisoned ChatGPT Finds Work for Idle Hands: Exploring Developers' Coding Practices with Insecure Suggestions from Poisoned AI Modelscited by 17
- 2024Ivie: Lightweight Anchored Explanations of Just-Generated Codecited by 14
- 2025Beyond Code Generation: LLM-supported Exploration of the Program Design Spacecited by 13
- 2024BISCUIT: Scaffolding LLM-Generated Code with Ephemeral UIs in Computational Notebookscited by 12
- 2024An AI-Resilient Text Rendering Technique for Reading and Skimming Documentscited by 11
- 2024VulDetectBench: Evaluating the Deep Capability of Vulnerability Detection with Large Language Modelscited by 11
- 2025Do LLMs Consider Security? An Empirical Study on Responses to Programming Questionscited by 9
- 2023Validating AI-Generated Code with Live Programmingcited by 8
- 2024A Study of Vulnerability Repair in JavaScript Programs with Large Language Modelscited by 7
- 2024An Exploratory Study of ML Sketches and Visual Code Assistantscited by 3
- 2025Intention is All You Need: Refining Your Code from Your Intentioncited by 3
- 2024AI-Resilient Interfacescited by 1
Built on by
Citing papers per year: 2025: 1.
1 paper.