On the Fly Input Refinement for Code Language Models

Deep learning-based code language models (CLMs) have become integral to addressing a variety of software engineering (SE) tasks. However, these models often suffer from performance degradation, such as mispredictions, which hinder their practical applicability. Traditional solutions, such as retraining, are resource-intensive due to the requirements of data labeling, model updates, and redeployment. This study introduces a novel approach to address these challenges by refining inputs directly at deployment, avoiding the overhead of retraining. The framework includes two primary steps: (1) input validation, which detects out-of-scope inputs likely to cause mispredictions, and (2) input adaptation, which transforms these inputs into in-scope inputs using semantic-preserving code transformations and optimized sampling techniques. The framework's effectiveness is demonstrated through experiments across three CLMs, achieving accuracy improvements of up to 8.78% and an AUC score of up to 0.924 for detecting out-of-scope inputs. This work highlights input refinement as a cost-effective, scalable alternative to retraining, enabling robust CLM performance in dynamic SE environments.

Authors

Institutions

Publication Details

Published
2025-04-27
DOI
https://doi.org/10.1109/icse-companion66252.2025.00073
Primary Topic
Software Testing and Debugging Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

On the Fly Input Refinement for Code Language Models

Ravishka Rathnasuriya
Software Testing and Debugging Techniques
article

On the Fly Input Refinement for Code Language Models

Ravishka Rathnasuriya
article en

Abstract

Deep learning-based code language models (CLMs) have become integral to addressing a variety of software engineering (SE) tasks. However, these models often suffer from performance degradation, such as mispredictions, which hinder their practical applicability. Traditional solutions, such as retraining, are resource-intensive due to the requirements of data labeling, model updates, and redeployment. This study introduces a novel approach to address these challenges by refining inputs directly at deployment, avoiding the overhead of retraining. The framework includes two primary steps: (1) input validation, which detects out-of-scope inputs likely to cause mispredictions, and (2) input adaptation, which transforms these inputs into in-scope inputs using semantic-preserving code transformations and optimized sampling techniques. The framework's effectiveness is demonstrated through experiments across three CLMs, achieving accuracy improvements of up to 8.78% and an AUC score of up to 0.924 for detecting out-of-scope inputs. This work highlights input refinement as a cost-effective, scalable alternative to retraining, enabling robust CLM performance in dynamic SE environments.

The University of Texas at Dallas (US)
Openalex Percentile: Top 86%
Software Testing and Debugging Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

On the Fly Input Refinement for Code Language Models — Ravishka Rathnasuriya · (2025) | TGRS Research Map | TGRS