Pruning simulator

Train a small network in your browser on a synthetic classification task, then prune its smallest-magnitude weights at increasing ratios and watch the accuracy-versus-sparsity curve, contrasting unstructured and structured pruning.

Estimate simulator (not a measurement)

An estimate, not a measurement. This is a mathematical simulation on synthetic data that shows the general trend only. Real numbers on your device and your model require real measurement.

Preparing the experiment…

How it works

  1. Synthetic two-moons data is generated and a small MLP is trained with gradient descent inside the browser.
  2. A share of the smallest-magnitude weights is pruned (unstructured) or whole neurons are removed (structured).
  3. The pruned network is evaluated on separate test data and accuracy is plotted against the pruning ratio.
  4. The number of non-zero weights and the sparsity are shown.

Limits and caveats

  • Results come from a small toy network and a synthetic problem and do not transfer to real models.
  • Unstructured pruning speeds up inference only with sparsity-aware kernels; fewer non-zeros alone do not mean faster.
  • The simulator does not fine-tune after pruning unless you enable that option.

Privacy: all processing is inside your browser. Images and audio are not uploaded to the server.

Image and audio processing in the experiments runs inside your browser. Your images and audio are never uploaded and conversations are not stored. Privacy