TorchCurves makes parametric curves learnable in PyTorch

Paper / preprint arXiv cs.LG · Reported findings, not independently verified by us.

TorchCurves is a PyTorch library for incorporating vector-valued parametric curves as learnable components in models. It may be useful for applications where continuous functions form part of a model’s design.

Its central operation maps batches of scalar inputs to points on curves represented with either B-spline or Legendre polynomial bases. Gradients can be computed through both the inputs and the curve coefficients. Those coefficients can be optimized jointly with the rest of a model or generated by another network.

The library provides trainable modules, reusable basis modules, and a functional interface. The paper lists continuous feature embeddings, Kolmogorov-Arnold networks, and functional regression as possible applications. Its implementation combines classical evaluation algorithms with vectorized PyTorch operations; according to the description, it does not use custom hardware kernels.

Timing experiments compare curve evaluation with NumPy and SciPy, and KAN training with EfficientKAN. The results are intended to show at which problem sizes the more general approach remains practical and where its additional computational overhead becomes substantial. The source provides further details on the implementation and these comparisons: the TorchCurves arXiv paper.

🇬🇧 https://arxiv.org/abs/2611.14516v1

Leave a Comment

The weekly brief: selected developments, projects and videos