FIRE: Learning to Navigate and Act on Real-World Files via Stateful Reinforcement Learning

Jingyuan Ma, Zheng Li, Rui Li, Siyao Song, Ying Zeng, Minghao Li, Zhifang SuiICML 2026

Introduction

Most contemporary AI assistants handle real-world files—such as PDFs, spreadsheets, and slide decks—using a "parse-then-reason" paradigm. In this approach, files are converted into simplified text or Markdown formats before the language model processes them. While convenient, this method is inherently lossy. Flattening multi-dimensional spreadsheets or spatial slide decks strips away structural nuances, such as merged cells or hierarchical layouts, which are often essential for accurate reasoning. Furthermore, this paradigm offloads the critical task of information localization to preprocessing scripts rather than the model itself.

To address these limitations, researchers have introduced FIRE (File Interactive Reasoning Expert). FIRE shifts the paradigm toward a File Reasoning Setting, where agents interact directly with unprocessed files (XLSX, PDF, DOCX, PPTX) using code and shell commands within a persistent environment. By moving beyond simply "reading" documents to "acting" upon them, FIRE agents learn to navigate raw, messy files and recover from execution errors, significantly outperforming standard approaches.

Methodology: Training for Stateful File Execution

The FIRE model family is developed using a two-stage training framework designed to optimize long-horizon planning and tool use:

  1. Cold-start Supervised Fine-Tuning (SFT): Because base models often struggle to initiate tool calls, they are first trained on high-quality trajectories. This stage teaches the model the basic syntax of tool invocation and how to interpret execution results.
  2. Stateful Reinforcement Learning (RL): The core innovation of FIRE lies in its RL phase. Using Group Relative Policy Optimization (GRPO), the model is trained within a persistent sandbox. Unlike stateless benchmarks where each interaction turn is independent, FIRE's sandbox maintains environmental state. If an agent unzips a file or creates an intermediate CSV in one step, those changes persist for subsequent steps.

The RL framework employs a sparse, outcome-oriented reward function. The model receives a positive reward (+1) for yielding the correct final answer and a minor penalty (-0.2) for malformed formatting. This structure encourages the agent to explore, write programmatic scripts, and recover from intermediate tool failures (e.g., a FileNotFoundError) rather than adopting overly conservative strategies.

Benchmark and Dataset Generation

To rigorously evaluate file reasoning, the researchers introduced a high-difficulty benchmark comprising over 400 verified tasks across four native file formats. To ensure high quality and difficulty, the dataset was constructed using an Asymmetric View generation strategy:

  • A "teacher" model generates questions based on a clean, structured version of the data (e.g., a parsed CSV).
  • The "student" agent is then tasked with answering that question using only the raw, unprocessed file (e.g., the original XLSX with merged cells and multiple sheets).

Beyond this novel benchmark, the models were evaluated on existing datasets like Spider, SSTQA, MEET, and GAIA to test out-of-distribution generalization.

Key Insights

The development and evaluation of FIRE yielded several notable insights into agentic behavior:

  • RL Breeds Efficiency: Reinforcement learning did not just improve accuracy; it made the models more concise. RL-trained models utilized fewer tool calls than their SFT counterparts, learning to apply targeted programmatic parsing rather than broad, inefficient searches.
  • The "Acting" Advantage: Allowing the model to act—such as writing a Python script to iterate through Excel sheets—enables it to handle structural complexities impossible to represent in a simple text prompt.
  • Error Recovery as a Learned Skill: The persistent sandbox allows models to learn from execution feedback. If a script fails due to a schema mismatch, the model reads the error trace and adjusts its subsequent actions, demonstrating strategic planning.
  • Format Hierarchy: The benchmark revealed that XLSX and PPTX formats are significantly more challenging for LLMs than PDF and DOCX, as they require more rigorous quantitative reasoning and navigation of hierarchical object structures.

Empirical Results

The flagship model, Qwen3-32B-FIRE, demonstrated exceptional performance under identical execution constraints:

  • Significant Performance Gains: It achieved a 50.33% overall accuracy on the new benchmark, a massive improvement over the base Qwen3-32B model's 11.14%.
  • Competitive Edge: Qwen3-32B-FIRE outperformed much larger open-source models, including DeepSeek-V3.1 (44.55%) and Kimi-K2-Thinking (47.97%).
  • Closing the Proprietary Gap: While a performance gap remains, the 32B FIRE model approached the capabilities of frontier proprietary models like GPT-5 (60.16%) and Grok-4 (60.89%), proving that targeted stateful RL allows mid-sized models to punch significantly above their weight class.

Limitations and Future Work

The authors acknowledge a few key areas for future development:

  • Turn Budget: Models were constrained to a 15-round interaction budget. While sufficient for most tasks, extremely complex multi-file workflows may require extended "thinking" and interaction time.
  • Vision vs. Text: The current framework focuses on text-grounded reasoning and tool-based extraction, explicitly avoiding questions requiring purely visual recognition (e.g., interpreting a diagram without text). Integrating multimodal vision capabilities is a logical next step.
  • Reward Reliability: The RL system currently utilizes an "LLM-as-a-Judge" (GPT-5-mini) to assign rewards, which introduces a small degree of stochasticity compared to purely deterministic, code-based verification.

Summary updated

BibTeX
@inproceedings{ma2026fire,
  author = {Jingyuan Ma and Zheng Li and Rui Li and Siyao Song and Ying Zeng and Minghao Li and Zhifang Sui},
  title = {{FIRE: Learning to Navigate and Act on Real-World Files via Stateful Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=lHVxzhqYai},
}
Figure