pprp/ACBench

[ICML25] Agentic Compression Benchmark (ACBench)

Python

21

52 commits

updated Jul 2, 2025

See the code

README

🤖 ACBench 🔬

🤔 Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compression 📊

📄arXiv • 🌐GitHub

Awesome License: MIT

Table of Contents

Overview

Post-training compression reduces the computational and memory costs of large language models (LLMs), enabling resource-efficient deployment. However, existing compression benchmarks focus narrowly on language modeling (e.g., perplexity) and natural language understanding tasks (e.g., GLUE accuracy), ignoring the agentic capabilities—workflow, tool use/function call, long-context understanding and real-world application.

We introduce the Agent Compression Benchmark (ACBench), the first comprehensive benchmark for evaluating how compression impacts LLMs' agentic abilities. ACBench spans:

  • 12 tasks across 4 capabilities (e.g., WorfBench for workflow generation, Needle-in-Haystack for long-context retrieval)
  • 4-bit quantization (GPTQ, AWQ) and 50% pruning (Wanda, SparseGPT)
  • 15 models, including small (Gemma-2B), standard (Qwen2.5-7B), and distilled reasoning LLMs (DeepSeek-R1-Distill)

Abstract

Post-training compression reduces the computational and memory costs of large language models (LLMs), enabling resource-efficient deployment. However, existing compression benchmarks focus narrowly on language modeling (e.g., perplexity) and natural language understanding tasks (e.g., GLUE accuracy), ignoring the agentic capabilities—workflow, tool use/function call, long-context understanding and real-world application. We introduce the Agent Compression Benchmark (ACBench), the first comprehensive benchmark for evaluating how compression impacts LLMs' agentic abilities. ACBench spans (1) 12 tasks across 4 capabilities (e.g., WorfBench for workflow generation, Needle-in-Haystack for long-context retrieval), (2) 4-bit quantization (GPTQ, AWQ) and 50% pruning (Wanda, SparseGPT), and (3) 15 models, including small (Gemma-2B), standard (Qwen2.5-7B), and distilled reasoning LLMs (DeepSeek-R1-Distill). Our experiments reveal compression tradeoffs: 4-bit quantization preserves workflow generation and tool use (1%--3% drop) but degrades real-world application accuracy by 10%--15%. We introduce ERank, Top-k Ranking Correlation and Energy to systematize analysis. ACBench provides actionable insights for optimizing LLM compression in agentic scenarios, bridging the gap between algorithmic efficiency and real-world applicability.

Installation

git clone https://github.com/pprp/ACBench
cd ACBench
pip install -r requirements.txt
pip install -e .

Evaluation

ACBench builds upon and extends several excellent agentic benchmarks and compression toolkits. We integrate these benchmarks into our evaluation pipeline while preserving their original settings. For efficient model serving and evaluation, we utilize VLLM to deploy the compressed language models.

For detailed implementation and usage instructions, please refer to the corresponding subfolders in the thirdpartys directory. Each subfolder contains the original benchmark code along with our modifications to support compressed model evaluation. For experiment result on WorfBench, we have integrated it in acbench.

A Demo for WorfBench

Taking WorfBench as example, we can run using the following scripts:

#!/bin/bash

MODEL=$1
TEMP=$2
QUANT=$3

DEVICE=${4:-6}

export CUDA_VISIBLE_DEVICES=$DEVICE

tasks=(wikihow toolbench toolalpaca lumos alfworld webshop os)

MODEL_NAME=$(basename $MODEL)

for task in ${tasks[@]}; do
    python acbench/node_eval.py \
        --task gen_workflow \
        --model_name ${MODEL} \
        --gold_path ./data/gold_traj/${task}/graph_eval.json \
        --pred_path ./data/pred_traj/${MODEL_NAME}/${task}/${MODEL_NAME}/graph_eval_two_shot.json \
        --task_type ${task} \
        --few_shot \
        --temperature ${TEMP} \
        --quantization ${QUANT}
done

Agentic Tasks

