The Activity Geometry of Discrete Generative Sampling
Organizations: Harbin Institute of Technology, Shenzhen · R&D Department, Ranplan Wireless Network Design Ltd.
Abstract
Iterative refinement is a key capability of diffusion-based generation and has motivated growing efforts to bring similar behavior to discrete diffusion and flow models. A growing line of work enables such refinement by allowing previously generated tokens to be revised during sampling, thereby shaping the coupling between successive sampling states. Despite its growing role in sampler design, this coupling freedom remains insufficiently characterized. We introduce Activity Geometry to study these finite-step couplings through expected transition cost, which we call activity. We show that activity decomposes into the minimum required by the induced marginal transport and an excess term arising from the coupling. Using this minimum as a reference, we propose Minimal-Activity Finite-Time Coupling (MAFTC) to realize prescribed marginals with minimum activity without retraining or additional model evaluations. In the continuous-time limit, the minimum activity per unit time converges to the minimum expected jump rate compatible with the prescribed path. For metric-induced Gibbs paths, we further show that the activity of the kinetic-optimal flux admits a geometric decomposition. We find that total activity alone can obscure coupling excess: a sampler may approach the minimum activity required by the prescribed marginal transport while still retaining substantial coupling excess. In language generation, as the number of model evaluations increases, refinement-based samplers accumulate additional trajectory activity with limited diversity gains, whereas MAFTC reduces trajectory activity while maintaining comparable generation quality and higher lexical diversity.
Figures & tables
| Input: conditioning input , source , grid , learned token posteriors , conditional probability paths | |
| 1 | Sample . |
|---|---|
| 2 | for do |
| 3 | Obtain for all with one model evaluation. |
| 4 | Independently sample for all ; set . |
| 5 | for in parallel do |
| 6 | Set , , and . |
| FUDOKI (Image) | Duo (Text) | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Euler | TC | MAFTC | Duo+DCD | MAFTC | |||||||||||
| NFE | GenEval | NTC | GenEval | NTC | GenEval | NTC | Gen-PPL | NTC | Dist-4 | Gen-PPL | NTC | Dist-4 | Gen-PPL | NTC | Dist-4 |
| 8 | 0.690 | 2146 | 0.722 | 2277 | 0.712 | 1880 | 59.65 | 2761 | 0.8624 | 59.37 | 2783 | 0.8622 | 60.64 | 1114 | 0.8657 |
| 32 | 0.753 | 2408 | 0.745 | 2450 | 0.744 | 1883 | 34.07 | 4044 | 0.8497 | 33.51 | 4177 | 0.8493 | 33.59 | 1042 | 0.8515 |
| 128 | 0.727 | 2618 | 0.739 | 2649 | 0.737 | 2067 | 29.77 | 5269 | 0.8461 | 27.77 | 5849 | 0.8390 | 28.39 | 1029 | 0.8437 |
| NFE | Sampler | Gen-PPL | ms | Positions/s | TFLOPs |
|---|---|---|---|---|---|
| 64 | Duo+DCD | 31.406 | 314.02 | 3,260.9 | 13.790 |
| 64 | 31.053 | 318.53 | 3,214.8 | 13.840 | |
| 64 | MAFTC | 30.592 | 273.16 | 3,748.8 | 13.335 |
| 128 | Duo+DCD | 29.533 | 554.36 | 1,847.2 | 26.713 |
| 128 | 27.843 | 558.34 | 1,834.0 | 26.800 | |
| 128 | MAFTC | 28.867 | 505.98 | 2,023.8 | 26.216 |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| NFE | Method | |||||
|---|---|---|---|---|---|---|
| 8 | Euler | 2.8126 | 2.2937 | 1.9113 | 0.3824 | 0.11830 |
| 8 | TC | 2.8126 | 3.1372 | 2.5497 | 0.5875 | 0.03775 |
| 8 | MAFTC | 2.8126 | 2.8126 | 2.8126 | 0.0000 | 0.00000 |
| 16 | Euler | 2.9849 | 2.8166 | 2.2531 | 0.5635 | 0.04810 |
| 16 | TC | 2.9849 | 3.4888 | 2.7557 | 0.7331 | 0.01595 |
| 16 | MAFTC | 2.9849 | 2.9849 | 2.9849 | 0.0000 | 0.00000 |
| NFE | Sampler | GenEval | CLIP | ||
|---|---|---|---|---|---|
| 4 | Euler | 0.5106 | 0.3132 | 1486.0 | 910.1 |
| TC | 0.5958 | 0.3245 | 1844.3 | 1268.4 | |
| MAFTC | 0.5872 | 0.3222 | 1671.8 | 1095.9 | |
| 8 | Euler | 0.6903 | 0.3328 | 2146.3 | 1570.5 |
| TC | 0.7221 | 0.3354 | 2276.8 | 1701.0 | |
| MAFTC | 0.7122 | 0.3337 | 1879.6 | 1304.2 |
| NFE | Sampler | Overall | Single obj. | Two obj. | Counting | Colors | Position | Color attr. |
|---|---|---|---|---|---|---|---|---|
| 4 | Euler | 0.5106 | 0.8563 | 0.5404 | 0.3281 | 0.7314 | 0.4425 | 0.1650 |
| TC | 0.5958 | 0.9156 | 0.6364 | 0.3906 | 0.7846 | 0.5500 | 0.2975 | |
| MAFTC | 0.5872 | 0.8750 | 0.6263 | 0.4125 | 0.7846 | 0.5275 | 0.2975 | |
| 8 | Euler | 0.6903 | 0.9406 | 0.7727 | 0.4500 | 0.8537 | 0.6200 | 0.5050 |
| TC | 0.7221 | 0.9438 | 0.8005 | 0.5125 | 0.8883 | 0.6525 | 0.5350 | |
| MAFTC | 0.7122 | 0.9219 | 0.7854 | 0.4719 | 0.9016 | 0.6525 | 0.5400 |
| HPSv3 | MAFTC minus baseline [95% CI] | ||||
|---|---|---|---|---|---|
| NFE | Euler | TC | MAFTC | Euler | TC |
| 4 | -1.214 | 1.998 | 1.268 | ||
| 8 | 4.231 | 5.235 | 4.648 | ||
| 16 | 5.890 | 6.280 | 5.784 | ||
| 32 | 6.358 | 6.372 | 6.195 | ||
| 64 | 6.389 | 6.401 | 6.174 | ||
| NFE | Method | Gen-PPL | ||||||
|---|---|---|---|---|---|---|---|---|
| 2 | Duo+DCD | 924.20 | 6.48 | 5.39 | 0.00963 | 0.3752 | 0.9518 | 0.0018 |
| 922.05 | 6.48 | 5.38 | 0.00963 | 0.3748 | 0.9519 | 0.0017 | ||
| MAFTC | 923.96 | 6.48 | 5.39 | 0.00963 | 0.3751 | 0.9517 | 0.0018 | |
| 4 | Duo+DCD | 156.00 | 6.39 | 5.21 | 0.01613 | 0.2639 | 0.8897 | 0.0051 |
| 155.75 | 6.39 | 5.21 | 0.01606 | 0.2632 | 0.8894 | 0.0052 | ||
| MAFTC | 158.25 | 6.41 | 5.23 | 0.01625 | 0.2674 | 0.8915 | 0.0049 |
| Duo+DCD | MAFTC | |||||
|---|---|---|---|---|---|---|
| NFE | ||||||
| 2 | 1261.5 | 238.3 | 1260.6 | 237.3 | 1260.5 | 237.5 |
| 4 | 2052.6 | 1029.3 | 2056.5 | 1033.2 | 1178.2 | 198.3 |
| 8 | 2761.2 | 1738.0 | 2782.8 | 1759.5 | 1114.3 | 142.8 |
| 16 | 3406.7 | 2383.6 | 3465.6 | 2442.5 | 1067.2 | 96.9 |
| 32 | 4043.8 | 3020.8 | 4177.3 | 3154.3 | 1042.2 | 71.5 |
| (a) Image quality and activity | |||
|---|---|---|---|
| NFE | Reference | GenEval [95% CI] | NTC [95% CI] |
| 8 | Euler | ||
| 8 | TC | ||
| 32 | Euler | ||
| 32 | TC | ||
| 128 | Euler | ||
| NFE | Gen-PPL | Dist-4 | Rep-4 | NTC | |||
|---|---|---|---|---|---|---|---|
| 32 | 0 | 33.591 | 5.3772 | 0.85151 | 0.02272 | 1042.25 | 71.49 |
| 32 | 0.25 | 33.594 | 5.3850 | 0.84928 | 0.02298 | 1793.79 | 801.12 |
| 32 | 0.5 | 33.874 | 5.3889 | 0.84974 | 0.02237 | 2545.93 | 1538.80 |
| 32 | 1 | 34.070 | 5.4015 | 0.84971 | 0.02163 | 4043.76 | 3020.79 |
| 64 | 0 | 29.926 | 5.3196 | 0.84810 | 0.03294 | 1031.82 | 59.38 |
| 64 | 0.25 | 30.525 | 5.3414 | 0.84912 | 0.03067 | 1944.69 | 948.49 |
| NFE | Sampler | Gen-PPL | Dist-4 | Rep-4 | NTC |
|---|---|---|---|---|---|
| 8 | MAFTC | 60.639 | 0.86565 | 0.01081 | 1114.31 |
| 8 | Refresh | 60.396 | 0.86413 | 0.01076 | 1213.51 |
| 8 | Refresh | 59.811 | 0.86298 | 0.01072 | 1311.89 |
| 8 | Refresh | 59.427 | 0.86104 | 0.01112 | 1509.00 |
| 16 | MAFTC | 40.667 | 0.85407 | 0.01710 | 1067.21 |
| 16 | Refresh | 39.784 | 0.85304 | 0.01696 | 1303.33 |
| Sampler | Strength | Gen-PPL | Dist-4 | Rep-4 | NTC |
|---|---|---|---|---|---|
| NFE 8, | |||||
| 59.522 | 0.86240 | 0.01082 | 2767.56 | ||
| 59.375 | 0.86222 | 0.01082 | 2782.76 | ||
| NFE 8, | |||||
| MAFTC | — | 68.279 | 0.88569 | 0.00814 | 1145.84 |
| Fixed refresh | 67.160 | 0.88390 | 0.00799 | 1440.40 | |
| NFE | Sampler | NTC | Query rows | Padded rows | TFLOPs |
|---|---|---|---|---|---|
| 64 | Duo+DCD | 4668.4 | 10338.0 | 11961.7 | 13.793 |
| 64 | 4894.3 | 10693.1 | 12487.1 | 13.841 | |
| 64 | MAFTC | 1031.4 | 5767.6 | 6884.8 | 13.332 |
| 128 | Duo+DCD | 5266.3 | 11635.5 | 14295.9 | 26.711 |
| 128 | 5733.0 | 12459.4 | 15367.5 | 26.809 | |
| 128 | MAFTC | 1030.0 | 6381.8 | 8864.9 | 26.216 |
| (a) Quality, activity, and cost | ||||||||
|---|---|---|---|---|---|---|---|---|
| NFE | Sampler/execution | Gen-PPL | Dist-4 | Rep-4 | NTC | ms | TFLOPs | |
| 64 | Duo+DCD/full | 30.93 | 5.3700 | 0.8981 | 0.0270 | 4670.0 | 346.44 | 18.667 |
| 64 | Duo+DCD/head | 30.97 | 5.3699 | 0.8983 | 0.0268 | 4670.2 | 318.26 | 14.528 |
| 64 | Duo+DCD/tail | 31.41 | 5.3826 | 0.8970 | 0.0281 | 4668.4 | 314.02 | 13.790 |
| 64 | /full | 30.42 | 5.3765 | 0.8967 | 0.0271 | 4895.5 | 350.62 | 18.667 |
| 64 | /head | 30.37 | 5.3745 | 0.8967 | 0.0272 | 4895.9 | 322.72 | 14.570 |