RIMS: Preference Optimization via Smoothed Multi-pair Aggregation for Small-Scale LLM Retrieval-Augmented Generation

Pei Tian, Zihan Dong, Tianci Liu, Linjun Zhang, Haoyu Wang
7/17/2026
cs.CL
rlhf-rlvr-dporag

Official code: Tptrix29/RIMS (1 star, Python, MIT, last commit 2026-09-01).

Abstract

Small-scale language models (SLMs) are attractive for retrieval-augmented generation (RAG) in resource-constrained settings, but their limited capacity makes them highly sensitive to noisy or spurious retrieved evidence. Existing preference-based methods such as RoseRAG select only the hardest single preference pair via hard argmin/argmax, discarding the remaining signal; others treat multiple pairs as independent binary comparisons, resulting in low data utilization.

Show full abstract

We propose RIMS, a three-stage preference optimization framework comprising (1) synthetic chain-of-thought preference data generation via rejection sampling using the target SLM itself without relying on proprietary models, (2) a differentiable soft aggregation mechanism that replaces hard selection with a smooth operator, preserving gradient signal from all preference pairs while retaining the discriminative structure of margin-aware selection, and (3) preference optimization with the smoothed objective applied to multiple alignment algorithms. We theoretically show that the smoothed approximation admits a controllable error bound and that smooth aggregation yields provably tighter gradient alignment to the oracle objective than hard selection. Experiments on four multi-hop question answering benchmarks show that our approach outperforms state-of-the-art baselines across multiple SLM backbones, achieving consistent gains in Exact Match and F1 under noisy retrieval conditions. Our implementation is available at https://github.com/tptrix29/RIMS.

View on arXivView PDF

Code Implementations(1)

Tptrix29/RIMSOfficial100%
MIT
10Python, ShellJul 17, 20263 months agoMIT

Similar Papers

Cite this paper

@article{tian2026rims,
  title  = {RIMS: Preference Optimization via Smoothed Multi-pair Aggregation for Small-Scale LLM Retrieval-Augmented Generation},
  author = {Pei Tian and Zihan Dong and Tianci Liu and Linjun Zhang and Haoyu Wang},
  year   = {2026},
  eprint = {2607.16431},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.16431v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.16431.svg)](https://codeofpaper.com/paper/2607.16431)

Discussion