Skip to contents

Product of the target PII's per-token probabilities.

Usage

morie_kamath_ch6_pii_likelihood(a_m, A, x, L_q, L_r)

Arguments

a_m

Per-token probabilities.

A

Other PII.

x

Query tokens.

L_q, L_r

Query and answer lengths.

Value

List with estimate, log_likelihood, context_lengths.

Examples

morie_kamath_ch6_pii_likelihood(c(0.5, 0.25), c("a"), c("q"),
    1, 2)
#> $estimate
#> [1] 0.125
#> 
#> $log_likelihood
#> [1] -2.079442
#> 
#> $per_token
#> [1] 0.50 0.25
#> 
#> $context_lengths
#> [1] 1 2
#> 
#> $n_other_pii
#> [1] 1
#> 
#> $n
#> [1] 2
#> 
#> $method
#> [1] "ProPILE PII likelihood (Kamath Eq 6.31)"
#>