Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Heuristic Elucidation

Each classification dataset presents unique properties — naming conventions, column structure, value distributions — that affect classifier performance in dataset-specific ways. Rather than treating techniques as ad-hoc fixes, the pipeline follows a systematic methodology: observe a phenomenon, hypothesize a mechanism, implement it as a feature or technique, quantify its contribution with SAGE, and validate across benchmarks.

We call this cycle de novo heuristic elucidation: the disciplined reduction of observed dataset-specific phenomena to practice, with measured contribution to overall accuracy.

This page ties together the three classification architecture pages — Context Engineering, Classification Training, and Evidence Fusion — by documenting the methodology that produces the features, techniques, and evidence sources they describe.

The Methodology Cycle

Each step is concrete:

  1. Observe: Run the pipeline on a benchmark dataset. Examine accuracy by column kind (data vs. annotation), by category group, and by naming convention. Identify where accuracy drops below baseline expectations.

  2. Hypothesize: Formulate the failure mode as a testable phenomenon. “Annotation columns fail because the column name carries no semantic signal” is a hypothesis. “The training set has only 2 samples per class” is another.

  3. Implement: Reduce the hypothesis to a feature (added to the CatBoost feature vector) or a technique (added to the pipeline). Every implementation must be expressible as a SAGE-ablatable feature or a measurable pipeline stage.

  4. Quantify: Run SAGE to estimate the new feature’s Shapley value — its marginal contribution to accuracy across all columns. Features with near-zero SAGE importance are noise; features with high importance validate the hypothesis.

  5. Validate: Test the technique on a second benchmark with different properties. A technique that helps on the meta-tagging dataset but hurts on GitTables reveals a dataset-specific assumption that needs gating.

Heuristic Catalog

Seven heuristics have been discovered through this cycle. Each row links to the architecture page where the technique is described in detail.

#HeuristicObservationImplementationGeneralizes?
1Dual embeddingAnnotation columns have opaque names; the full embedding encodes a misleading name signalSecond embedding with name, table, and siblings stripped (value-only); concatenated as 384 additional dimsYes
2Category reference augmentationMany classes with few real samples each; CatBoost cannot learn class boundariesInject taxonomy reference embeddings as anchor training pointsYes
3Cosine similarity featuresCosine similarity to category references is a strong zero-shot signal on semantic namesEncode per-category cosine similarities as CatBoost input features, bridging zero-shot and trained classifiersYes
4Column propagationStructurally related columns share the same category; one may have a confident prediction while the other does notPost-prediction pass: propagate confident predictions to uncertain structurally-related columnsNo — dataset-specific
5Value descriptionGeneric names (col0, field_1) have no semantic content; cosine similarity on these is randomSubstitute NL descriptions of value patterns when the column name is generic (12th SAGE feature)Yes
6Discrete feature scaling12 discrete features are ignored by gradient boosting when 384-dim embedding vectors dominate split gainScale discrete features by \(\sqrt{384/12}\) so magnitudes competeYes
7Synthetic data generationEvaluation data generation process is known or inferable; reverse-engineering it produces unlimited training data70+ value generators covering all SIGDG categories, with 50/50 semantic/opaque name splitPartially

Generalization Status

Heuristics 1-3, 5-6 are universally applicable — they address structural properties (class imbalance, feature scale mismatch, uninformative names) that arise in any column classification task.

Heuristic 4 (column propagation) is dataset-specific: it exploits a structural property where columns are related and share category assignments. Other datasets may have different column relationships that warrant different propagation heuristics — but the methodology of exploiting structural relationships is universal.

Heuristic 7 (synthetic data generation) applies when the evaluation data’s generation process is known or inferable. For production data with unknown provenance, the role of synthetic generation shifts to LLM bootstrapping — the LLM classifies a sample of real columns to produce training signal.

Cross-Benchmark Validation

Two benchmarks with complementary properties test whether heuristics generalize:

PropertySIGDG evaluation setGitTables CTA benchmark
Column namesMixed semantic (payment_card_number) and opaque (col_42)100% generic (col0, col1, empty)
TaxonomySIGDG (42 categories, 30 leaves, BFO-grounded)BFO-grounded (122 types mapped from DBpedia)
SourceSynthetic + real enterprise dataAcademic benchmark (SemTab 2021)

Method Accuracy by Benchmark

