ABTS: A transformation-based consistency control algorithm for wide-area collaborative applications

Bin Shao, Du Li, Ning Gu

Abstract

Real-time collaborative applications require robust consistency control to manage concurrent edits from multiple users. This paper presents ABTS (Admissibility-Based Transformation with Strings), an Operational Transformation (OT) algorithm that natively supports string-based operations. Unlike previous models limited to single characters, ABTS is formally proven to be correct using the Admissibility-Based Transformation framework, ensuring document convergence in high-latency wide-area networks.

Introduction

Collaborative editing allows multiple users to modify a shared document simultaneously. Operational Transformation (OT) is the primary technique for resolving concurrent conflicts by "transforming" remote operations against local ones. Historically, the OT field has faced two major hurdles: the Correctness Gap, where informal models led to document divergence, and the Granularity Gap, where formally proven algorithms only supported single-character edits. ABTS bridges these gaps by providing a mathematically rigorous framework for string-level operations like "insert word" or "delete sentence."

Notation and Formalism

The ABTS algorithm relies on a formal notation to describe operations and their temporal or contextual relationships. An operation $o$ is defined by its site ID, type (insert or delete), position, and the string content. Understanding these primitives is essential for the inclusion transformation logic that follows.

Summary of notations used in the ABTS algorithm.

Methodology

ABTS is built upon the Admissibility-Based Transformation (ABT) framework. Admissibility is a formal condition requiring that the execution of an operation must not violate the relative positions of effects produced by previous operations.

Key technical components include:

  • String Primitives: ABTS natively handles insert(pos, string) and delete(pos, string).
  • History Management: Each site maintains a history buffer ($H$) split into two parts: insertions ($H_i$) and deletions ($H_d$). This separation simplifies the transformation logic and reduces the number of "swaps" needed to integrate new operations.
  • Advanced Inclusion Transformations (IT): The core of the paper defines how to transform any combination of string operations. A major contribution is the handling of "cascading splits," where a single deletion must be split into multiple separate operations if a concurrent insertion occurs within its range.

Key Insights

  • Admissibility as a Formal Guarantee: By moving away from the vague concept of "intention preservation" to the formal "admissibility" constraint, the authors mathematically prove that the document will eventually converge for all users, regardless of network latency.
  • The Complexity of Deletion: String deletions are significantly more intricate than insertions. When two users delete overlapping ranges, the algorithm must carefully track the relative positions of characters to ensure no data is lost or incorrectly shifted.
  • Efficiency through Structure: By maintaining the history buffer as a concatenation of inserts and then deletes ($H = H_i \cdot H_d$), the algorithm keeps the system responsive for real-world use.

Key Results

  • Formal Proof: The authors successfully prove that ABTS satisfies both Causality Preservation (operations occur in the correct order) and Admissibility Preservation (the document remains consistent).
  • Computational Complexity: Integrating a local operation is linear ($O(|H_d|)$), while integrating a remote operation is roughly quadratic regarding insertions ($O(|H_i|^2 + |H_d|)$). This complexity is in the same order of magnitude as previous character-based algorithms, making it efficient enough for wide-area network (WAN) applications.

Conclusion and Future Work

ABTS offers a scalable and theoretically sound approach to collaborative string editing. While the current algorithm is designed for linear data structures and does not yet address history buffer pruning (garbage collection), it serves as a foundation for supporting more complex semantic operations like "find-and-replace" or "cut-and-paste" in future collaborative research.

Summary updated

BibTeX
@inproceedings{shao2009abts,
  author = {Bin Shao and Du Li and Ning Gu},
  title = {{ABTS: A transformation-based consistency control algorithm for wide-area collaborative applications}},
  booktitle = {Collaboratecom},
  year = {2009},
  doi = {10.4108/icst.collaboratecom2009.8271},
}
Figure