Papers
Topics
Authors
Recent
Search
2000 character limit reached

TableEG: Synthetic Error Generation in Tables

Updated 6 July 2026
  • TableEG is an instruction-tuned framework that generates synthetic yet realistic errors in relational tables while preserving two-dimensional structure and inter-cell dependencies.
  • It employs a unified triplet formulation combining error generation, detection, and correction through natural language instructions and Markdown-serialized tables.
  • Fine-tuned with LoRA on diverse real-world datasets, TableEG outperforms rule-based baselines and GPT-3.5 Turbo by closely mimicking authentic error patterns and distributions.

TableEG is an instruction-tuned framework for synthetic error generation in relational tables that uses LLMs to inject synthetic yet authentic errors into tabular data. It was introduced to address a persistent bottleneck in data cleaning research: numerous error detection algorithms exist, but the availability of diverse, real-world error datasets remains limited, while manual annotation is both time-consuming and inconsistent. TableEG learns from 12 real-world, manually annotated datasets spanning ten domains and generates errors in four major categories—outliers, missing values, rule violations, and pattern violations—while preserving two-dimensional structure and inter-cell dependencies such as functional dependencies or semantic relationships. In this role, it is positioned as a practical benchmark for subsequent error detection and correction tasks (Liu et al., 15 Jul 2025).

1. Definition and problem setting

TableEG is designed to bridge the gap between purely rule-based corruptions, which lack diversity, and authentic real-world error distributions, which are expensive to annotate. The framework treats synthetic error generation not as arbitrary perturbation of isolated cells, but as a table-level modeling problem in which row-column structure and cross-cell dependencies must be preserved. This emphasis is central to its claim of generating authentic errors rather than merely noisy variants of clean data.

The framework is trained on 12 real-world datasets spanning ten diverse domains. Examples listed for these tables include Rayyan, Company, Marketing, Movie, and Credit, with domains including Academic, Business, Finance, Hospitality, and Transportation. The stated objective is not only to synthesize plausible corruptions, but also to ensure that the resulting error patterns and column-wise error distributions faithfully reflect authentic error distributions. Experimental claims are correspondingly framed in terms of pattern similarity, distribution similarity, and downstream detector behavior, rather than only qualitative plausibility (Liu et al., 15 Jul 2025).

2. Triplet formalization of generation, detection, and correction

TableEG casts each table task as a triplet (I,T,O)(I, T, O). Here, II is an instruction in natural language, TT is the input table serialized in Markdown, and OO is a structured output in JSON. The instruction II is composed of three parts: a task description dκd_\kappa, an error-type description dEd_E, and a contextual suffix dsd_s. Examples given for these components include a task description such as “Error Generation: introduce realistic errors,” an error-type description such as “missing values in non-mandatory fields,” and a suffix such as “output JSON with row/column indices.”

The input table TT is constructed by sampling the annotated rows j(s)j^{(s)} together with additional random rows II0, then merging and shuffling them in order to bound token length. The output II1 specifies, for each modified cell, its row index II2, column index II3, error type II4, erroneous value II5, and, when available, the original correct value II6.

The three principal task formulations are written as

II7

II8

II9

This formulation places error generation, error detection, and error correction within a single representational scheme. A plausible implication is that the framework is intended not merely as a generator of corrupted tables, but as a unified substrate for benchmark construction across multiple data-cleaning tasks (Liu et al., 15 Jul 2025).

3. Table-level fine-tuning strategy

The base model in TableEG is LLaMA 3.1–8B. Fine-tuning is performed with LoRA adapters applied to the projection layers TT0. The training curriculum combines three error-related tasks—EGT, EDT, and ECT—with five “table-unrelated” tasks: row augmentation, column augmentation, swapping, filtering, header matching, and summarization. These auxiliary tasks are explicitly included to instill structural awareness.

The training corpus consists of 12 manually annotated real-world tables. The split is 90% train and 10% validation. The reported hyperparameters are: 3 epochs, LoRA rank 16, batch size per device 1 with gradient accumulation 16 for an effective batch size of 16, and AdamW with learning rate TT1 and weight decay TT2. The implementation uses 4 NVIDIA RTX A6000 GPUs with PyTorch 2.4.1 and CUDA 12.2.

The paper’s characterization of this setup as a table-level fine-tuning strategy is consequential. Rather than adapting an LLM only through textual instructions, the method explicitly couples instruction tuning with structured table serialization and task diversity. This suggests that TableEG treats structural competence over two-dimensional tables as a prerequisite for authentic error generation, rather than as a by-product of generic language modeling (Liu et al., 15 Jul 2025).

4. Generation pipeline and evaluation methodology

