Abstract
Along with the development of systems for natural language understanding and generation, dialog systems have been widely adopted for language learning and practicing. Many current educational dialog systems perform chitchat, where the generated content and vocabulary are not constrained. However, for learners in a school setting, practice through dialog is more effective if it aligns with students' curriculum and focuses on textbook vocabulary. Therefore, we adapt lexically constrained decoding to a dialog system, which urges the dialog system to include curriculum-aligned words and phrases in its generated utterances. We adopt a generative dialog system, BlenderBot3, as our backbone model and evaluate our curriculum-based dialog system with middle school students learning English as their second language. The constrained words and phrases are derived from their textbooks, suggested by their English teachers. The evaluation result demonstrates that the dialog system with curriculum infusion improves students' understanding of target words and increases their interest in practicing English.
Introduction
While large language models (LLMs) are excellent at open-domain "chitchat," they often lack the structured pedagogical goals necessary for effective language instruction. For a student learning English as a second language (ESL), a random conversation about pop culture might be engaging but may fail to help them master specific vocabulary—such as "seasons" or "prepositions"—required for their academic curriculum.
The technical challenge lies in forcing a generative model to use specific "constraint" words without making the conversation feel robotic or breaking the natural flow of the dialogue. Traditional constrained decoding is typically designed for single-turn tasks like machine translation. In a multi-turn chatbot, simply jamming required words into a single sentence would feel forced and counterproductive to learning natural communication.
Methodology
To address this, we propose a Multi-Turns Grid Beam Search to adapt constrained decoding for conversational settings. This approach ensures that the chatbot naturally incorporates textbook vocabulary over the course of a dialogue.
Lexically Constrained Decoding
Instead of tracking every possible combination of constraint words, which is computationally expensive, the system maintains two distinct "beams": one for unsatisfied candidates (standard chat) and one for candidates that include exactly one constraint word. This simplified beam box allows the model to efficiently explore paths that lead to the inclusion of target vocabulary.
Dynamic Constraint Threshold
A key innovation is the Dynamic Constraint Threshold ($T$). At the beginning of a conversation, the bot prioritizes naturalness. As the dialogue progresses, a threshold based on a sigmoid function ($T = T_0 \cdot 2\sigma(a \cdot t)$) makes it increasingly "cheaper" for the model to select a response containing a target word. This ensures the bot eventually uses the curriculum words before the session ends. Once a target word is used, it is removed from the dynamic constraint list to prevent unnatural repetition. We utilized BlenderBot3-3B as our backbone model, fine-tuned for conversational AI.
Evaluation and Results
The system was tested by 155 8th-grade Chinese students using the EduBot platform. Target words and phrases (e.g., Seasons, Months, Days) were extracted from standard 8th-grade textbooks in collaboration with English teachers. The experimental flow included a pre-test, the conversation session, grammar correction, a post-test, and a survey.
Learning Gains and Curriculum Infusion
The results were promising:
- Learning Gains: 14.61% of questions that students answered incorrectly in the pre-test were answered correctly in the post-test after just one conversation.
- Curriculum Infusion: The system successfully used at least one target word in 90.32% of all conversations. For the "Improved" group—students who showed learning gains—the system achieved a 100% usage rate for target words.
- Student Sentiment: Students rated the bot's usefulness for practicing target words at 4.44/5 and their interest in the interaction at 4.36/5.
Discussion: Key Insights
One of the most significant findings was lexical entrainment: when the system used a constraint word, the user was significantly more likely to use it in their subsequent response. By forcing the bot to use the curriculum, we effectively "prime" the student to practice the same vocabulary.
Furthermore, the dynamic threshold successfully balanced naturalness with pedagogy. By allowing the bot to wait for a "suitable" moment in early turns, the conversation felt more organic. However, a "confidence gap" was observed: while students who improved acknowledged the bot's utility, they reported lower confidence than those who were already proficient, suggesting that while the bot helps learning, it does not immediately eliminate the anxiety associated with language production.
Conclusion and Future Work
While effective, constrained decoding introduces computational overhead compared to standard beam search. Future work will focus on optimizing latency for large-scale deployment. Additionally, we aim to expand the system to handle more abstract grammatical constraints and evaluate long-term memory retention beyond immediate post-test results. This research demonstrates that infusing open-domain chatbots with structured curricula can transform them into powerful, adaptive tools for language education.
Summary updated