Skip to content

Implement postprocessing, MultiTableMechanism.__call__ and output materialization in the relational synthesizer: - #147

Merged
copybara-service[bot] merged 1 commit into
mainfrom
cl/967303603
Aug 20, 2026
Merged

Implement postprocessing, MultiTableMechanism.__call__ and output materialization in the relational synthesizer:#147
copybara-service[bot] merged 1 commit into
mainfrom
cl/967303603

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 19, 2026

Copy link
Copy Markdown

Implement postprocessing, MultiTableMechanism.call and output materialization in the relational synthesizer:

  1. Decompression (_decompress_synthetic_datasets):

    • Probabilistically reverses categorical domain compression by sampling original category preimages from composite <Other> bins via mbi.Dataset.decompress.
  2. Native TabularCodec Decoding (_decode_synthetic_tables):

    • Converts discrete integer bucket tokens back into continuous numerical floats (uniform interval dequantization) and categorical strings via TabularCodec.decode().
  3. Relational Key Assignment (_assign_relational_keys):

    • Generates synthetic integer surrogate primary keys (0..N-1) for parent tables.
    • Vectorizes child foreign key assignment by indexing parent primary keys via parent_mappings from Phase 2 copula unstacking, guaranteeing 100% referential integrity without hash joins.
  4. End-to-End Orchestration (MultiTableMechanism.call):

    • Connectsdiscretization & initializers, cascading discrete relational hierarchy synthesis & copula matching, and postprocessing & key linkage into MultiDataGenerationResult.
  5. Testing & Optimization:

    • Added unit tests for decompression, decoding, multi-tier PK/FK assignment, and empty child edge cases.
    • Added end-to-end integration test verifying calibrated MultiTableMechanism execution with differential privacy guarantees and referential integrity.
    • Add parameterized subtests covering all eager MultiTableConfig.__post_init__ validation failures.
  6. Eager MultiTableConfig.post_init Validation:

  • Make foreign_keys a required argument with no default (= () removed).
  • Enforce naming constraints

@google-cla

google-cla Bot commented Aug 19, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…erialization in the relational synthesizer:

1. Decompression (_decompress_synthetic_datasets):
   - Probabilistically reverses categorical domain compression by sampling original category preimages from composite `<Other>` bins via `mbi.Dataset.decompress`.

2. Native TabularCodec Decoding (_decode_synthetic_tables):
   - Converts discrete integer bucket tokens back into continuous numerical floats (uniform interval dequantization) and categorical strings via `TabularCodec.decode()`.

3. Relational Key Assignment (_assign_relational_keys):
   - Generates synthetic integer surrogate primary keys (0..N-1) for parent tables.
   - Vectorizes child foreign key assignment by indexing parent primary keys via `parent_mappings` from Phase 2 copula unstacking, guaranteeing 100% referential integrity without hash joins.

4. End-to-End Orchestration (MultiTableMechanism.__call__):
   - Connectsdiscretization & initializers, cascading discrete relational hierarchy synthesis & copula matching, and postprocessing & key linkage into `MultiDataGenerationResult`.

5. Testing & Optimization:
   - Added unit tests for decompression, decoding, multi-tier PK/FK assignment, and empty child edge cases.
   - Added end-to-end integration test verifying calibrated `MultiTableMechanism` execution with differential privacy guarantees and referential integrity.
   - Add parameterized subtests covering all eager `MultiTableConfig.__post_init__` validation failures.

6. Eager MultiTableConfig.__post_init__ Validation:
* Make `foreign_keys` a required argument with no default (`= ()` removed).
* Enforce naming constraints

PiperOrigin-RevId: 967697951
@copybara-service
copybara-service Bot merged commit e51cafd into main Aug 20, 2026
@copybara-service
copybara-service Bot deleted the cl/967303603 branch August 20, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants