Repository navigation
Conversation
Revise the weak-supervision label pipeline paper per an implementation review, and add a design spec that code can be built from. Paper fixes (8 substantive): - Replace the "seed-fixed reproducibility" claim, which contradicted the cited run-to-run variance work, with replay from preserved raw responses - Separate consensus policies from agreement metrics; Cohen's kappa is a dataset-level chance-corrected statistic, not a per-sample decision function, and is limited to two raters - Add anchor-based monotonic calibration; rule/LLM/human confidences are not comparable on a shared scale - Stop emitting NULL consensus labels for disagreements, which removed only hard samples from training and biased the set; keep a soft label and declare inclusion in the dataset manifest instead - Introduce a random anchor set with a forced share of the review budget, so labeler accuracy and drift are not estimated from disagreement-only samples - Split verified labels into train and eval_holdout purposes to stop leakage between labeler evaluation and training - Identify drift cause from two signals (distribution shift plus anchor rescoring) instead of PSI alone - Move the agreement field from the candidate to the consensus schema, removing a circular dependency in the append-only layer Schema gaps closed: sample_id, label_task, target_ref, is_abstain, ontology_ver, run_id, split value columns, cost/latency, per-component LLM hashes, feature_snapshot_id, and consensus replay metadata. Structural additions: an operational definition of first-class labels, a four-tier mapping with raw responses in Bronze, labeler correlation adjustment, a dataset manifest, canonical hashing rules, and an evaluation plan that measures the value of retaining candidate labels. Design spec covers architecture, table schemas with DDL, replay procedure, fusion algorithm, calibration, review routing, drift detection, idempotency, storage economics, governance, module layout with interface contracts, test strategy, and an eight-stage roadmap. Documentation only; no Python is added, so the boilerplate check and test collection in this repository are unaffected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDpZfU6Xrs9HAgSQU46mWW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind documentation
What this PR does / why we need it:
This PR adds comprehensive documentation for a data pipeline design that manages labels as first-class objects in a data lake, alongside feature data. The contribution includes:
Revised research paper (
00-paper-revised.md): An updated version of the original paper addressing 8 critical logical flaws, 11 schema omissions, and 3 structural enhancements identified during implementation review.Implementation design specification (
02-design.md): A detailed 893-line technical specification covering:Revision notes (
01-revision-notes.md): Detailed mapping of all changes from the original paper with justifications, organized by category (logical flaws, schema gaps, structural improvements, unresolved items).DDL schemas (
ddl/01_bronze.sqlthroughddl/04_meta.sql): Production-ready table definitions for:Configuration example (
config/pipeline.example.yaml): A complete pipeline configuration template demonstrating all tunable parameters with inline documentation.Key design principles addressed:
Which issue(s) this PR fixes:
This PR provides the implementation foundation for label management in weak supervision pipelines, addressing the gap between academic frameworks (Snorkel) and production data lake requirements.
Special notes for your reviewer:
Does this PR introduce a user-facing change?
NONE
Additional documentation:
docs/label-pipeline/02-design.md— Complete technical specification with algorithms, interfaces, and operational proceduresdocs/label-pipeline/00-paper-revised.md— Peer-review-ready research paperdocs/label-pipeline/01-revision-notes.md— Detailed change justificationshttps://claude.ai/code/session_01VDpZfU6Xrs9HAgSQU46mWW