RQ5: Mitigation and software workflow

Mitigation can act during dataset construction, model training, or generation. The intervention should match the diagnosed property and be evaluated against its intended output quality and possible regressions.

Family Useful conditions Benefit Cost, trade-off, and evidence limit
Deterministic validation and filtering A checkable sample defect and another training run Removes specified invalid, vulnerable, duplicate, or unsuitable material Rules can discard useful samples; bundled pipelines rarely isolate each filter
Scoring, sampling, and expansion Quality signals, a target mixture, or verified new sources Selects graded quality and broadens relevant coverage Labels and mixture targets require judgment; scoring and synthesis add cost and can repeat bias
Rewriting and transformation Useful samples have recoverable presentation, alignment, or implementation defects Retains information while changing a defined property Requires validation; improvements can be task-dependent and can cause regressions
Model adaptation and reward-guided training Weights or prefixes can be updated with relevant examples or rewards Amortizes a target behavior across requests Training and regression evaluation cost; reward proxies can conflict with functionality
Prompt, retrieval, and decoding control Constraints or current context vary by request Supplies targeted guidance or checker feedback at inference Retrieval and decoding add latency; poor context can harm otherwise familiar tasks
Feedback-guided or deterministic repair A compiler, test, analyzer, API map, or rule localizes a defect Reuses development tools to repair candidates Repeated calls and tests cost time; repairs can introduce defects or plateau

Generated-code mitigation

Data-level mitigation is detailed in the next section. Its effect on generated code requires training and held-out output evaluation.

MethodPath in taxonomyPapers
Model Adaptation and Fine-TuningModel-Level Mitigation > Model Adaptation and Fine-Tuning6
Reward-Guided TrainingModel-Level Mitigation > Reward-Guided Training3
Training-Time Repetition ControlModel-Level Mitigation > Training-Time Repetition Control1
Prompt ConstraintsGeneration-Level Mitigation > Pre-Generation > Prompt Constraints4
Privacy-Preserving Input TransformationGeneration-Level Mitigation > Pre-Generation > Privacy-Preserving Input Transformation1
Retrieval-Augmented GenerationGeneration-Level Mitigation > Pre-Generation > Retrieval-Augmented Generation5
Decoding-Time InterventionGeneration-Level Mitigation > In-Generation > Decoding-Time Intervention4
Feedback-Guided RegenerationGeneration-Level Mitigation > Post-Generation > Feedback-Guided Regeneration3
Deterministic Repair and TransformationGeneration-Level Mitigation > Post-Generation > Deterministic Repair and Transformation2

Select a paper count to open its supporting papers. Counts are multi-label literature memberships. Download the method definitions and paper–method memberships to trace each entry.

Training-data mitigation

MethodPath in taxonomyPapers
Execution-Feedback-Based FilteringData Cleaning and Filtering > Execution-Feedback-Based Filtering6
Deterministic Validation, Filtering, Sanitization, and DeduplicationData Cleaning and Filtering > Deterministic Validation, Filtering, Sanitization, and Deduplication15
LLM Scoring or JudgingData Cleaning and Filtering > LLM Scoring or Judging8
Learned Quality or Relevance ScorersData Cleaning and Filtering > Learned Quality or Relevance Scorers5
Manual Review and CurationData Cleaning and Filtering > Manual Review and Curation4
Mixture Design and Quality-Aware SamplingMixture Design and Quality-Aware Sampling6
LLM-Based Rewriting and Semantic CorrectionData Enhancement > LLM-Based Rewriting and Semantic Correction3
Rule- or Tool-Based TransformationData Enhancement > Rule- or Tool-Based Transformation1
Curated-Source ExpansionData Augmentation > Curated-Source Expansion2
Synthetic Data GenerationData Augmentation > Synthetic Data Generation13

Select a paper count to open its supporting papers. Counts are multi-label literature memberships. Download the method definitions and paper–method memberships to trace each entry.

Applying controls in a project

The following workflow is an author synthesis of separately evaluated controls. Included papers do not evaluate the complete arrangement as an integrated production system.

Workflow point Controls and retained evidence
Dataset intake Record sources, licensing, provenance, versions, and coverage; check samples and training–evaluation overlap
Dependencies and build Pin the environment; validate APIs and versions; compile or resolve packages
Local review Run tests and static checks; examine intent, security, and maintainability in context
CI/CD and release Apply project-specific gates; measure workloads and boundaries; return repaired candidates through applicable checks
Repository maintenance Retain model, prompt, retrieval, artifact, and tool versions; investigate regressions as dependencies and requirements change

