Structure-Adaptive Tree Field Integrators
Organizations: Columbia University New York, NY 10027, USA
Abstract
We present a new class of near-linear algorithms for efficiently integrating general tensor fields defined on trees with distance dependent kernels, the Structure-Adaptive Tree Field Integrators (STAD-TFIs). STAD-TFIs exploit the tree's underlying structure through decompositions built around path backbones and single vertex separators, and use two-dimensional fast Fourier transforms to compute interactions jointly. By exploiting this structural information, STAD-TFIs achieve more computationally efficient integration than their regular efficient tree field integrators (TFI) counterparts. We provide a detailed theoretical analysis of our proposed approach and complement it with an exhaustive empirical evaluation, ranging from speed tests on synthetic trees, through accelerated Sinkhorn-based relaxations of the Optimal Transport algorithms on real meshes, to Topological Attention Transformers for vision tasks. To the best of our knowledge, we provide some of the first results showing that efficient to compute and accurate relaxations of the geodesic Sinkhorn-based solutions of the Optimal Transport problem can be derived by applying fast TFI methods.
Figures & tables
| Tree Approximation | Rel. OT Error | Plan TV | Kernel Error |
|---|---|---|---|
| Minimum Spanning Tree (MST) | |||
| Random Shortest-Path Tree (Random SPT) | |||
| Diameter/Backbone Spanning Tree | |||
| Alon et al. (1995) (AKPW) Tree | |||
| Abraham and Neiman (2012) Tree |
| CIFAR-100 | Tiny-ImageNet | ||
|---|---|---|---|
| Configuration | |||
| Linear, unmasked | |||
| Softmax, unmasked | |||
| Linear, masked (random) | |||
| Linear, masked (serpentine) | |||
| Method (tree) | |||||
|---|---|---|---|---|---|
| Dense ( ) | 0.15 | 2.24 | 36.07 | — | — |
| FTFI (random) | 1.10 | 4.93 | 25.20 | 99.99 | 424.97 |
| StAd-TFI (serpentine) | 0.39 | 1.76 | 8.02 | 37.82 | 165.67 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Family | Construction and vertex count | Tested parameters |
|---|---|---|
| Path | One chain, vertices. | . |
| Balanced binary | Complete binary tree; . | . |
| Complete 3-ary | Complete ternary tree; . | . |
| Caterpillar | Three leaves per spine vertex, . | . |
| Caterpillar + hanging paths | One -edge path at every spine vertex, . | . |
| Comb | Two leaves per spine vertex, . | . |
| Family | BF | FTFI | D1 | D2 | A2 | |
|---|---|---|---|---|---|---|
| Path | 800 | 250.93 | 59.31 | 1.19 | 1.15 | 2.09 |
| Balanced binary | 1023 | 399.17 | 64.10 | 49.46 | 23.80 | 56.63 |
| Complete 3-ary | 1093 | 458.63 | 56.36 | 63.56 | 29.72 | 61.63 |
| Caterpillar | 1600 | 1,004.16 | 84.25 | 35.77 | 35.43 | 38.02 |
| Caterpillar + paths | 1056 | 435.47 | 64.77 | 62.78 | 6.68 | 16.67 |
| Comb | 1200 | 577.43 | 67.53 | 24.20 | 24.11 | 25.74 |
| StAd-TFI variant ( ) | Baseline ( ) | Meshes | Single | Per iteration | Sinkhorn | With setup |
|---|---|---|---|---|---|---|
| SpclK-Diameter | FTFI ( SpclK-Centroid ) | 28 | ||||
| SpclK-Adaptive | 28 | |||||
| Adaptive-2D-FFT | FTFI ( 1D-FFT ) | 28 | ||||
| SpclK-Diameter | FTFI ( SpclK-LinearExactDP ) | 28 | ||||
| SpclK-Adaptive | 28 |
| Metric | Mean std. | Median | Maximum |
|---|---|---|---|
| Kernel error | |||
| Relative OT error | |||
| Plan variation |
| tree | family | avg. edge stretch | top-1 (%) | vs. unmasked |
|---|---|---|---|---|
| unmasked | — | — | 49.79 | — |
| fishbone | caterpillar | 4.50 | 55.95 | |
| comb | caterpillar | 7.50 | 54.86 | |
| random | Kruskal | 5.35 | 54.80 | |
| serpentine | path | 7.50 | 52.82 | |
| Hilbert | path | 8.81 | 51.74 |
| tree | avg. edge stretch ( ) | top-1 (%) | vs. softmax |
| random | 7.21 | 58.02 | |
| serpentine | 16.50 | 57.84 | |
| fishbone | 9.00 | 56.38 | |
| rec. bisection | 6.99 | n.c. | — |
| StAd-TFI , serpentine (path, ) | 8.89 | 41.80 | 96.71 | 196.49 |
|---|---|---|---|---|
| StAd-TFI , fishbone ( ) | 13.41 | 103.19 | 492.82 | 813.26 |
| StAd-TFI , comb ( ) | 30.70 | 264.71 | 786.96 | 2593.84 |
| StAd-TFI , random | 27.63 | 133.01 | 397.78 | 1618.01 |
| FTFI , serpentine | 240.31 | 1099.08 | ||
| FTFI , fishbone | 34.69 | 225.81 |
| Tree | ||||
|---|---|---|---|---|
| Random | 616 | 100.0 | 121.4 | |
| Comb | 255 | 379.3 | 231.1 | |
| Fishbone | 128 | 217.1 | 91.4 | |
| Serpentine | 0 | 964.1 | 37.8 |
| path construction | stretch ( ) | stretch ( ) |
|---|---|---|
| row-snake (serpentine) | 7.50 | 16.50 |
| column-snake | 7.50 | 16.50 |
| Hilbert | 8.81 | 19.62 |
| diagonal-snake | 9.50 | 21.50 |
| spiral | 16.64 | 40.56 |