Hypernetwork-based approach for grid-independent functional data clustering

Anirudh Thatipelli, Ali Siahkoohi · DOI

TL;DR

Researchers have developed a new framework for functional data clustering that is completely independent of the sampling grid or resolution. By using a hypernetwork to map raw data points into the weight space of an Implicit Neural Representation (INR), they create compact, semantic embeddings that allow standard clustering algorithms to work across heterogeneous datasets—even on resolutions never seen during training.

What Problem Does This Paper Address?

In Functional Data Analysis (FDA), we treat data samples as continuous functions (like a sensor's signal over time or an image's intensity over space) rather than just static vectors. A major headache in this field is discretization dependence.

Most existing clustering methods are "grid-tied": they assume all samples are observed on the same grid or require heavy preprocessing (like interpolation or smoothing) to make them match. If you change the sampling rate or the sensor resolution, the cluster assignments often change too. This is a "nuisance parameter" problem—the results depend on how you measured the data rather than the data itself. Furthermore, many current methods don't scale well to higher-dimensional inputs (like 3D volumetric data).

Methods

The authors introduce a hypernetwork-based autoencoder architecture designed to be "mesh-independent."

  1. The Encoder (Hypernetwork $H_\theta$): Instead of taking a fixed-size vector, the encoder processes a set of coordinate-value pairs $(x, u(x))$. It uses a per-point MLP followed by a mean-pooling aggregation step. Because mean-pooling approximates an integral over the domain, the resulting representation is mathematically robust to the number and placement of points.
  2. The Decoder (SIREN $g_w$): The "latent space" here isn't just a random vector; it is the weight space of an Implicit Neural Representation (specifically a SIREN, which uses sinusoidal activation functions). The hypernetwork predicts the weights $w$ that would allow the SIREN to reconstruct the original function at any coordinate.
  3. Clustering in Weight Space: Because INRs are incredibly compact (representing complex signals with very few parameters), the predicted weights $w$ serve as a high-quality, fixed-dimensional embedding. The authors then apply standard, off-the-shelf algorithms like $K$-means or Gaussian Mixture Models (GMMs) directly to these weights.

Crucially, the model is trained using a pure reconstruction loss. Representation learning is decoupled from the clustering task, making the pipeline "clustering-algorithm-agnostic."

Datasets

The authors evaluated their approach on three distinct types of functional data:

  • MNIST: Handwritten digits treated as 2D functions. This served as a controlled environment to test resolution invariance (from $7 \times 7$ to $112 \times 112$).
  • Kvasir: A real-world medical image dataset of gastrointestinal findings. This tested the model's ability to handle complex textures and multi-channel (RGB) outputs.
  • ERing: A multivariate time-series dataset (finger gestures) from the UEA archive. This allowed for a direct comparison with existing functional clustering baselines like FAEclust.

Key Insights and Ideas

  • Weights as Features: The core "aha" moment is that the weights of a neural network optimized to represent a specific function are themselves excellent features for clustering that function.
  • Multi-Resolution Training: To ensure the model doesn't overfit to a specific grid, the authors trained on multiple resolutions simultaneously. This allowed the model to generalize "zero-shot" to resolutions it had never encountered.
  • Dimension Agnosticism: Unlike many FDA methods restricted to 1D time series, this INR-based approach naturally scales to 2D images or 3D volumes because the decoder simply takes coordinates as input, regardless of their dimensionality.
  • Decoupling is a Feature: By not including a clustering-specific term in the loss function, the learned weight space remains general. You can swap $K$-means for a GMM or spectral clustering without retraining the entire neural network.

Key Results

  • Resolution Invariance: On MNIST, the model maintained nearly identical performance (AMI $\approx 0.72$, ARI $\approx 0.60$) across resolutions ranging from $14 \times 14$ to $112 \times 112$. Performance only dropped at $7 \times 7$ due to actual information loss (the digits became unreadable).
  • Stability on Real Data: In the Kvasir medical dataset, clustering performance remained statistically stable across all tested resolutions, proving the representation depends on image content rather than grid density.
  • Competitive with Baselines: On the ERing time-series dataset, the method achieved an AMI of $\approx 0.56$. While slightly lower than the specialized FAEclust (0.66), the authors note that their method uses no clustering-specific supervision and is far more flexible across different data types.

Limitations and Future Work

  • Output Dimensionality Scaling: If the target function has a very high-dimensional output (e.g., a vector field with many components), the final layer of the INR grows significantly, which could "inflate" the weight vector and make clustering more difficult.
  • Weight Space Geometry: The authors acknowledge that the mathematical curvature and connectivity of the induced weight space aren't yet fully understood.
  • Localized Features: The current SIREN decoder uses global sinusoidal activations. The authors suggest that replacing these with wavelet-based INRs might better capture localized features like sharp edges or transient signals in the data.

Summary updated

Abstract

Functional data clustering is concerned with grouping functions that share similar structure, yet most existing methods implicitly operate on sampled grids, causing cluster assignments to depend on resolution, sampling density, or preprocessing choices rather than on the underlying functions themselves. To address this limitation, we introduce a framework that maps discretized function observations -- at arbitrary resolution and on arbitrary grids -- into a fixed-dimensional vector space via an auto-encoding architecture. The encoder is a hypernetwork that maps coordinate-value pairs to the weight space of an implicit neural representation (INR), which serves as the decoder. Because INRs represent functions with very few parameters, this design yields compact representations that are decoupled from the sampling grid, while the hypernetwork amortizes weight prediction across the dataset. Clustering is then performed in this weight space using standard algorithms, making the approach agnostic to both the discretization and the choice of clustering method. By means of synthetic and real-world experiments in high-dimensional settings, we demonstrate competitive clustering performance that is robust to changes in sampling resolution -- including generalization to resolutions not seen during training.
BibTeX
@misc{thatipelli2026hypernetwork,
  author = {Anirudh Thatipelli and Ali Siahkoohi},
  title = {{Hypernetwork-based approach for grid-independent functional data clustering}},
  year = {2026},
  eprint = {2602.22823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.22823},
}
Figure