ScholaWrite: A Dataset of End-to-End Scholarly Writing Process

Khanh Chi Le, Linghe Wang, Minhwa Lee, Ross Volkov, Luan Tuyen Chau, Dongyeop KangarXiv 2025

TL;DR

ScholaWrite is the first dataset to capture the end-to-end, multi-month cognitive process of scholarly writing by tracking real-time keystrokes on Overleaf. By mapping text edits to specific cognitive intentions, the paper reveals that human writing is deeply non-linear and multi-intentional—a complex workflow that current large language models (LLMs) struggle to emulate but can begin to learn through process-level fine-tuning.

What Problem Does This Paper Address?

When large language models (LLMs) act as writing assistants, they typically operate autoregresively, generating text from left to right in a single pass. Human writing, however, is a highly recursive, non-linear cognitive process. Writers constantly cycle through planning, drafting, and revising, frequently switching tasks and managing multiple goals at once.

While existing writing datasets look at final text versions or short-term revision logs, they miss the long-term, intention-driven evolution of a full scientific manuscript. This creates a fundamental gap: we cannot build AI writing assistants that truly align with human cognition because we lack empirical data on how scientists actually write over extended periods.

Methods

To capture writing as it naturally unfolds, the authors developed a custom Chrome extension that logs real-time keystroke trajectories directly within Overleaf. Every time a writer pauses or types, the system captures the text changes using a diffing algorithm.

Figure 5: Overview of our AI writing assistant evaluation setup: intention prediction (§5.1), output alignment (§5.2), and iterative writing (§5.3).

The core contribution of this framework is a fine-grained taxonomy of 15 distinct writing intentions, categorized into three high-level cognitive phases:

  • Planning: Idea Generation, Idea Organization, and Section Planning.
  • Implementation: Text Production, Object Insertion, Citation Integration, Cross-referencing, and Macro Insertion.
  • Revision: Fluency, Coherence, Clarity, Structural changes, Linguistic Style, Scientific Accuracy, and Visual Formatting.

Using a specialized interactive interface, annotators mapped every keystroke sequence to these intentions. The authors then used this dataset to benchmark state-of-the-art LLMs (like GPT-5 and Qwen2.5) and fine-tune baseline models (BERT, RoBERTa, and Llama-3.1-8B-Instruct) on predicting a writer's next intention and generating aligned text edits.

Datasets

The paper introduces SCHOLAWRITE, a longitudinal dataset tracking the end-to-end writing process of 5 computer science preprints over a four-month period.

  • Participants: 10 graduate students in computer science at a US R1 university.
  • Scale: 61,504 keystroke-based writing actions, capturing over 62K text edits and more than 118K words added or deleted.

Key Insights and Ideas

  • Scholarly Writing is Highly Multi-Intentional: Writing is rarely a single-task activity. The data shows that 57% of all writing sessions involve three or more distinct intentions intertwined in a single sitting, reflecting constant cognitive task-switching.
  • Two Distinct Cognitive Modes: Text production typically happens in rapid, short bursts. Conversely, cognitively heavy tasks like idea organization, visual structuring, and formatting occur in fewer but significantly longer, more focused sessions.
  • Clear Phase-Dependent Shifts: Human writing strategies evolve dramatically over time. Early stages of a project are front-loaded with planning, structural layout, and citation integration. As the manuscript nears completion, writing behavior shifts heavily toward rapid, localized revisions for clarity, fluency, and visual formatting.
Dynamics of writing intentions across early and late phases, showing increased multitasking in later sessions.

Key Results

  • Zero-Shot LLMs Struggle with Human Intentions: Current state-of-the-art models fail to anticipate what a writer will do next. In zero-shot settings, both GPT-5 and Qwen2.5-14B-Instruct performed poorly on next-intention prediction, scoring weighted F1 values below 0.5.
  • Complexity Degrades AI Alignment: While LLMs excel at surface-level refinements (like fluency and clarity), their alignment with human goals degrades significantly during longer writing sessions or when multiple intentions co-occur.
Model alignment patterns showing that alignment scores decrease as writing sessions grow longer and more multi-intentional.
  • Fine-Tuning Imparts Human-Like Workflows: Fine-tuning models on ScholaWrite yielded substantial improvements. Fine-tuned BERT and RoBERTa models achieved a next-intention prediction F1 score of 0.64 (up from ~0.03). Furthermore, when deployed in iterative self-writing tasks, fine-tuned Llama models successfully emulated human-like workflows—frequently alternating between planning, implementation, and revision—whereas vanilla models remained stuck in a single dominant stage.

Limitations and Future Work

The authors note several limitations in their current work:

  • Domain Specificity: The dataset is restricted to the computer science domain and LaTeX/Overleaf users, which may not generalize to fields with different writing conventions (e.g., the humanities).
  • Missing Offline Context: The system only captures text edited within the LaTeX environment, missing external cognitive steps like offline brainstorming, paper outlining in separate tools, or collaborative discussions.
  • Sample Demographics: The dataset features a relatively small sample size (10 participants, all early-career PhD students) and underrepresents multi-author collaborative dynamics.

Future work aims to expand ScholaWrite 2.0 to include senior researchers, track multi-author collaboration dynamics, and incorporate multimodal composition elements like figure and data integration.

Summary updated

BibTeX
@misc{le2025scholawrite,
  author = {Khanh Chi Le and Linghe Wang and Minhwa Lee and Ross Volkov and Luan Tuyen Chau and Dongyeop Kang},
  title = {{ScholaWrite: A Dataset of End-to-End Scholarly Writing Process}},
  year = {2025},
  eprint = {2502.02904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.02904},
}
Figure