Leveraging Weighted Syntactic and Semantic Context Assessment Summary (wSSAS) Towards Text Categorization Using LLMs
Organizations: Tellagence Inc. · Villanova School of Business, Villanova University
Abstract
The use of Large Language Models (LLMs) for reliable, enterprise-grade analytics such as text categorization is often hindered by the stochastic nature of attention mechanisms and sensitivity to noise that compromise their analytical precision and reproducibility. To address these technical frictions, this paper introduces the Weighted Syntactic and Semantic Context Assessment Summary (wSSAS), a deterministic framework designed to enforce data integrity on large-scale, chaotic datasets. We propose a two-phased validation framework that first organizes raw text into a hierarchical classification structure containing Themes, Stories, and Clusters. It then leverages a Signal-to-Noise Ratio (SNR) to prioritize high-value semantic features, ensuring the model's attention remains focused on the most representative data points. By incorporating this scoring mechanism into a Summary-of-Summaries (SoS) architecture, the framework effectively isolates essential information and mitigates background noise during data aggregation. Experimental results using Gemini 2.0 Flash Lite across diverse datasets - including Google Business reviews, Amazon Product reviews, and Goodreads Book reviews - demonstrate that wSSAS significantly improves clustering integrity and categorization accuracy. Our findings indicate that wSSAS reduces categorization entropy and provides a reproducible pathway for improving LLM based summaries based on a high-precision, deterministic process for large-scale text categorization.
Figures & tables
| Syntactic Alignment | Semantic Alignment |
| Defines structural rules governing how words combine into grammatical sentences. Acts as a mechanism for models to understand the structural hierarchy of data. | Delves into the meaning of words and sentences. Explores how syntactic structures map onto semantic roles to extract the “who, what, when, where, and why” of data. |
| Examples: | Examples: |
| Coarse-to-Fine Retrieval, Spatial Reasoning Improvements [ 34 ] , Efficient Tuning for Document Visual QA [ 17 ] | Word Embeddings [ 28 ] , Named Entity Recognition (NER) [ 37 ] , Topic Modeling [ 14 , 44 ] |
| Metric | Description | Interpretation | Goal |
| Silhouette Score [ 36 ] | Measures cohesion vs. separation for each sample. | Range: +1: Well-separated 0: Overlapping -1: Misassigned | Maximize |
| Davies-Bouldin Index [ 8 ] | Calculates average similarity between clusters. | Lower score indicates better separation and compactness. 0 is the minimum. | Minimize |
| Calinski-Harabasz Index [ 4 ] | Ratio of between-cluster dispersion to within-cluster dispersion. | Higher score indicates dense and well-separated clusters. | Maximize |
| Dataset | # Reviews | Date Range | Quarters | Primary Entity | Strategic Intent |
| Amazon Product | 01/01/2020 – 05/23/2023 | 14 | Stores | Product-related | |
| Google Business | 03/01/2009 – 08/25/2021 | 45 | Book Titles | Restaurant-related | |
| Goodreads Book | 12/07/2006 – 11/03/2017 | 51 | Restaurants | Literary, subjective |
| Story ID: 76 | |
| Weighted Context Summary (wSSAS) | Unweighted Context Summary (SSAS) |
| An Unremarkable Assessment | A Mediocre Experience |
| The text consistently uses "average" and its variations to describe a subject, emphasizing its lack of distinction. It expresses a desire for everything to be average, longing for the ordinary. Data indicates a slightly below-average performance for medical doctors, prompting further investigation. A negative assessment, described as "average at best," suggests disappointment. A negative dining experience is detailed, with tasteless, overcooked food and unsatisfactory service, leading to a recommendation for alternative dining options | The text describes a consistently average, and often disappointing, experience. Medical doctors’ performance is assessed as slightly below average, prompting a desire for everything to be average. A negative dining experience is detailed, with tasteless, overcooked tortellini and inadequate service. The reviewer expresses dissatisfaction with the food quality and service, highlighting the unremarkable nature of the subject being evaluated and suggesting alternatives for better experiences. The overall sentiment conveys a lack of enthusiasm and a longing for the ordinary. |
| Quantitative Evaluation: | Quantitative Evaluation: |
| • QAG Pre-Triage: 1/4 • QAG Post-Triage: 2/4 • G-Eval Scores: – Coherence: 0.8 – Relevance: 1.0 – Fluency: 0.9 – Consistency: 0.5 | • QAG Pre-Triage: 3/4 • QAG Post-Triage: 2/4 • G-Eval Scores: – Coherence: 0.4 – Relevance: 0.5 – Fluency: 1.0 – Consistency: 0.5 |
| Dataset | Stories (%) | Themes (%) |
| Google Business Reviews | % | % |
| Amazon Product Reviews | % | % |
| Goodreads Book Reviews | % | % |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Scenario | Dataset | Output | Design Rationale |
| Base (Themes, Stories, Clusters) | Amazon | Divided into Themes; for each theme, we report on # Stories, # Clusters, and # Datapoints | Allows comparison of three industry-standard datasets (ALL, w/o Irrelevant, w/o Outliers) with varying context summaries |
| Goodreads | |||
| No context (Baseline) | Amazon | # Datapoints per category | Categorization using direct LLM input with no context |
| Goodreads |
| All Data | W/o Irrelevant Data | W/o Irrelevant & Outlier Data | |||||||||
| Th. | #St. | #Cl. | #DP | Th. | #St. | #Cl. | #DP | Th. | #St. | #Cl. | #DP |
| -1 | 1 | 147 | 273 | ||||||||
| 0 | 11 | 0 | 10 | 0 | 10 | 190 | |||||
| 1 | 10 | 1 | 9 | 1 | 5 | 40 | |||||
| 2 | 10 | 919 | 2 | 9 | 919 | 2 | 7 | 27 | |||
| 3 | 10 | 564 | 3 | 9 | 564 | 3 | 6 | 9 | |||
| All Data | W/o Irrelevant Data | W/o Irrelevant & Outlier Data | |||||||||
| Th. | #St. | #Cl. | #DP | Th. | #St. | #Cl. | #DP | Th. | #St. | #Cl. | #DP |
| -1 | 1 | 344 | 637 | ||||||||
| 0 | 11 | 0 | 10 | 0 | 10 | 649 | |||||
| 1 | 10 | 1 | 9 | 1 | 9 | 404 | |||||
| 2 | 10 | 2 | 9 | 2 | 9 | 243 | |||||
| 3 | 10 | 3 | 9 | 3 | 9 | 195 | |||||
| All Data | W/o Irrelevant Data | W/o Irrelevant & Outlier Data | |||||||||
| Th. | #St. | #Cl. | #DP | Th. | #St. | #Cl. | #DP | Th. | #St. | #Cl. | #DP |
| -1 | 1 | ||||||||||
| 0 | 11 | 0 | 10 | 0 | 10 | ||||||
| 1 | 10 | 1 | 9 | 1 | 6 | 78 | |||||
| 2 | 3 | 218 | 605 | 2 | 3 | 218 | 605 | 2 | 3 | 14 | 272 |
| 3 | 10 | 3 | 9 | 3 | 9 | 117 | |||||
| Story ID: 85 | |
| Weighted Context Summary (wSSAS) | Unweighted Context Summary (SSAS) |
| Mixed Restaurant Experiences | Mixed Restaurant Experience |
| The data presents a range of restaurant experiences. Some reviews are overwhelmingly positive, praising food quality and service, with one customer declaring a restaurant their new favorite. Conversely, other reviews highlight negative experiences, including cold service, incorrect orders, and long wait times. One review focuses on the speed and efficiency of a drive-thru. Other reviews express contentment despite a lack of exceptional quality, while another highlights the recurring problem of incomplete orders. One review describes an uncomfortable situation due to a coworker argument. The text also mentions a positive first visit and emphasizes the importance of consistently leaving situations feeling satisfied. Finally, the text describes an environment that is "ridiculously cold" and a persistent state of dissatisfaction. | The text presents a mixed restaurant experience, highlighting both positive and negative aspects. The food, particularly caramel rolls, receives high praise, described as "amazing" and the "best in the world." However, the text also details issues with service, including a cold and inattentive waitress, incorrect orders, and long wait times. The data indicates a recurring problem with incomplete orders, suggesting operational inefficiencies. Despite the food’s quality, the inconsistent service and wait times detract from the overall dining experience, creating a trade-off between food quality and service efficiency. |
| Quantitative Evaluation: | Quantitative Evaluation: |
| • QAG Pre-Triage: 1/5 • QAG Post-Triage: 2/5 • G-Eval Scores: Coherence: 0.7 Relevance: 1.0 Fluency: 1.0 Consistency: 0.5 | • QAG Pre-Triage: 3/5 • QAG Post-Triage: 2/5 • G-Eval Scores: Coherence: 0.8 Relevance: 0.8 Fluency: 0.9 Consistency: 0.5 |
| Story ID: 39 | |
| Weighted Context Summary (wSSAS) | Unweighted Context Summary (SSAS) |
| Product Review Summaries | Pain Relief Experiences: A Diverse Overview |
| The text presents a collection of product reviews, primarily focusing on pain relief. Many reviews are overwhelmingly positive, highlighting effective relief from various conditions like hand pain, arthritis, and back pain, with some users experiencing almost immediate results. Products mentioned include pain relief patches, neck traction devices, and topical applications. Conversely, some reviews report negative experiences, citing ineffectiveness, functional issues, and a lack of relief. The reviews also touch on the ease of use, convenience, and value of the products, with some users expressing a desire to repurchase. | The data presents a wide array of experiences with pain relief products and methods. Positive outcomes are reported for IcyHot, neck traction devices, arthritis treatments, horse massages, red light belts, pain relief patches, and various sprays and creams, with many users experiencing significant and lasting relief. Conversely, negative experiences are documented with ineffective products for finger pain, runner’s toe, neck issues, and back pain, along with issues like premature shoe failure and incorrect orders. Some products offer temporary relief, while others provide more sustained benefits. The effectiveness of each method varies, highlighting the diverse nature of pain management and the importance of finding the right solution. |
| Quantitative Evaluation: | Quantitative Evaluation: |
| • QAG Pre-Triage: 2 / 5 • QAG Post-Triage: 3 / 5 • G-Eval Scores: Coherence: 0.8 Relevance: 1.0 Fluency: 0.9 Consistency: 0.5 | • QAG Pre-Triage: 3 / 5 • QAG Post-Triage: 3 / 5 • G-Eval Scores: Coherence: 0.1 Relevance: 1.0 Fluency: 1.0 Consistency: 0.5 |
| Story ID: 47 | |
| Weighted Context Summary (wSSAS) | Unweighted Context Summary (SSAS) |
| Shoe Horn Reviews: A Mixed Bag | Shoe Horn Reviews: Functionality and Design |
| The text presents a collection of reviews for shoe horns, revealing a wide range of experiences. Many users praise the telescoping shoe horns for their ease of use, especially for those with mobility issues, highlighting their sturdiness, adjustability, and travel-friendly design. However, other reviews detail significant design flaws, including flimsy construction, ineffective locking mechanisms, and handles that detach. Some users found the shoe horns helpful after surgery or for everyday use, while others considered them a waste of money due to their poor functionality. | The text compiles numerous reviews of shoe horns, highlighting both positive and negative experiences. Many users praise telescoping shoe horns for their sturdiness, ease of use, and ability to assist individuals with mobility issues, particularly those with back problems, arthritis, or recovering from surgery. These reviews often emphasize the product’s adjustability and portability. Conversely, several reviews criticize shoe horns for design flaws, such as flimsy materials, unstable handles, and ineffective spring mechanisms, rendering them difficult or impossible to use. Some users also report issues with durability, with parts breaking shortly after purchase. |
| Quantitative Evaluation: | Quantitative Evaluation: |
| • QAG Pre-Triage: 1 / 5 • QAG Post-Triage: 4 / 5 • G-Eval Scores: Coherence: 0.9 Relevance: 1.0 Fluency: 1.0 Consistency: 0.5 | • QAG Pre-Triage: 2 / 5 • QAG Post-Triage: 4 / 5 • G-Eval Scores: Coherence: 0.8 Relevance: 1.0 Fluency: 0.9 Consistency: 0.5 |
| Story ID: 31 | |
| Weighted Context Summary (wSSAS) | Unweighted Context Summary (SSAS) |
| Book Review Roundup | Book Review Roundup |
| The text summarizes a collection of book reviews, revealing diverse reader experiences. Some reviewers praised engaging plots, well-developed characters, and unexpected twists, while others expressed disappointment with pacing, predictability, or unmet expectations. Reviews covered various genres, with some readers eager for sequels and others expressing mixed feelings, highlighting the subjective nature of reading. | The text summarizes a collection of book reviews, encompassing diverse genres and reader experiences. Reviews range from enthusiastic praise, highlighting engaging plots, well-developed characters, and unexpected twists, to critical assessments, citing predictable storylines, underdeveloped characters, and unmet expectations. The reviews reflect the subjective nature of reading, with some readers finding books deeply moving and others disappointed by various aspects of the narratives. The text also includes reviews of specific books, such as a negative review of a book about the Zodiac Killer, a positive review of a book about a family with secrets, and a mixed review of a book about a romance. |
| Quantitative Evaluation: | Quantitative Evaluation: |
| • QAG Pre-Triage: 1 / 5 • QAG Post-Triage: 3 / 5 • G-Eval Scores: Coherence: 1.0 Relevance: 1.0 Fluency: 1.0 Consistency: 0.5 | • QAG Pre-Triage: 2 / 5 • QAG Post-Triage: 2 / 5 • G-Eval Scores: Coherence: 1.0 Relevance: 0.5 Fluency: 1.0 Consistency: 0.5 |
| Theme ID: 10 | |
| Weighted Context Summary(wSSAS) | Unweighted Context Summary (SSAS) |
| Diverse Reader Experiences in Book Reviews | Diverse Reader Reactions to Books |
| The text summarizes a collection of book reviews, revealing a wide spectrum of reader opinions. Some reviews express strong enjoyment, praising engaging plots, relatable characters, and unique settings, while others express disappointment, citing uninteresting characters, predictable plots, and writing styles that failed to resonate. The reviews highlight the subjective nature of reading, with readers responding differently to similar elements like romance, world-building, and character dynamics, reflecting varied preferences and critiques across different genres. | The text summarizes a collection of book reviews, revealing a wide spectrum of reader opinions. Some reviews express strong positive sentiments, praising engaging plots, well-developed characters, and unique premises, while others criticize pacing, character development, and unsatisfying endings. The reviews highlight the subjective nature of reading, with some readers finding books captivating and others disappointed by various elements. Overall, the data reflects a range of opinions across different genres, indicating varied reader preferences and levels of satisfaction. |
| Quantitative Evaluation: | Quantitative Evaluation: |
| • QAG Pre-Triage: 3 / 5 • QAG Post-Triage: 5 / 5 • G-Eval Scores: Coherence: 0.8 Relevance: 1.0 Fluency: 1.0 Consistency: 0.5 | • QAG Pre-Triage: 5 / 5 • QAG Post-Triage: 5 / 5 • G-Eval Scores: Coherence: 0.8 Relevance: 0.8 Fluency: 0.8 Consistency: 0.5 |
| Scenario | Category-Cluster Titles | All Data | W/o Irrelevant | W/o Irrelevant & Outliers |
| No context (Baseline) | Customer Service and Food Quality Complaints | 17,189 | 16,566 | 13,302 |
| Restaurant Customer Satisfaction and Positive Feedback | 31,818 | 31,116 | 27,991 | |
| Restaurant Experience and Service Quality | 24,392 | 23,757 | 18,922 | |
| Restaurant Reviews and Dining Experience | 57,057 | 54,539 | 43,972 | |
| Unweighted Context (SSAS) | Customer Dissat. & Service Failures | 21,578 | 20,786 | 16,443 |
| Positive Restaurant Experiences | 23,188 | 22,666 | 20,238 |
| Scenario | Category-Cluster Titles | All Data | W/o Irrelevant | W/o Irrelevant & Outliers |
| No context (Baseline) | Assistive Devices and Aids | 18,105 | 17,712 | 13,821 |
| Grooming and Personal Care Products | 36,451 | 35,309 | 27,846 | |
| Cleaning and Maintenance Products | 11,626 | 11,241 | 9,121 | |
| Pain and Symptom Relief | 15,788 | 15,110 | 10,226 | |
| Personal Grooming and Hygiene | 33,066 | 32,526 | 26,922 | |
| Product Installation and User Experience | 61,491 | 58,699 | 46,492 |
| Scenario | Category-Cluster Titles | All Data | W/o Irrelevant | W/o Irrelevant & Outliers |
| No context (Baseline) | Book Criticism and Appreciation | 45,460 | 40,413 | 31,147 |
| Book Review Themes and Tropes | 85,634 | 82,708 | 73,520 | |
| Content Disappointment and Expectation | 26,311 | 20,277 | 12,464 | |
| Unweighted Context (SSAS) | Book Review Criticism | 64,388 | 60,586 | 52,847 |
| Book Review Focus | 44,495 | 43,416 | 36,769 | |
| Character Appreciation Focused Reviews | 19,023 | 16,659 | 13,108 |