For Agentic Tasks:

  • WorfBench: Benchmarking Agentic Workflow Generation arXiv GitHub
  • AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agents arXiv GitHub
  • KVCache-Factory: Unified KV Cache Compression Methods for Auto-Regressive Models arXiv GitHub
  • LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding arXiv GitHub
  • SCOPE: Optimizing Key-Value Cache Compression in Long-context Generation arXiv GitHub
  • T-Eval: Evaluating Tool Utilization Capability of LLMs Step by Step arXiv GitHub

Compression

For Compression:

  • Wanda: A Simple and Effective Pruning Approach for Large Language Models arXiv GitHub
  • LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkit arXiv GitHub
  • QLLM-Eval: Evaluating Quantized Large Language Models arXiv GitHub

For fast serving, we employ Github for evaluation.

Visualization

Energy-based analysis:

Combined Position 1Combined Position 2Combined Position 3
Combined Position 1Combined Position 2Combined Position 3

Logits Visualization:

Logits Visualization 1Logits Visualization 2Logits Visualization 3
Logits Visualization 1Logits Visualization 2Logits Visualization 3

Needle Visualization:

InternLM Models

Needle Vis 1Needle Vis 2Needle Vis 3
Needle Vis 4Needle Vis 5Needle Vis 6
Needle Vis 7Needle Vis 8Needle Vis 9

Qwen Models

Needle Vis 10Needle Vis 11Needle Vis 12
Needle Vis 13Needle Vis 14Needle Vis 15
Needle Vis 16Needle Vis 17Needle Vis 18
Needle Vis 24Needle Vis 25Needle Vis 26
Needle Vis 27Needle Vis 28Needle Vis 29

Distilled/Megrez Models

Needle Vis 20Needle Vis 21
Needle Vis 22Needle Vis 23

Citation

If you use our work, please cite:

@inproceedings{dong2025compressed,
  title     = {Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compression},
  author    = {Peijie Dong and Zhenheng Tang and Xiang Liu and Lujun Li and Xiaowen Chu and Bo Li},
  booktitle = {International Conference on Machine Learning (ICML)},
  year      = {2025}
}

pprp/ACBench

[ICML25] Agentic Compression Benchmark (ACBench)

Python

21

52 commits

updated Jul 2, 2025

See the code

README

🤖 ACBench 🔬

🤔 Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compression 📊

📄arXiv • 🌐GitHub

Awesome License: MIT

Table of Contents

Overview

Post-training compression reduces the computational and memory costs of large language models (LLMs), enabling resource-efficient deployment. However, existing compression benchmarks focus narrowly on language modeling (e.g., perplexity) and natural language understanding tasks (e.g., GLUE accuracy), ignoring the agentic capabilities—workflow, tool use/function call, long-context understanding and real-world application.

We introduce the Agent Compression Benchmark (ACBench), the first comprehensive benchmark for evaluating how compression impacts LLMs' agentic abilities. ACBench spans:

  • 12 tasks across 4 capabilities (e.g., WorfBench for workflow generation, Needle-in-Haystack for long-context retrieval)
  • 4-bit quantization (GPTQ, AWQ) and 50% pruning (Wanda, SparseGPT)
  • 15 models, including small (Gemma-2B), standard (Qwen2.5-7B), and distilled reasoning LLMs (DeepSeek-R1-Distill)

Abstract

Post-training compression reduces the computational and memory costs of large language models (LLMs), enabling resource-efficient deployment. However, existing compression benchmarks focus narrowly on language modeling (e.g., perplexity) and natural language understanding tasks (e.g., GLUE accuracy), ignoring the agentic capabilities—workflow, tool use/function call, long-context understanding and real-world application. We introduce the Agent Compression Benchmark (ACBench), the first comprehensive benchmark for evaluating how compression impacts LLMs' agentic abilities. ACBench spans (1) 12 tasks across 4 capabilities (e.g., WorfBench for workflow generation, Needle-in-Haystack for long-context retrieval), (2) 4-bit quantization (GPTQ, AWQ) and 50% pruning (Wanda, SparseGPT), and (3) 15 models, including small (Gemma-2B), standard (Qwen2.5-7B), and distilled reasoning LLMs (DeepSeek-R1-Distill). Our experiments reveal compression tradeoffs: 4-bit quantization preserves workflow generation and tool use (1%--3% drop) but degrades real-world application accuracy by 10%--15%. We introduce ERank, Top-k Ranking Correlation and Energy to systematize analysis. ACBench provides actionable insights for optimizing LLM compression in agentic scenarios, bridging the gap between algorithmic efficiency and real-world applicability.

