ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2505.22906
31
0
v1v2 (latest)

HiLDe: Intentional Code Generation via Human-in-the-Loop Decoding

28 May 2025
Emmanuel Anaya Gonzalez
Raven Rothkopf
Sorin Lerner
Nadia Polikarpova
ArXiv (abs)PDFHTML
Main:2 Pages
6 Figures
Appendix:10 Pages
Abstract

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.

View on arXiv
@article{gonzález2025_2505.22906,
  title={ HiLDe: Intentional Code Generation via Human-in-the-Loop Decoding },
  author={ Emmanuel Anaya González and Raven Rothkopf and Sorin Lerner and Nadia Polikarpova },
  journal={arXiv preprint arXiv:2505.22906},
  year={ 2025 }
}
Comments on this paper