TL;DR
Some geometric algorithms—like finding a convex hull—don’t always run in worst-case time; they speed up dramatically when input points are neatly organized into a few dominant regions rather than scattered chaotically. This paper introduces Differentiable Entropy Regularization (DER), a smooth, gradient-friendly way to teach neural networks to gently nudge messy point clouds (or Transformer embeddings) into "easier," lower-entropy shapes. The result? Classic geometric solvers run up to 3× faster end-to-end with minimal loss in fidelity, and Vision Transformers gain structured, hardware-friendly sparsity.
What Problem Does This Paper Address?
In computational geometry, worst-case big-$O$ notation doesn't tell the whole story. Entropy-sensitive algorithms adapt to the hidden structure of their input: give them an "easy" point cloud, and they breeze through in nearly linear time; give them a geometrically complex mess, and they do the heavy lifting.
The secret sauce governing this workload is range-partition entropy—a measure of how cleanly a point set can be sliced up by geometric shapes like halfspaces (flat planes) or balls. Low entropy means most points fall into a few big, simple buckets; high entropy means points are fragmented across many comparable cells.
Until now, range-partition entropy has been a discrete, combinatorial concept—great for proving runtime bounds on paper, terrible for backpropagation. If you wanted to train a neural network to preprocess data so downstream algorithms run faster, you couldn't differentiate through those hard geometric boundaries. The authors bridge this gap by turning range-partition entropy into a smooth, differentiable loss function.
Methods
At first glance, the entropy formula in DER ($-\sum p_j \log p_j$) looks like standard soft clustering. The real novelty lies in making the math geometry-aware and proving how closely the smooth version tracks the discrete reality.
The authors introduce two flavors of DER, paired with a PointNet-style preprocessor called EntropyNet:
- Anchor-based DER: Uses learnable center points ("anchors") and assigns input points to them via a temperature-scaled softmax over distances. It’s fast and general-purpose.
- Halfspace-aware DER: Tailored for algorithms like convex hulls that care about flat, linear cuts. Instead of hard binary checks ("is point $x$ left or right of line $t$?"), it uses smooth sigmoid indicators normalized by separator weights.
During training, EntropyNet learns to slightly shift input points to minimize DER alongside geometric preservation losses (ensuring the overall boundary and spread don't collapse). Notably, the downstream solver (Qhull) is not differentiated through—it stays untouched and runs at test time on the tidied-up points. For halfspace DER, the authors also prove a deterministic mathematical "certificate" bounding the gap between their soft entropy and true discrete entropy once the network is frozen.
Finally, as an empirical transfer study, they apply DER to key/query embeddings in Vision Transformers, coaxing attention maps into blocky, low-entropy clusters before pruning.
Datasets
No brand-new public benchmarks are introduced, though the authors construct controlled synthetic distributions to probe geometric complexity:
- Geometry: Synthetic 2D/3D/5D point clouds (Synthetic High and Synthetic Parabolic, scaling from $10^4$ up to $10^6$ points) and 2D vector sketches from QuickDraw.
- Vision Transformers & Robustness: CIFAR-100 for primary training/speedup, CIFAR-100-C for corruption robustness, and SVHN for out-of-distribution (OOD) detection (exploratory language modeling is deferred to the appendix).
Key Insights and Ideas
- Geometry matters more than generic clustering: In a clever falsification test on 412 matched point-cloud pairs with identical generic clustering entropy, the clouds with lower halfspace range entropy still ran 1.44× faster in Qhull. Aligning the regularizer with the actual geometry of the algorithm is what unlocks the speedup.
- Differentiating structure, not operations: While tools like NeuralSort relax sorting and Sinkhorn relaxes transport, DER relaxes spatial complexity itself, letting gradients directly optimize a quantity tied to algorithmic work bounds.
- Sparsity only helps GPUs when it's blocky: In ViTs, standard magnitude pruning scatters surviving weights randomly, starving GPU kernels. Because DER pulls embeddings toward shared anchors, pruned attention masks naturally form contiguous blocks (mean length 12.7 vs. 8.1), translating theoretical FLOP reductions into actual wall-clock speed.
Key Results
- 2D Convex Hulls: Including neural preprocessing overhead, Anchor DER achieves a 3.00× end-to-end speedup on Synthetic High (10K points) and 2.90× on QuickDraw, while keeping hull vertex F1 scores between 0.974 and 0.987. At 1 million points, a frozen model still hits 1.41× speedup over raw Qhull (and 1.09× over exact Akl–Toussaint preprocessing) with 0.980 vertex F1.
- Certified Halfspace Mode & Other Geometry: Fully charged Halfspace DER reaches 2.30× speedup on Synthetic High with a certified soft-to-hard entropy gap under 1.36%. Audited 2D Delaunay triangulation reaches 1.31× speedup (0.956 edge F1).
- Vision Transformers (ViT-Small on CIFAR-100): Achieves a 1.47× wall-clock speedup and 64% FLOPs reduction at 75.1% accuracy, while improving corruption error (mCE drops from 55.4 to 48.7) and OOD AUROC (91.3% vs. 88.2%).
Limitations and Future Work
The authors are refreshingly candid about what DER cannot do:
- Approximate, not exact: Because EntropyNet nudges points, the resulting hulls and triangulations are high-fidelity approximations. If your application demands 100% exactness, stick to raw Qhull.
- High upfront amortization cost: Training takes hours. The 2.6-hour geometry training only breaks even after ~2,035 runs on million-point clouds (or ~453K batches for ViT-Small). It’s built for repetitive production pipelines, not one-off scripts.
- Scaling bottlenecks: Halfspace certificates break down in higher dimensions (hitting a useless 22.29% gap in 5D), and the $O(Nkd)$ training cost limits Transformers to ~8K tokens. Furthermore, Transformer speedups are purely empirical—the geometric theorems don't apply there.
Future work points toward linear-time approximations via Locality-Sensitive Hashing (LSH) or hierarchical clustering, extending DER to range-searching and nearest-neighbor algorithms, and building formal theory for learned attention sparsity.
Summary updated