MethodSIGDG (semantic)SIGDG (opaque)SIGDG (overall)GitTables
Cosine (zero-shot)99.4%8.0%53.7%1.6%
CatBoost (standalone)66.3%29.7%48.0%81.6%
DST fusion———71.4%
Union ceiling——66.0%—

The cross-benchmark comparison reveals three regimes:

  1. Cosine dominates (semantic names): Semantic column names directly match category labels. Cosine similarity achieves 99.4% accuracy. CatBoost adds noise.

  2. CatBoost dominates (generic/opaque names): Column names are uninformative. CatBoost trained on value patterns achieves 81.6% on GitTables. Cosine adds pure conflict (K > 0.5 on 100% of GitTables columns).

  3. Methods are complementary (mixed names): The union of correct answers reaches 66.0% — 12 points above either method alone. A well-tuned DST fusion captures both.

Confidence-Gated Fusion

The regimes map to a principled DST integration rule: use cosine evidence’s own confidence to decide how to weight it against CatBoost.

Cosine ConfidenceRegimeObserved Behavior
> 0.35High — cosine is reliableCosine near-certain; CatBoost adds marginal value
0.05 - 0.35Medium — both contributeStandard DST combination is appropriate
< 0.05Low — cosine has no signalCosine creates destructive conflict; CatBoost should dominate

This regime analysis motivates a planned confidence-gated adaptive discounting refinement (tracked in R-02). The current implementation uses fixed discounts, but the empirical observation is that cosine and CatBoost, despite sharing the embedding space, contribute discriminatively in different regimes — their functional orthogonality mitigates (but does not eliminate) the source independence concern (R-01).

The DST conflict metric \(K\) provides the runtime diagnostic: when \(K > 0.5\), the sources disagree enough that one should be discounted. On GitTables, 100% of columns have \(K > 0.5\) — a clear signal that cosine should be discounted. On meta-tagging data columns, \(K\) is moderate (mean 0.47) — the sources agree enough for standard combination.

Agentic Integration

The heuristic elucidation cycle maps to an agentic workflow where frontier LLMs play the roles of observer, hypothesis generator, and training-signal bootstrapper:

Role of Each Component

LLM as observer: Given a new dataset, the LLM examines column names, value distributions, table structure, and identifies phenomena. For example: “these columns have generic positional names — value patterns are the only discriminative signal.”

LLM as bootstrapper: The LLM classifies a sample of columns to generate training signal for CatBoost, replacing manual ground-truth labeling. This is the target design for production deployment — the LLM runs once to create training data, then the transparent CatBoost+DST pipeline handles ongoing classification without LLM dependency.

SAGE as quality gate: After implementing a new feature, SAGE automatically measures whether it improved accuracy. Features with near-zero Shapley values are noise — they should be discarded regardless of how plausible the hypothesis seemed. This prevents accumulation of heuristics that seemed helpful on one dataset but don’t generalize.

DST conflict as disagreement detector: When a new evidence source conflicts with existing sources (\(K > 0.5\)), the conflict metric flags it for review. High conflict doesn’t necessarily mean the new source is wrong — it may mean the confidence gate needs adjustment. But it does mean the sources should not be naively combined.

Self-Improving Pipeline

The agentic workflow creates a self-improving classification pipeline: each new dataset encounter produces new heuristic candidates, which are automatically validated by SAGE and incorporated (or rejected) based on measured contribution. The LLM’s role shifts from classifier to methodology driver — it doesn’t classify columns directly in production, but it discovers the features and training signal that make CatBoost+DST effective.

Relationship to Research Roadmap

Several items on the research roadmap are consequences of the heuristic elucidation methodology:

Research ItemConnection
R-01: Source IndependenceConfidence-gated fusion is the principled response to shared embedding space between cosine and CatBoost
R-02: Calibration ExperimentCalibrating the 13 DST constants requires cross-benchmark data — heuristic validation produces this data
R-05: Cautious ClassificationWhen no heuristic resolves a leaf-level ambiguity, cautious classification returns the deepest confident hierarchy node
R-08: Confusable PairsThe 16 remaining errors (ADID/GUID, BAN/PAN, etc.) are phenomena that no current heuristic resolves — they define the next cycle

The research roadmap is not a static list but a backlog of unresolved observations from previous heuristic elucidation cycles. Each completed research item either produces a new heuristic or validates that a phenomenon is irreducible (e.g., ADID and GUID values are structurally identical — no embedding-based feature can distinguish them without external context).