Introduction
In the field of conversational AI, neural models frequently suffer from the "safe response" problem. When prompted, standard encoder-decoder models often default to high-frequency, generic phrases like "I don't know" or "Me too." This occurs because these models are typically trained to maximize the probability of a single ground-truth response, failing to capture the inherent "one-to-many" nature of human conversation. To address this, researchers from the Chinese Academy of Sciences and Tencent proposed the Elastic Responding Machine (ERM), a framework designed to generate diverse and contextually relevant responses by dynamically selecting latent speaking styles.
The Elastic Responding Machine (ERM)
The core innovation of the ERM is the concept of "elasticity." While previous models like the Multi-Mechanism Responding Machine (MARM) used a fixed number of latent "mechanisms" to represent different styles, the ERM recognizes that different inputs require different levels of diversity. A simple greeting might only warrant a few valid response styles, whereas a complex, open-ended question might trigger dozens. The ERM dynamically determines both the number and the specific types of mechanisms appropriate for a given input.
The ERM Architecture
The ERM operates through a four-stage pipeline: Encoder-Diverter-Filter-Decoder.
- Encoder: Processes the input post into a dense context vector $c$.
- Diverter: Acts as a softmax classifier to estimate the probability $p(m|x)$ for a large set of latent mechanisms (styles).
- Filter: This is the critical component. Instead of selecting a fixed number of mechanisms, the Filter sequentially scans the mechanisms and uses a policy trained via Reinforcement Learning (REINFORCE) to decide when to stop. This allows the model to be "elastic," picking enough mechanisms to ensure diversity while filtering out irrelevant or redundant ones.
- Decoder: For each selected mechanism, the decoder combines the original context with a specific "mechanism embedding" to generate a unique response.
Experimental Evaluation
The model was evaluated using a large-scale dataset from Tencent Weibo, comprising over 815,000 post-response pairs. The researchers focused on two primary dimensions: response quality (acceptability) and diversity. Qualitative analysis revealed that the latent mechanisms successfully learned distinct "personalities." For example, certain mechanisms specialized in inquisitive, question-based responses, while others produced strong-toned, declarative statements.
Performance Evaluation
The ERM was compared against several baselines, including standard Seq2Seq models and the previous MARM framework. The results demonstrated that the ERM's dynamic selection process significantly improves performance across all key metrics.
As shown in the figures above, the ERM-25 configuration achieved a 71.60% "Acceptable" ratio in human evaluations, a substantial improvement over the 64.60% achieved by the best MARM configuration. Furthermore, the model showed a 7.41% increase in Diversity-F1 scores. By explicitly filtering out low-probability mechanisms, the ERM avoids the computational waste of generating irrelevant responses and ensures a cleaner training signal, leading to responses that are both diverse in meaning and high in quality.
Conclusion
The Elastic Responding Machine represents a significant step forward in making chatbots more human-like. By treating mechanism selection as a sequential decision task, the ERM effectively manages the trade-off between diversity and relevance. This "elastic" approach holds promise for other one-to-many tasks, such as image captioning and multi-turn dialog systems, where maintaining a consistent yet varied style is essential.
Summary updated