Pith. sign in

REVIEW 2 cited by

On-the-fly Improving Performance of Deep Code Models via Input Denoising

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2308.09969 v1 pith:ZQT4R4GO submitted 2023-08-19 cs.SE

classification cs.SE
keywords modelscodedeepinputinputsdenoisingcodedenoiseon-the-fly
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Deep learning has been widely adopted to tackle various code-based tasks by building deep code models based on a large amount of code snippets. While these deep code models have achieved great success, even state-of-the-art models suffer from noise present in inputs leading to erroneous predictions. While it is possible to enhance models through retraining/fine-tuning, this is not a once-and-for-all approach and incurs significant overhead. In particular, these techniques cannot on-the-fly improve performance of (deployed) models. There are currently some techniques for input denoising in other domains (such as image processing), but since code input is discrete and must strictly abide by complex syntactic and semantic constraints, input denoising techniques in other fields are almost not applicable. In this work, we propose the first input denoising technique (i.e., CodeDenoise) for deep code models. Its key idea is to localize noisy identifiers in (likely) mispredicted inputs, and denoise such inputs by cleansing the located identifiers. It does not need to retrain or reconstruct the model, but only needs to cleanse inputs on-the-fly to improve performance. Our experiments on 18 deep code models (i.e., three pre-trained models with six code-based datasets) demonstrate the effectiveness and efficiency of CodeDenoise. For example, on average, CodeDenoise successfully denoises 21.91% of mispredicted inputs and improves the original models by 2.04% in terms of the model accuracy across all the subjects in an average of 0.48 second spent on each input, substantially outperforming the widely-used fine-tuning strategy.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. CodeImprove: Program Adaptation for Deep Code Models

    cs.SE 2025-01 conditional novelty 5.0 of 10

    Adapting program inputs with a layerwise validity score and genetic search improves deep code model accuracy by up to 8.78% without retraining.

  2. Framework for On the Fly Input Refinement for Deep Learning Models

    cs.SE 2025-02 unverdicted novelty 4.0 of 10

    A proposal to reduce deep learning mispredictions at inference by validating, transforming, and searching over inputs, with preliminary evidence only for code classification.

Pith tools