Skip to content
Back to skills

Longllmlingua Eval

ASecurity

Evaluates the effectiveness of a question-aware prompt compression framework on long-context LLM tasks. It measures how well compressed prompts preserve key information and answer accuracy across multi-document QA, summarization, and code completion scenarios. Use when the user wants to benchmark on NaturalQuestions (Liu et al., 2023), LongBench (Bai et al., 2023), ZeroSCROLLS (Shaham et al., 2023), or asks about evaluating this task. Reports accuracy.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 11, 2026
researchpythongo

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill longllmlingua-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Longllmlingua Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Longllmlingua Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-longllmlingua-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-longllmlingua-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: longllmlingua-eval
description: Evaluates the effectiveness of a question-aware prompt compression framework on long-context LLM tasks. It measures how well compressed prompts preserve key information and answer accuracy across multi-document QA, summarization, and code completion scenarios. Use when the user wants to benchmark on NaturalQuestions (Liu et al., 2023), LongBench (Bai et al., 2023), ZeroSCROLLS (Shaham et al., 2023), or asks about evaluating this task. Reports accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2310.06839
  bibtex_key: [REDACTED]
  confidence: high
---

# longllmlingua-eval

> LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression — Jiang et al. (2023) (arXiv:2310.06839, 2023)

## What this evaluates

Evaluates the effectiveness of a question-aware prompt compression framework on long-context LLM tasks. It measures how well compressed prompts preserve key information and answer accuracy across multi-document QA, summarization, and code completion scenarios.

## Datasets

- **NaturalQuestions (Liu et al., 2023)** — total ?; splits: test (-1)
- **LongBench (Bai et al., 2023)** — total ?; splits: test (-1)
- **ZeroSCROLLS (Shaham et al., 2023)** — total ?; splits: validation (-1)

## Metrics

- `accuracy` **(primary)** — range: [0, 1]
  - Proportion of correctly answered questions where the model's output matches the ground truth answer.
- `LongBench official metrics` — range: varies
  - Task-specific metrics provided by the LongBench benchmark (e.g., exact match, ROUGE, F1) evaluated using the benchmark's official scripts.
- `ZeroSCROLLS official metrics` — range: varies
  - Task-specific metrics provided by the ZeroSCROLLS benchmark evaluated using the benchmark's official scripts.

## Input / output format

**Input**: Long-context prompts containing a user question and multiple retrieved documents (e.g., 20 documents for NaturalQuestions), processed through a question-aware compression pipeline before being fed to a target LLM (GPT-3.5-Turbo-0613 or LongChat-13B-16k).

**Output**: Model-generated response (e.g., extracted answer, summary, or code completion) produced via greedy decoding (temperature=0).

## Scoring recipe

```python
def compute_accuracy(predictions, gold_answers):
    correct = 0
    for pred, gold in zip(predictions, gold_answers):
        if normalize_text(pred) == normalize_text(gold):
            correct += 1
    return correct / len(predictions)

# For LongBench & ZeroSCROLLS:
# Run official benchmark evaluation scripts provided with each dataset
# to compute task-specific metrics (e.g., F1, ROUGE, exact match)
```

## Common pitfalls

- Using temperature > 0 or sampling instead of greedy decoding (temp=0) breaks reproducibility and inflates variance.
- Failing to account for the five specific ground-truth document position settings (1st, 5th, 10th, 15th, 20th) in NaturalQuestions can artificially inflate or deflate accuracy.
- Substituting custom evaluation code for the official LongBench and ZeroSCROLLS scripts yields non-comparable results.

## Evidence (verbatim from paper)

> We use NaturalQuestions for the multi-document QA task, and use LongBench and ZeroSCROLLS for general long context scenarios. ... Following Liu et al. (2023), we use accuracy as the evaluation metric. ... We use the metrics and scripts provided along with the benchmark for evaluation.

## Citation

```bibtex
@misc{jiang2023longllmlingua,
  title={LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression},
  author={Jiang et al. (2023)},
  year={2023},
  note={arXiv:2310.06839}
}
```

- arXiv: 2310.06839

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.