Benchmark

These experiments compare the CUDA implementation of SDTW in dDTW with Maghoumi’s Soft-DTW implementation, and CTC in dDTW with PyTorch CTC. They vary sequence lengths, batch size, and feature dimensionality or number of classes. Fixed parameters are shown in each plot.

Runtime plots show forward, backward, and total runtime in milliseconds. Lines represent medians; shaded regions show one standard deviation across trials. Solid lines denote dDTW and dashed lines denote the baseline. Both axes use logarithmic scales. Each curve ends at its last recorded measurement.

Results for the GPU discussed in the paper (NVIDIA RTX A5500) are shown below. Expand another GPU model to view its results. Memory usage and comparisons across GPUs are grouped at the bottom of the page.

NVIDIA RTX A5500

SDTW

SDTW sequence length runtimes on NVIDIA RTX A5500.
SDTW batch size runtimes on NVIDIA RTX A5500.
SDTW feature dimensionality runtimes on NVIDIA RTX A5500.

CTC

CTC input sequence length runtimes on NVIDIA RTX A5500.
CTC target sequence length runtimes on NVIDIA RTX A5500.
CTC batch size runtimes on NVIDIA RTX A5500.
CTC number of classes runtimes on NVIDIA RTX A5500.

Other GPU Models

NVIDIA GeForce RTX 3090

SDTW

SDTW sequence length runtimes on NVIDIA GeForce RTX 3090.
SDTW batch size runtimes on NVIDIA GeForce RTX 3090.
SDTW feature dimensionality runtimes on NVIDIA GeForce RTX 3090.

CTC

CTC input sequence length runtimes on NVIDIA GeForce RTX 3090.
CTC target sequence length runtimes on NVIDIA GeForce RTX 3090.
CTC batch size runtimes on NVIDIA GeForce RTX 3090.
CTC number of classes runtimes on NVIDIA GeForce RTX 3090.
NVIDIA GeForce RTX 4090

SDTW

SDTW sequence length runtimes on NVIDIA GeForce RTX 4090.
SDTW batch size runtimes on NVIDIA GeForce RTX 4090.
SDTW feature dimensionality runtimes on NVIDIA GeForce RTX 4090.

CTC

CTC input sequence length runtimes on NVIDIA GeForce RTX 4090.
CTC target sequence length runtimes on NVIDIA GeForce RTX 4090.
CTC batch size runtimes on NVIDIA GeForce RTX 4090.
CTC number of classes runtimes on NVIDIA GeForce RTX 4090.
NVIDIA GeForce RTX 5090

SDTW

SDTW sequence length runtimes on NVIDIA GeForce RTX 5090.
SDTW batch size runtimes on NVIDIA GeForce RTX 5090.
SDTW feature dimensionality runtimes on NVIDIA GeForce RTX 5090.

CTC

CTC input sequence length runtimes on NVIDIA GeForce RTX 5090.
CTC target sequence length runtimes on NVIDIA GeForce RTX 5090.
CTC batch size runtimes on NVIDIA GeForce RTX 5090.
CTC number of classes runtimes on NVIDIA GeForce RTX 5090.
NVIDIA RTX PRO 6000 Blackwell

SDTW

SDTW sequence length runtimes on NVIDIA RTX PRO 6000 Blackwell.
SDTW batch size runtimes on NVIDIA RTX PRO 6000 Blackwell.
SDTW feature dimensionality runtimes on NVIDIA RTX PRO 6000 Blackwell.

CTC

CTC input sequence length runtimes on NVIDIA RTX PRO 6000 Blackwell.
CTC target sequence length runtimes on NVIDIA RTX PRO 6000 Blackwell.
CTC batch size runtimes on NVIDIA RTX PRO 6000 Blackwell.
CTC number of classes runtimes on NVIDIA RTX PRO 6000 Blackwell.

Grouped Comparisons

Memory Usage

Peak allocated CUDA memory is measured in MiB and includes live input tensors. Colors identify GPU models; solid lines denote dDTW and dashed lines denote the baseline. Curves overlap when memory usage is the same.

Grouped SDTW and CTC memory usage by experiment and GPU model.

Total Runtime Across GPUs

The following comparison shows median total runtime for the same parameter sweeps on each GPU model. Colors identify GPUs and line styles distinguish dDTW from the baseline. Differences reflect the recorded systems, including their software configurations.

Grouped SDTW and CTC total runtimes across GPU models.