Installation

git clone https://github.com/pprp/ACBench
cd ACBench
pip install -r requirements.txt
pip install -e .

Evaluation

ACBench builds upon and extends several excellent agentic benchmarks and compression toolkits. We integrate these benchmarks into our evaluation pipeline while preserving their original settings. For efficient model serving and evaluation, we utilize VLLM to deploy the compressed language models.

For detailed implementation and usage instructions, please refer to the corresponding subfolders in the thirdpartys directory. Each subfolder contains the original benchmark code along with our modifications to support compressed model evaluation. For experiment result on WorfBench, we have integrated it in acbench.

A Demo for WorfBench

Taking WorfBench as example, we can run using the following scripts:

#!/bin/bash

MODEL=$1
TEMP=$2
QUANT=$3

DEVICE=${4:-6}

export CUDA_VISIBLE_DEVICES=$DEVICE

tasks=(wikihow toolbench toolalpaca lumos alfworld webshop os)

MODEL_NAME=$(basename $MODEL)

for task in ${tasks[@]}; do
    python acbench/node_eval.py \
        --task gen_workflow \
        --model_name ${MODEL} \
        --gold_path ./data/gold_traj/${task}/graph_eval.json \
        --pred_path ./data/pred_traj/${MODEL_NAME}/${task}/${MODEL_NAME}/graph_eval_two_shot.json \
        --task_type ${task} \
        --few_shot \
        --temperature ${TEMP} \
        --quantization ${QUANT}
done

Agentic Tasks

For Agentic Tasks:

  • WorfBench: Benchmarking Agentic Workflow Generation arXiv GitHub
  • AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agents arXiv GitHub
  • KVCache-Factory: Unified KV Cache Compression Methods for Auto-Regressive Models arXiv GitHub
  • LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding arXiv GitHub
  • SCOPE: Optimizing Key-Value Cache Compression in Long-context Generation arXiv GitHub
  • T-Eval: Evaluating Tool Utilization Capability of LLMs Step by Step arXiv GitHub

Compression

For Compression:

  • Wanda: A Simple and Effective Pruning Approach for Large Language Models arXiv GitHub
  • LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkit arXiv GitHub
  • QLLM-Eval: Evaluating Quantized Large Language Models arXiv GitHub

For fast serving, we employ Github for evaluation.

Visualization

Energy-based analysis:

Combined Position 1Combined Position 2Combined Position 3
Combined Position 1Combined Position 2Combined Position 3

Logits Visualization:

Logits Visualization 1Logits Visualization 2Logits Visualization 3
Logits Visualization 1Logits Visualization 2Logits Visualization 3

Needle Visualization:

InternLM Models

Needle Vis 1Needle Vis 2Needle Vis 3
Needle Vis 4Needle Vis 5Needle Vis 6
Needle Vis 7Needle Vis 8Needle Vis 9

Qwen Models

Needle Vis 10Needle Vis 11Needle Vis 12
Needle Vis 13Needle Vis 14Needle Vis 15
Needle Vis 16Needle Vis 17Needle Vis 18
Needle Vis 24Needle Vis 25Needle Vis 26
Needle Vis 27Needle Vis 28Needle Vis 29

Distilled/Megrez Models

Needle Vis 20Needle Vis 21
Needle Vis 22Needle Vis 23

Citation

If you use our work, please cite:

@inproceedings{dong2025compressed,
  title     = {Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compression},
  author    = {Peijie Dong and Zhenheng Tang and Xiang Liu and Lujun Li and Xiaowen Chu and Bo Li},
  booktitle = {International Conference on Machine Learning (ICML)},
  year      = {2025}
}

Languages

Python

54.3%

SAS

28.2%

PDDL

11.1%

Jupyter Notebook

3.9%

Shell

1.4%