Begin with deterministic checks, add execution and stress testing where an oracle exists, and use contextual triage and repair for residual cases. Projects set their own thresholds and escalation rules. The automation crosswalk records narrow exemplars and scope limits; it does not establish full issue coverage or production readiness.

Supporting papers

Browse 48 distinct papers by mitigation method, separated by the artifact being changed. Expand a method to see its taxonomy path and supporting papers, or select its paper count in the tables above. Membership is multi-label: a paper can appear under several methods. The paper–method memberships retain the exact assignments.

Generated-code mitigation

Model Adaptation and Fine-Tuning 6 papers

Model-Level Mitigation > Model Adaptation and Fine-Tuning

package hallucinations
We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs
S014 · Jun-24View Paper ↗
Large Language Models for Code
Large Language Models for Code: Security Hardening and Adversarial Testing
S016 · Feb-23View Paper ↗
ReCode
ReCode: Updating Code API Knowledge with Reinforcement Learning
S057 · Jun-25View Paper ↗
CRPE
CRPE: Expanding The Reasoning Capability of Large Language Model for Code Generation
S060 · May-25View Paper ↗
UCD-Training
Unseen-Codebases-Domain Data Synthesis and Training Based on Code Graphs
S100 · Feb-26View Paper ↗
ShortCoder
ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code GenerationPreprint
S103 · Jan-26View Paper ↗
Reward-Guided Training 3 papers

Model-Level Mitigation > Reward-Guided Training

Codequal Analyzer
Improving LLM-Generated Code Quality with GRPO
S040 · Jun-25View Paper ↗
REAL
Training Language Models to Generate Quality Code with Program Analysis Feedback
S045 · May-25View Paper ↗
ReCode
ReCode: Updating Code API Knowledge with Reinforcement Learning
S057 · Jun-25View Paper ↗
Training-Time Repetition Control 1 paper

Model-Level Mitigation > Training-Time Repetition Control

Repetition In Repetition Out
Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspective
S067 · Oct-23View Paper ↗
Prompt Constraints 4 papers

Generation-Level Mitigation > Pre-Generation > Prompt Constraints

LLMs Meet Library Evolution
LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completion
S001 · Jun-24View Paper ↗
SStuBs
Large Language Models and Simple, Stupid Bugs
S013 · Mar-23View Paper ↗
Syntactic Robustness
Syntactic Robustness for LLM-based Code Generation
S027 · Apr-24View Paper ↗
Beyond Functional Correctness
Beyond functional correctness: Investigating coding style inconsistencies in large language models
S106 · Jun-24View Paper ↗
Privacy-Preserving Input Transformation 1 paper

Generation-Level Mitigation > Pre-Generation > Privacy-Preserving Input Transformation

CodeCipher
CodeCipher: Learning to Obfuscate Source Code Against LLMs
S076 · Oct-24View Paper ↗
Retrieval-Augmented Generation 5 papers

Generation-Level Mitigation > Pre-Generation > Retrieval-Augmented Generation

package hallucinations
We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs
S014 · Jun-24View Paper ↗
CloudAPIBench
On Mitigating Code LLM Hallucinations with API Documentation
S024 · Jul-24View Paper ↗
AllianceCoder
What to retrieve for effective retrieval-augmented code generation? an empirical study and beyond
S109 · Mar-25View Paper ↗
RustEvo^ 2
RustEvo^ 2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generation
S110 · Mar-25View Paper ↗
Llm Hallucinations in Practical Code Generation
Llm hallucinations in practical code generation: Phenomena, mechanism, and mitigation
S112 · Sep-24View Paper ↗
Decoding-Time Intervention 4 papers

Generation-Level Mitigation > In-Generation > Decoding-Time Intervention

CodeIP
CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Code
S034 · Apr-24View Paper ↗
RPG
Rethinking Repetition Problems of LLMs in Code Generation
S066 · May-25View Paper ↗
Adadec
Adadec: Uncertainty-guided adaptive decoding for llm-based code generation
S107 · Jun-25View Paper ↗
RobGen
A Preliminary Study on the Robustness of Code Generation by Large Language Models
S111 · Mar-25View Paper ↗
Feedback-Guided Regeneration 3 papers

Generation-Level Mitigation > Post-Generation > Feedback-Guided Regeneration

