Abstract
Processing long documents word-by-word is computationally expensive and often leads to information dilution in standard NLP models. We present the Zooming Network (ZN), a novel architecture that mimics human reading strategies by skimming irrelevant content and scanning critical sections. ZN utilizes a hierarchical encoder and a reinforcement learning-based controller to navigate documents at multiple resolutions (word, sentence, paragraph). On long-form legal datasets, ZN improves F1-scores by up to 10 points while processing only ~15% of the text at the word level.
Introduction
Standard sequence labeling models, such as biLSTM-CRF, typically process text linearly. While effective for short sequences, this approach struggles with long documents like legal contracts or medical records. Linear processing is inefficient—much of the text is often boilerplate—and long-range dependencies are hard to maintain over thousands of steps. The Zooming Network addresses these issues by introducing an "analyzing rhythm" that allows the model to skip irrelevant sections and focus its computational budget on salient information.
Architecture
The Zooming Network consists of two core components: a hierarchical encoder for multi-level memory and a zooming controller for adaptive navigation.
Hierarchical Text-Encoder
Instead of a flat word-level representation, the encoder builds a multi-level memory structure. It employs bi-directional LSTMs (biLSTMs) and max-pooling layers to generate distinct representations for words, sentences, and paragraphs. This hierarchy allows the model to capture context at different granularities, facilitating both high-level skimming and low-level scanning.
Zooming-Controller
The controller acts as the decision-making "brain," managing three "read-heads" corresponding to the hierarchy levels. At each step, the controller's policy network determines the next action based on the current state, which includes the read-head outputs and the previous action vector.
The controller makes two primary decisions:
- Action Level: Choosing whether to examine a word, a sentence, or an entire paragraph.
- Action Type: Assigning a label (e.g., using the BIO standard) to the selected unit.
By labeling an entire paragraph as "Outside" (irrelevant) in a single step, the model effectively "skips" large swaths of text, moving the read-heads forward significantly faster than a linear model.
Training Methodology
The model is trained using a hybrid approach:
- Supervised Learning (SL): Ensures the model learns accurate labeling from ground-truth data.
- Reinforcement Learning (RL): Rewards the model for efficiency, encouraging it to find the most direct path through the document without sacrificing accuracy.
Experimental Evaluation
The researchers evaluated ZN on two Chinese legal datasets: TcJD (Theft Case Judgment Documents, avg. ~1,090 words) and PiJD (Patent Infringement Judgment Documents, avg. ~6,133 words). These documents are characterized by dense procedural text surrounding sparse, critical facts.
Key Results
- Accuracy: ZN significantly outperformed the biLSTM-CRF baseline, achieving a 95.49 F1-score compared to 81.81 on the theft case task.
- Efficiency: Using the word-level action ratio (wlar) metric, where a standard model scores 1.0, ZN achieved a wlar of 0.15 to 0.16. This indicates the model only required word-level analysis for roughly 15% of the document to reach superior performance.
Conclusion
The Zooming Network demonstrates that efficiency and accuracy are not necessarily trade-offs in long-document processing. By adopting a coarse-to-fine strategy—using paragraph-level actions for boilerplate and word-level actions for critical facts—the model maintains a sharper internal memory and avoids the vanishing gradient issues common in standard RNNs. Future work may explore the application of this "skipping" logic to less structured domains and further refine the integration of symbolic reasoning components.
Summary updated