Manuscript Offprint

arXiv:2608.26309

Algebraic Multigrid Acceleration for Efficient Label Spreading

Antonia van Betteray, Jonathan Klees, Miriam Schäfers, Matthias Rottmann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Antonia van Betteray ∗^{*}, 1^{1}, Jonathan Klees ∗^{*}, 1^{1}, Miriam Schäfers ∗^{*}, 2^{2}, Matthias Rottmann 1^{1}

1^{1}Osnabrück University, Institute for Computer Science, Osnabrück, Germany

{antonia.vanbetteray, jonathan.klees, mathias.rottmann}@uni-osnabrueck.de

2^{2}Ruhr University Bochum, Institute for Computer Science, Bochum, Germany

m.schaefers@rub.de

Abstract—Modern machine learning models rely on large amounts of labeled data. However, manual annotation of large-scale datasets is expensive and time-consuming. Label spreading is a semi-supervised learning technique that addresses this challenge by propagating information from a few labeled examples to a larger pool of unlabeled data. Despite its effectiveness, its application to large-scale, high-dimensional datasets is limited by computational costs and memory constraints. To address these limitations, we propose Algebraic Multigrid Acceleration for Efficient Label Spreading (AMELS), an efficient label spreading framework that improves scalability by fast construction of neighborhood graphs and the incorporation of algebraic multigrid solvers. The latter is an iterative solver that replaces the ordinary random walk iteration typically performed in label spreading. Due to the multilevel nature of algebraic multigrid solvers, AMELS spreads given label information across a graph of any size in a single multigrid cycle. We demonstrate that AMELS achieves significant runtime reductions compared to existing implementations while also being more robust to hyperparameter choices in terms of both runtime and classification accuracy. Our framework therefore enables efficient label spreading on large-scale image datasets and produces accurate labels even when only a few labeled samples are available.

Index Terms—Label Spreading, Efficiency, Multigrid

I. INTRODUCTION

Large-scale annotated datasets are the foundation of modern machine learning models [1], [2]. Manual annotation of these datasets is time-consuming and costly, as labels must be accurate to ensure effective model training [3]–[5]. The effort becomes even more pronounced for soft labeling approaches, where each data point is annotated multiple times to capture uncertainty or annotator disagreement [6], [7]. Consequently, obtaining high-quality labeled data represents a major bottleneck for scaling machine learning systems. To address this challenge, semi-supervised learning methods [8], [9] leverage the structure of the full dataset to propagate labels from a small set of labeled examples to large amounts of unlabeled data. In particular, label spreading [10] constructs a similarity graph from the dataset, assuming that nearby points, or points on the same manifold, are likely to share the same label. Label predictions are then obtained via an iterative diffusion process on the graph, in which each node exchanges label information with its neighbors until convergence. The diffusion strength is

Figure

Fig. 1: Overview of our proposed framework AMELS: To apply label spreading on large-scale image datasets, a k-NN graph is constructed in the embedding space of a feature extractor such as CLIP. For efficient graph construction, we use FAISS's implementation that accelerates nearest neighbor search on a GPU. Most importantly, to efficiently approximate the solution to label spreading, we employ AMG solvers which iteratively coarsen and interpolate the problem, significantly reducing computational complexity.

controlled by a parameter α∈(0,1)\alpha \in (0,1), where 0 corresponds to no diffusion and 1 to maximal diffusion with minimal preservation of the initial labels.

The algorithm faces two major computational challenges when applied to large-scale datasets: (1) the construction of a similarity graph, which requires the computation of all pairwise similarities between data points, which scales quadratically with the number of samples, and (2) the inversion of a matrix to determine the label estimates, scaling cubically in the number of samples and requiring quadratic memory. These limitations restrict the applicability of label spreading in modern settings [11], where both dataset size and feature dimension are large.

While several approaches improve the efficiency of label spreading via approximations, sparsification, or iterative solvers, they still do not fully meet the scalability requirements of large-scale settings such as deep learning. A detailed discussion of related work is provided in the corresponding section. Moreover, no widely used efficient implementation of label spreading is currently available.

Our Contribution: To address the computational challenges in label spreading, we propose Algebraic Multigrid Acceleration for Efficient Label Spreading (AMELS), a framework that:

(1) speeds up graph construction by leveraging semantically

  • Equal contribution.

