OfficeInstruct: A Dataset for Tool-Augmented Office Agents on Long-Trajectory Generative Tasks

Weikai Xu, Zhizheng Jiang, Lushuo Jiang, Kun Huang, Yuxuan Liu, Pengzhi Gao, Wei Liu, Jian Luan, Xiaolin Hu, Bo AnNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Training AI agents to handle real-world office work—writing documents, analyzing spreadsheets, and building slide decks—is tough because most existing datasets focus on single-turn Q&A rather than messy, multi-step creation. This paper introduces OfficeInstruct, a dataset of 199,220 real-world, multi-turn office trajectories, along with a graph-based method to automatically filter out hallucinated or redundant tool calls. Models trained on this data (OfficeAgent 8B, 14B, and 32B) match or beat top proprietary models like Claude-4.5-Sonnet and Gemini-3-Pro on both in-domain and out-of-distribution office benchmarks.

What Problem Does This Paper Address?

If you have ever asked an AI assistant to build a presentation or clean up a spreadsheet, you know it rarely nails it on the first try. Real-world office work is iterative: you ask for a draft, realize you need more data, ask the agent to search the web, and tweak the layout.

Yet, training autonomous office agents faces three major bottlenecks:

  1. Domain Imbalance: Existing datasets are heavily skewed toward spreadsheets, leaving Document (Doc) and Presentation (PPT) generation—which have much larger state spaces and subjective quality—underrepresented.
  2. Task Paradigm Bias: Most prior benchmarks focus on single-turn question-answering rather than long-horizon, multi-turn generative workflows.
  3. Intent Drift & Evaluation Complexity: Over a 50-step interaction, user goals evolve and tool outputs pile up. Evaluating whether an agent is actually being efficient—or just hallucinating and stuck in a loop—is notoriously difficult.

Methods

To tackle these challenges, the authors built a unified pipeline from data collection to model training:

