API Reference¶
This reference exposes the primary research classes and protocol surfaces. The command-line interfaces remain the recommended path for reproducible experiments because they capture configuration and evidence more consistently than ad-hoc interactive calls.
Models¶
vertimosaic.models.VFLLogisticRegression
dataclass
¶
Reference first-principles vertical logistic regression protocol.
Setting both l1 and l2 to non-zero values gives an elastic-net
objective. Mini-batches are entity-aligned across every party and are
shuffled deterministically from seed. Passive-party logit contributions
and residual signals cross the simulated Message transport boundary;
raw party feature matrices remain local.
require_entity_ids enables protocol-boundary verification of exact ordered
entity alignment. Official VertiMosaic research/reproduction entry points enable
it. The low-level class keeps False as a backwards-compatibility bridge for
callers that have not yet bound identifiers with bind_entity_ids.
missing_party_policy='error' is the default and rejects incomplete inference.
zero_contribution is an explicit research fallback that treats absent passive
parties as contributing zero logits; the active party may never be omitted.
residual_dp_backend can apply the executable clipped-Gaussian message-level
release mechanism to residual messages sent to passive parties. This protects that
release only and is not an end-to-end VFL privacy claim.
Source code in src/vertimosaic/models/vfl_logistic.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 | |
loss_history_
class-attribute
instance-attribute
¶
validation_loss_history_
class-attribute
instance-attribute
¶
best_iteration_
class-attribute
instance-attribute
¶
trained_party_names_
class-attribute
instance-attribute
¶
active_party_name_
class-attribute
instance-attribute
¶
_validate_hyperparameters ¶
Source code in src/vertimosaic/models/vfl_logistic.py
_sample_weights ¶
Source code in src/vertimosaic/models/vfl_logistic.py
_epoch_learning_rate ¶
Source code in src/vertimosaic/models/vfl_logistic.py
_validate_party_collection ¶
Source code in src/vertimosaic/models/vfl_logistic.py
_initialize ¶
Source code in src/vertimosaic/models/vfl_logistic.py
_penalty ¶
_loss ¶
Source code in src/vertimosaic/models/vfl_logistic.py
_logits ¶
Source code in src/vertimosaic/models/vfl_logistic.py
fit ¶
Source code in src/vertimosaic/models/vfl_logistic.py
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | |
_inference_parties ¶
Source code in src/vertimosaic/models/vfl_logistic.py
decision_function ¶
predict_proba ¶
predict ¶
privacy_report ¶
Return accounting for the optional residual message mechanism, if enabled.
Source code in src/vertimosaic/models/vfl_logistic.py
__init__ ¶
__init__(learning_rate=0.1, max_iter=500, l2=0.0, l1=0.0, tolerance=1e-07, gradient_clip=10.0, class_weight=None, batch_size=None, learning_rate_schedule='constant', early_stopping_rounds=None, warm_start=False, residual_noise_std=0.0, residual_dp_backend=None, require_entity_ids=False, missing_party_policy='error', seed=42, transport=InMemoryTransport())
vertimosaic.models.VFLHistGBDT
dataclass
¶
CPU vertical histogram gradient boosting research implementation.
Passive parties receive target-derived gradient/Hessian signals through the
simulated transport, build histograms from retained local bins, and send only
aggregate split statistics plus opaque feature/bin references back through
Message objects. The active party sends node membership and selected opaque
references through the same transport; the split-owning party resolves its private
threshold state, performs routing locally, and returns only aligned partition
indices. The model retains only token-only routing handles, never numeric thresholds.
This in-process simulator is not cryptographically secure: gradients, Hessians, node membership, opaque references, and routing information can leak information. See the threat-model documentation.
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 | |
party_names_
class-attribute
instance-attribute
¶
training_loss_history_
class-attribute
instance-attribute
¶
validation_loss_history_
class-attribute
instance-attribute
¶
best_iteration_
class-attribute
instance-attribute
¶
_routing_states
class-attribute
instance-attribute
¶
_validate_hyperparameters ¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_gain
staticmethod
¶
_split_gain ¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_leaf_value ¶
_feature_indices ¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_candidate_payload
staticmethod
¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_routing_payload
staticmethod
¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_split_selection_payload
staticmethod
¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_route_selected_split ¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_build_node ¶
_build_node(parties, gradients, hessians, gradient_signals, hessian_signals, indices, depth, rng, leaf_count, tree_index)
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 | |
_predict_tree ¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
_party_mapping
staticmethod
¶
fit ¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 | |
decision_function ¶
Source code in src/vertimosaic/models/vfl_hist_gbdt.py
predict_proba ¶
__init__ ¶
__init__(n_estimators=20, learning_rate=0.1, max_depth=3, max_leaves=None, min_samples_leaf=10, min_child_weight=0.001, l2_leaf_reg=1.0, max_bins=16, subsample=1.0, feature_subsample=1.0, early_stopping_rounds=None, missing_party_policy='error', seed=42, transport=InMemoryTransport())
Parties¶
vertimosaic.parties.ActiveParty
dataclass
¶
Bases: PassiveParty
Source code in src/vertimosaic/parties/core.py
__post_init__ ¶
Source code in src/vertimosaic/parties/core.py
vertimosaic.parties.PassiveParty
dataclass
¶
Bases: Party
Source code in src/vertimosaic/parties/core.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | |
_histogram_bins
class-attribute
instance-attribute
¶
_histogram_thresholds
class-attribute
instance-attribute
¶
_histogram_max_bins
class-attribute
instance-attribute
¶
_histogram_routing_state
class-attribute
instance-attribute
¶
_histogram_threshold_state
class-attribute
instance-attribute
¶
histogram_bins_ready
property
¶
Whether party-local histogram bins have been fitted for this matrix.
__post_init__ ¶
local_logits ¶
local_gradient ¶
prepare_histogram_bins ¶
Fit and retain party-local quantile bins once for histogram tree training.
Source code in src/vertimosaic/parties/core.py
_ensure_histogram_bins ¶
export_histogram_routing_state ¶
Return only the opaque handle; numeric thresholds stay party-local.
Source code in src/vertimosaic/parties/core.py
share_histogram_routing_state_with ¶
Explicitly attach train-derived routing state to another same-party partition.
The immutable numeric threshold state moves only between two objects representing
the same owning organization. The coordinating model receives only the opaque
HistogramRoutingState handle. There is intentionally no module-global registry
or implicit name-based lookup.
Source code in src/vertimosaic/parties/core.py
_private_routing_state ¶
Source code in src/vertimosaic/parties/core.py
candidate_histograms ¶
candidate_histograms(gradients, hessians, indices, max_bins, min_samples_leaf, feature_indices=None)
Compute local split statistics from retained bins without exposing thresholds.
Source code in src/vertimosaic/parties/core.py
aggregate_local_split_importance ¶
Aggregate split usage locally by opaque party feature reference.
Source code in src/vertimosaic/parties/core.py
_route_with_threshold ¶
Source code in src/vertimosaic/parties/core.py
route_split ¶
Apply an opaque split using party-owned training-derived threshold state.
Source code in src/vertimosaic/parties/core.py
route ¶
Direct local routing helper retained for controlled tests and diagnostics.
Source code in src/vertimosaic/parties/core.py
vertimosaic.parties.RemotePassiveParty
dataclass
¶
Metadata-only proxy for a passive party whose raw features are remote.
Source code in src/vertimosaic/parties/remote.py
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | |
_histogram_routing_state
class-attribute
instance-attribute
¶
_active_signal_ref
class-attribute
instance-attribute
¶
discover
classmethod
¶
Source code in src/vertimosaic/parties/remote.py
_rpc ¶
Source code in src/vertimosaic/parties/remote.py
local_logits ¶
Source code in src/vertimosaic/parties/remote.py
local_gradient ¶
Source code in src/vertimosaic/parties/remote.py
prepare_histogram_bins ¶
Source code in src/vertimosaic/parties/remote.py
export_histogram_routing_state ¶
Source code in src/vertimosaic/parties/remote.py
share_histogram_routing_state_with ¶
Source code in src/vertimosaic/parties/remote.py
set_gradient_hessian ¶
Source code in src/vertimosaic/parties/remote.py
clear_gradient_hessian ¶
Source code in src/vertimosaic/parties/remote.py
_signal_reference
staticmethod
¶
Source code in src/vertimosaic/parties/remote.py
candidate_histograms ¶
candidate_histograms(gradients, hessians, indices, max_bins, min_samples_leaf, feature_indices=None)
Source code in src/vertimosaic/parties/remote.py
route_split ¶
Source code in src/vertimosaic/parties/remote.py
aggregate_local_split_importance ¶
Source code in src/vertimosaic/parties/remote.py
__init__ ¶
vertimosaic.parties.RemotePartyService
dataclass
¶
Expose party-local VFL computations without moving raw feature matrices.
One service can own multiple row partitions for the same organization, typically
train and validation. Histogram thresholds, binned matrices, gradient/
Hessian round state, and routing decisions stay inside this service boundary.
The coordinator receives only metadata, aggregate split statistics, opaque split
references, opaque routing handles, and routed row indices.
Source code in src/vertimosaic/parties/remote.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | |
_signal_cache
class-attribute
instance-attribute
¶
__post_init__ ¶
Source code in src/vertimosaic/parties/remote.py
_party_for ¶
Source code in src/vertimosaic/parties/remote.py
_mapping
staticmethod
¶
_pair
staticmethod
¶
_indices
staticmethod
¶
handle ¶
Source code in src/vertimosaic/parties/remote.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | |
make_server ¶
Source code in src/vertimosaic/parties/remote.py
Transport¶
vertimosaic.transport.InMemoryTransport
dataclass
¶
Ephemeral Message transport with metadata-only persistent auditing.
Every protocol send creates a :class:Message carrying the ephemeral payload.
The transport returns that message payload to the protocol caller but persists only
an :class:AuditEvent, so row-level values are never retained in the audit log.
Source code in src/vertimosaic/transport/core.py
send ¶
Source code in src/vertimosaic/transport/core.py
_metadata
staticmethod
¶
Source code in src/vertimosaic/transport/core.py
vertimosaic.transport.RemoteHTTPTransport
dataclass
¶
Bases: InMemoryTransport
Reference network transport with bounded replay and application integrity controls.
HTTPS remains required by default. Optional HMAC signing authenticates the exact serialized request/response body and supports key rotation through explicit key IDs. These controls improve transport integrity/availability; they do not make residuals, gradients, Hessians or routing messages cryptographically private.
Source code in src/vertimosaic/transport/remote.py
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 | |
bearer_tokens
class-attribute
instance-attribute
¶
signing_keys
class-attribute
instance-attribute
¶
network_audit_log
class-attribute
instance-attribute
¶
__post_init__ ¶
Source code in src/vertimosaic/transport/remote.py
_ssl_context ¶
Source code in src/vertimosaic/transport/remote.py
network_totals ¶
Source code in src/vertimosaic/transport/remote.py
send ¶
Source code in src/vertimosaic/transport/remote.py
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 | |
__init__ ¶
__init__(audit_log=list(), endpoints=dict(), bearer_tokens=dict(), signing_keys=dict(), ca_file=None, client_cert=None, client_key=None, timeout_seconds=10.0, max_retries=2, backoff_seconds=0.25, allow_insecure_http=False, array_codec='json', network_audit_log=list())
Privacy research backends¶
vertimosaic.privacy.GaussianDPBackend
dataclass
¶
Gaussian release with a caller-enforced L2-sensitivity contract.
This legacy research backend is retained for experiments where sensitivity is
established by protocol-specific reasoning outside this class. Prefer
:class:ClippedGaussianDPBackend when the release can be bounded by clipping.
Source code in src/vertimosaic/privacy/backends.py
__post_init__ ¶
Source code in src/vertimosaic/privacy/backends.py
release ¶
Source code in src/vertimosaic/privacy/backends.py
privacy_report ¶
Source code in src/vertimosaic/privacy/backends.py
vertimosaic.privacy.ClippedGaussianDPBackend
dataclass
¶
Sensitivity-enforcing Gaussian release for one bounded vector message.
The input vector is clipped to clip_l2_norm before noise is added. Under
replace_one message adjacency, two clipped vectors can differ by at most
2 * clip_l2_norm in L2 norm. Under add_remove adjacency the bound is
clip_l2_norm. This makes the sensitivity contract executable instead of
caller-supplied, while remaining a message-level mechanism. It does not turn
a complete VFL protocol into end-to-end differential privacy unless all
sensitive releases and the relevant neighboring-dataset relation are covered.
Source code in src/vertimosaic/privacy/backends.py
__post_init__ ¶
Source code in src/vertimosaic/privacy/backends.py
clip ¶
Source code in src/vertimosaic/privacy/backends.py
release ¶
privacy_report ¶
Source code in src/vertimosaic/privacy/backends.py
vertimosaic.privacy.PairwiseMaskSecureAggregation
dataclass
¶
Reference pairwise-mask secure sum for integer vectors.
Every pair of parties must receive the same out-of-band secret without exposing it to the aggregator. Pairwise masks cancel in the aggregate. This models the core honest-but-curious secure-aggregation idea, but intentionally does not provide dropout recovery, malicious-party security, or collusion resistance.
Source code in src/vertimosaic/privacy/crypto.py
__post_init__ ¶
pair_key
staticmethod
¶
mask_update ¶
Source code in src/vertimosaic/privacy/crypto.py
aggregate ¶
Source code in src/vertimosaic/privacy/crypto.py
vertimosaic.privacy.AdditiveSecretSharingSum
dataclass
¶
Reference additive secret-sharing sum over a prime field.
This is a narrow MPC primitive for integer-vector summation, not a general MPC
runtime. Shares are sampled with Python's cryptographic secrets module.
Source code in src/vertimosaic/privacy/crypto.py
__post_init__ ¶
split ¶
Source code in src/vertimosaic/privacy/crypto.py
reconstruct ¶
Source code in src/vertimosaic/privacy/crypto.py
vertimosaic.privacy.OpenMinedPSIBackend
dataclass
¶
Optional adapter for OpenMined's ECDH-based PSI implementation.
Source code in src/vertimosaic/privacy/crypto.py
__post_init__ ¶
_module
staticmethod
¶
Source code in src/vertimosaic/privacy/crypto.py
intersection ¶
Source code in src/vertimosaic/privacy/crypto.py
vertimosaic.privacy.PaillierHomomorphicSum
dataclass
¶
Optional Paillier adapter for bounded signed integer-vector summation.
Source code in src/vertimosaic/privacy/crypto.py
__post_init__ ¶
_module
staticmethod
¶
sum ¶
Source code in src/vertimosaic/privacy/crypto.py
Scope the guarantee
The presence of a privacy primitive in the API does not imply that unrelated protocol messages inherit its guarantee. Use Privacy Boundaries and Threat Model when describing an experiment.