Abstract
RevieWeaver is a scalable framework designed to transform millions of messy customer reviews into concise, feature-rich summaries. By combining zero-shot Large Language Model (LLM) extraction with a novel semantic clustering approach based on the Union-Find algorithm, it produces summaries that match the quality of full-context LLM outputs while significantly reducing computational costs and increasing controllability. The system has been successfully deployed in production, processing over 30 million reviews across 200,000 product categories.
Introduction
In modern e-commerce, popular products often accumulate thousands of reviews, leading to "information overload" for consumers and a "context window" challenge for developers. While LLMs like GPT-4 or Gemini can summarize text, processing millions of tokens for every product is prohibitively expensive and inefficient. Furthermore, raw LLM summaries can suffer from hallucinations, focus on outliers, and lack reproducibility. RevieWeaver addresses these challenges by bridging the gap between raw data and grounded product insights through a decoupled, scalable architecture.
Methodology
The RevieWeaver framework operates in three distinct stages to distill vast amounts of review data into actionable insights.
- Aspect-Sentiment Extraction: A zero-shot LLM (Google Gemini-1.5-flash) extracts (aspect, sentiment, representative quote) triplets from individual reviews. For instance, "The battery lasts all day" becomes
(Battery life, Positive, "The battery lasts all day"). - Review Distillation: To group synonyms (e.g., "battery life" and "power duration"), the system employs a modified Union-Find algorithm combined with semantic similarity. Embeddings are precomputed using
all-MiniLM-L6-v2. If two aspects exceed a cosine similarity threshold, they are merged. This "union-by-rank" approach ensures the most frequent aspect name becomes the cluster representative. - Summarization: Instead of raw text, the LLM receives a "distilled" context consisting of the top 10 positive/negative features and representative quotes. This structured prompt ensures the final summary remains grounded in the consensus sentiment.
Experimental Results
The framework was evaluated using a dataset of 10,103 reviews across 167 products from Best Buy.
Clustering Performance
The modified Union-Find approach was compared against traditional density-based clustering methods like DBSCAN and HDBSCAN. RevieWeaver significantly outperformed these baselines across multiple internal validation metrics.
As shown in the table, RevieWeaver achieved a Silhouette coefficient of 0.59 for top-5 clusters, nearly double that of DBSCAN (0.31). This indicates much higher cluster cohesion and separation, proving the effectiveness of the semantic Union-Find method for natural language grouping.
Summary Quality
Using Gemini-1.5-pro as an evaluator, the authors compared summaries generated from distilled context against those using the full review text. Statistical analysis (Wilcoxon and Mann-Whitney U tests) revealed no significant difference in Coherence, Consistency, Fluency, or Relevance. This confirms that the distillation process preserves all essential information while drastically reducing token usage and cost.
Conclusion
RevieWeaver demonstrates that structured, distilled context is superior to raw context for large-scale review summarization. By decoupling extraction from grouping, the system achieves industrial-grade robustness, as evidenced by its successful deployment across 30 million reviews at Best Buy. Future work includes expanding the framework to support conversational AI interfaces for more interactive product exploration.
Summary updated