OfficeBench: Benchmarking Language Agents across Multiple Applications for Office Automation

Zilong Wang, Yuedong Cui, Li Zhong, Zimin Zhang, Da Yin, Bill Yuchen Lin, Jingbo ShangarXiv 2024

Abstract

Office automation significantly enhances human productivity by automatically finishing routine tasks in the workflow. Beyond the basic information extraction studied in much of the prior document AI literature, the office automation research should be extended to more realistic office tasks which require to integrate various information sources in the office system and produce outputs through a series of decision-making processes. We introduce OfficeBench, one of the first office automation benchmarks for evaluating current LLM agents' capability to address office tasks in realistic office workflows. OfficeBench requires LLM agents to perform feasible long-horizon planning, proficiently switch between applications in a timely manner, and accurately ground their actions within a large combined action space, based on the contextual demands of the workflow. Applying our customized evaluation methods on each task, we find that GPT-4 Omni achieves the highest pass rate of 47.00%, demonstrating a decent performance in handling office tasks. However, this is still far below the human performance and accuracy standards required by real-world office workflows. We further observe that most issues are related to operation redundancy and hallucinations, as well as limitations in switching between multiple applications, which may provide valuable insights for developing effective agent frameworks for office automation.

Introduction

Traditional Document AI research has largely focused on narrow, isolated tasks such as extracting specific data points from invoices or answering questions based on a single document. However, real-world office work is inherently multi-faceted and requires long-horizon planning across various software environments. A typical workflow might involve extracting data from a spreadsheet, cross-referencing it with a calendar, and finally communicating results via email.

OfficeBench addresses the limitations of current benchmarks by evaluating LLM agents on their ability to sequence actions across different tools, manage context switching between applications, and accurately select valid operations from a large action space.

Methods and System Design

The researchers developed a realistic sandbox environment using Docker to simulate a suite of nine integrated office tools, including Word, Excel, PDF, Calendar, Email, OCR, and a Bash Shell. The automation process is modeled as a Transition System, where the state is defined by the currently active application and transitions represent specific operations available within that app.

An example of a multi-app workflow in OfficeBench, where an agent transitions from Excel to Calendar to Email to complete a task.

To ensure precision, the system restricts the available action space to operations relevant to the active application, requiring an explicit switch_app command to move between tools. Evaluation is conducted using three distinct metrics: exact matching for data entry, fuzzy matching for flexible fields like subjects or timestamps, and execution-based evaluation to verify the final state of the simulated environment.

The OfficeBench Dataset

The benchmark comprises 300 manually annotated tasks, categorized by complexity based on the number of applications involved:

  • Single App (93 tasks): Simple operations like document editing.
  • Two Apps (95 tasks): Cross-tool tasks, such as emailing information extracted via OCR.
  • Three Apps (112 tasks): Complex workflows involving data extraction, scheduling, and communication.

All data (emails, spreadsheets, etc.) was synthesized to maintain realistic complexity while avoiding privacy concerns.

Results and Analysis

The evaluation of several state-of-the-art models reveals a significant "performance cliff" as task complexity increases. While GPT-4 Omni leads the field, its success rate drops dramatically from 64.52% on single-app tasks to just 21.43% on three-app tasks.

Performance of various LLM agents on OfficeBench across different task complexities.

As shown in the results, even the most advanced models fall far short of the human baseline of 93.33%. Key failure modes identified include:

  • Operation Stagnation: Agents often get stuck in loops, repeatedly performing the same successful action without moving to the next logical step.
  • Action Hallucination: Agents frequently attempt to use non-existent commands or apply incorrect logic to specific file formats (e.g., trying to edit a PDF directly).
  • Context Switching Bottlenecks: The requirement to explicitly manage the active application workspace proved to be a major hurdle for reasoning, although it significantly improved token efficiency compared to listing all possible operations at once.

Conclusion

OfficeBench highlights that while LLM agents are becoming more capable, they are still far from achieving human-level reliability in complex office environments. The findings suggest that future research should focus on improving long-horizon planning, reducing operation redundancy, and developing more robust mechanisms for multi-application context switching.

Summary updated

BibTeX
@misc{wang2024officebench,
  author = {Zilong Wang and Yuedong Cui and Li Zhong and Zimin Zhang and Da Yin and Bill Yuchen Lin and Jingbo Shang},
  title = {{OfficeBench: Benchmarking Language Agents across Multiple Applications for Office Automation}},
  year = {2024},
  eprint = {2407.19056},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.19056},
}
Figure