Lune

ICML2026Top-tier venue

OPIC: Enhancing Language Model Merging via Optimizing In-Context Capability

Jie He, Weidong Bao, Chao Chen, Zhengyi Zhong, Shuai Zhang, Ji Wang

2026Year

Abstract

Task-vector-based model merging enables lowcost, training-free multi-task learning for large language models, but suffers from performance degradation compared to individually fine-tuned models. Prior mitigation strategies largely rely on validation data for costly hyperparameter tuning, limiting both interpretability and practicality. We therefore propose OPIC, an evolutionary optimization-based model merging framework. Our preliminary experiments reveal that the degradation of in-context learning (ICL) capabilities exhibits a strong correlation with performance deterioration. Motivated by this insight, we formulate model merging as an optimization problem with ICL preservation as the objective. OPIC introduces a hierarchical refinement operators and optimizes it using self-generated data, effectively eliminating the reliance on external validation sets. Experimental results demonstrate that OPIC achieves an average performance retention of 80.73%, outperforming SOTA methods and improving by up to 11.1% over recent validation-free approaches. In addition, OPIC is compatible with existing merging pipelines, offering a new alternative solution for deploying without validation dependencies. Code is available at: https://github.com/illusion-hj/OPIC

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

Builds on26

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines