NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Self-Robust LLMs: Intrinsic Prompt Noise Resistance via CoIPO

Xin Yang, Letian Li, Abudukelimu Wuerkaixi, Xuxin Cheng, Cao Liu, Ke Zeng, Xunliang Cai, Wenyuan Jiang

Introduction

Large Language Models (LLMs) are notoriously sensitive to "noisy" prompts containing typos, formatting errors, or irrelevant text. CoIPO (Contrastive Learning-based Inverse Direct Preference Optimization) is a novel approach designed to make LLMs intrinsically robust. By training models to produce consistent outputs regardless of prompt imperfections, CoIPO achieves state-of-the-art accuracy without introducing any additional inference-time overhead.

The Problem with Extrinsic Prompt Refinement

In a perfect world, users provide LLMs with clear, well-formatted instructions. In the real world, prompts are messy: they contain spelling mistakes, semantic slips, or irrelevant "noise" (like a signature at the end of an email).

Currently, the standard way to handle this is through extrinsic methods—using external grammar checkers or a secondary "refiner" LLM to clean the prompt before the main model processes it.

Comparison between extrinsic prompt refinement and the proposed intrinsic post-training approach.

The authors argue this extrinsic approach is fundamentally flawed for three reasons:

  1. Overhead: It adds significant latency and financial cost to every query.
  2. Cascading Errors: If the "cleaner" model misinterprets the user's intent, the final answer will inevitably be wrong.
  3. Dependency: The primary model never learns to be robust on its own; it remains fragile without its external crutches.

Methods: Building Intrinsic Robustness

The authors introduce CoIPO, a post-training method that builds robustness directly into the model's weights rather than relying on external tools.

The core innovation is Inverse Direct Preference Optimization (invDPO). While standard DPO compares two different outputs for the same input, invDPO compares two different inputs (a clean prompt and its noisy version) for the same output.

Illustration of the CoIPO training approach, aligning outputs for clean and noisy prompt variations while contrasting with unrelated prompts.

The CoIPO framework operates on three main principles:

  • Logit Alignment: It minimizes the difference (KL divergence) between the probability distributions (logits) produced by a noisy prompt and its clean counterpart.
  • Contrastive Learning: It simultaneously maximizes the difference between the noisy prompt and an unrelated clean prompt. This ensures the model doesn't just become "numb" to input changes, but specifically learns which variations are irrelevant noise and which fundamentally change the prompt's meaning.
  • Theoretical Grounding: Using Mutual Information theory, the authors prove that CoIPO effectively maximizes the "Discriminative Information" the model extracts from a prompt.

Datasets and Benchmarks

To train and evaluate this method, the researchers developed two key resources:

  1. Paired FLAN Dataset: They took 25 subsets of the popular FLAN dataset and generated "noisy" versions of every prompt using four types of perturbations: character-level (typos), word-level (synonyms), and sentence-level (irrelevant additions).
  2. NoisyPromptBench: An evaluation benchmark derived from PromptBench. It features randomized noise intensities to better simulate the unpredictable nature of real-world user inputs.

Key Insights

  • Robustness is Intrinsic: You don't need a pre-processor if the model's internal representations are stable. CoIPO treats noise resistance as a fundamental part of the model's reasoning capability.
  • Logits Matter More Than Labels: Simply fine-tuning a model to get the right answer (Supervised Fine-Tuning) isn't enough. By aligning the raw probability scores (logits), CoIPO ensures the model's internal confidence remains identical whether the prompt is clean or noisy.
  • The "Zero-Cost" Advantage: Because the robustness is baked into the model during training, there is zero additional latency during inference. The model is just as fast as a standard LLM but far more reliable.

Experimental Results

The authors tested CoIPO on the Llama and Qwen model families (up to 72B parameters) with impressive results:

  • Superior Accuracy: On NoisyPromptBench, CoIPO outperformed the previous state-of-the-art (COIN) by an average of 3.64% across all noise types.
  • Stability: For the Qwen2.5-7B model, the performance drop when moving from clean to noisy prompts was a mere 0.54%, compared to much steeper declines for baseline models.
  • Efficiency: Compared to external agents like PromptAgent—which can take over an hour to optimize a single complex prompt—CoIPO provides the same or better results in milliseconds.
  • Generalization: The model maintained its performance on standard "clean" benchmarks (like GSM8K for math), proving that learning robustness doesn't come at the cost of general intelligence.

Limitations and Future Work

The authors identify keyword replacement (swapping a critical word for a synonym) as the most challenging type of noise. While CoIPO improves performance here, it remains the area with the most room for growth.

Future work could involve expanding the method to more open-ended generative tasks, exploring complex adversarial noise types designed to trick LLMs, and investigating how this intrinsic robustness scales to even larger frontier models.

Summary updated

BibTeX
@inproceedings{yang2026towards,
  author = {Xin Yang and Letian Li and Abudukelimu Wuerkaixi and Xuxin Cheng and Cao Liu and Ke Zeng and Xunliang Cai and Wenyuan Jiang},
  title = {{Towards Self-Robust LLMs: Intrinsic Prompt Noise Resistance via CoIPO}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=TUd3c7Vr1z},
}
Figure