For years, the AI community treated prompt engineering and fine-tuning as separate worlds. You picked one or the other. Prompt optimization found the right words to feed the model. Fine-tuning changed the model itself. Two tools, two workflows, two separate disciplines.

A new ICLR 2026 paper says that separation is wrong. The paper, "Prompt and Parameter Co-Optimization for Large Language Models," proposes MetaTuner, a framework that jointly optimizes prompts and model parameters in a single training loop. The results beat both prompt-only and fine-tuning-only approaches across four benchmarks.

This signals a real shift: from "prompt OR fine-tune" to "prompt AND fine-tune."

The Problem with Doing Them Separately

Prompt optimization and fine-tuning attack the same goal from different angles. Prompt optimization works from outside the model. You search for the input text that best activates the model's existing knowledge. Fine-tuning works from inside. You update the model's weights to fit the target task better.

Each has blind spots. Prompt optimization struggles with tasks that need deep adaptation. No amount of clever wording will teach a model new factual patterns it never learned. Fine-tuning is sensitive to the prompts it trains on. A model fine-tuned with a mediocre prompt wastes capacity learning around bad instructions instead of learning the task itself.

Previous work acknowledged this. Stanford's BetterTogether (Soylu, Potts, Khattab, EMNLP 2024) showed that alternating prompt optimization and fine-tuning in sequence improves results over either alone. But BetterTogether treats the two as separate steps in a pipeline. It does not share knowledge between them. It does not optimize them together.

MetaTuner goes further. It unifies them.

How MetaTuner Works

MetaTuner has three core ideas.

A shared encoder that feeds both branches

The framework starts with a meta encoder that processes the input query. From there, two decoders branch off in parallel. One decoder generates a prompt for the query. The other generates LoRA parameters that modify the downstream model. Both decoders share the same encoding layer, so prompt generation and parameter generation learn from the same representation of the input.

This shared-private parameterization is the key design choice. The shared parameters let prompt optimization and fine-tuning regularize each other. If one branch finds a suboptimal solution, the unified loss function pushes the other branch to compensate. The private parameters give each branch room to specialize.

Generating explicit prompts, not soft embeddings

MetaTuner generates natural language prompts, not soft prompt embeddings. This matters. Soft prompts are continuous vectors that get prepended to the input. They work but they are unreadable. You cannot inspect them, debug them, or reason about what they tell the model.

Natural language prompts are explainable. You can read what the generated prompt says. You can check whether it makes sense. You can compare it across inputs. The authors chose explicit prompts intentionally, prioritizing transparency over the easier optimization path of soft embeddings.

Supervised regularization to bridge discrete and continuous

Here is the hard technical problem. Prompt generation produces discrete tokens. Fine-tuning updates continuous parameters. You cannot backpropagate gradients through discrete token choices.

MetaTuner solves this with a supervised regularization loss. During training, it generates multiple prompt candidates (rollouts), evaluates them on the task, and selects the best ones. These winning prompts become training targets for the prompt decoder. The decoder learns to produce better prompts by directly imitating the successful ones, not by approximating gradients through a softmax.

The parameter decoder gets optimized through standard backpropagation since LoRA parameters are continuous. The two branches share gradients through the shared encoder, so improving one branch helps the other.

The authors tested Gumbel-Softmax as an alternative way to handle the discrete-continuous gap. It performed worse. Direct supervision on successful prompts beats gradient approximation.

What the Benchmarks Show

The team evaluated MetaTuner on four datasets. MATH and GSM8K test mathematical reasoning. HotpotQA tests multi-hop question answering. CosmosQA tests commonsense reasoning. They used Qwen2.5-7B as the prompt generator and Qwen2.5-3B as the downstream actor model.

MetaTuner consistently outperformed all baselines across all four benchmarks. This includes prompt-only methods (RLPrompt, BPO, OPRO, CFPO), fine-tuning-only methods (SFT, PPO, DPO, KTO), and the prior hybrid method BetterTogether.

The average relative improvement over BetterTogether was 10.15% on the 7B model and 17.08% on the 3B model. That is a meaningful gap. BetterTogether already combined prompt optimization and fine-tuning. MetaTuner's deeper integration, with shared parameters and joint generation, adds real value beyond sequential alternation.

