TreeWriter: AI-Assisted Hierarchical Planning and Writing for Long-Form Documents

Zijian Zhang, Fangshi Du, Xingjian Liu, Pan Chen, Oliver Huang, Runlong Ye, Michael Liut, Alán Aspuru-Guzik · 2026

Read TreeWriter: AI-Assisted Hierarchical Planning and Writing for Long-Form Documents by Zijian Zhang, Fangshi Du, Xingjian Liu, Pan Chen, Oliver Huang, Runlong Ye, Michael Liut, Alán Aspuru-Guzik (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-12740.txt.

Introduction

Zijian Zhang and seven co authors present TreeWriter, an AI assisted system for long form writing. Long documents pose many challenges to current writing tools. Keeping consistency across sections is hard as a draft grows. Planning and writing efficiently also get harder with complexity. Users need AI help that integrates well, not help that fights the draft.

TreeWriter organizes writing hierarchically, like a tree of sections and subsections. That structure supports planning at the top and drafting at the leaves. AI assistance can then act at the right level for each task. Long reports, theses, and books all fit this pattern. A hierarchical tool could keep long projects coherent from outline to final text.

Catalog record

CREATORZijian Zhang, Fangshi Du, Xingjian Liu, Pan Chen, Oliver Huang, Runlong Ye, Michael Liut, Alán Aspuru-Guzik
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE85 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2601-12740

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

TreeWriter: AI-Assisted Hierarchical Planning and Writing for Long-Form Documents Zijian Zhang, Fangshi Du, Xingjian Liu, Pan Chen, Oliver Huang, Runlong Ye, Michael Liut, Alán Aspuru-Guzik Abstract Long documents pose many challenges to current intelligent writing systems. These include maintaining consistency across sections, sustaining efficient planning and writing as documents become more complex, and effectively providing and integrating AI assistance to the user. Existing AI co-writing tools offer either inline suggestions or limited structured planning, but rarely support the entire writing process that begins with high-level ideas and ends with polished prose, in which many layers of planning and outlining are needed. Here, we introduce TreeWriter, a hierarchical writing system that represents documents as trees and integrates contextual AI support. TreeWriter allows authors to create, save, and refine document outlines at multiple levels, facilitating drafting, understanding, and iterative editing of long documents. A built-in AI agent can dynamically load relevant content, navigate the document hierarchy, and provide context-aware editing suggestions. A within-subject study ( N = 12 N=12 ) comparing TreeWriter with Google Docs + Gemini on long-document editing and creative writing tasks shows that TreeWriter improves idea exploration/development, AI helpfulness, and perceived authorial control. A two-month field deployment ( N = 8 N=8 ) further demonstrated that hierarchical organization supports collaborative writing. Our findings highlight the potential of hierarchical, tree-structured editors with integrated AI support and provide design guidelines for future AI-assisted writing tools that balance automation with user agency. \correspondence Alán Aspuru-Guzik at \metadata [Code] https://github.com/aspuru-guzik-group/TreeWriter 1]Department of Computer Science, University of Toronto, Sandford Fleming Building, 10 King’s College Road, ON M5S 3G4, Toronto, Canada 2]Vector Institute for Artificial Intelligence, 661 University Ave. Suite 710, ON M5G 1M1, Toronto, Canada 3]Department of Chemistry, University of Toronto, Lash Miller Chemical Laboratories, 80 St. George Street, ON M5S 3H6, Toronto, Canada 4]Department of Mathematical and Computational Sciences, University of Toronto Mississauga, 3359 Mississauga Road, Deerfield Hall, ON L5L 1C6, Mississauga, Canada 5]Department of Materials Science & Engineering, University of Toronto, 184 College St., M5S 3E4, Toronto, Canada 6]Department of Chemical Engineering & Applied Chemistry, University of Toronto, 200 College St. ON M5S 3E5, Toronto, Canada 7]Acceleration Consortium, 700 University Ave., M7A 2S4, Toronto, Canada 8]Canadian Institute for Advanced Research (CIFAR), 661 University Ave., M5G 1M1, Toronto, Canada 9]NVIDIA, 431 King St W #6th, M5V 1K4, Toronto, Canada Figure 1 : TreeWriter enables users to view and edit their documents in two complementary views: (1) the tree view and (2) the linear view . In the tree view, users develop outlines at each node, expand them into text for the final document, or split them into child nodes for further elaboration. Users can use integrated AI features to maintain coherence and consistency across related nodes. The hierarchical structure formed in this process supports easy navigation and multi-level editing. The linear view compiles complete sections by traversing the subtrees and concatenating the exported content from nodes sequentially. A chat-based writing assistant with a scoped context is available in both views, offering node-level writing and revision suggestions. 1 Introduction AI-assisted long-form writing presents unique challenges that extend beyond simple text generation, as this task requires managing information at scales that exceed human working memory 27 . Unlike short-form writing, where authors can maintain a coherent mental representation of the entire text, long documents such as research grants, reports, or books demand sustained attention to structure, coherence, and dependencies across multiple sections. Writers often employ external cognitive scaffolds to mitigate these limitations. Common strategies include repeated readings to construct a cognitive map of the global text structure, adding annotations to the actual texts, and using professional writing tools. In collaborative contexts, the difficulty shifts toward sustaining a shared cognitive representation of the document, which requires aligning understanding across contributors. Collectively, these constraints underscore the need for AI systems that extend beyond local text generation, facilitating the higher-order processes of memory management, which is essential for effective long-form writing. The recent advances in large language models (LLMs) create an opportunity to solve these challenges 42 ; 43 ; 23 ; 57 ; 3 ; 10 . Text can now be rapidly and automatically reconfigured across multiple representational forms, such as bullet points, continuous prose, or images, to facilitate human understanding and operating 62 . Current AI-assisted writing tools 47 can be broadly categorized into two paradigms: inline suggestion editors that provide immediate text modifications within linear documents 60 ; 7 ; 46 ; 59 , and conceptual editors that support planning and organization beyond direct text manipulation 54 ; 61 ; 51 . While inline editors offer immediate assistance, they rely heavily on the ability of LLMs to reconstruct the hidden conceptual structure behind texts. Existing conceptual editors, although they expose the conceptual structure to the user, still lack methods to build further hierarchies of abstraction that support the efficient editing of longer documents (See Section 2 ). To address these limitations, we introduce TreeWriter , a hierarchical writing system that integrates AI assistance with tree-based document organization. TreeWriter represents a document as a hierarchical tree, allowing authors to iteratively construct higher-level abstractions from detailed content with the help of AI, forming a multi-level representation of their document. Based on the tree structure, TreeWriter integrates a writing assistant that can operate on these levels, offering suggestions at multiple levels that maintain consistency between high-level plans and low-level text, thereby supporting both high-level conceptual reasoning and actual document editing throughout the writing process. The development of the system was informed by a formative study involving six researchers who regularly produce long-form content. The study revealed three key challenges in AI-assisted writing: (1) structuring ideas and transforming them into text, (2) maintaining consistency across sections, and (3) verifying the accuracy and trustworthiness of AI-generated content. These findings informed the design of TreeWriter, focusing on three key objectives: supporting idea structuring and iterative drafting, ensuring cross-section consistency, and facilitating trustworthy AI collaboration. We evaluated TreeWriter through both a comparative lab study and a two-month field deployment. In the lab study, we compared TreeWriter with Google Docs 22 equipped with the Gemini assistant across two tasks: modifying a long article (approximately 4,000 words) and writing a new article (approximately 800 words). The results demonstrate that TreeWriter effectively supports both editing and drafting of long-form documents while allowing users to retain control over AI-generated content. In the field deployment, participants utilized TreeWriter in real-world collaborative writing projects over two months. Findings from this study suggest that TreeWriter can enhance team collaboration in co-authoring long documents. The main contributions of this work are: 1. The design and implementation of TreeWriter , a novel writing system that demonstrates how a hierarchical document structure can be integrated with AI assistance to overcome the limitations of existing writing tools. 2. A mixed-methods evaluation , which includes a controlled in-lab user study and a field deployment, demonstrates that TreeWriter is more effective than a standard linear editor for long document editing, creative writing and collaborative writing in many dimensions. 3. A set of design recommendations for developing AI-assisted writing tools that support long-form document editing and balance automation with user control, informed by insights from our formative study and evaluation findings. 2 Related Works We organize

Read the complete text