# Grammar Control for Language Learning with Sequential Monte Carlo and Small Language Models

arXiv: https://arxiv.org/abs/2610.39800 · HTML: https://mlsanity.com/paper/2610.39800/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 11 of its 25 references that are in the map.
- Submitted 29 Oct 2026.

## Builds on (most cited first, 11 of 11)

- [Qwen2 Technical Report](https://mlsanity.com/paper/2407.10671/) (2024)
- [FUDGE: Controlled Text Generation With Future Discriminators](https://mlsanity.com/paper/2104.05218/) (2021)
- [A Dataset for Document Grounded Conversations](https://mlsanity.com/paper/1809.07358/) (2018)
- [Topical-Chat: Towards Knowledge-Grounded Open-Domain Conversations](https://mlsanity.com/paper/2308.11995/) (2023)
- [Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programs](https://mlsanity.com/paper/2306.03081/) (2023)
- [Evaluating Large Language Models on Controlled Generation Tasks](https://mlsanity.com/paper/2310.14542/) (2023)
- [Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlo](https://mlsanity.com/paper/2504.13139/) (2025)
- [Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling](https://mlsanity.com/paper/2504.05410/) (2025)
- [Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inference](https://mlsanity.com/paper/2603.07887/) (2026)
- [Syntactic Control of Language Models by Posterior Inference](https://mlsanity.com/paper/2506.07154/) (2025)
- [Grammar Control in Dialogue Response Generation for Language Learning Chatbots](https://mlsanity.com/paper/2502.07544/) (2025)

## Abstract (arXiv)

Second language learners benefit from exposure to level-appropriate grammar in interactive language use. While prompted frontier language models can usually produce target grammar structures, less resource-intensive models that can be run on device often fail in this task. We use sequential Monte Carlo (SMC) to steer dialogue turn generation in small lan- language models toward target grammar constructions from an expert-developed pedagogical resource. With a minimal set of hand-coded potential functions, SMC achieves near-perfect coverage of target grammar, enabling small models to outperform state-of-the-art results from models 140 times larger. We also use code synthesis with frontier models to generate new potentials, showing that our method scales to hundreds of target grammar skills with no need for additional training or supervised data.