Figure 1: Overview of OfficeInstruct on agent-data collection for long-trajectory office tasks.
  • Unified OfficeAgent Framework: Instead of separate systems for Docs, Sheets, and PPTs, OfficeAgent uses a two-phase loop: Intent Recognition & Dispatch (routing the task to the right domain and toolset) followed by Planning & Execution (iteratively thinking, calling tools, or generating code).
  • Real-World Online Collection: The authors deployed OfficeAgent as a live web service powered by closed-source models (Gemini-3-Pro, Claude-4.5-Sonnet, GPT-5.1) with automated A/B routing, supplemented by human experts performing multi-turn tasks.
  • Graph-Based Evidence Evaluation: Rather than just grading the final file, the authors model each interaction history as a Directed Evidence Graph. Nodes represent user instructions, plans, actions, tool feedback, sandbox results, and text responses; edges track chronological flow and logical evidence dependencies. Using this graph, they automatically flag:
  • Redundancy Rate ($\mathcal{R}_{red}$): Cycles of repeated tool calls or unused tool outputs.
  • Unsupported Hallucination ($\mathcal{H}_{unsup}$): Tool arguments or text claims that lack backing from prior evidence.
  • Execution Feedback Penalty ($\mathcal{F}_{pen}$): Code execution errors and explicit negative user feedback.
  • Graph-Based Node Repair: If a trajectory has minor flaws (like a redundant tool call that doesn't affect later steps), the system prunes the bad nodes and reconnects the graph, salvaging otherwise discarded data.
  • Post-Training: They fine-tuned Qwen3 (8B, 14B, 32B) on the curated dataset and applied multi-turn agentic reinforcement learning (GRPO).

Datasets

  • OfficeInstruct (New, Training): 199,220 high-quality trajectories (filtered from 250,970 raw logs—81,307 were discarded, and 29,557 were salvaged via graph repair). It is balanced across Doc (35.9%), Spreadsheet (38.6%), and PPT (25.5%), averaging 56.2 steps, 6.1 user turns, and 9.21 tool calls per turn across 396 tools.
  • OfficeAgentBench (New, In-Domain Eval): 2,400 temporally held-out trajectories (1,000 Doc, 800 PPT, 600 Sheet) averaging 38.85 steps.
  • External Benchmarks: Evaluated on TReB (in-domain reasoning), TableBench (OOD tabular reasoning), PPTEval (OOD presentation generation), and SpreadsheetBench 1.0 & 2.0 (independent external validation).
Figure 2: Data Statistics of OfficeInstruct. Left: Distribution of trajectory lengths (steps) across three task scenarios. Middle: Quantile analysis of step counts, showing the median and percentile ranges for different task types. Right: Tool usage distribution across Document, Spreadsheet, and Presentation domains, highlighting domain-specific operational patterns.

Key Insights and Ideas

  • Data Filtering Pays Off Massively: Training Qwen3-8B on graph-filtered OfficeInstruct instead of unfiltered raw logs boosts its overall success rate on OfficeAgentBench from 60.98% to 79.67%, while cutting redundancy from 39.99% to 26.58% and hallucinations from 21.81% to 11.43%.
  • Different Domains, Different Failure Modes: PPT and Sheet tasks rely heavily on code execution, leading to lower overall success rates than Doc tasks. Conversely, Doc tasks require generating long stretches of text, making them much more prone to unsupported hallucinations.
  • Failure Breeds Redundancy: There is a clear inverse correlation between success rate and redundancy—when models fail to execute the right action, they tend to fall into repetitive trial-and-error tool loops.
  • Long-Trajectory Resilience: Doc tasks maintain >80% success rates even at 100 steps (though redundancy climbs due to repeated deep searches), whereas Sheet tasks show non-linear performance drops tied to the inherent difficulty of complex coding.

Key Results

  • OfficeAgentBench: OfficeAgent-32B achieves a 96.19% overall success rate, slightly edging out Claude-4.5-Sonnet (95.93%), Gemini-3-Pro (95.66%), and GPT-5.2 (92.66%), while maintaining the lowest redundancy rate (10.97%).
  • TReB: OfficeAgent-14B + GRPO scores 52.75 overall, outperforming Gemini-3-Pro (46.26), GPT-5.2 (44.59), and Claude-4.5-Opus (44.57).
  • OOD Generalization: On TableBench, OfficeAgent-8B + GRPO hits 89.45 in Fact Checking (TCoT) and 70.73 in Numerical Reasoning (TCoT), rivaling or beating GPT-4o and Gemini-3-Pro. On PPTEval, OfficeAgent-14B achieves a 99.6% success rate and 16.87 ROUGE-L, surpassing PPTAgent powered by GPT-4o (97.8%).
  • External Validation: On SpreadsheetBench 1.0, OfficeAgent-32B scores 28.14 overall (ahead of Claude-4.6-Sonnet at 25.58). On SpreadsheetBench 2.0, it scores 74.74 Modif. / 31.01 Acc., beating GPT-5.4 and Gemini-3.1-Pro and trailing only Claude-4.6-Sonnet.

Limitations and Future Work

  • In-Domain Overlap: OfficeAgentBench is sampled from the same deployed system and uses the same graph metrics ($\mathcal{R}_{red}$, $\mathcal{H}_{unsup}$) for both filtering and evaluation, which is why the authors supplemented it with independent external benchmarks.
  • Judge Sensitivity: Main results on OfficeAgentBench use GPT-5.4 for user simulation and judging. Re-judging a 500-sample subset with Claude-Sonnet-5 and Gemini-3.1-Pro shifted absolute numbers (Claude-Sonnet-5 is stricter on redundant calls), though model rankings remained consistent.
  • Benchmark & Agent Scope: OFFICEEVAL was excluded because its task materials and scoring are not public. Additionally, a blind comparison against general-purpose computer-use agents (Claude Code, Codex) was conducted on only 15 tasks, making those specific findings indicative rather than conclusive.

Summary updated

BibTeX
@inproceedings{xu2026officeinstruct,
  author = {Weikai Xu and Zhizheng Jiang and Lushuo Jiang and Kun Huang and Yuxuan Liu and Pengzhi Gao and Wei Liu and Jian Luan and Xiaolin Hu and Bo An},
  title = {{OfficeInstruct: A Dataset for Tool-Augmented Office Agents on Long-Trajectory Generative Tasks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lynIy135Mu},
}
Figure