Ablation studies confirmed that both branches matter. Removing the fine-tuning branch dropped accuracy by about 0.99 percentage points. Removing the prompt optimization branch dropped it by about 1.12 percentage points. Removing parameter sharing between the branches also hurt, confirming that the shared encoder does real work.

Interesting Design Findings

The optimal sharing depth varies by model size. For larger models (7B), a smaller sharing ratio (one-quarter of decoder layers) works best. This gives each branch more room to specialize. For smaller models (3B), a larger sharing ratio (three-quarters of layers) works better. Smaller models benefit more from shared representation since they have less capacity to spare.

The expert dataset for supervised regularization is built from the model's own successful rollouts, not from a stronger external model like GPT-4o. Self-generated targets perform better because they match the model's distribution. GPT-4o might write better prompts in isolation, but those prompts do not align with what the 3B actor model can actually use.

More frequent updates of the prompt decoder's private parameters help, especially for smaller models. Frequent updates keep the sampled prompts aligned with the current state of the actor model.

Why This Matters

MetaTuner is not just another optimization paper. It formalizes something the field has been dancing around for two years.

The prompt engineering vs. fine-tuning debate was always a false choice. Practitioners already combined both in production. You fine-tune a model and then write prompts for it. Or you optimize prompts and then fine-tune to lock in the gains. But the combination was ad hoc. Sequential. Hand-wired.

MetaTuner makes the combination first-class. Prompts and parameters are not separate concerns applied in sequence. They are two outputs of the same optimization process, generated from the same understanding of the input, trained under the same loss. The model learns what to say (the prompt) and how to process it (the parameters) together.

This connects to DSPy's BetterTogether, which proved the concept works at the pipeline level. MetaTuner proves it works at the architecture level, with tighter integration and stronger results. The trajectory is clear. The field is converging on co-optimization as the default, not the exception.

Practical Implications

If you build LLM applications, the takeaway is direct. Stop treating prompt engineering and fine-tuning as separate phases.

When you fine-tune a model, also optimize the prompts you will use with it. The fine-tuned model and the prompt are a system, and you should tune them as a system. A model fine-tuned with a bad prompt is a model that learned the wrong thing.

When you optimize prompts, consider whether the model underneath is the right target. If your prompts push the model in directions it was not trained for, you are fighting the weights instead of working with them. Joint optimization avoids that conflict.

MetaTuner's code is open source at github.com/BoXiaohe/MetaTuner. The framework requires significant compute (eight 80GB GPUs for the paper's experiments), so it is not yet a drop-in solution for most production teams. But the principle, that prompts and parameters should be co-optimized, applies regardless of scale.

The Bigger Picture

ICLR 2026 has multiple papers pushing in this direction. SPRIG isolates system prompts as a distinct optimization target. Agent-GWO uses multi-agent collaboration for joint prompt and hyperparameter optimization. BetterTogether shipped in DSPy 3.2.0 as a composable optimizer. The field is converging.

MetaTuner stands out because it tackles the hardest version of the problem: generating explicit natural language prompts alongside continuous parameter updates in a single architecture with shared knowledge. That is the most general and most useful form of co-optimization. If you can do that, the simpler versions are special cases.

The era of "prompt OR fine-tune" is ending. The era of "prompt AND fine-tune" has a formal framework now.


Suggested title: Prompt AND Fine-Tune: MetaTuner Bridges the Gap at ICLR 2026

Word count: 1,269

Citations:

Fact-check notes:

  • The 10.15% and 17.08% relative improvements over BetterTogether come from the Moonlight literature review summary, not directly from the arXiv paper text I was able to access. The paper's Table 1 was truncated in my fetch. A human should verify these specific percentage claims against the original paper's Table 1 before publishing.
  • The ablation numbers (0.99pp and 1.12pp drops) also come from the Moonlight summary. Verify against the paper's ablation tables.
  • The authors are from Renmin University of China (Gaoling School of AI) and Huawei Technologies. Verify affiliations.
  • The paper was presented as an ICLR 2026 poster on April 24, 2026, at Pavilion 3, poster P3-#1513. Verify the poster number.
  • MetaTuner uses Qwen2.5-7B and Qwen2.5-3B in experiments. Verify these model versions.
  • The "eight 80G GPUs" compute requirement comes from the paper text I read directly. This is reliable.