E4: the lookup-table artifact
Generated by python3 tools/experiments/e4_lookup_table.py. Never edit by hand.
- Online time only
- Table cost counted
- Matched baseline
Toy group: order-q subgroup of Z_p^*, q = 16777259 (about 2^24). A random set S of M scalars is declared in advance. The table attack computes the public value of every member once (M units) and then recovers each target with one lookup. The plain attacker lists S afresh for every target; its cost is measured as a mean over at least 64 targets (seed 4). Targets are uniform on S.
Three ways to state the advantage of the table attack over listing, for u targets:
- online only: per-target listing cost / 1 lookup. Precomputation ignored.
- cost counted: per-target listing cost / (M/u + 1). Precomputation amortized, baseline still lists afresh.
- matched baseline: the baseline may build the same table, so both sides cost M/u + 1.
M = 2^10
| targets u | listing per target | table attack per target | rho, online only | rho, cost counted | rho, matched baseline |
|---|---|---|---|---|---|
| 1 | 565 | 1025.0 | 565 | 0.55 | 1.00 |
| 4 | 549 | 257.0 | 549 | 2.13 | 1.00 |
| 16 | 500 | 65.0 | 500 | 7.68 | 1.00 |
| 64 | 555 | 17.0 | 555 | 32.67 | 1.00 |
| 256 | 518 | 5.0 | 518 | 103.65 | 1.00 |
| 1024 | 504 | 2.0 | 504 | 252.05 | 1.00 |
M = 2^12
| targets u | listing per target | table attack per target | rho, online only | rho, cost counted | rho, matched baseline |
|---|---|---|---|---|---|
| 1 | 1980 | 4097.0 | 1980 | 0.48 | 1.00 |
| 4 | 2164 | 1025.0 | 2164 | 2.11 | 1.00 |
| 16 | 2201 | 257.0 | 2201 | 8.57 | 1.00 |
| 64 | 2009 | 65.0 | 2009 | 30.91 | 1.00 |
| 256 | 2096 | 17.0 | 2096 | 123.29 | 1.00 |
| 1024 | 2090 | 5.0 | 2090 | 418.01 | 1.00 |
Result
- Counting online time only gives \(\rho\) of about M/2 for what is plain listing done in advance: confirmed. This is the artifact the review pointed out.
- With the matched baseline \(\rho=1\) for every u. This holds by construction: both sides run the same computation.
- Counting precomputation is not enough on its own. With one target it gives \(\rho\) below 1, but the figure grows with the number of targets and reaches hundreds, because a table reused across targets really is cheaper than listing afresh each time. That gain is multi-target amortization, not structure in the set: it is available for every set. Observed here.
Consequence for the criteria: taxonomy/classification.md I.2 already requires
that the baselines get the same precomputation, memory and number of targets.
That clause is the one doing the work. The wording "its cost is counted" must
not be read as sufficient.