microsoft / microsoft/LLMLingua

Enhancing quality - Recovery settings

Open
#89 1 comment 0 reactions 1 assignee View on GitHub

@iofu728 is already working on this.

Since Feb 20, 2024.

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

Description

As mentioned in the paper, key concepts might get omitted either corrupted by the compression, in a way that the GPT can't process the compressed prompt.

You mention also there is an approach to optimize around this issue; could you share details on the corresponding configuration options in the Python implementation?

In the attached image, I've tested the GPT confidence degradation according to compression effects on the qasper_e subset of the LongBench benchmark.

fig_scatter_plots_pcompr_confidence

Wrong answers/no answer possible:

  • Regular GPT-4: %45.36 e.g. without prompt compression (GPT-4 seems to "give up" frequently on longer queries)
  • Compressed prompt by LLM Lingua, target_token=200: 63.93%
  • Compressed prompt by LLM Lingua, target_token=400: 60.66%

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.