microsoft / microsoft/LLMLingua
Enhancing quality - Recovery settings
@iofu728 is already working on this.
Since Feb 20, 2024.
- 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.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.