NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast(er) Reconstruction of Shredded Text Documents via Self-Supervised Deep Asymmetric Metric Learning

Thiago M. Paixão, Rodrigo Ferreira Berriel, Maria C. S. Boeres, Alessandro L. Koerich, Claudine Badue, Alberto F. De Souza, Thiago Oliveira-Santos

Introduction

The reconstruction of strip-shredded documents is a critical task in forensic investigations, often serving as a "laborious, time-consuming, and potentially damaging" manual process. While automated digital solutions have emerged, they frequently encounter a significant scalability bottleneck when dealing with large volumes of shreds. This paper presents a novel deep learning approach that treats reconstruction as an asymmetric metric learning task, drastically reducing computational overhead while maintaining high accuracy.

The Scalability Challenge

Traditional high-accuracy reconstruction methods utilize deep neural networks to predict the compatibility between pairs of shreds. However, these models typically require a full inference pass for every possible combination. For a set of $n$ shreds, this results in $O(n^2)$ complexity. While manageable for a single page, this approach becomes computationally prohibitive when processing hundreds of shreds from multiple mixed documents.

Proposed Method: Asymmetric Metric Learning

The core innovation lies in decoupling the feature extraction from the compatibility calculation. Instead of a single model evaluating a pair, the authors employ two specialized Convolutional Neural Networks (CNNs): $f_{left}$ and $f_{right}$.

The proposed reconstruction pipeline involves compatibility evaluation followed by a permutation search to achieve the final reconstruction.

Embedding Space and Asymmetric Projection

The $f_{left}$ model is trained to extract features from the right boundary of a shred, while $f_{right}$ extracts features from the left boundary of a potential neighbor. These models project raw pixel data into a shared $d$-dimensional embedding space.

Asymmetric projection models $f_{left}$ and $f_{right}$ map shred boundaries into an embedding space where matching edges (positive pairs) are positioned closely together.

In this space, the compatibility of two shreds is determined by the distance between their respective embeddings. This architecture allows the system to process each shred exactly once to generate its features. Subsequent compatibility checks for all pairs are reduced to simple distance calculations, shifting the overall complexity from $O(n^2)$ to $O(n)$ for the heavy neural network component.

Self-Supervised Training

To eliminate the need for manual labeling, the models are trained using "virtual shredding." Digital documents are programmatically shredded, providing an infinite supply of ground-truth positive and negative pairs for training.

Experimental Results

The method was evaluated on benchmark datasets D1 (academic documents) and D2 (realistic documents with machine wear).

  • Speed: In a test involving 505 shreds (approx. 20 pages), the proposed method completed reconstruction in 3.73 minutes, compared to 80 minutes for the previous state-of-the-art—a 22x speedup.
  • Accuracy: On the D2 dataset, the system achieved 97.22% accuracy, outperforming existing deep learning benchmarks.
  • Efficiency: Sensitivity analysis indicated that high accuracy is maintained even with low-dimensional embeddings (as few as 8 dimensions), further optimizing the search phase.

Conclusion and Future Work

By reframing shred reconstruction as an asymmetric metric learning problem, this research provides a scalable and highly accurate tool for forensic document recovery. While currently optimized for strip-shredded text, future work aims to extend this approach to cross-cut documents and graphic-heavy content, where visual patterns are more complex than standard character edges.

Summary updated

BibTeX
@inproceedings{paixao2020fast,
  author = {Thiago M. Paixão and Rodrigo Ferreira Berriel and Maria C. S. Boeres and Alessandro L. Koerich and Claudine Badue and Alberto F. De Souza and Thiago Oliveira-Santos},
  title = {{Fast(er) Reconstruction of Shredded Text Documents via Self-Supervised Deep Asymmetric Metric Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01435},
}
Figure