package hallucinations
We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs
S014 · Jun-24View Paper ↗
Refining ChatGPT-Generated Code
Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issues
S052 · Jul-23View Paper ↗
MultiCodeIF
A hierarchical and evolvable benchmark for fine-grained code instruction following with multi-turn feedback
S105 · Jul-25View Paper ↗
Deterministic Repair and Transformation 2 papers

Generation-Level Mitigation > Post-Generation > Deterministic Repair and Transformation

LLMs Meet Library Evolution
LLMs Meet Library Evolution: Evaluating Deprecated API Usage in LLM-based Code Completion
S001 · Jun-24View Paper ↗
Code Copycat Conundrum
Code Copycat Conundrum: Demystifying Repetition in LLM-based Code Generation
S108 · Apr-25View Paper ↗

Training-data mitigation

Execution-Feedback-Based Filtering 6 papers

Data Cleaning and Filtering > Execution-Feedback-Based Filtering

Qwen2
Qwen2 Technical Report
S004 · Jul-24View Paper ↗
Qwen2.5
Qwen2.5 Technical Report
S054 · Dec-24View Paper ↗
TeleChat
Technical Report of TeleChat2, TeleChat2.5 and T1
S055 · Jul-25View Paper ↗
Kimi K2
Kimi K2: Open Agentic Intelligence
S056 · Jul-25View Paper ↗
Seed-Coder
Seed-Coder: Let the Code Model Curate Data for Itself
S058 · Jun-25View Paper ↗
Code Llama
Code Llama: Open Foundation Models for Code
S081 · Aug-23View Paper ↗
Deterministic Validation, Filtering, Sanitization, and Deduplication 15 papers

Data Cleaning and Filtering > Deterministic Validation, Filtering, Sanitization, and Deduplication

Less is More
Less is More: On the Importance of Data Quality for Unit Test Generation
S002 · Feb-25View Paper ↗
Qwen
Qwen Technical Report
S003 · Sep-23View Paper ↗
Qwen2
Qwen2 Technical Report
S004 · Jul-24View Paper ↗
Quality In, Quality Out
Quality In, Quality Out: Investigating Training Data's Role in AI Code Generation
S048 · Mar-25View Paper ↗
SwallowCode
Rewriting Pre-Training Data Boosts LLM Performance in Math and Code
S050 · May-25View Paper ↗
Qwen2.5
Qwen2.5 Technical Report
S054 · Dec-24View Paper ↗
TeleChat
Technical Report of TeleChat2, TeleChat2.5 and T1
S055 · Jul-25View Paper ↗
Seed-Coder
Seed-Coder: Let the Code Model Curate Data for Itself
S058 · Jun-25View Paper ↗
DeepSeek-Coder
DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligence
S061 · Jan-24View Paper ↗
StarCoder 2 and The Stack v2
StarCoder 2 and The Stack v2: The Next Generation
S064 · Feb-24View Paper ↗
DataComp-LM
DataComp-LM: In search of the next generation of training sets for language models
S078 · Jun-24View Paper ↗
RedStone
RedStone: Curating General, Code, Math, and QA Data for Large Language Models
S080 · Dec-24View Paper ↗
Code Llama
Code Llama: Open Foundation Models for Code
S081 · Aug-23View Paper ↗
MG-Verilog
MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generation
S090 · Jun-24View Paper ↗
aiXcoder-7B
aiXcoder-7B: A Lightweight and Effective Large Language Model for Code Processing
S094 · Apr-25View Paper ↗
LLM Scoring or Judging 8 papers

Data Cleaning and Filtering > LLM Scoring or Judging

Qwen
Qwen Technical Report
S003 · Sep-23View Paper ↗
Qwen2
Qwen2 Technical Report
S004 · Jul-24View Paper ↗
DataMan
DataMan: Data Manager for Pre-training Large Language Models
S005 · Feb-25View Paper ↗
Qwen3
Qwen3 Technical Report
S053 · May-25View Paper ↗
Qwen2.5
Qwen2.5 Technical Report
S054 · Dec-24View Paper ↗
TeleChat
Technical Report of TeleChat2, TeleChat2.5 and T1
S055 · Jul-25View Paper ↗
Kimi K2
Kimi K2: Open Agentic Intelligence
S056 · Jul-25View Paper ↗
Seed-Coder
Seed-Coder: Let the Code Model Curate Data for Itself
S058 · Jun-25View Paper ↗
Learned Quality or Relevance Scorers 5 papers

Data Cleaning and Filtering > Learned Quality or Relevance Scorers

