Published June 2, 2026 | Version v1
Report Open

Adversarial Contrastive Learning and Few-Shot Prompting for Robust Code Generation

Authors/Creators

  • 1. https://assignee.net

Description

This report synthesises findings from 12 peer-reviewed papers addressing the following research question: Does adversarial contrastive learning with few-shot prompting improve robustness to adversarial examples in code generation tasks evaluated on HumanEval, measured by pass@1 and pass@k metrics. Large Language Models (LLMs) have drawn a lot of attention due to their strong performance on a wide range of natural language tasks, since the release of ChatGPT in November 2022. LLMs' ability of general-purpose language understanding and generation is acquired by training. 10 claims were extracted from source literature; 9 were independently verified against retrieved documents. An automated multi-reviewer quality assessment produced a score of 8.5/10. This report is a machine-generated literature synthesis and does not constitute original research.

Research goal: Does adversarial contrastive learning with few-shot prompting improve robustness to adversarial examples in code generation tasks evaluated on HumanEval, measured by pass@1 and pass@k metrics?

Autonomous literature synthesis. Automated review score: 8.5/10. Full text and citation available at Assignee Research.

Notes

Machine-generated literature synthesis. Content is derived from peer-reviewed papers; see individual sources for authoritative data. Automated review score: 8.5/10. Published by Assignee Research (https://assignee.net).

Files

paper.pdf

Files (87.2 kB)

Name Size Download all
md5:5f0683b74654fe1ac2bd6d7ac7808a68
87.2 kB Preview Download

Additional details

Related works

Is compiled by
https://assignee.net (URL)