Interpretability of the Intent Detection Problem: A New Approach
Eduardo Sanchez-Karhunen, Jose F. Quesada-Moreno, Miguel A. Gutiérrez-Naranjo
TL;DR
The paper investigates the interpretability of RNN-based intent detection through a dynamical-systems lens, treating sentences as trajectories in hidden state space. It shows that on the balanced SNIPS dataset the network forms a low-dimensional manifold with distinct intent clusters and trajectories that move toward region-specific endpoints aligned with readout vectors; when tested on the imbalanced ATIS dataset, the geometry distorts for low-frequency intents. A two-part diagnostic framework (Geometric Separation and Readout Alignment) identifies four mechanistic patterns of success and failure, linking performance to state-space geometry and readout alignment. The findings offer mechanistic, geometric explanations for real-world performance disparities and suggest extensions to out-of-domain detection and transformer architectures, with practical impact on interpretability and robustness in conversational AI.
Abstract
Intent detection, a fundamental text classification task, aims to identify and label the semantics of user queries, playing a vital role in numerous business applications. Despite the dominance of deep learning techniques in this field, the internal mechanisms enabling Recurrent Neural Networks (RNNs) to solve intent detection tasks are poorly understood. In this work, we apply dynamical systems theory to analyze how RNN architectures address this problem, using both the balanced SNIPS and the imbalanced ATIS datasets. By interpreting sentences as trajectories in the hidden state space, we first show that on the balanced SNIPS dataset, the network learns an ideal solution: the state space, constrained to a low-dimensional manifold, is partitioned into distinct clusters corresponding to each intent. The application of this framework to the imbalanced ATIS dataset then reveals how this ideal geometric solution is distorted by class imbalance, causing the clusters for low-frequency intents to degrade. Our framework decouples geometric separation from readout alignment, providing a novel, mechanistic explanation for real world performance disparities. These findings provide new insights into RNN dynamics, offering a geometric interpretation of how dataset properties directly shape a network's computational solution.
