Publications
arXiv 2024

Leveraging Domain Knowledge for Efficient Reward Modelling in RLHF: A Case-Study in E-Commerce Opinion Summarization

Swaroop Nath†1, Tejpalsingh Siledar†1, Sri Raghava†1, Rupasai Rangaraju†1, Harshad Khadilkar1, Pushpak Bhattacharyya1, Suman Banerjee2, Amey Patil2, Sudhanshu Shekhar Singh2, Muthusamy Chelliah2, Nikesh Garera2

1IIT Bombay    2Flipkart

†Equal contribution

A reward model for opinion summarization that scores seven expert-defined features instead of raw text, so it can be trained with 940 human preferences.

Top: the usual approach trains an LLM reward model directly on preference pairs of summaries. Bottom: our approach maps each summary to a vector of feature values with Φ and trains a small feed-forward reward model on those vectors.
Usual reward modelling (top) trains an LLM on preference pairs. Ours (bottom) first maps each summary to seven feature values, then trains a small feed-forward network on them.

Interactive Demo

See the feature scores the reward model works from, and compare the summaries the models actually wrote for one product.

Feature scores

Mistral-7B rates a summary from 0 to 5 on each feature, given the reviews. Load scores from the paper or drag the sliders.

–
Mean of the features — the reward used by the NaiveMean baseline.

φop itself is a small trained network over these scores. The right-hand column is each feature's measured influence on it: hallucination and opinion faithfulness matter most.

Compare model outputs

Summaries of the same eight Amazon reviews, with the paper's annotations.

Faithful Hallucinated or repeated

Show the eight input reviews

    Results

    940
    human preference pairs used to train φop (OpinPref)
    21×
    less preference data than the smallest public preference dataset
    68.8%
    human-evaluation wins against the prior state of the art (Op-Sum-Gen) on Amazon

    Pairwise preference: Inductive-Bias vs. each competitor

    ROUGE-L by benchmark

    Method

    Three steps. Step 1: Mistral-7B generates good, slightly bad and very bad summaries and scores each on seven features. Step 2: domain experts choose the better of two summaries, and the reward model is trained on the feature values of each pair. Step 3: PPO trains the summarization policy with the reward model's score.
    (1) Mistral-7B writes summaries of three quality levels for PromptOpinSumm and scores each on the seven features. (2) Domain experts pick the better of two summaries; φop is trained on the features of each pair. (3) PPO trains a BART-Large summarizer with φop as the reward.

    Abstract

    Reinforcement Learning from Human Feedback (RLHF) has become a dominating strategy in aligning Language Models (LMs) with human values/goals. The key to the strategy is learning a reward model (φ), which can reflect the latent reward model of humans. While this strategy has proven effective, the training methodology requires a lot of human preference annotation (usually in the order of tens of thousands) to train φ. Such a large-scale annotation is justifiable when it's a one-time effort, and the reward model is universally applicable. However, human goals are subjective and depend on the task, requiring task-specific preference annotations, which can be impractical to fulfill. To address this challenge, we propose a novel approach to infuse domain knowledge into φ, which reduces the amount of preference annotation required (21×), omits Alignment Tax, and provides some interpretability. We validate our approach in E-Commerce Opinion Summarization, with a significant reduction in dataset size (to just 940 samples) while advancing the SOTA (~4 point Rouge-L improvement, 68% of times preferred by humans over SOTA). Our contributions include a novel Reward Modeling technique and two new datasets: PromptOpinSumm (supervised data for Opinion Summarization) and OpinPref (a gold-standard human preference dataset). The proposed methodology opens up avenues for efficient RLHF, making it more adaptable to applications with varying human values. We release the artifacts for usage under MIT License.

    Citation

    @misc{nath2024leveraging,
      title         = {Leveraging Domain Knowledge for Efficient Reward Modelling in RLHF: A Case-Study in E-Commerce Opinion Summarization},
      author        = {Swaroop Nath and Tejpalsingh Siledar and Sankara Sri Raghava Ravindra Muddu and Rupasai Rangaraju and Harshad Khadilkar and Pushpak Bhattacharyya and Suman Banerjee and Amey Patil and Sudhanshu Shekhar Singh and Muthusamy Chelliah and Nikesh Garera},
      year          = {2024},
      eprint        = {2402.15473},
      archivePrefix = {arXiv},
      primaryClass  = {cs.CL},
      url           = {https://arxiv.org/abs/2402.15473}
    }