Ship the learned-key pipeline, without which six figures cannot be rebuilt
The package was missing every script behind the KM (lrn.) curves and both learned table rows: exp_learned's driver, the merge that folds the learned rows into sec_compare.csv and refresh_summary.csv, and the report that reads the learned numbers back. It was also missing sec_keylen_perm.csv, so Fig. 3 could not be regenerated at all, and the two diagnostics that answer why a fixed key beats a learned one here and where a learned mask would win instead. The learned artifacts themselves are regenerated. They were trained on the cross-entropy alone, which drifts to disjoint sparse supports: 99 percent of each key's energy on about six of the 64 entries, so a digit is decided over a sixth of its period and the key set is a choice of support rather than a dense direction in R^L. They are now the regularized keys of Section V-C, and check_consistency asserts which of the two families the figures draw. Verified from inside this repository: replot_security.py rebuilds all seven result figures, make_tables.py reproduces both result tables, and check_consistency.py passes every check that does not need the manuscript. The README now lists what ships. Its run list, layout and figure map had none of the learned pipeline, named two tables the manuscript renders as prose, and gave Fig. 3 no data file for its permutation curve.
This commit is contained in:
@@ -28,7 +28,7 @@ from pathlib import Path
|
||||
|
||||
import torch
|
||||
|
||||
from exp_full import MAIN_D, base_keys, get_model, main_model
|
||||
from exp_full import MAIN_D, base_keys, get_model_reg, main_model
|
||||
from sse_lib import DEVICE, rayleigh_gain, snr_to_sigma2, write_csv
|
||||
|
||||
DATA = Path(__file__).resolve().parents[1] / "data"
|
||||
@@ -117,7 +117,9 @@ def run():
|
||||
torch.manual_seed(SEED)
|
||||
rows = []
|
||||
_sweep(main_model(), "structured", rows) # keys frozen to Walsh
|
||||
_sweep(get_model(P=4, vu=16, d=MAIN_D, U=4, iters=4000, seed=1),
|
||||
# the regularized keys of Section V-C, which are the learned family
|
||||
# every figure draws; the unpenalized ones are a slot allocation
|
||||
_sweep(get_model_reg(P=4, vu=16, d=MAIN_D, U=4, iters=4000, seed=1),
|
||||
"learned", rows) # keys trained in R^L
|
||||
write_csv(DATA / "family_enum.csv",
|
||||
["family", "keying", "snr_db", "n_frames",
|
||||
|
||||
Reference in New Issue
Block a user