microsoft / microsoft/LLMLingua

[Question]: Reproduce LLMLingua-2 on the LongBench SingleDoc dataset

Open
#146 2 comments 0 reactions 2 assignees View on GitHub

@pzs19 is already working on this.

Since May 10, 2024.

question
Dominant language
Python
Stars
6.7k
Forks
428
Avg merge
2d 4h
Merged PRs (30d)
1

Description

Describe the issue

We referred to your code https://github.com/microsoft/LLMLingua/blob/main/experiments/llmlingua2/evaluation/compress.py, https://github.com/microsoft/LLMLingua/blob/main/experiments/llmlingua2/evaluation/eval_longbench.py

target token: 2000
compresse model: llmlingua-2-bert-base-multilingual-cased-meetingbank
llm model: Mistral-7B-Instruct-v0.1 (from https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1/tree/main)
LongBench singledoc tasks: qasper, multifieldqa_en, narrativeqa
Hardware platform: 1 Nvidia A100-80GB

The result is different from the conclusions in the paper (Table 4, LLMLingua-2-small, LongBench-SingleDoc , 2000-token cons.)
The compressed prompt evaluation score is:
{'qasper': 32.27, 'multifieldqa_en': 33.04, 'narrativeqa': 8.84}
average score 24.7 (25.3 in paper)

The uncompressed prompt evaluation score is:
{"multifieldqa_en": 37.07, "qasper": 33.83, "narrativeqa": 19.89}
30.3 (24.5 in paper)

What's the experiment settings in the paper and what makes the difference in the evaluation result. Thank you for your reply

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.