meaningful low-dimensional image embeddings obtained from vision-language models (VLMs) and state-of-the-art methods for efficient nearest-neighbor search [12], to construct a sparse k-nearest-neighbor graph;

(2) leverages the optimal complexity of algebraic multigrid (AMG) solvers [13] to approximate the solution of the linear system involved in label spreading. AMG methods are well suited for label spreading, as their hierarchical structure efficiently captures both local and distant graph connections. In particular, coarse levels accelerate the propagation of label information over large distances, which is crucial since such global dependencies are difficult to capture in standard implementations. Moreover, prior work suggests a diffusion strength α\alpha close to 1 in practice [14], resulting in ill-conditioned graph Laplacians that AMG methods can handle robustly.

Our empirical evaluation on standard image classification benchmarks shows that AMELS significantly reduces the computational cost of label spreading, achieving lower runtime and fewer iterations than existing approaches. We further demonstrate that large-scale image datasets can be labeled accurately at a fraction of the annotation cost. Finally, we present hyperparameter studies on the effects of the parameters of label spreading, showing that AMELS is robust to parameter choices in terms of both accuracy and runtime. We make our code publicly available under https://github.com/JonathanKlees/efficient_label_spreading. Our main contributions can be summarized as follows:

• We combine efficient neighborhood construction methods and AMG solvers to improve the computational efficiency of label spreading, and leverage VLMs to enable its application to high-dimensional and large-scale image datasets.

• We demonstrate that our framework achieves significant efficiency gains over existing approaches while preserving performance in terms of classification accuracy.

• We provide a comprehensive hyperparameter study that reveals that our framework is more robust to the choice of hyperparameters regarding both runtime and performance.

• We make our efficient label spreading framework publicly available to facilitate future research and applications.

References (40)

  • On the genealogy of machine learning datasets: A critical history of ImageNet
  • “Garbage in, garbage out
  • Are LLMs Better than Reported? Detecting Label Errors and Mitigating Their Effect on Model Performance (opens arXiv in a new tab)
  • Improving Label Error Detection and Elimination with Uncertainty Quantification
  • Learning From Noisy Labels With Deep Neural Networks: A Survey
  • Human Uncertainty Makes Classification More Robust
  • Is one annotation enough? A data-centric image classification benchmark for noisy and ambiguous label estimation
  • MIT Press, 2006
  • Synthesis Lectures on Artificial Intelligence and Machine Learning
  • Learning with local and global consistency
  • Label Propagation for Deep Semi-Supervised Learning
  • The Faiss library (opens arXiv in a new tab)
  • Elsevier, 2000
  • Probabilistic Label Spreading: Efficient and Consistent Estimation of Soft Labels with Epistemic Uncertainty on Graphs (opens arXiv in a new tab)
  • Learning from Labeled and Unlabeled Data with Label Propagation
  • Partially labeled classification with markov random walks
  • Learning with partially absorbing random walks
  • Scikit-learn: Machine learning in Python
  • Efficient Label Propagation
  • with Applications in R. Springer, 2013
  • Semi-Supervised Learning via Bipartite Graph Construction With Adaptive Neighbors
  • Semi-supervised learning with close-form label propagation using a bipartite graph
  • Multiple graph label propagation by sparse integration
  • Manifold Regularization: A Geometric Framework for Learning from Labeled and Unlabeled Examples
  • Fast and Accurate Anchor Graph-based Label Prediction
  • SIAM textbooks
  • GMRES: A Generalized Minimal Residual Algorithm for Solving Nonsymmetric Linear Systems
  • Princeton University Press, 1957
  • Learning Transferable Visual Models From Natural Language Supervision
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
  • Efficient Diffusion on Region Manifolds: Recovering Small Objects with Compact CNN Representations
  • Reducing Complexity in Parallel Algebraic Multigrid Preconditioners
  • NIST Special Database 19 Handprinted Forms and Characters Database
  • SciPy 1.0: fundamental algorithms for scientific computing in Python
  • AmgX: A library for GPU accelerated algebraic multigrid and preconditioned iterative methods
  • EMNIST: Extending MNIST to Handwritten Letters
  • Learning multiple layers of features from tiny images
  • Tiny ImageNet Visual Recognition Challenge
  • ImageNet Large Scale Visual Recognition Challenge
  • Computationally Efficient Probabilistic Label Spreading via Algebraic Multigrid Methods