TL;DR
This paper tackles the challenge of grouping similar items in public procurement descriptions, which are often unstructured and lack standardization. They propose a framework (AFFAIR) that includes text cleaning, information extraction, and a novel enhanced sentence representation (E-SBERT) that prioritizes domain-specific components like nouns, units, and numbers. Their findings suggest that domain-specific fine-tuning of sentence embeddings significantly improves clustering performance, even outperforming more complex supervised methods.
What Problem Does This Paper Address?
Public procurement is a massive undertaking, with governments spending billions on goods and services. To ensure fair competition and prevent overpricing, it's crucial to establish reference prices. This requires identifying when different descriptions refer to the same item, a task complicated by the fact that these descriptions are often informal, highly specific, and lack a standardized format. Unlike well-structured text, these procurement item descriptions can be grammatically loose and heavily reliant on specific attributes like colors, materials, models, and quantities. The core problem is finding the best way to represent these unstructured texts so that similar items can be effectively grouped together, enabling the calculation of reference prices.
Methods
The authors introduce a framework called AFFAIR (A Framework For generAting Item Repesentaions), which has three main steps:
- Text Cleaning: This involves standard NLP preprocessing like tokenization, spellchecking, and lemmatization. A key addition here is the normalization of numbers into scientific notation, inspired by prior work showing BERT's limitations with small numerical values.
- Information Extraction: This step focuses on identifying crucial domain-specific components within the text. They use Part-of-Speech (POS) tagging and Named Entity Recognition (NER) to extract categories like units of measurement, colors, materials, numbers, size, and quantity. This is a departure from traditional NLP approaches that might prioritize subject-verb-object structures.
- Text Representation: This is the core of their contribution. They evaluate eight different sentence representation models, including traditional methods like Bag-of-Words and advanced ones like Sentence-BERT (SBERT). Their novel contribution is Enhanced-SBERT (E-SBERT), which adapts the Component Focusing (CF)-BERT idea. E-SBERT concatenates and embeds the identified domain-specific components (nouns, units, numbers, etc.) alongside the full sentence embedding. This allows the model to prioritize these critical attributes.
For clustering, they employ a two-stage approach: an initial heuristic grouping based on the first token of the description, followed by HDBSCAN clustering on the generated embeddings.
Datasets
- Real-world dataset: A dataset of 196,747 public procurements from the Prosecution Service of the Brazilian state of Minas Gerais, spanning 2015-2018. After filtering for descriptions with numeric terms or units of measure, they ended up with 2,149,533 items, of which 2,096,664 were unique. This dataset is in Portuguese.
- Synthetic dataset: A dataset of 100,000 items (with 30,000 duplicates) generated to specifically emphasize numerical terms and units of measure. This was used to fine-tune SBERT and E-SBERT.
Key Insights and Ideas
- Domain-specific components matter: The most significant insight is that prioritizing domain-specific attributes (nouns, units, numbers) in text representations, rather than relying solely on general sentence meaning, dramatically improves clustering performance for procurement item descriptions.
- Fine-tuning is crucial: Fine-tuning pre-trained models like SBERT on domain-specific data (even synthetic data) leads to substantial improvements in clustering metrics, highlighting the importance of tailoring models to the task's context.
- Unsupervised methods can be competitive: Sophisticated supervised methods don't necessarily offer significant advantages over well-tuned unsupervised methods for this specific task. Simple weighted average strategies (like SIF) can yield comparable results to SBERT.
- Heuristics can be powerful: A simple initial grouping strategy (like using the first token) can significantly improve the effectiveness of subsequent clustering algorithms like HDBSCAN.
Key Results
- E-SBERT with FT+HDBSCAN: The E-SBERT representation, when combined with the FT heuristic and HDBSCAN, achieved the best results across multiple evaluation metrics, including the Silhouette Coefficient, Calinski-Harabasz Score, and Davies-Bouldin Score.
- Silhouette Coefficient: E-SBERT achieved the best Silhouette Coefficient (0.672) when used with FT+HDBSCAN, indicating better-defined and separated clusters.
- Outlier Percentage: While E-SBERT (without FT) had a higher outlier percentage (43.14%), it still performed well, suggesting its robustness.
- FT Heuristic Impact: Applying the FT heuristic before HDBSCAN generally improved clustering quality for most representations compared to using HDBSCAN alone.
- Bag-of-Words vs. InferSent: Surprisingly, Bag-of-Words performed better than the more complex InferSent in some scenarios, underscoring that simpler methods can be effective.
Limitations and Future Work
- Ground Truth Challenge: Establishing a definitive ground truth for unsupervised clustering tasks remains a significant challenge. The authors relied on a combination of qualitative and quantitative analysis.
- Generalizability: The generalizability of their framework and methods to other domains and languages requires further exploration.
- Future Work:
- Applying topic modeling to clusters for deeper insights and semantic search.
- Investigating the methodology's applicability in other contexts like product reviews and electronic health records (EHR).
- Exploring assigning different weights to specific categories (e.g., color vs. size) within the component-focused embedding generation.
Summary updated