The end-to-end pipeline is organized into four stages. In Stage 1, the Prompt Builder extracts TT3 triplets from the annotation corpus TT4 using Algorithm 1, constructs instructions with Algorithm 2, and constructs input tables with Algorithm 3. In Stage 2, the Trainer fine-tunes the LLaMA base model with LoRA on these triplets. In Stage 3, the Error Generator, described as Algorithm 5, takes a clean table TT5, a desired error ratio TT6, an error-type distribution TT7, and a model TT8.

The generator computes

TT9

allocates OO0 across error types via OO1, and then iteratively samples a subtable OO2, builds an instruction OO3 for a chosen error type OO4, and infers OO5. The parsed output yields OO6. If OO7 is unseen and OO8, the error is applied to the generated dirty table OO9 and recorded in the set II0. The algorithm returns II1 once the required number of errors has been generated.

Stage 4 is the Evaluator. It measures pattern alignment through Algorithm 8, producing II2, and distribution alignment through weighted Jaccard II3 and Jensen–Shannon divergence II4, in addition to downstream detection performance. For pattern alignment, TableEG uses hidden embeddings II5 from the II6th Transformer layer. For each generated error, it retrieves II7 nearest real-error pairs in embedding space and compares the transformation vectors

II8

with cosine similarity, taking the maximum over neighbors and averaging to obtain II9.

For column-level error distribution, the weighted Jaccard score is defined as

dκd_\kappa0

where dκd_\kappa1 and dκd_\kappa2 are the real and generated error proportions in column dκd_\kappa3. The Jensen–Shannon divergence is

dκd_\kappa4

These metrics formalize authenticity as geometric similarity of contextual transformations and alignment of column-wise error frequencies, rather than only exact cell-level matching (Liu et al., 15 Jul 2025).

5. Comparative results and benchmark behavior

The principal experimental comparison is against a rule-based baseline denoted BART and against GPT-3.5 Turbo without fine-tuning. For pattern alignment with dκd_\kappa5, TableEG achieves average dκd_\kappa6, compared with dκd_\kappa7 for BART and dκd_\kappa8 for GPT-3.5 Turbo. The gains are reported as consistent across both seen and unseen datasets, with Soccer and Restaurant named as examples.

For column-level distribution alignment, two explicit examples are provided. On the Flight dataset, TableEG attains dκd_\kappa9, while GPT-3.5 reaches dEd_E0 and BART dEd_E1; for divergence, TableEG obtains dEd_E2, compared with dEd_E3 for GPT-3.5 and dEd_E4 for BART. On the Beers dataset, TableEG attains dEd_E5, compared with dEd_E6 for BART and dEd_E7 for GPT-3.5; the corresponding divergences are dEd_E8 for TableEG, dEd_E9 for BART, and dsd_s0 for GPT-3.5.

Downstream error detection is evaluated with Raha, Holistic, and Horizon using weighted precision dsd_s1, recall dsd_s2, and dsd_s3. Across Flight, Movie, Company, and Marketing, Raha on generated versus real data is reported at approximately dsd_s4, dsd_s5, and dsd_s6. Holistic and Horizon show similar relative gaps. The reported conclusion is that detectors perform nearly identically on TableEG-generated errors and on real-world errors, especially for machine learning based methods such as Raha. In the paper’s broader framing, TableEG-generated errors therefore function as a robust surrogate for expensive manual annotations in data-cleaning evaluation (Liu et al., 15 Jul 2025).

6. Role, constraints, and open directions

TableEG is presented as both an overview framework and a benchmarking substrate. Its benchmark value derives from the combination of table-level fine-tuning, structured triplet supervision, explicit control over error ratios and type distributions, and evaluation against authentic datasets. The paper’s overall conclusion is that it bridges the gap between synthetic and real-world errors while establishing a robust benchmark for error detection and correction tasks.

The stated limitations are also specific. First, the framework relies on user-specified error ratios dsd_s7 and error types; future work is described as aiming for adaptive ratio prediction. Second, token-length constraints still require sub-table sampling, and scaling to very wide tables remains open. Third, current instruction templates are hand-crafted, and the paper identifies automating template design or meta-learning new instructions as possible routes to improved generalization. Fourth, the current formulation targets cell-level errors; extending to row-level or table-level corruption such as record duplication or deletion is left for future study.

These limitations delimit the current scope of the system. They suggest that TableEG’s fidelity claims are strongest for controlled cell-level corruption under specified error budgets, with realism demonstrated by alignment to observed patterns, distributions, and detector behavior rather than by unconstrained generation of every possible data-quality failure mode (Liu et al., 15 Jul 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TableEG.