Word storms: multiples of word clouds for visual comparison of documents

Quim Castellà, Charles A. Sutton

TL;DR

This paper introduces "word storms," a novel visualization technique that addresses the limitations of traditional word clouds for comparing multiple documents. By coordinating the placement, color, and orientation of shared words across individual document clouds, word storms enable more effective visual comparison and analysis of document corpora.

What Problem Does This Paper Address?

Word clouds are a popular and visually appealing way to summarize the content of a single document. However, when trying to compare multiple documents using standard word clouds, a significant problem arises: identical words can appear in different locations, colors, and orientations in each cloud. This inconsistency makes it incredibly difficult for users to identify shared themes, similarities, and differences between documents, rendering word clouds ineffective for corpus-level analysis. The authors aim to bridge this gap by creating a visualization that facilitates easy and accurate comparison of multiple documents.

Methods

The core innovation of this paper is the concept of a "word storm," which is a collection of word clouds, where each cloud represents a document (or a group of documents). The key principle is coordinated layout: words that appear in multiple documents within the storm are consistently placed, colored, and oriented across all corresponding clouds.

The authors propose a novel algorithm to achieve this coordination. It builds upon the greedy randomized layout strategy of existing tools like Wordle but incorporates an optimization-based approach. This approach aims to:

  • Coordinate word locations: Shared words are encouraged to appear in the same spatial position across different clouds.
  • Coordinate visual attributes: Shared words are given the same color and orientation.
  • Encode relevance: The transparency of a word's color is used to represent its inverse document frequency (IDF), making more informative words (those appearing in fewer documents) more opaque and noticeable.

Two specific algorithms are detailed:

  1. Iterative Layout Algorithm: This algorithm repeatedly calls a single-cloud layout algorithm (similar to Wordle's spiral algorithm) with updated desired locations for shared words, averaging their positions from previous iterations. While effective, it can lead to sparse layouts with excessive white space.
  2. Gradient Approach (Discrepancy Between Similarities - DBS): This method frames the problem as an optimization task. It minimizes an objective function that balances the similarity between documents and their corresponding clouds ("stress") with a "correspondence function" that ensures each cloud accurately represents its document. This approach allows for more compact and aesthetically pleasing layouts.

A Combined Algorithm is also proposed, leveraging the speed of the iterative method to initialize the more computationally intensive gradient approach, leading to faster convergence and improved results.

Datasets

The authors evaluate their approach using two primary datasets:

  1. ICML 2012 Conference Papers: A storm was generated for papers within a specific conference session to demonstrate its utility in comparing research papers.
  2. EPSRC Grant Abstracts: A corpus of 2358 grant abstracts from the UK's Engineering and Physical Sciences Research Council (EPSRC), categorized into six top-level research programmes, was used for both automatic and user study evaluations. This dataset is particularly useful for evaluating classification accuracy as it provides clear class labels.

Key Insights and Ideas

  • The "Small Multiples" Principle for Documents: The paper effectively applies Tufte's "small multiples" principle to document comparison. By presenting visually similar representations of related items side-by-side, differences become more apparent.
  • Coordination is Key for Comparison: The fundamental insight is that for word clouds to be useful for comparison, the underlying structure and shared elements must be visually consistent across clouds.
  • Beyond Frequency: Transparency for Information Density: Using color transparency to encode IDF is an elegant way to highlight words that are particularly distinctive to a document or a small group of documents within the corpus.
  • Bridging the Gap Between Visualization and Classification: The automatic evaluation method, using document classification accuracy based on pixel data, provides a quantitative measure of how well the visualization captures the underlying document relationships.

Key Results

  • Automatic Evaluation:
    • The coordinated storm algorithms (iterative and combined) achieved a classification accuracy of 54%, significantly outperforming the baseline of independent clouds (which performed no better than random guessing).
  • The combined algorithm matched the compactness of independent clouds (around 33-35%) while achieving high classification accuracy.
  • The iterative algorithm was faster but produced less compact clouds.
  • User Study:
    • For tasks involving selecting clouds with or without specific words, coordinated storms showed slightly higher precision and recall.
  • Crucially, for tasks requiring users to compare documents (identifying the most different cloud or the most similar pair), the accuracy of users presented with coordinated storms was dramatically higher (90% and 70%) compared to those using independent clouds (30% and 10%).
  • Answering times were not significantly different between the two conditions.

Limitations and Future Work

  • Computational Cost: The coordinated algorithms, especially the gradient-based approach, are more computationally expensive than generating independent clouds.
  • Potential for "Gaming" Automatic Evaluation: The authors acknowledge the risk that automatic evaluation metrics could be over-optimized, leading to visualizations that score well but are not genuinely more informative or aesthetically pleasing.
  • Arrangement of Clouds: While the paper uses a grid layout for simplicity, future work could explore more intelligent arrangements where similar clouds are placed closer together to facilitate comparison.
  • More Sophisticated Word Weighting: While tf is used, exploring other weighting schemes like tf-idf for word selection could further enhance the representation of document differences.
  • Hierarchical Storms: The paper demonstrates hierarchical storms, suggesting this as a promising direction for exploring complex document structures.

Summary updated

Abstract

Word clouds are popular for visualizing documents, but are not as useful for comparing documents, because identical words are not presented consistently across different clouds. We introduce the concept of word storms, a visualization tool for analyzing corpora of documents. A word storm is a group of word clouds, in which each cloud represents a single document, juxtaposed to allow the viewer to compare and contrast the documents. We present a novel algorithm that creates a coordinated word storm, in which words that appear in multiple documents are placed in the same location, using the same color and orientation, across clouds. This ensures that similar documents are represented by similar-looking word clouds, making them easier to compare and contrast visually. We evaluate the algorithm using an automatic evaluation based on document classification, and a user study. The results confirm that a coordinated word storm allows for better visual comparison of documents.
BibTeX
@inproceedings{castella2013word,
  author = {Quim Castellà and Charles A. Sutton},
  title = {{Word storms: multiples of word clouds for visual comparison of documents}},
  booktitle = {The Web Conference},
  year = {2013},
  doi = {10.1145/2566486.2567977},
}
Figure