arXiv:2610.09459cs.CVOct 2026

Manuscript Offprint

arXiv:2610.09459

An Invariant Tangent-Angle Descriptor and a Band U-Net for 2D Fragment Adjacency Prediction

Guillaume Brouillette, Alain Goupil, Pierre-Olivier Parisé, Fadel Touré

Abstract

This paper addresses the prediction of adjacency between pairs of 2D fragments based on their contours. We improved the two-stage architecture proposed in Beaulac's thesis [2], in which a rotation-equivariant Siamese convolutional neural network scores pairs of local image windows along the two contours of two fragments. The scores are gathered in an adjacency matrix in which a ResNet detects the partial anti-diagonal band that reveals the adjacency of two fragments. In the current work, we keep the pipeline and replace the local score by a comparison of tangent-angle profiles of contour windows, making it, by construction, invariant to fragment rotation and agnostic to the selected contour-starting point. These adaptations may be either a training-free likelihood ratio or a small one-dimensional convolutional model trained on corresponding points. We also replaced the final classifier by a band U-Net that segments the band and classifies the pair, so that the shared arc is obtained along with the decision. In the synthetic data set of the original thesis, the tangent descriptor performs as well as or better than the image-window approach in all tested configurations. The proposed pipeline reaches an accuracy of 98%, vs 93% to 95% for the original approach once its evaluation is corrected. We tested our pipeline, with models trained only on synthetic data, on the PairingNet benchmark, and obtained an AUC of 0.93. Furthermore, under the PairingNet pair-searching protocol conditions, our learned descriptor obtains a Recall@10 of 0.82 on the real set against 0.56 from the best model of the original paper.

1 Introduction

The reassembly of broken flat objects, such as frescoes, ceramics or torn documents, is a recurrent problem in archaeology, cultural heritage preservation and forensic sciences [5, 12, 29]. Most computational approaches to this problem start with a pairwise question: given two fragments, did they share a fracture, and if so, along which portion of their contours? The answers for every pair of a collection form an adjacency graph, from which a global assembly can then be searched. The classical answer to the pairwise question is geometric. Since the two sides of a fracture are the same curve traversed in opposite directions, a signature of the contour based on curvature or on the turning angle should appear, reversed, on the contour of the neighbouring fragment [1, 4, 15, 17, 34, 41]. More recently, learning-based methods have been proposed, which rely on Siamese neural networks applied to fragment images [20, 23, 37], on graph neural networks applied to contours and textures [39] or on Transformers applied to sequences of contour points [7]. In these methods, the training labels are usually produced by a synthetic fragmentation generator.

The present work builds on the architecture proposed by Beaulac [2], which stands between these two families. In the architecture proposed by Beaulac, a rotation-equivariant Siamese convolutional network [33] is trained to decide whether two small image windows, centred on a point of each contour, lie on a common fracture. The decisions obtained for every pair of sampled contour points form an adjacency matrix A∈[0,1]na×nbA \in [0, 1]^{n_a \times n_b}. When the two fragments are adjacent, this matrix contains a band of high values along an anti-diagonal, since the shared arc is traversed in opposite directions on both contours, and a ResNet18 is trained to classify the matrix as adjacent or not. This structure has two interesting properties. The evidence for adjacency is kept local, as a fracture is a short arc of each contour, and the position of this evidence is preserved in the adjacency matrix, so that the same matrix could in principle be used to locate the shared arc. The thesis reports an accuracy of 72.45% for the global classifier, but does not use the adjacency matrix to locate the shared arc.

In this paper, we keep the adjacency matrix approach and modify what fills it and what reads it, see Figures 1 and 2. Our contributions are the following.

• We replace the image-window network by a descriptor of the contour itself, namely the profile of tangent angles along a window of contour points, expressed relative to the angle at the centre of the window. This profile is invariant to rotation, translation and starting point by construction, whereas the original model only approximates rotation invariance through its C8C_{8}-equivariant architecture by augmenting the dataset using rotations. Each cell of the matrix compares the profile of a window of a with that of a window of b read backwards. We propose two ways of computing this comparison. The first one requires no training. It measures how much the difference between the two profiles varies along the window. This measure is turned into a log-likelihood ratio, which compares the hypothesis that the two windows cover the same portion of a shared fracture with the hypothesis that they are unrelated. This ratio is large for matching windows that have turned enough to be informative and close to zero for straight windows, since all straight windows look alike. The second one is learned. A one-dimensional convolutional network of 129k parameters, trained on point correspondences, maps each window to a vector of dimension 32, called its embedding. Each cell is then computed from the dot product of the two embeddings. Since every window is embedded only once, the whole matrix of a pair of fragments is obtained by a single matrix product.

• We replace the ResNet18 by a band U-Net, which is trained to segment the anti-diagonal band of the matrix and to classify the pair at the same time. We also consider a second read-out of the matrix, the anti-diagonal run, which requires no training. A threshold is first subtracted from every cell, so that the cells that do not indicate a match count negatively. The read-out then finds the run of consecutive cells with the largest sum along the anti-diagonals of the matrix. This search is the simplest form of local alignment [4, 27]. The sum of this run serves as the adjacency score and its extent gives the shared arc. Hence, both read-outs return the shared arc together with the adjacency decision. The ResNet18 of the original work is kept as a reference.

• We evaluate these modifications on three kinds of data. The first is the synthetic benchmark of the original work, which we regenerate at a resolution of 1000×10001000 \times 1000 pixels with exact polygonal contours and point correspondences, in four variants and with held-out test images. The second is the set of images and labels published by Beaulac, on which we also re-run the original code. The third is the PairingNet dataset [39], which contains 320 scanned fragments with annotated pairs and a large generated test set. We compare our results with those of the original pipeline, with the published weights of the contour Transformer of Dongmo et al. [7] and with the published results of PairingNet.

The main findings are as follows. The tangent descriptor performs as well as or better than the image-window approach for every global classifier and every variant of the synthetic benchmark, and the band U-Net is the best read-out, or tied with the best, in 14 of the 16 configurations. On Beaulac's own data, we found that the 72.45 % reported there was the consequence of a labelling error within the evaluation script, which bounds the accuracy at 75 %. When corrected, the original method reaches an accuracy of 93 % to 95 % over three seeds and the tangent pipeline reaches 98 %. Trained on synthetic data alone, the tangent pipeline obtains an AUC of 0.93 on the real fragments from PairingNet benchmark and the learned descriptor, used for pair searching, obtains a Recall@10 of 0.82 on the real set, compared with 0.56 for PairingNet. Finally, the published weights of the contour Transformer of [7] are at chance level on the real fragments of PairingNet.

The remainder of the paper is structured as follows. In Section 2, we review related work on curve matching and learned fragment matching. In Section 3, we recall the pipeline of Beaulac and we describe the tangent-angle descriptor and the two read-outs. Section 4 presents the datasets, the experimental protocol and the results. Finally, Section 5 concludes and discusses further work.

References (39)