# TorchCurves: Differentiable Parametric Curves

arXiv: https://arxiv.org/abs/2611.14516 · HTML: https://mlsanity.com/paper/2611.14516/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 5 of its 17 references that are in the map.
- Submitted 10 Nov 2026.

## Builds on (most cited first, 5 of 5)

- [KAN: Kolmogorov-Arnold Networks](https://mlsanity.com/paper/2404.19756/) (2024)
- [On Embeddings for Numerical Features in Tabular Deep Learning](https://mlsanity.com/paper/2203.05556/) (2022)
- [An Efficient Deep Distribution Network for Bid Shading in First-Price Auctions](https://mlsanity.com/paper/2107.06650/) (2021)
- [Bid Shading by Win-Rate Estimation and Surplus Maximization](https://mlsanity.com/paper/2009.09259/) (2020)
- [Function Basis Encoding of Numerical Features in Factorization Machines](https://mlsanity.com/paper/2305.14528/) (2023)

## Abstract (arXiv)

We present TorchCurves, a PyTorch library that treats vector-valued parametric curves as learnable primitives. Its central operation maps batches of scalar inputs to points on curves represented in B-spline or Legendre polynomial bases, with differentiation through both inputs and coefficients. Curve coefficients can be optimized jointly with the surrounding model or produced by another network. The library provides trainable modules, reusable basis modules, and a functional interface, supporting applications ranging from continuous feature embeddings to Kolmogorov-Arnold networks and functional regression. Its implementation combines classical evaluation algorithms with vectorized PyTorch operations, emphasizing readability and maintainability without custom hardware kernels. Timing experiments compare curve evaluation against NumPy and SciPy and KAN training against EfficientKAN across a range of problem sizes. The results illustrate where this generality remains computationally practical and where overhead is substantial. Library is available on GitHub at https://github.com/alexshtf/torchcurves.
