Prepare the task
Qualitative data, an analysis schema and taxonomies inform prompt formatting and workflow logic.
A comparison of single-pass and modular multi-agent workflows for document sentiment, aspect categories and aspect terms.
One document can express different attitudes towards different aspects of an experience. This contribution compares a unified request with a sequence of specialised agents, examining both overall sentiment and the aspects or terms associated with it.
Both pipelines use quantized Qwen2.5-32B-Instruct with task examples and strict JSON contracts. A unified request is compared with three sequential specialists; structured outputs support review and traceable human corrections.
Qualitative data, an analysis schema and taxonomies inform prompt formatting and workflow logic.
A single LLM request handles document sentiment (TSA), aspect categories (ACSA) and aspect terms (ATSA) together.
Three sequential agents classify document polarity, map aspect categories and extract aspect terms.
Outputs are formatted and checked against their contract, then made available for manual review and adjustments.
Two alternative pipelines share the same compute and inference layer, output processing and human-review stage.
Open full-size diagramThe MAMS benchmark: 400 documents for sentiment and category analysis, with a 35-document subset for aspect-term evaluation.
| Measure | Pipeline A | Pipeline B |
|---|---|---|
| TSA · document sentiment | 61.03% | 60.11% |
| ACSA · aspect categories | 44.80% | 45.77% |
| ATSA · exact aspect term | 41.12% | 45.32% |
| Diagnostic · Jaccard ≥ 0.5 | 49.53% | 52.22% |
Source: Sithokomele Nxumalo’s final paper (PDF), Table 2 and Sections 3.1, 3.5 and 5.5.
TSA uses macro-F1; ACSA and ATSA use micro-F1. Overall sentiment reference labels use majority vote over aspect polarities, with ties mapped to neutral. Both pipelines used the same quantized model and temperature 0. Human review was demonstrated, but not assessed in a dedicated usability study.
Sithokomele Nxumalo · Sentiment Analysis engine.