Skip to content
NewA calmer, faster ZeroHour

TorchCurves adds differentiable B-spline and Legendre curves to PyTorch

Original title: TorchCurves: Differentiable Parametric Curves

arXiv cs.AI / cs.LG / cs.CLby Alex Shtoff ()1 min read
Part of a story covered by 2 sourcesResearchers release TorchCurves for differentiable parametric curvesMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Coefficients can train with a surrounding model, with timings against NumPy, SciPy and EfficientKAN.

TorchCurves is a PyTorch library that treats vector-valued parametric curves as learnable primitives. Batches of scalar inputs map to B-spline or Legendre polynomial curves, with gradients through inputs and coefficients. It provides trainable modules, reusable basis modules and a functional interface for embeddings, Kolmogorov-Arnold networks and functional regression. Timing experiments compare evaluation with NumPy and SciPy and KAN training with EfficientKAN, without custom hardware kernels.

Key facts
  • The library is available on GitHub at alexshtf/torchcurves.
  • Authors say the approach is practical for some sizes and costly for others.
  • Implementation uses classical evaluation plus vectorized PyTorch operations.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

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.

arXiv cs.AI / cs.LG / cs.CL

By Alex Shtoff · arxiv.org

Read the full article at arXiv cs.AI / cs.LG / cs.CL

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.