Note: This repository contains the core logic and reference architecture for the Master's Creative Component project submitted to Iowa State University (Dec 2025). The full dataset and HPC logs are archived at the university, but the core steering algorithms and full project report are provided here.
This project introduces a training-free method for enhancing the reliability of CodeLLMs (Large Language Models) in Automatic Program Repair (APR) tasks. By leveraging Activation Steering, we compute a "correctness vector" (
Experiments on CodeLlama-7B and Qwen-7B/14B showed:
- Elimination of Invalid Code: Reduced invalid generation rate from 4.38% to 0.00%.
- Accuracy Boost: CodeLlama-7B accuracy increased from 48.12% to 56.25%.
src/: Core hooking logic (PyTorch).scripts/: Vector computation and evaluation pipelines.docs/: Full Creative Component Report (PDF).
For detailed mathematics and results, read the full report: π Read the Full Report