Large language models are increasingly being used to port scientific code across heterogeneous high-performance computing (HPC) programming models, such as translating CUDA to OpenMP, OpenACC, Kokkos, or SYCL. This automation promises to save developers significant effort, but it also introduces the risk of subtle translation errors that are hard to detect through conventional testing.
To address this, the paper introduces Kaizen, a technique that combines metamorphic fuzzing and differential testing to validate LLM-translated HPC applications. Metamorphic fuzzing generates input variations that should preserve certain program properties, while differential testing compares the behavior of the original and translated code across those inputs. This allows Kaizen to automatically flag mismatches that indicate potential translation bugs.
The approach is designed specifically for the HPC domain, where performance and correctness are critical. By systematically checking LLM-generated translations, Kaizen aims to make the use of LLMs in scientific software porting more reliable. The abstract does not yet report experimental results, but the proposed methodology points toward a practical solution for a growing challenge in HPC software development.