On-the-Fly Input Adaptation for Reliable Code Intelligence
Ravishka Rathnasuriya, Wei Yang

TL;DR
This paper introduces an on-the-fly input adaptation method for code language models that enhances reliability and reduces mispredictions without retraining or architectural changes.
Contribution
It presents a novel two-stage framework combining input validation and syntax- and semantics-preserving input transformation to improve model performance in real-world code understanding tasks.
Findings
Reduces mispredictions across diverse code tasks
Improves model reliability without retraining
Enhances performance with minimal computational overhead
Abstract
Code language models (CLMs) play a central role in software engineering across both generation and classification tasks. However, these models still exhibit notable mispredictions in real-world applications, even when trained on up-to-date data. Existing solutions address this by retraining the model, modifying its architecture, or re-engineering prompts. These approaches incur high computational cost requiring substantial effort in data labeling, model updates, and redeployment, and often suffer from poor generalization across tasks and tuning instability across models. This work proposes an alternative strategy based on on-the-fly input adaptation, which improves model behavior without altering its parameters or requiring additional supervision. The method consists of two stages: input validation, which detects inputs likely to cause mispredictions, and input adaptation, which…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
