Abstract
MindReader is a query-by-example system designed to learn a user's search criteria from a small set of examples. By employing a generalized ellipsoid distance metric, the system captures complex correlations between attributes, enabling it to solve "diagonal queries" that traditional independent-feature weighting systems cannot.
Introduction
Searching for complex concepts in databases—such as "overweight patients" or "sunset images"—often requires defining relationships between multiple attributes. Traditional systems typically rely on users to manually adjust weights for individual features, such as color or shape. This approach is limited by the user's inability to specify precise weights and the mathematical inability of axis-aligned distance functions to capture correlations. MindReader addresses these limitations by automatically inferring the distance function from user examples.
Methodology
The fundamental shift in MindReader is the move from standard Euclidean distance to a generalized ellipsoid distance.
The Generalized Ellipsoid Distance
The system defines the distance $D$ between a database entry $x$ and an ideal query point $q$ using a quadratic form: $$D(x, q) = (x - q)^T M (x - q)$$ The matrix $M$ determines the shape of the search region. Standard Euclidean distance (where $M$ is the identity matrix) results in circular regions, while weighted Euclidean distance (where $M$ is diagonal) creates axis-aligned ellipses. MindReader utilizes a full symmetric matrix $M$, allowing for rotated ellipses that capture attribute correlations.
Learning from User Feedback
MindReader allows users to provide multi-level feedback. By selecting an example multiple times, a user indicates a higher "importance level" for that specific data point, signaling a stronger preference.
The system then solves a minimization problem to find the optimal $q$ and $M$. The authors prove that the optimal query center $q$ is the weighted average of the examples, and the optimal matrix $M$ is proportional to the inverse of the covariance matrix of those examples. This approach removes the need for ad-hoc heuristics found in earlier information retrieval models.
Experimental Results
The system was evaluated using synthetic Gaussian distributions and real-world geographic data from Montgomery County.
- Convergence Speed: In synthetic tests, MindReader converged to the target "hidden" distance function within 5 iterations, whereas traditional standard-deviation-based methods failed to capture diagonal correlations.
- Query Movement: The algorithm demonstrated a robust ability to "move" the query center toward the user's ideal point in just 3 iterations, even when starting from a distant initial example.
- Real-World Performance: On road segment data, MindReader successfully identified the I-270 interstate highway using only five examples, demonstrating high efficiency in practical scenarios.
Conclusion
MindReader provides a mathematically grounded framework for query-by-example search. By moving beyond independent feature weighting to a generalized ellipsoid distance, it effectively captures the correlations that define complex search criteria. While high-dimensional data presents challenges regarding matrix singularity, the use of the Moore-Penrose pseudo-inverse provides a robust path forward for multi-media and multi-attribute search.
Summary updated