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.
| Method | Path in taxonomy | Papers |
|---|---|---|
| Model Adaptation and Fine-Tuning | Model-Level Mitigation > Model Adaptation and Fine-Tuning | 6 |
| Reward-Guided Training | Model-Level Mitigation > Reward-Guided Training | 3 |
| Training-Time Repetition Control | Model-Level Mitigation > Training-Time Repetition Control | 1 |
| Prompt Constraints | Generation-Level Mitigation > Pre-Generation > Prompt Constraints | 4 |
| Privacy-Preserving Input Transformation | Generation-Level Mitigation > Pre-Generation > Privacy-Preserving Input Transformation | 1 |
| Retrieval-Augmented Generation | Generation-Level Mitigation > Pre-Generation > Retrieval-Augmented Generation | 5 |
| Decoding-Time Intervention | Generation-Level Mitigation > In-Generation > Decoding-Time Intervention | 4 |
| Feedback-Guided Regeneration | Generation-Level Mitigation > Post-Generation > Feedback-Guided Regeneration | 3 |
| Deterministic Repair and Transformation | Generation-Level Mitigation > Post-Generation > Deterministic Repair and Transformation | 2 |
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
| Method | Path in taxonomy | Papers |
|---|---|---|
| Execution-Feedback-Based Filtering | Data Cleaning and Filtering > Execution-Feedback-Based Filtering | 6 |
| Deterministic Validation, Filtering, Sanitization, and Deduplication | Data Cleaning and Filtering > Deterministic Validation, Filtering, Sanitization, and Deduplication | 15 |
| LLM Scoring or Judging | Data Cleaning and Filtering > LLM Scoring or Judging | 8 |
| Learned Quality or Relevance Scorers | Data Cleaning and Filtering > Learned Quality or Relevance Scorers | 5 |
| Manual Review and Curation | Data Cleaning and Filtering > Manual Review and Curation | 4 |
| Mixture Design and Quality-Aware Sampling | Mixture Design and Quality-Aware Sampling | 6 |
| LLM-Based Rewriting and Semantic Correction | Data Enhancement > LLM-Based Rewriting and Semantic Correction | 3 |
| Rule- or Tool-Based Transformation | Data Enhancement > Rule- or Tool-Based Transformation | 1 |
| Curated-Source Expansion | Data Augmentation > Curated-Source Expansion | 2 |
| Synthetic Data Generation | Data Augmentation > Synthetic Data Generation | 13 |
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
Reward-Guided Training 3 papers
Model-Level Mitigation > Reward-Guided Training
Training-Time Repetition Control 1 paper
Model-Level Mitigation > Training-Time Repetition Control
Prompt Constraints 4 papers
Generation-Level Mitigation > Pre-Generation > Prompt Constraints
Privacy-Preserving Input Transformation 1 paper
Generation-Level Mitigation > Pre-Generation > Privacy-Preserving Input Transformation
Retrieval-Augmented Generation 5 papers
Generation-Level Mitigation > Pre-Generation > Retrieval-Augmented Generation
Decoding-Time Intervention 4 papers
Generation-Level Mitigation > In-Generation > Decoding-Time Intervention
Feedback-Guided Regeneration 3 papers
Generation-Level Mitigation > Post-Generation > Feedback-Guided Regeneration
Deterministic Repair and Transformation 2 papers
Generation-Level Mitigation > Post-Generation > Deterministic Repair and Transformation
Training-data mitigation
Execution-Feedback-Based Filtering 6 papers
Data Cleaning and Filtering > Execution-Feedback-Based Filtering
Deterministic Validation, Filtering, Sanitization, and Deduplication 15 papers
Data Cleaning and Filtering > Deterministic Validation, Filtering, Sanitization, and Deduplication
LLM Scoring or Judging 8 papers
Data Cleaning and Filtering > LLM Scoring or Judging
Learned Quality or Relevance Scorers 5 papers
Data Cleaning and Filtering > Learned Quality or Relevance Scorers
Manual Review and Curation 4 papers
Data Cleaning and Filtering > Manual Review and Curation
Mixture Design and Quality-Aware Sampling 6 papers
Mixture Design and Quality-Aware Sampling
LLM-Based Rewriting and Semantic Correction 3 papers
Data Enhancement > LLM-Based Rewriting and Semantic Correction
Rule- or Tool-Based Transformation 1 paper
Data Enhancement > Rule- or Tool-Based Transformation
Curated-Source Expansion 2 papers
Data Augmentation > Curated-Source Expansion
Synthetic Data Generation 13 papers
Data Augmentation > Synthetic Data Generation