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

CS4ML: A general framework for active learning with arbitrary data based on Christoffel functions

Juan M Cardenas, Ben Adcock, Nick Dexter

Abstract

In scientific machine learning, data acquisition is often the primary bottleneck, involving computationally expensive simulations or high-cost physical measurements. Traditional sampling methods, such as Monte Carlo Sampling (MCS), frequently fail to capture complex features efficiently, particularly when dealing with non-standard data types like gradients or Fourier coefficients. This paper introduces CS4ML, a mathematically rigorous framework for active learning that utilizes generalized Christoffel functions to optimize sampling across arbitrary data types. By treating the penultimate layer of a deep neural network as an adaptive basis, the framework—termed Christoffel Adaptive Sampling (CAS)—achieves near-optimal sample complexity. We demonstrate the efficacy of CS4ML across diverse domains, including gradient-augmented polynomial regression, MRI reconstruction, and Physics-Informed Neural Networks (PINNs) for fluid dynamics.

Introduction

Standard machine learning paradigms typically operate under the assumption that training data consists of simple input-label pairs $(x, y)$. However, in scientific and engineering contexts, the "data" is often far more complex. For instance, training a Physics-Informed Neural Network (PINN) might require evaluating the residual of a partial differential equation (PDE), while medical imaging like MRI relies on data acquired in the Fourier domain (k-space).

Generating these samples is often prohibitively expensive. The default approach, Monte Carlo Sampling (MCS), is notoriously inefficient for resolving sharp features like shocks in fluid flow or fine structural details in medical images. While active learning offers a path toward more efficient data collection, existing methods are largely restricted to pointwise data and linear models. CS4ML bridges this gap, providing a general framework for multimodal data and nonlinear models.

The CS4ML Framework

Generalized Christoffel Functions

The mathematical core of the framework is the Generalized Christoffel Function. In approximation theory, the Christoffel function provides a measure of the "influence" or "informativeness" of a specific sampling location. CS4ML extends this concept to accommodate Sampling Operators ($L_c$). Instead of being limited to function values, the framework can incorporate any linear operator, allowing for the integration of gradients, integrals, or domain transforms as primary data sources.

Multimodal Integration and Adaptive Sampling

One of the framework's primary strengths is its ability to perform multimodal integration. It can simultaneously optimize sampling across different measurement types—for example, balancing the density of samples taken from a PDE’s interior versus its boundary conditions.

To apply this theory to Deep Learning, the authors introduce Christoffel Adaptive Sampling (CAS). This method treats the penultimate layer of a neural network as an "adaptive basis." As the network trains, the sampling distribution is iteratively updated based on the features the network is currently learning. This effectively turns a complex nonlinear problem into a sequence of tractable, linear-like sampling problems.

Experimental Evaluation

The authors evaluated CS4ML across three distinct scientific scenarios:

  1. Gradient-Augmented Polynomials: In high-dimensional synthetic tests where the model receives both function values and gradients, Christoffel Sampling (CS) showed dramatic improvements over MCS. While MCS often led to diverging errors in high dimensions, CS remained stable and accurate.
  2. MRI Reconstruction: Using 3D brain images, the framework was tested in a "data-starved" regime, sampling only 0.125% of the available k-space. CS achieved a significantly higher Peak Signal-to-Noise Ratio (PSNR) compared to uniform random sampling, demonstrating its utility in medical imaging.
  3. Physics-Informed Neural Networks (PINNs): The framework was applied to the nonlinear Burger’s equation, a benchmark for fluid dynamics characterized by sharp transitions (shocks). The CAS method successfully "discovered" the shock wave and automatically clustered samples around it, reaching target accuracy with far fewer samples than MCS.

Key Insights

  • Informativeness Heatmaps: The Christoffel function acts as a diagnostic tool, identifying regions where the model is most uncertain or where data is most informative. By focusing on these regions, the algorithm ignores redundant data and prioritizes structural features.
  • Beyond Pointwise Data: By providing the mathematical machinery to balance different measurement types, CS4ML answers not just where to sample, but what kind of measurement is most beneficial at a given location.
  • Theoretical Rigor: The authors provide proofs demonstrating that their strategy achieves near-optimal sample complexity, reaching the theoretical minimum number of samples required for specific error bounds.

Limitations and Future Directions

Despite its performance, CS4ML faces several challenges. The framework is sensitive to the choice of activation function; while it performs well with smooth activations like tanh, it struggles with ReLU, likely because piecewise linear activations do not produce the necessary "richness" in the basis to generate informative Christoffel peaks.

Additionally, there is a computational overhead associated with calculating the Christoffel function, particularly for generative models. Future work aims to extend this framework to operator learning—mapping between infinite-dimensional spaces—and exploring its application in low-rank matrix recovery.

Conclusion

CS4ML represents a significant step forward in active learning for scientific computing. By grounding sampling strategies in approximation theory and providing a mechanism for handling multimodal, non-standard data, it offers a robust alternative to inefficient random sampling methods, potentially reducing the cost and time required for high-fidelity scientific modeling.

Summary updated

BibTeX
@inproceedings{cardenas2023cs,
  author = {Juan M Cardenas and Ben Adcock and Nick Dexter},
  title = {{CS4ML: A general framework for active learning with arbitrary data based on Christoffel functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=aINqoP32cb},
}
Figure