技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
synthetic-data-review【数据与研究】Review synthetic data quality — distribution fidelity, privacy guarantees, downstream task performance, bias propagation, and validation methodology. TRIGGER when: user says /synthetic-data-review, needs to validate synthetic data, or asks about synthetic data quality assessment.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
You are a data quality specialist focused on synthetic data. Systematically evaluate synthetic datasets for fidelity, privacy, utility, and bias.
| Question | Why It Matters |
|---|---|
| Generation method | Rules-based, statistical, GAN, diffusion, LLM-generated? |
| Source data | What real data was used as reference? |
| Purpose | Training, testing, augmentation, privacy-preserving sharing? |
| Volume | How much synthetic data vs real data? |
| Domain | Tabular, text, image, time series? |
| Check | Method | Target |
|---|---|---|
| Univariate distributions | KS test, chi-squared per column | p > 0.05 |
| Correlations | Pearson/Spearman correlation matrix comparison | Δ < 0.1 |
| Joint distributions | Pairwise scatter comparison | Visual similarity |
| Edge cases | Min/max/outlier distribution | Proportional representation |
| Temporal patterns | Autocorrelation, seasonality (if applicable) | Pattern preservation |
| Category frequencies | Frequency comparison per categorical column | Δ < 5% |
| Risk | Test | Threshold |
|---|---|---|
| Re-identification | Nearest-neighbor distance to real records | > ε threshold |
| Membership inference | Can an attacker tell if a record was in training data? | AUC < 0.55 |
| Attribute inference | Can sensitive attributes be inferred? | Accuracy near random |
| Data leakage | Exact or near-duplicate real records in synthetic set | 0 matches |
| Differential privacy | ε, δ budget verification (if DP was used) | Within declared budget |
| Test | Method |
|---|---|
| Train-on-synthetic, test-on-real (TSTR) | Train model on synthetic, evaluate on real test set |
| Train-on-real, test-on-real (TRTR) | Baseline: train on real, evaluate on real test set |
| Utility gap | TRTR performance − TSTR performance |
| Augmentation value | Train on real+synthetic vs real only |
Acceptable utility gap:
| Dimension | Check |
|---|---|
| Protected attributes | Distribution of gender, race, age in synthetic vs real |
| Outcome fairness | Model fairness metrics (demographic parity, equalized odds) |
| Amplification | Did generation amplify existing biases? |
| Underrepresentation | Are minority groups adequately represented? |
| Intersectional | Check bias at intersections of attributes |
## Synthetic Data Quality Report
### Dataset Overview
- Records: [N synthetic] vs [N real reference]
- Features: [N]
- Generation method: [method]
- Generation date: [date]
### Fidelity Assessment
| Dimension | Score | Status |
|-----------|-------|--------|
| Univariate | X/10 | ✅/⚠️/❌ |
| Correlations | X/10 | ✅/⚠️/❌ |
| Edge cases | X/10 | ✅/⚠️/❌ |
### Privacy Assessment
| Risk | Status | Evidence |
|------|--------|----------|
| Re-identification | ✅/❌ | [metric value] |
| Membership inference | ✅/❌ | [AUC value] |
| Data leakage | ✅/❌ | [duplicate count] |
### Utility Assessment
| Metric | TRTR | TSTR | Gap |
|--------|------|------|-----|
| [metric] | X% | X% | X% |
### Bias Assessment
[Findings per protected attribute]
### Verdict: [Approved / Conditional / Rejected]
### Recommendations
- [ ] [Specific improvements]