Less is More
Less is More: On the Importance of Data Quality for Unit Test Generation
S002 · Feb-25View Paper ↗
DataMan
DataMan: Data Manager for Pre-training Large Language Models
S005 · Feb-25View Paper ↗
CIDRe
CIDRe: A Reference-Free Multi-Aspect Criterion for Code Comment Quality Measurement
S046 · May-25View Paper ↗
Seed-Coder
Seed-Coder: Let the Code Model Curate Data for Itself
S058 · Jun-25View Paper ↗
DataComp-LM
DataComp-LM: In search of the next generation of training sets for language models
S078 · Jun-24View Paper ↗
Manual Review and Curation 4 papers

Data Cleaning and Filtering > Manual Review and Curation

Qwen
Qwen Technical Report
S003 · Sep-23View Paper ↗
TeleChat
Technical Report of TeleChat2, TeleChat2.5 and T1
S055 · Jul-25View Paper ↗
ReCode
ReCode: Updating Code API Knowledge with Reinforcement Learning
S057 · Jun-25View Paper ↗
StarCoder 2 and The Stack v2
StarCoder 2 and The Stack v2: The Next Generation
S064 · Feb-24View Paper ↗
Mixture Design and Quality-Aware Sampling 6 papers

Mixture Design and Quality-Aware Sampling

Qwen
Qwen Technical Report
S003 · Sep-23View Paper ↗
DataMan
DataMan: Data Manager for Pre-training Large Language Models
S005 · Feb-25View Paper ↗
Qwen3
Qwen3 Technical Report
S053 · May-25View Paper ↗
TeleChat
Technical Report of TeleChat2, TeleChat2.5 and T1
S055 · Jul-25View Paper ↗
Code Pretraining
How Does Code Pretraining Affect Language Model Task Performance?
S063 · Sep-24View Paper ↗
Code Llama
Code Llama: Open Foundation Models for Code
S081 · Aug-23View Paper ↗
LLM-Based Rewriting and Semantic Correction 3 papers

Data Enhancement > LLM-Based Rewriting and Semantic Correction

SwallowCode
Rewriting Pre-Training Data Boosts LLM Performance in Math and Code
S050 · May-25View Paper ↗
Qwen3
Qwen3 Technical Report
S053 · May-25View Paper ↗
DataRecipe
DataRecipe --- How to Cook the Data for CodeLLM?
S092 · Oct-24View Paper ↗
Rule- or Tool-Based Transformation 1 paper

Data Enhancement > Rule- or Tool-Based Transformation

DataRecipe
DataRecipe --- How to Cook the Data for CodeLLM?
S092 · Oct-24View Paper ↗
Curated-Source Expansion 2 papers

Data Augmentation > Curated-Source Expansion

StarCoder 2 and The Stack v2
StarCoder 2 and The Stack v2: The Next Generation
S064 · Feb-24View Paper ↗
Code Llama
Code Llama: Open Foundation Models for Code
S081 · Aug-23View Paper ↗
Synthetic Data Generation 13 papers

Data Augmentation > Synthetic Data Generation

Qwen2
Qwen2 Technical Report
S004 · Jul-24View Paper ↗
Phi-4
Phi-4 Technical Report
S006 · Dec-24View Paper ↗
Qwen3
Qwen3 Technical Report
S053 · May-25View Paper ↗
Qwen2.5
Qwen2.5 Technical Report
S054 · Dec-24View Paper ↗
Kimi K2
Kimi K2: Open Agentic Intelligence
S056 · Jul-25View Paper ↗
ReCode
ReCode: Updating Code API Knowledge with Reinforcement Learning
S057 · Jun-25View Paper ↗
Seed-Coder
Seed-Coder: Let the Code Model Curate Data for Itself
S058 · Jun-25View Paper ↗
CRPE
CRPE: Expanding The Reasoning Capability of Large Language Model for Code Generation
S060 · May-25View Paper ↗
Code Llama
Code Llama: Open Foundation Models for Code
S081 · Aug-23View Paper ↗
MG-Verilog
MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generation
S090 · Jun-24View Paper ↗
UCD-Training
Unseen-Codebases-Domain Data Synthesis and Training Based on Code Graphs
S100 · Feb-26View Paper ↗
ShortCoder
ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code GenerationPreprint
S103 · Jan-26View Paper ↗
APIKG4SYN
Framework-Aware Code Generation with API Knowledge Graph-Constructed Data: A Study on HarmonyOS
S104 · Nov-25View Paper ↗

© 2026 SYSUSELab. From Data to Code: Systematic Review of Quality Issues in LLMs for Code.

This site uses Just the Docs, a documentation theme for Jekyll.