From the source
Nous Research published findings on Sequential Monte Carlo steering, a method for constraining large language model output by exploring many candidate completions in parallel.
- The company says the approach handles both hard constraints, such as requiring output to follow a specific grammar, and soft constraints, such as enforcing a particular writing style.
- It describes SMC steering as a more global approach to constraint satisfaction than token masking, which filters tokens locally at each step, and says it approximates a global Bayesian posterior distribution of the output rather than searching for maximum-probability completions like beam search.
- The method rests on the Feynman-Kac Transformer probabilistic model, based on the Feynman-Kac formula, and the researchers behind SMC built llamppl, a library for stepwise constraints in language decoding using probabilistic programming.
- The post also summarizes experiments using SMC to constrain the length of reasoning traces.


