GithubHelp home page GithubHelp logo

ievalm-crs-1's Introduction

Rethinking the Evaluation for Conversational Recommendation in the Era of Large Language Models

This repo provides the source code & data of our paper: Rethinking the Evaluation for Conversational Recommendation in the Era of Large Language Models.

๐Ÿ˜€ Overview

Highlights:

  • 1๏ธโƒฃ We are the first to examine ChatGPT in conversational recommendation systematically, the ability of which is underestimated in traditional evaluation approach.
  • ๐Ÿ’ก We propose a new interactive approach that employs LLM-based user simulators for evaluating CRSs.
  • ๐Ÿ” The performance of chatgpt can be boosted with our new interactive evaluation approach, even surpassing the currently leading CRS baseline.

we propose an interactive Evaluation approach based on LLMs named iEvaLM that harnesses LLM-based user simulators. We take the ground-truth items from the example as the user preference through the interaction, and use them to set up the persona of the simulated users by LLMs through instructions. To further make a comprehensive evaluation, we consider two types of interaction: attribute-based question answering and free-form chit-chat.

๐Ÿš€ Quick Start

Requirements

  • python == 3.9.16
  • pytorch == 1.13.1
  • transformers == 4.28.1
  • pyg == 2.3.0
  • accelerate == 0.18.0

Download Models

You can download our fine-tuned models from the link, which include recommendation and conversation models of KBRD, BARCOR and UniCRS. Please put the downloaded model into src/utils/model directory.

Interact with the user simulator

  • dataset: [redial, opendialkg]
  • mode: [ask, chat]
  • model: [kbrd, barcor, unicrs, chatgpt]
cd script
bash {dataset}/cache_item.sh 
bash {dataset}/{mode}_{model}.sh 

You can customize your iEvaLM-CRS by specifying these configs:

  • --api_key: your API key
  • --turn_num: number of conversation turns. We employ five-round interaction in iEvaLM-CRS.

After the execution, you will find detailed interaction information under "save_{turn_num}/{mode}/{model}/{dataset}/".

Download intermediate results.

You can download the intermediate results from this link.

Evaluate

cd script
bash {dataset}/Rec_eval.sh

You can customize your iEvaLM-CRS by specifying these configs:

  • --turn_num: number of conversation turns.
  • --mode: [ask, chat]

After the execution, you will find evaluation results under "save_{turn_num}/result/{mode}/{model}/{dataset}.json".

iEvaLM-CRS

iEvaLM-CRS

ievalm-crs-1's People

Contributors

dhsveitsis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.