UniPar

A model translates code between serial C, CUDA and OpenMP, then a compiler and a run against expected outputs send their errors back for up to three repair rounds.

Read the paper

In one paragraph

UniPar (2025, code verification) uses verifier-guided repair, pairing generator GPT-4o-mini and LLaMA-3.3-70B-Instruct (base and fine-tuned) with authority compiler plus execution with expected-output comparison. GPT-4o-mini out of the box reaches 46% compilation and 15% functional correctness. Limit: the 69%/33% figure mixes fine-tuning, decoding tuning and the repair loop, so it is not the loop alone.

Verified against primary sources on · It matched its sources.

How does UniPar work?

  1. Proposes

    Parallel code translations (serial to CUDA/OpenMP and between them) from GPT-4o-mini and LLaMA-3.3-70B-Instruct, base or fine-tuned

  2. Judged by

    A compiler (Compilation Agent) and execution with output comparison against expected results (Execution Agent)

  3. Steers

    Compiler diagnostics and runtime or output errors are written into a repair prompt; the loop runs for up to three rounds

What did UniPar report?

GPT-4o-mini out of the box reaches 46% compilation and 15% functional correctness; combining fine-tuning, decoding hyperparameter tuning and compiler-guided repair raises this to 69% and 33%.

What does UniPar not prove?

The 69%/33% figure mixes fine-tuning, decoding tuning and the repair loop, so it is not the loop alone. Correctness is checked by output comparison on the PARATRANS dataset; the authors did not measure performance or scalability of the translated code.

What a pass means here

The judge is a test, benchmark or score, so a pass means the candidate did well on those checks, not that it is right on every input. The loop runs each time an answer is needed.

See how this kind of check sits among the others: how to validate LLM output with code.

How it generalizes the harness

The compiler and an output check decide whether a translation stands, and accepted code runs without the model.

Classification

Classification of UniPar
Classification dimensionVerified value
What it proposesProgram
Generative modelGPT-4o-mini and LLaMA-3.3-70B-Instruct (base and fine-tuned)
Algorithmic authorityCompiler plus execution with expected-output comparison
FeedbackVerifier errors
What gets updatedPrompt context
When it runsAt inference time
ValidityEmpirical (measured)
EvidenceCode released
LineageApplication