Decoding is reformulated as solving an optimisation problem on the probability simplex: maximise expected model score subject to regularisers and support constraints. Greedy, temperature, Top-K, Top-P and sparsemax-like decoding appear as special cases of this template. CompoSimplex is introduced as a library with support rules, regulariser primitives and simplex solvers for composing decoders.
Compositions are built by taking weighted sums of regularisers, so preferences such as staying close to the model distribution and maintaining entropy are optimised jointly in one step, without external rewards or parameter updates. A new Best-of-K decoder combines KL regularisation with local token coverage. Experiments across four models and benchmarks show that compositions can achieve quality-diversity trade-offs that individual decoding objectives do not attain, while retaining complementary strengths of the component primitives.