Structured Tender Entities Extraction from Complex Tables with Few-short Learning

Asim Abbas, Mark Lee, Niloofer Shanavas, Venelin Kovatchev, Mubashir AliWorkshops @ COLING 2025

Introduction

Extracting critical data from tender documents—formal requests for bids on large-scale projects—is a significant challenge in the procurement and legal domains. These documents are often massive, exceeding 100 pages, and contain essential information like project names, dates, and contact details buried within complex, nested, or merged tables.

Standard PDF extraction tools often suffer from structural loss, reading text row-by-row or column-by-column without preserving the visual context of merged cells. This results in a "word soup" where attributes and values are misaligned. Furthermore, the scarcity of labeled data in this niche domain makes training traditional deep learning models from scratch prohibitively expensive. This paper proposes a hybrid pipeline that utilizes few-shot learning with Large Language Models (LLMs) to reconstruct lost table structures, followed by targeted regular expression (regex) rules for high-precision entity extraction.

Methodology

The proposed multi-stage pipeline is designed to move from raw PDF text to structured data without requiring a massive training set. The process involves four key steps:

  1. Segmentation & Dimensionality Reduction: A text analyzer identifies keywords (e.g., "PROJECT NAME," "REMARKS TO") to segment the document into header, body, and footer sections. The "body" text is intentionally discarded to reduce noise, as most key entities reside in the header and footer tables.
  2. Few-Shot Structure Restoration: This core component provides an LLM (specifically GPT-3.5) with a few examples of unstructured, "messy" extracted text paired with their correctly structured counterparts. The LLM learns to re-order and re-align the document's text based on these patterns.
  3. Robustness Testing (Data Shuffling): To evaluate the LLM's semantic understanding, the researchers tested the model against data with varying degrees of word-order randomization (50% and 100% shuffling).
  4. Rule-Based Classification: After the LLM restores the structure, handcrafted regular expressions and heuristic rules are applied to classify specific entities such as "Tender Number" or "Telephone No."
The few-shot prompting framework used to transform unstructured PDF text into a structured format.

Experimental Setup and Results

The study utilized 30 commercial confidential tender documents, benchmarking five different extraction tools: PDFMiner, PyMUPDF, Unstructured.io, PDFPlumber, and PyPDF2. Performance was measured using Average Relative Distance (ARD)—which quantifies how much words moved from their original positions—and BLEU scores for text similarity.

The results indicate a dramatic improvement in structural integrity. For instance, using the Unstructured.io tool, the ARD dropped from 5.92 (highly disorganized) to 0.37 (highly accurate) after LLM intervention.

Average Relative Distance (ARD) comparison between pre-fewshot and post-fewshot learning across various extraction tools and data shuffling levels (α).

Crucially, the few-shot restructuring allowed entity extraction accuracy to reach 100% for nearly all entities across almost all extraction tools. The approach also proved remarkably resilient; even with 100% shuffled data, the LLM-based approach maintained high structural integrity where standard tools failed completely.

Discussion and Conclusion

The research highlights the effectiveness of LLMs as "un-scramblers" capable of restoring semantic order to fragmented text. By combining the flexibility of generative AI for restructuring with the precision of traditional regex for extraction, the authors achieved a hybrid system that outperforms pure AI or pure rule-based methods in complex document processing.

While the results are promising, the study's reliance on a relatively small dataset (30 documents) and a specific LLM (GPT-3.5) suggests areas for future work. Expanding the dataset and exploring zero-shot or one-shot learning could further improve efficiency. Additionally, while the current rules are tuned for tender documents, the underlying framework could be adapted to other domains, such as medical or financial table extraction, by updating the heuristic rule sets.

Summary updated

BibTeX
@inproceedings{abbas2025structured,
  author = {Asim Abbas and Mark Lee and Niloofer Shanavas and Venelin Kovatchev and Mubashir Ali},
  title = {{Structured Tender Entities Extraction from Complex Tables with Few-short Learning}},
  booktitle = {Workshops @ COLING},
  year = {2025},
}
Figure