Manuscript Offprint

arXiv:2608.30366

Mode Connectivity Beyond Classifiers: Evidence from Generative and Contrastive Models

Chengzheyi Yao, Yongzhao Zhang, Yongding Tian

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

Abstract

The loss landscape of Deep Neural Networks (DNNs) exhibits highly complex and non-convex properties. Recent studies have revealed the phenomenon of mode connectivity, demonstrating that independently trained network modes can be connected via a continuous low-loss path. However, existing mode connectivity research is predominantly confined to classifier-based models, leaving it an open question whether similar geometric properties exist in modern complex models. In this paper, we extend the boundaries of mode connectivity to generative and contrastive domains (specifically DDPM and NanoCLIP). Addressing the unique architecture of DDPM and CLIP, we propose an architecture-aware connection building algorithm. Extensive empirical results demonstrate for the first time that we successfully discover mode connectivity between independently trained DDPM and NanoCLIP modes. Our work provides a novel perspective for understanding the geometric properties of the loss landscapes in modern generative and contrastive models.

1 Introduction

The loss functions of Deep Neural Networks (DNNs) are highly complex and non-convex, and their geometric properties have long been a subject of extensive research. Early visualizations of loss functions (Foret et al. 2021; Li et al. 2018) supported the intuition that well-trained neural networks converge to isolated basins or local minima separated by high-loss barriers in the loss landscape. However, such visualizations are limited by their reliance on low-dimensional projections of the high-dimensional weight space. Further research suggests the basin model is incomplete.

Mode connectivity emerges by asking whether two independently trained neural networks can be connected by a continuous low-loss path in weight space. The endpoints of such a path are commonly referred to as modes, i.e., well-trained models that attain low loss. Establishing mode connectivity is significant because traditional loss landscape visualizations typically capture low-dimensional slices and therefore fail to reveal the high-dimensional low-loss regions. In contrast, mode connectivity provides a tool for uncovering deeper geometric and topological properties of the loss landscape beyond the isolated-basin picture.

The study of mode connectivity has both theoretical and empirical roots. Singular learning theory (Watanabe 2009) provided an algebraic-geometric perspective on this phenomenon: neural networks are singular statistical models, and the degeneracy of their Fisher information matrices (Fukumizu 1996) naturally gives rise to non-isolated parameter configurations and continuous low-loss subspaces. Empirical evidence for mode connectivity was later established. FGE (Garipov et al. 2018) showed that independently trained modes can be connected by simple curves such as polygonal chains or Bezier curves. AutoNEB (Draxler et al. 2018) iteratively bends linear interpolations into low-loss paths by optimizing intermediate pivots. More recently, LLPF (Tian et al. 2026) proposed a layer-wise algorithm, improving the reliability of connecting independently trained modes across a broader set of neural architectures.

Despite these advances, existing empirical evidence for mode connectivity remains largely confined to classifier-based settings, as shown in Table 1. Although these works cover multiple network architectures, the underlying learning paradigm is still relatively simple: unimodal supervised classification on small-scale CIFAR datasets. Whether mode connectivity exists in modern non-classifier architectures, such as generative and contrastive models, remains largely unexplored.

In this paper, we extend the scope of mode connectivity from classifiers to Denoising Diffusion Probabilistic Models (DDPM) (Ho, Jain, and Abbeel 2020) on Flowers102 (Nilsback and Zisserman 2008) and NanoCLIP (Ali-bey 2024) on Flickr30k (Young et al. 2014). These models introduce new challenges absent from classifiers: (1) DDPM uses a U-Net architecture with skip connections, while NanoCLIP relies on cross-modal alignment between image and text encoders. All previous methods (Tian et al. 2026; Adilova et al. 2024) are not compatible with these models; and (2) these models have higher-dimensional parameter spaces than the classifiers, resulting in larger parameter-space distances between two modes. It is difficult to identify an effective optimization direction towards low-loss regions.

Our success in these models is primarily attributed to two key designs in two-stage mode connectivity pipeline (Tian et al. 2026): (1) in Weighted Movement stage, we develop a dataflow-based layer moving strategy that determines the moving order from the computational dependencies of each architecture, building on the layer-wise methods; and (2) in Training Refinement stage, we first identify that the choice of optimizer is important for higher-dimensional models. Thus, we employ the Adam optimizer (Loshchilov and Hutter 2019) instead of Stochastic Gradient Descent (SGD), on which previous methods mainly rely.

Our main contributions are summarized as follows:

  • To the best of our knowledge, we are the first to extend the scope of mode connectivity from conventional image classifiers to representative non-classifier models, including contrastive and generative models.

  • We provide empirical evidence that the mode connectivity property holds for DDPM on the Flowers102 dataset and for NanoCLIP on the Flickr30K dataset.

References (33)

  • Layer-wise linear mode connectivity
  • nanoCLIP: A Lightweight Text-to-Image Retrieval Model
  • Essentially No Barriers in Neural Network Energy Landscape
  • The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networks
  • Sharpness-aware Minimization for Efficiently Improving Generalization
  • Deep learning versus kernel learning: an empirical study of loss landscape geometry and the time evolution of the neural tangent kernel
  • Linear Mode Connectivity and the Lottery Ticket Hypothesis
  • Active Learning in Multilayer Perceptrons
  • A Regularity Condition of the Information Matrix of a Multilayer Perceptron Network
  • Loss surfaces, mode connectivity, and fast ensembling of DNNs
  • Understanding the difficulty of training deep feedforward neural networks
  • Hidden symmetries of ReLU networks
  • Escaping the Big Data Paradigm with Compact Transformers
  • Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification
  • Deep Residual Learning for Image Recognition
  • Denoising Diffusion Probabilistic Models
  • Densely Connected Convolutional Networks
  • Visualizing the Loss Landscape of Neural Nets
  • Decoupled Weight Decay Regularization
  • Automated Flower Classification over a Large Number of Classes
  • Neural Networks: Tricks of the Trade, this book is an outgrowth of a 1996 NIPS workshop
  • Designing Network Design Spaces
  • EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
  • Connecting Independently Trained Modes via Layer-Wise Connectivity
  • Vanishing Variance Problem in Fully Decentralized Neural-Network Systems (opens arXiv in a new tab)
  • On Linear Mode Connectivity of Mixture-of-Experts
  • Algebraic Geometry and Statistical Learning Theory
  • From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
  • Deep Layer Aggregation
  • ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices
  • The x-axis denotes the model index, and the y-axis represents the mean or variance of layer parameters
  • >Model: DDPM-Flowers102</td><td colspan=
  • Left: layer-wise cosine similarity between the DDPM checkpoint at tick 16400 and the end mode