TL;DR
This paper tackles the challenge of predicting not just single words, but entire multi-word phrases as a user types, aiming to significantly reduce keystrokes in text input. They introduce a novel "FussyTree" data structure and a "significance" metric to handle the combinatorial explosion of phrases and the ambiguity of phrase boundaries, demonstrating substantial keystroke savings in email composition.
What Problem Does This Paper Address?
Autocompletion systems are ubiquitous, offering suggestions to speed up user input. However, most existing systems are limited to single-word predictions. This paper argues that natural language users frequently employ multi-word phrases, and capturing these phrases offers a much greater potential for saving user time and cognitive effort. The core challenges are: 1) the sheer number of possible phrases is combinatorially larger than words, and 2) unlike words, phrases lack clear boundaries, making it difficult to determine how much to predict. The authors aim to build a system that can predict multi-word phrases effectively and efficiently, even within the strict latency requirements of interactive text input.
Methods
The authors propose two key innovations:
- FussyTree: A novel data structure, a variant of a suffix tree, where nodes represent words and paths represent phrases. This structure is designed to handle the large vocabulary of words and the combinatorial growth of phrases. It's built using a "pruned count suffix tree" approach to manage memory and construction time.
- Significance Metric: To address the ambiguity of phrase boundaries and identify truly useful phrases, they define a "significant phrase" based on four criteria: frequency, co-occurrence (providing information beyond independent word probabilities), comparability (likelihood of occurrence compared to its prefix), and uniqueness (likelihood of occurrence compared to longer extensions). This metric helps filter out less useful phrases.
They also introduce a probabilistic model for multiple completion choices and a "Total Profit Metric" (TPM) to evaluate suggestions, considering both the value of correct suggestions and the cost of distractions from incorrect ones.
Datasets
The paper uses three datasets for evaluation:
- A subset of emails from the Enron corpus (single person, 366 emails).
- A larger collection of emails from multiple Enron employees (20,842 emails).
- A random subset of the Wikipedia corpus (40,000 documents).
These datasets represent varying degrees of size and language heterogeneity, from focused personal emails to more diverse encyclopedic content.
Key Insights and Ideas
- Phrases are Key: The paper strongly advocates that focusing on multi-word phrase prediction, rather than just single words, offers a significantly larger opportunity for user interaction efficiency.
- Significance is Crucial: Defining "significance" for phrases is essential to manage the vast number of possibilities and identify those that are genuinely useful and not just statistically common but uninformative.
- Context Matters: The authors explore using context (previous words) and part-of-speech tags to rerank suggestions, showing that while semantics alone didn't yield significant improvements, POS tags offered some benefit.
- TPM as a Better Metric: The proposed Total Profit Metric (TPM) provides a more holistic evaluation than traditional precision/recall by incorporating the cost of user distraction, offering a more realistic measure of autocompletion effectiveness.
Key Results
- Keystroke Savings: The proposed FussyTree approach demonstrated significant keystroke savings, reducing typed characters by approximately 20% in email composition scenarios.
- Efficiency: The FussyTree construction algorithm scales much better than traditional suffix tree approaches, with construction times significantly lower for larger datasets.
- Tree Size Reduction: The "Significance Fussy Tree" achieved substantial reductions in tree size compared to basic pruned count suffix trees, while maintaining comparable prediction quality.
- Response Time: Query response times were well within the 100ms "instantaneous" limit required for interactive systems.
- Online Significance Marking: A heuristic for online significance marking was found to be highly accurate, achieving near-perfect precision and recall with shorter tree construction times.
Limitations and Future Work
- Parameter Tuning: The effectiveness of the system relies on tuning parameters like the frequency threshold, comparability factor (z), uniqueness factor (y), training sentence size (N), and prefix length. While they experimentally derived optimal values for some, these might vary across different domains.
- Semantic Reranking: While explored, semantic reranking using WordNet synsets did not yield significant improvements and incurred substantial computational costs. The authors suggest that co-occurrence frequencies might already capture much of this semantic information.
- Future Work: The authors suggest extending the approach to other domains like genomics (for variable-length strings) and inferring XML schemas. They also highlight the potential of a one-pass algorithm for stream-like data and trend detection. Further research into characterizing the positive effects of POS reranking and exploring more sophisticated context-aware reranking mechanisms is also suggested.
Summary updated