diff options
| -rw-r--r-- | experiments/bp_sparsity_extended.py | 301 | ||||
| -rw-r--r-- | results/confirmatory/A4_perlayer_support.csv | 241 | ||||
| -rw-r--r-- | results/confirmatory/B1_snapshot_evolution.csv | 141 | ||||
| -rw-r--r-- | results/confirmatory/B2_active_subset.csv | 17 | ||||
| -rw-r--r-- | results/confirmatory/C1_active_vs_inactive_cosine.csv | 17 | ||||
| -rw-r--r-- | results/confirmatory/C2_energy_concentration.csv | 145 |
6 files changed, 862 insertions, 0 deletions
diff --git a/experiments/bp_sparsity_extended.py b/experiments/bp_sparsity_extended.py new file mode 100644 index 0000000..a57c91f --- /dev/null +++ b/experiments/bp_sparsity_extended.py @@ -0,0 +1,301 @@ +""" +Extended BP Support Sparsity Analysis. +A4: Per-layer support sparsity +B1: Snapshot evolution (early/mid/late) +B2: Active subset characterization (misclassification rate, margin, entropy, loss) +C1: Active-only vs inactive-only update cosine +C2: Gradient energy concentration (top-k%) +""" +import os, sys, csv, json, argparse, numpy as np, torch, torch.nn.functional as F +from torch.utils.data import DataLoader +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from models.residual_mlp import ResidualMLP +import torchvision, torchvision.transforms as transforms + + +def get_cifar10_test(bs=256): + tv = transforms.Compose([transforms.ToTensor(), + transforms.Normalize((0.4914,0.4822,0.4465),(0.2470,0.2435,0.2616))]) + ds = torchvision.datasets.CIFAR10('./data', False, download=True, transform=tv) + return DataLoader(ds, bs, False, num_workers=4) + + +def get_bp_grads_and_info(model, x, y, device): + """Get per-layer BP gradients + logits/loss info.""" + model.eval(); L = model.num_blocks + h0 = model.embed(x.detach()) + h_list = [h0.clone().requires_grad_(True)] + for b in model.blocks: + h_list.append(h_list[-1] + b(h_list[-1])) + lo = model.out_head(model.out_ln(h_list[-1])) + loss_per_sample = F.cross_entropy(lo, y, reduction='none') + loss = loss_per_sample.mean() + grads = torch.autograd.grad(loss, h_list) + bp = {l: grads[l].detach() for l in range(L)} + return bp, lo.detach(), loss_per_sample.detach() + + +def run_analysis(args): + device = torch.device(f'cuda:{args.gpu}') + os.makedirs(args.output_dir, exist_ok=True) + tel = get_cifar10_test() + # Get a large eval batch + all_x, all_y = [], [] + for x, y in tel: + all_x.append(x.view(x.size(0), -1)); all_y.append(y) + if len(all_x) >= 4: break # ~1024 samples + x_eval = torch.cat(all_x).to(device) + y_eval = torch.cat(all_y).to(device) + batch = x_eval.size(0) + print(f"Eval batch: {batch} samples", flush=True) + + L, d = 4, 256 + methods_a2 = ['bp', 'dfa', 'state_bridge', 'credit_bridge'] + seeds = [42, 123, 456] # Use 3 seeds for speed + thresholds = [1e-8, 1e-7, 1e-6, 1e-5, 1e-4] + + # ===== A4: Per-layer support sparsity ===== + print(f"\n{'='*60}\nA4: Per-layer support sparsity\n{'='*60}", flush=True) + a4_rows = [] + for method in methods_a2: + for seed in seeds: + ckpt = f'results/confirmatory/checkpoints_A2/{method}_s{seed}.pt' + if not os.path.exists(ckpt): continue + torch.manual_seed(seed) + model = ResidualMLP(3072, d, 10, L).to(device) + model.load_state_dict(torch.load(ckpt, map_location=device)) + bp, _, _ = get_bp_grads_and_info(model, x_eval, y_eval, device) + for l in range(L): + norms = bp[l].norm(dim=-1) + for tau in thresholds: + s = (norms > tau).float().mean().item() + a4_rows.append({'method': method, 'seed': seed, 'layer': l, + 'threshold': tau, 'support_fraction': s, + 'mean_norm': norms.mean().item(), + 'median_norm': norms.median().item()}) + if seed == 42: + for l in range(L): + norms = bp[l].norm(dim=-1) + print(f" {method} layer {l}: s(1e-6)={(norms>1e-6).float().mean():.4f} " + f"mean={norms.mean():.2e} median={norms.median():.2e}", flush=True) + + out_a4 = os.path.join(args.output_dir, 'A4_perlayer_support.csv') + with open(out_a4, 'w', newline='') as f: + w = csv.DictWriter(f, fieldnames=['method','seed','layer','threshold','support_fraction','mean_norm','median_norm']) + w.writeheader(); w.writerows(a4_rows) + print(f"A4: {len(a4_rows)} rows -> {out_a4}", flush=True) + + # ===== B1: Snapshot evolution ===== + print(f"\n{'='*60}\nB1: Snapshot evolution\n{'='*60}", flush=True) + # BP snapshots at epoch {5, 20, 100} + bp_ckpts = {5: 'results/snapshot_time/bp_ckpts_L4_d256_s42/epoch_5.pt', + 20: 'results/snapshot_time/bp_ckpts_L4_d256_s42/epoch_20.pt', + 100: 'results/snapshot_time/bp_ckpts_L4_d256_s42/epoch_100.pt'} + # DFA snapshots at epoch {1, 5, 10, 100} + dfa_ckpts = {1: 'results/checkpointed_handoff/dfa_ckpts_s42/dfa_epoch_1.pt', + 5: 'results/checkpointed_handoff/dfa_ckpts_s42/dfa_epoch_5.pt', + 10: 'results/checkpointed_handoff/dfa_ckpts_s42/dfa_epoch_10.pt', + 100: 'results/checkpointed_handoff/dfa_ckpts_s42/dfa_epoch_100.pt'} + + b1_rows = [] + for trajectory, ckpts in [('bp', bp_ckpts), ('dfa', dfa_ckpts)]: + for epoch, path in sorted(ckpts.items()): + if not os.path.exists(path): + print(f" SKIP {path}", flush=True); continue + model = ResidualMLP(3072, d, 10, L).to(device) + ckpt_data = torch.load(path, map_location=device) + if isinstance(ckpt_data, dict) and 'model' in ckpt_data: + model.load_state_dict(ckpt_data['model']) + else: + model.load_state_dict(ckpt_data) + bp, lo, lps = get_bp_grads_and_info(model, x_eval, y_eval, device) + acc = (lo.argmax(1) == y_eval).float().mean().item() + for l in range(L): + norms = bp[l].norm(dim=-1) + for tau in thresholds: + s = (norms > tau).float().mean().item() + b1_rows.append({'trajectory': trajectory, 'epoch': epoch, 'layer': l, + 'threshold': tau, 'support_fraction': s, + 'mean_norm': norms.mean().item(), 'acc': acc}) + print(f" {trajectory} ep={epoch}: acc={acc:.4f}, " + f"s(1e-6)={np.mean([(bp[l].norm(-1)>1e-6).float().mean().item() for l in range(L)]):.4f}", flush=True) + + out_b1 = os.path.join(args.output_dir, 'B1_snapshot_evolution.csv') + with open(out_b1, 'w', newline='') as f: + w = csv.DictWriter(f, fieldnames=['trajectory','epoch','layer','threshold','support_fraction','mean_norm','acc']) + w.writeheader(); w.writerows(b1_rows) + print(f"B1: {len(b1_rows)} rows -> {out_b1}", flush=True) + + # ===== B2: Active subset characterization ===== + print(f"\n{'='*60}\nB2: Active subset characterization\n{'='*60}", flush=True) + b2_rows = [] + tau_main = 1e-6 + for method in methods_a2: + ckpt = f'results/confirmatory/checkpoints_A2/{method}_s42.pt' + if not os.path.exists(ckpt): continue + torch.manual_seed(42) + model = ResidualMLP(3072, d, 10, L).to(device) + model.load_state_dict(torch.load(ckpt, map_location=device)) + bp, lo, lps = get_bp_grads_and_info(model, x_eval, y_eval, device) + + probs = lo.softmax(dim=-1) + pred = lo.argmax(1) + correct = (pred == y_eval) + margin = probs[torch.arange(batch), y_eval] - probs.topk(2, dim=-1).values[:, 1] + margin[correct & (pred == y_eval)] = probs[torch.arange(batch), y_eval][correct & (pred == y_eval)] - \ + torch.where(pred == y_eval, + probs.topk(2, dim=-1).values[:, 1], + probs[torch.arange(batch), y_eval])[correct & (pred == y_eval)] + # Simpler: margin = prob(true class) - prob(2nd highest) + top2 = probs.topk(2, dim=-1) + true_prob = probs[torch.arange(batch), y_eval] + margin = true_prob - top2.values[:, 1] # positive if correct & confident + entropy = -(probs * (probs + 1e-10).log()).sum(-1) + + for l in range(L): + norms = bp[l].norm(dim=-1) + active = norms > tau_main + inactive = ~active + n_active = active.sum().item() + n_inactive = inactive.sum().item() + + row = {'method': method, 'layer': l, 'n_active': n_active, 'n_inactive': n_inactive, + 'pct_active': n_active / batch * 100} + + if n_active > 0: + row['active_miscls_rate'] = 1.0 - correct[active].float().mean().item() + row['active_mean_margin'] = margin[active].mean().item() + row['active_mean_entropy'] = entropy[active].mean().item() + row['active_mean_loss'] = lps[active].mean().item() + row['active_mean_grad_norm'] = norms[active].mean().item() + else: + row['active_miscls_rate'] = float('nan') + row['active_mean_margin'] = float('nan') + row['active_mean_entropy'] = float('nan') + row['active_mean_loss'] = float('nan') + row['active_mean_grad_norm'] = float('nan') + + if n_inactive > 0: + row['inactive_miscls_rate'] = 1.0 - correct[inactive].float().mean().item() + row['inactive_mean_margin'] = margin[inactive].mean().item() + row['inactive_mean_entropy'] = entropy[inactive].mean().item() + row['inactive_mean_loss'] = lps[inactive].mean().item() + else: + row['inactive_miscls_rate'] = float('nan') + row['inactive_mean_margin'] = float('nan') + row['inactive_mean_entropy'] = float('nan') + row['inactive_mean_loss'] = float('nan') + + b2_rows.append(row) + + # Print summary for this method + all_norms = torch.stack([bp[l].norm(-1) for l in range(L)]).flatten() + all_active = all_norms > tau_main + print(f" {method}: {all_active.sum()}/{len(all_active)} active, " + f"active_miscls={1-correct[bp[L//2].norm(-1)>tau_main].float().mean():.3f} " + f"inactive_miscls={1-correct[bp[L//2].norm(-1)<=tau_main].float().mean():.3f}", flush=True) + + out_b2 = os.path.join(args.output_dir, 'B2_active_subset.csv') + with open(out_b2, 'w', newline='') as f: + fields = ['method','layer','n_active','n_inactive','pct_active', + 'active_miscls_rate','active_mean_margin','active_mean_entropy','active_mean_loss','active_mean_grad_norm', + 'inactive_miscls_rate','inactive_mean_margin','inactive_mean_entropy','inactive_mean_loss'] + w = csv.DictWriter(f, fieldnames=fields); w.writeheader(); w.writerows(b2_rows) + print(f"B2: {len(b2_rows)} rows -> {out_b2}", flush=True) + + # ===== C1: Active-only vs inactive-only DFA credit cosine ===== + print(f"\n{'='*60}\nC1: Active vs inactive DFA credit cosine\n{'='*60}", flush=True) + c1_rows = [] + for method in methods_a2: + ckpt = f'results/confirmatory/checkpoints_A2/{method}_s42.pt' + if not os.path.exists(ckpt): continue + torch.manual_seed(42) + model = ResidualMLP(3072, d, 10, L).to(device) + model.load_state_dict(torch.load(ckpt, map_location=device)) + # Regenerate DFA Bs + torch.manual_seed(42); _ = ResidualMLP(3072, d, 10, L) + dfa_Bs = [torch.randn(d, 10, device=device) / np.sqrt(10) for _ in range(L)] + + bp, lo, _ = get_bp_grads_and_info(model, x_eval, y_eval, device) + with torch.no_grad(): + logits = model(x_eval) + e_T = logits.softmax(-1); e_T[torch.arange(batch), y_eval] -= 1 + + for l in range(L): + g = bp[l]; norms = g.norm(-1) + a_dfa = (e_T @ dfa_Bs[l].T).detach() + active = norms > tau_main + cos_all = F.cosine_similarity(a_dfa, g, dim=-1) + + row = {'method': method, 'layer': l} + row['gamma_all'] = cos_all.mean().item() + if active.sum() > 0: + row['gamma_active'] = cos_all[active].mean().item() + else: + row['gamma_active'] = float('nan') + if (~active).sum() > 0: + row['gamma_inactive'] = cos_all[~active].mean().item() + else: + row['gamma_inactive'] = float('nan') + row['n_active'] = active.sum().item() + c1_rows.append(row) + + print(f" {method}: gamma_active={np.nanmean([r['gamma_active'] for r in c1_rows if r['method']==method]):.4f} " + f"gamma_inactive={np.nanmean([r['gamma_inactive'] for r in c1_rows if r['method']==method]):.4f}", flush=True) + + out_c1 = os.path.join(args.output_dir, 'C1_active_vs_inactive_cosine.csv') + with open(out_c1, 'w', newline='') as f: + w = csv.DictWriter(f, fieldnames=['method','layer','gamma_all','gamma_active','gamma_inactive','n_active']) + w.writeheader(); w.writerows(c1_rows) + print(f"C1: {len(c1_rows)} rows -> {out_c1}", flush=True) + + # ===== C2: Gradient energy concentration ===== + print(f"\n{'='*60}\nC2: Gradient energy concentration\n{'='*60}", flush=True) + c2_rows = [] + ks = [1, 5, 10, 25, 50, 75, 90, 95, 99] + for method in methods_a2: + ckpt = f'results/confirmatory/checkpoints_A2/{method}_s42.pt' + if not os.path.exists(ckpt): continue + torch.manual_seed(42) + model = ResidualMLP(3072, d, 10, L).to(device) + model.load_state_dict(torch.load(ckpt, map_location=device)) + bp, _, _ = get_bp_grads_and_info(model, x_eval, y_eval, device) + + for l in range(L): + norms = bp[l].norm(dim=-1) + energy = norms ** 2 + total_energy = energy.sum().item() + sorted_energy, _ = energy.sort(descending=True) + cumsum = sorted_energy.cumsum(0) + for k in ks: + n_top = max(1, int(batch * k / 100)) + frac = cumsum[n_top - 1].item() / (total_energy + 1e-20) + c2_rows.append({'method': method, 'layer': l, 'top_k_pct': k, 'energy_fraction': frac}) + + # Summary + all_e = torch.stack([bp[l].norm(-1)**2 for l in range(L)]).flatten() + se, _ = all_e.sort(descending=True) + cs = se.cumsum(0) + te = all_e.sum() + top1 = cs[max(1, int(len(all_e)*0.01))-1].item() / (te.item()+1e-20) + top10 = cs[max(1, int(len(all_e)*0.10))-1].item() / (te.item()+1e-20) + print(f" {method}: top1%={top1:.4f}, top10%={top10:.4f}", flush=True) + + out_c2 = os.path.join(args.output_dir, 'C2_energy_concentration.csv') + with open(out_c2, 'w', newline='') as f: + w = csv.DictWriter(f, fieldnames=['method','layer','top_k_pct','energy_fraction']) + w.writeheader(); w.writerows(c2_rows) + print(f"C2: {len(c2_rows)} rows -> {out_c2}", flush=True) + + print("\nALL DONE", flush=True) + + +def main(): + p = argparse.ArgumentParser() + p.add_argument('--gpu', type=int, default=0) + p.add_argument('--output_dir', type=str, default='results/confirmatory') + args = p.parse_args() + run_analysis(args) + +if __name__ == '__main__': + main() diff --git a/results/confirmatory/A4_perlayer_support.csv b/results/confirmatory/A4_perlayer_support.csv new file mode 100644 index 0000000..ace5a19 --- /dev/null +++ b/results/confirmatory/A4_perlayer_support.csv @@ -0,0 +1,241 @@ +method,seed,layer,threshold,support_fraction,mean_norm,median_norm
+bp,42,0,1e-08,0.9990234375,6.420379941118881e-05,4.757100032293238e-05
+bp,42,0,1e-07,0.998046875,6.420379941118881e-05,4.757100032293238e-05
+bp,42,0,1e-06,0.9443359375,6.420379941118881e-05,4.757100032293238e-05
+bp,42,0,1e-05,0.78125,6.420379941118881e-05,4.757100032293238e-05
+bp,42,0,0.0001,0.2548828125,6.420379941118881e-05,4.757100032293238e-05
+bp,42,1,1e-08,0.9990234375,6.868089258205146e-05,5.125039388076402e-05
+bp,42,1,1e-07,0.998046875,6.868089258205146e-05,5.125039388076402e-05
+bp,42,1,1e-06,0.9482421875,6.868089258205146e-05,5.125039388076402e-05
+bp,42,1,1e-05,0.79296875,6.868089258205146e-05,5.125039388076402e-05
+bp,42,1,0.0001,0.2861328125,6.868089258205146e-05,5.125039388076402e-05
+bp,42,2,1e-08,0.9990234375,7.030378037597984e-05,5.254471398075111e-05
+bp,42,2,1e-07,0.998046875,7.030378037597984e-05,5.254471398075111e-05
+bp,42,2,1e-06,0.9501953125,7.030378037597984e-05,5.254471398075111e-05
+bp,42,2,1e-05,0.8017578125,7.030378037597984e-05,5.254471398075111e-05
+bp,42,2,0.0001,0.3056640625,7.030378037597984e-05,5.254471398075111e-05
+bp,42,3,1e-08,0.9990234375,6.579310866072774e-05,5.176133709028363e-05
+bp,42,3,1e-07,0.998046875,6.579310866072774e-05,5.176133709028363e-05
+bp,42,3,1e-06,0.9501953125,6.579310866072774e-05,5.176133709028363e-05
+bp,42,3,1e-05,0.7939453125,6.579310866072774e-05,5.176133709028363e-05
+bp,42,3,0.0001,0.2763671875,6.579310866072774e-05,5.176133709028363e-05
+bp,123,0,1e-08,0.9990234375,6.826331082265824e-05,5.234080526861362e-05
+bp,123,0,1e-07,0.9921875,6.826331082265824e-05,5.234080526861362e-05
+bp,123,0,1e-06,0.9345703125,6.826331082265824e-05,5.234080526861362e-05
+bp,123,0,1e-05,0.7724609375,6.826331082265824e-05,5.234080526861362e-05
+bp,123,0,0.0001,0.27734375,6.826331082265824e-05,5.234080526861362e-05
+bp,123,1,1e-08,0.9990234375,7.233803626149893e-05,5.5852517107268795e-05
+bp,123,1,1e-07,0.9931640625,7.233803626149893e-05,5.5852517107268795e-05
+bp,123,1,1e-06,0.939453125,7.233803626149893e-05,5.5852517107268795e-05
+bp,123,1,1e-05,0.77734375,7.233803626149893e-05,5.5852517107268795e-05
+bp,123,1,0.0001,0.306640625,7.233803626149893e-05,5.5852517107268795e-05
+bp,123,2,1e-08,0.9990234375,7.557235949207097e-05,5.8344197896076366e-05
+bp,123,2,1e-07,0.994140625,7.557235949207097e-05,5.8344197896076366e-05
+bp,123,2,1e-06,0.94140625,7.557235949207097e-05,5.8344197896076366e-05
+bp,123,2,1e-05,0.7900390625,7.557235949207097e-05,5.8344197896076366e-05
+bp,123,2,0.0001,0.3251953125,7.557235949207097e-05,5.8344197896076366e-05
+bp,123,3,1e-08,0.9990234375,7.112986349966377e-05,5.571585279540159e-05
+bp,123,3,1e-07,0.9931640625,7.112986349966377e-05,5.571585279540159e-05
+bp,123,3,1e-06,0.9375,7.112986349966377e-05,5.571585279540159e-05
+bp,123,3,1e-05,0.783203125,7.112986349966377e-05,5.571585279540159e-05
+bp,123,3,0.0001,0.3193359375,7.112986349966377e-05,5.571585279540159e-05
+bp,456,0,1e-08,0.9990234375,6.796819070586935e-05,5.103028888697736e-05
+bp,456,0,1e-07,0.9931640625,6.796819070586935e-05,5.103028888697736e-05
+bp,456,0,1e-06,0.94921875,6.796819070586935e-05,5.103028888697736e-05
+bp,456,0,1e-05,0.802734375,6.796819070586935e-05,5.103028888697736e-05
+bp,456,0,0.0001,0.2705078125,6.796819070586935e-05,5.103028888697736e-05
+bp,456,1,1e-08,0.9990234375,7.196342630777508e-05,5.5566310038557276e-05
+bp,456,1,1e-07,0.9931640625,7.196342630777508e-05,5.5566310038557276e-05
+bp,456,1,1e-06,0.9501953125,7.196342630777508e-05,5.5566310038557276e-05
+bp,456,1,1e-05,0.80859375,7.196342630777508e-05,5.5566310038557276e-05
+bp,456,1,0.0001,0.294921875,7.196342630777508e-05,5.5566310038557276e-05
+bp,456,2,1e-08,0.9990234375,7.424073555739596e-05,5.7587629271438345e-05
+bp,456,2,1e-07,0.994140625,7.424073555739596e-05,5.7587629271438345e-05
+bp,456,2,1e-06,0.953125,7.424073555739596e-05,5.7587629271438345e-05
+bp,456,2,1e-05,0.8173828125,7.424073555739596e-05,5.7587629271438345e-05
+bp,456,2,0.0001,0.3173828125,7.424073555739596e-05,5.7587629271438345e-05
+bp,456,3,1e-08,0.9990234375,6.964454951230437e-05,5.580891956924461e-05
+bp,456,3,1e-07,0.994140625,6.964454951230437e-05,5.580891956924461e-05
+bp,456,3,1e-06,0.951171875,6.964454951230437e-05,5.580891956924461e-05
+bp,456,3,1e-05,0.8115234375,6.964454951230437e-05,5.580891956924461e-05
+bp,456,3,0.0001,0.302734375,6.964454951230437e-05,5.580891956924461e-05
+dfa,42,0,1e-08,1.0,7.445955674256766e-08,6.033278054928815e-08
+dfa,42,0,1e-07,0.21484375,7.445955674256766e-08,6.033278054928815e-08
+dfa,42,0,1e-06,0.0,7.445955674256766e-08,6.033278054928815e-08
+dfa,42,0,1e-05,0.0,7.445955674256766e-08,6.033278054928815e-08
+dfa,42,0,0.0001,0.0,7.445955674256766e-08,6.033278054928815e-08
+dfa,42,1,1e-08,0.0,6.029913235394702e-10,5.467529207159316e-10
+dfa,42,1,1e-07,0.0,6.029913235394702e-10,5.467529207159316e-10
+dfa,42,1,1e-06,0.0,6.029913235394702e-10,5.467529207159316e-10
+dfa,42,1,1e-05,0.0,6.029913235394702e-10,5.467529207159316e-10
+dfa,42,1,0.0001,0.0,6.029913235394702e-10,5.467529207159316e-10
+dfa,42,2,1e-08,0.0,5.976069639146431e-10,5.441311290432793e-10
+dfa,42,2,1e-07,0.0,5.976069639146431e-10,5.441311290432793e-10
+dfa,42,2,1e-06,0.0,5.976069639146431e-10,5.441311290432793e-10
+dfa,42,2,1e-05,0.0,5.976069639146431e-10,5.441311290432793e-10
+dfa,42,2,0.0001,0.0,5.976069639146431e-10,5.441311290432793e-10
+dfa,42,3,1e-08,0.0,5.973174732609721e-10,5.436861516550096e-10
+dfa,42,3,1e-07,0.0,5.973174732609721e-10,5.436861516550096e-10
+dfa,42,3,1e-06,0.0,5.973174732609721e-10,5.436861516550096e-10
+dfa,42,3,1e-05,0.0,5.973174732609721e-10,5.436861516550096e-10
+dfa,42,3,0.0001,0.0,5.973174732609721e-10,5.436861516550096e-10
+dfa,123,0,1e-08,1.0,8.558982500517232e-08,6.690434872780315e-08
+dfa,123,0,1e-07,0.2802734375,8.558982500517232e-08,6.690434872780315e-08
+dfa,123,0,1e-06,0.0,8.558982500517232e-08,6.690434872780315e-08
+dfa,123,0,1e-05,0.0,8.558982500517232e-08,6.690434872780315e-08
+dfa,123,0,0.0001,0.0,8.558982500517232e-08,6.690434872780315e-08
+dfa,123,1,1e-08,0.0,3.885574917372736e-10,3.6982170104060685e-10
+dfa,123,1,1e-07,0.0,3.885574917372736e-10,3.6982170104060685e-10
+dfa,123,1,1e-06,0.0,3.885574917372736e-10,3.6982170104060685e-10
+dfa,123,1,1e-05,0.0,3.885574917372736e-10,3.6982170104060685e-10
+dfa,123,1,0.0001,0.0,3.885574917372736e-10,3.6982170104060685e-10
+dfa,123,2,1e-08,0.0,3.82178039215475e-10,3.643452484158871e-10
+dfa,123,2,1e-07,0.0,3.82178039215475e-10,3.643452484158871e-10
+dfa,123,2,1e-06,0.0,3.82178039215475e-10,3.643452484158871e-10
+dfa,123,2,1e-05,0.0,3.82178039215475e-10,3.643452484158871e-10
+dfa,123,2,0.0001,0.0,3.82178039215475e-10,3.643452484158871e-10
+dfa,123,3,1e-08,0.0,3.82106263296933e-10,3.6438793649118395e-10
+dfa,123,3,1e-07,0.0,3.82106263296933e-10,3.6438793649118395e-10
+dfa,123,3,1e-06,0.0,3.82106263296933e-10,3.6438793649118395e-10
+dfa,123,3,1e-05,0.0,3.82106263296933e-10,3.6438793649118395e-10
+dfa,123,3,0.0001,0.0,3.82106263296933e-10,3.6438793649118395e-10
+dfa,456,0,1e-08,0.9990234375,6.62804069406775e-08,5.096582356145518e-08
+dfa,456,0,1e-07,0.1728515625,6.62804069406775e-08,5.096582356145518e-08
+dfa,456,0,1e-06,0.0,6.62804069406775e-08,5.096582356145518e-08
+dfa,456,0,1e-05,0.0,6.62804069406775e-08,5.096582356145518e-08
+dfa,456,0,0.0001,0.0,6.62804069406775e-08,5.096582356145518e-08
+dfa,456,1,1e-08,0.0,2.723611336463705e-10,2.5308924400668786e-10
+dfa,456,1,1e-07,0.0,2.723611336463705e-10,2.5308924400668786e-10
+dfa,456,1,1e-06,0.0,2.723611336463705e-10,2.5308924400668786e-10
+dfa,456,1,1e-05,0.0,2.723611336463705e-10,2.5308924400668786e-10
+dfa,456,1,0.0001,0.0,2.723611336463705e-10,2.5308924400668786e-10
+dfa,456,2,1e-08,0.0,2.684660826979268e-10,2.498188322874739e-10
+dfa,456,2,1e-07,0.0,2.684660826979268e-10,2.498188322874739e-10
+dfa,456,2,1e-06,0.0,2.684660826979268e-10,2.498188322874739e-10
+dfa,456,2,1e-05,0.0,2.684660826979268e-10,2.498188322874739e-10
+dfa,456,2,0.0001,0.0,2.684660826979268e-10,2.498188322874739e-10
+dfa,456,3,1e-08,0.0,2.68405991876719e-10,2.499166429359434e-10
+dfa,456,3,1e-07,0.0,2.68405991876719e-10,2.499166429359434e-10
+dfa,456,3,1e-06,0.0,2.68405991876719e-10,2.499166429359434e-10
+dfa,456,3,1e-05,0.0,2.68405991876719e-10,2.499166429359434e-10
+dfa,456,3,0.0001,0.0,2.68405991876719e-10,2.499166429359434e-10
+state_bridge,42,0,1e-08,0.9951171875,1.5461689599760575e-06,1.046195166054531e-06
+state_bridge,42,0,1e-07,0.94140625,1.5461689599760575e-06,1.046195166054531e-06
+state_bridge,42,0,1e-06,0.5283203125,1.5461689599760575e-06,1.046195166054531e-06
+state_bridge,42,0,1e-05,0.0048828125,1.5461689599760575e-06,1.046195166054531e-06
+state_bridge,42,0,0.0001,0.0,1.5461689599760575e-06,1.046195166054531e-06
+state_bridge,42,1,1e-08,0.0,2.511534313853758e-10,2.357372075323383e-10
+state_bridge,42,1,1e-07,0.0,2.511534313853758e-10,2.357372075323383e-10
+state_bridge,42,1,1e-06,0.0,2.511534313853758e-10,2.357372075323383e-10
+state_bridge,42,1,1e-05,0.0,2.511534313853758e-10,2.357372075323383e-10
+state_bridge,42,1,0.0001,0.0,2.511534313853758e-10,2.357372075323383e-10
+state_bridge,42,2,1e-08,0.0,2.4734042591845196e-10,2.313833846745439e-10
+state_bridge,42,2,1e-07,0.0,2.4734042591845196e-10,2.313833846745439e-10
+state_bridge,42,2,1e-06,0.0,2.4734042591845196e-10,2.313833846745439e-10
+state_bridge,42,2,1e-05,0.0,2.4734042591845196e-10,2.313833846745439e-10
+state_bridge,42,2,0.0001,0.0,2.4734042591845196e-10,2.313833846745439e-10
+state_bridge,42,3,1e-08,0.0,2.3524043823996976e-10,2.1822209317345909e-10
+state_bridge,42,3,1e-07,0.0,2.3524043823996976e-10,2.1822209317345909e-10
+state_bridge,42,3,1e-06,0.0,2.3524043823996976e-10,2.1822209317345909e-10
+state_bridge,42,3,1e-05,0.0,2.3524043823996976e-10,2.1822209317345909e-10
+state_bridge,42,3,0.0001,0.0,2.3524043823996976e-10,2.1822209317345909e-10
+state_bridge,123,0,1e-08,1.0,3.0364531085069757e-06,2.199241635025828e-06
+state_bridge,123,0,1e-07,0.9814453125,3.0364531085069757e-06,2.199241635025828e-06
+state_bridge,123,0,1e-06,0.7802734375,3.0364531085069757e-06,2.199241635025828e-06
+state_bridge,123,0,1e-05,0.0283203125,3.0364531085069757e-06,2.199241635025828e-06
+state_bridge,123,0,0.0001,0.0,3.0364531085069757e-06,2.199241635025828e-06
+state_bridge,123,1,1e-08,0.0,3.445063123663772e-10,3.0412453111416937e-10
+state_bridge,123,1,1e-07,0.0,3.445063123663772e-10,3.0412453111416937e-10
+state_bridge,123,1,1e-06,0.0,3.445063123663772e-10,3.0412453111416937e-10
+state_bridge,123,1,1e-05,0.0,3.445063123663772e-10,3.0412453111416937e-10
+state_bridge,123,1,0.0001,0.0,3.445063123663772e-10,3.0412453111416937e-10
+state_bridge,123,2,1e-08,0.0,3.406872561839691e-10,2.9890334651838657e-10
+state_bridge,123,2,1e-07,0.0,3.406872561839691e-10,2.9890334651838657e-10
+state_bridge,123,2,1e-06,0.0,3.406872561839691e-10,2.9890334651838657e-10
+state_bridge,123,2,1e-05,0.0,3.406872561839691e-10,2.9890334651838657e-10
+state_bridge,123,2,0.0001,0.0,3.406872561839691e-10,2.9890334651838657e-10
+state_bridge,123,3,1e-08,0.0,3.3725344739110596e-10,2.9520974553776114e-10
+state_bridge,123,3,1e-07,0.0,3.3725344739110596e-10,2.9520974553776114e-10
+state_bridge,123,3,1e-06,0.0,3.3725344739110596e-10,2.9520974553776114e-10
+state_bridge,123,3,1e-05,0.0,3.3725344739110596e-10,2.9520974553776114e-10
+state_bridge,123,3,0.0001,0.0,3.3725344739110596e-10,2.9520974553776114e-10
+state_bridge,456,0,1e-08,0.9921875,3.4133063309127465e-06,1.421034198756388e-06
+state_bridge,456,0,1e-07,0.947265625,3.4133063309127465e-06,1.421034198756388e-06
+state_bridge,456,0,1e-06,0.6044921875,3.4133063309127465e-06,1.421034198756388e-06
+state_bridge,456,0,1e-05,0.044921875,3.4133063309127465e-06,1.421034198756388e-06
+state_bridge,456,0,0.0001,0.001953125,3.4133063309127465e-06,1.421034198756388e-06
+state_bridge,456,1,1e-08,0.0107421875,2.6507986916612936e-09,3.6186914575964124e-10
+state_bridge,456,1,1e-07,0.0048828125,2.6507986916612936e-09,3.6186914575964124e-10
+state_bridge,456,1,1e-06,0.0,2.6507986916612936e-09,3.6186914575964124e-10
+state_bridge,456,1,1e-05,0.0,2.6507986916612936e-09,3.6186914575964124e-10
+state_bridge,456,1,0.0001,0.0,2.6507986916612936e-09,3.6186914575964124e-10
+state_bridge,456,2,1e-08,0.0,3.456599451112652e-10,3.0120325678062443e-10
+state_bridge,456,2,1e-07,0.0,3.456599451112652e-10,3.0120325678062443e-10
+state_bridge,456,2,1e-06,0.0,3.456599451112652e-10,3.0120325678062443e-10
+state_bridge,456,2,1e-05,0.0,3.456599451112652e-10,3.0120325678062443e-10
+state_bridge,456,2,0.0001,0.0,3.456599451112652e-10,3.0120325678062443e-10
+state_bridge,456,3,1e-08,0.0,3.452579333540484e-10,3.0106017678832586e-10
+state_bridge,456,3,1e-07,0.0,3.452579333540484e-10,3.0106017678832586e-10
+state_bridge,456,3,1e-06,0.0,3.452579333540484e-10,3.0106017678832586e-10
+state_bridge,456,3,1e-05,0.0,3.452579333540484e-10,3.0106017678832586e-10
+state_bridge,456,3,0.0001,0.0,3.452579333540484e-10,3.0106017678832586e-10
+credit_bridge,42,0,1e-08,0.982421875,1.573595085346824e-07,9.742006312762896e-08
+credit_bridge,42,0,1e-07,0.4921875,1.573595085346824e-07,9.742006312762896e-08
+credit_bridge,42,0,1e-06,0.0048828125,1.573595085346824e-07,9.742006312762896e-08
+credit_bridge,42,0,1e-05,0.0,1.573595085346824e-07,9.742006312762896e-08
+credit_bridge,42,0,0.0001,0.0,1.573595085346824e-07,9.742006312762896e-08
+credit_bridge,42,1,1e-08,0.0,1.8079358843348103e-10,1.3712213309258203e-10
+credit_bridge,42,1,1e-07,0.0,1.8079358843348103e-10,1.3712213309258203e-10
+credit_bridge,42,1,1e-06,0.0,1.8079358843348103e-10,1.3712213309258203e-10
+credit_bridge,42,1,1e-05,0.0,1.8079358843348103e-10,1.3712213309258203e-10
+credit_bridge,42,1,0.0001,0.0,1.8079358843348103e-10,1.3712213309258203e-10
+credit_bridge,42,2,1e-08,0.0,1.2228654200363565e-10,1.16817375217515e-10
+credit_bridge,42,2,1e-07,0.0,1.2228654200363565e-10,1.16817375217515e-10
+credit_bridge,42,2,1e-06,0.0,1.2228654200363565e-10,1.16817375217515e-10
+credit_bridge,42,2,1e-05,0.0,1.2228654200363565e-10,1.16817375217515e-10
+credit_bridge,42,2,0.0001,0.0,1.2228654200363565e-10,1.16817375217515e-10
+credit_bridge,42,3,1e-08,0.0,1.2209952493513754e-10,1.168843077881121e-10
+credit_bridge,42,3,1e-07,0.0,1.2209952493513754e-10,1.168843077881121e-10
+credit_bridge,42,3,1e-06,0.0,1.2209952493513754e-10,1.168843077881121e-10
+credit_bridge,42,3,1e-05,0.0,1.2209952493513754e-10,1.168843077881121e-10
+credit_bridge,42,3,0.0001,0.0,1.2209952493513754e-10,1.168843077881121e-10
+credit_bridge,123,0,1e-08,1.0,1.822186845856777e-07,1.3197313819546252e-07
+credit_bridge,123,0,1e-07,0.6630859375,1.822186845856777e-07,1.3197313819546252e-07
+credit_bridge,123,0,1e-06,0.0087890625,1.822186845856777e-07,1.3197313819546252e-07
+credit_bridge,123,0,1e-05,0.0,1.822186845856777e-07,1.3197313819546252e-07
+credit_bridge,123,0,0.0001,0.0,1.822186845856777e-07,1.3197313819546252e-07
+credit_bridge,123,1,1e-08,0.0,5.901329425128665e-10,5.348693710161001e-10
+credit_bridge,123,1,1e-07,0.0,5.901329425128665e-10,5.348693710161001e-10
+credit_bridge,123,1,1e-06,0.0,5.901329425128665e-10,5.348693710161001e-10
+credit_bridge,123,1,1e-05,0.0,5.901329425128665e-10,5.348693710161001e-10
+credit_bridge,123,1,0.0001,0.0,5.901329425128665e-10,5.348693710161001e-10
+credit_bridge,123,2,1e-08,0.0,5.687246784624733e-10,5.182918538793047e-10
+credit_bridge,123,2,1e-07,0.0,5.687246784624733e-10,5.182918538793047e-10
+credit_bridge,123,2,1e-06,0.0,5.687246784624733e-10,5.182918538793047e-10
+credit_bridge,123,2,1e-05,0.0,5.687246784624733e-10,5.182918538793047e-10
+credit_bridge,123,2,0.0001,0.0,5.687246784624733e-10,5.182918538793047e-10
+credit_bridge,123,3,1e-08,0.0,5.659206436803288e-10,5.167046790433005e-10
+credit_bridge,123,3,1e-07,0.0,5.659206436803288e-10,5.167046790433005e-10
+credit_bridge,123,3,1e-06,0.0,5.659206436803288e-10,5.167046790433005e-10
+credit_bridge,123,3,1e-05,0.0,5.659206436803288e-10,5.167046790433005e-10
+credit_bridge,123,3,0.0001,0.0,5.659206436803288e-10,5.167046790433005e-10
+credit_bridge,456,0,1e-08,1.0,1.1763398788389168e-07,8.743072044126166e-08
+credit_bridge,456,0,1e-07,0.43359375,1.1763398788389168e-07,8.743072044126166e-08
+credit_bridge,456,0,1e-06,0.0,1.1763398788389168e-07,8.743072044126166e-08
+credit_bridge,456,0,1e-05,0.0,1.1763398788389168e-07,8.743072044126166e-08
+credit_bridge,456,0,0.0001,0.0,1.1763398788389168e-07,8.743072044126166e-08
+credit_bridge,456,1,1e-08,0.0,3.321813102363791e-10,3.178909635526139e-10
+credit_bridge,456,1,1e-07,0.0,3.321813102363791e-10,3.178909635526139e-10
+credit_bridge,456,1,1e-06,0.0,3.321813102363791e-10,3.178909635526139e-10
+credit_bridge,456,1,1e-05,0.0,3.321813102363791e-10,3.178909635526139e-10
+credit_bridge,456,1,0.0001,0.0,3.321813102363791e-10,3.178909635526139e-10
+credit_bridge,456,2,1e-08,0.0,3.2246236236765924e-10,3.0897787106631824e-10
+credit_bridge,456,2,1e-07,0.0,3.2246236236765924e-10,3.0897787106631824e-10
+credit_bridge,456,2,1e-06,0.0,3.2246236236765924e-10,3.0897787106631824e-10
+credit_bridge,456,2,1e-05,0.0,3.2246236236765924e-10,3.0897787106631824e-10
+credit_bridge,456,2,0.0001,0.0,3.2246236236765924e-10,3.0897787106631824e-10
+credit_bridge,456,3,1e-08,0.0,3.219113864361134e-10,3.0849234278207405e-10
+credit_bridge,456,3,1e-07,0.0,3.219113864361134e-10,3.0849234278207405e-10
+credit_bridge,456,3,1e-06,0.0,3.219113864361134e-10,3.0849234278207405e-10
+credit_bridge,456,3,1e-05,0.0,3.219113864361134e-10,3.0849234278207405e-10
+credit_bridge,456,3,0.0001,0.0,3.219113864361134e-10,3.0849234278207405e-10
diff --git a/results/confirmatory/B1_snapshot_evolution.csv b/results/confirmatory/B1_snapshot_evolution.csv new file mode 100644 index 0000000..2b7524b --- /dev/null +++ b/results/confirmatory/B1_snapshot_evolution.csv @@ -0,0 +1,141 @@ +trajectory,epoch,layer,threshold,support_fraction,mean_norm,acc
+bp,5,0,1e-08,1.0,4.483891825657338e-05,0.51171875
+bp,5,0,1e-07,1.0,4.483891825657338e-05,0.51171875
+bp,5,0,1e-06,1.0,4.483891825657338e-05,0.51171875
+bp,5,0,1e-05,0.921875,4.483891825657338e-05,0.51171875
+bp,5,0,0.0001,0.0576171875,4.483891825657338e-05,0.51171875
+bp,5,1,1e-08,1.0,4.299964348319918e-05,0.51171875
+bp,5,1,1e-07,1.0,4.299964348319918e-05,0.51171875
+bp,5,1,1e-06,1.0,4.299964348319918e-05,0.51171875
+bp,5,1,1e-05,0.923828125,4.299964348319918e-05,0.51171875
+bp,5,1,0.0001,0.037109375,4.299964348319918e-05,0.51171875
+bp,5,2,1e-08,1.0,4.181481199339032e-05,0.51171875
+bp,5,2,1e-07,1.0,4.181481199339032e-05,0.51171875
+bp,5,2,1e-06,1.0,4.181481199339032e-05,0.51171875
+bp,5,2,1e-05,0.92578125,4.181481199339032e-05,0.51171875
+bp,5,2,0.0001,0.02734375,4.181481199339032e-05,0.51171875
+bp,5,3,1e-08,1.0,4.038367478642613e-05,0.51171875
+bp,5,3,1e-07,1.0,4.038367478642613e-05,0.51171875
+bp,5,3,1e-06,1.0,4.038367478642613e-05,0.51171875
+bp,5,3,1e-05,0.9248046875,4.038367478642613e-05,0.51171875
+bp,5,3,0.0001,0.01171875,4.038367478642613e-05,0.51171875
+bp,20,0,1e-08,1.0,3.855159957311116e-05,0.58203125
+bp,20,0,1e-07,1.0,3.855159957311116e-05,0.58203125
+bp,20,0,1e-06,0.9912109375,3.855159957311116e-05,0.58203125
+bp,20,0,1e-05,0.8544921875,3.855159957311116e-05,0.58203125
+bp,20,0,0.0001,0.0302734375,3.855159957311116e-05,0.58203125
+bp,20,1,1e-08,1.0,3.9941558497957885e-05,0.58203125
+bp,20,1,1e-07,1.0,3.9941558497957885e-05,0.58203125
+bp,20,1,1e-06,0.9912109375,3.9941558497957885e-05,0.58203125
+bp,20,1,1e-05,0.8564453125,3.9941558497957885e-05,0.58203125
+bp,20,1,0.0001,0.033203125,3.9941558497957885e-05,0.58203125
+bp,20,2,1e-08,1.0,4.0202223317464814e-05,0.58203125
+bp,20,2,1e-07,1.0,4.0202223317464814e-05,0.58203125
+bp,20,2,1e-06,0.9921875,4.0202223317464814e-05,0.58203125
+bp,20,2,1e-05,0.8583984375,4.0202223317464814e-05,0.58203125
+bp,20,2,0.0001,0.029296875,4.0202223317464814e-05,0.58203125
+bp,20,3,1e-08,1.0,3.811887654592283e-05,0.58203125
+bp,20,3,1e-07,1.0,3.811887654592283e-05,0.58203125
+bp,20,3,1e-06,0.9912109375,3.811887654592283e-05,0.58203125
+bp,20,3,1e-05,0.8564453125,3.811887654592283e-05,0.58203125
+bp,20,3,0.0001,0.0205078125,3.811887654592283e-05,0.58203125
+bp,100,0,1e-08,1.0,6.512180698337033e-05,0.6298828125
+bp,100,0,1e-07,0.994140625,6.512180698337033e-05,0.6298828125
+bp,100,0,1e-06,0.9521484375,6.512180698337033e-05,0.6298828125
+bp,100,0,1e-05,0.7802734375,6.512180698337033e-05,0.6298828125
+bp,100,0,0.0001,0.244140625,6.512180698337033e-05,0.6298828125
+bp,100,1,1e-08,1.0,6.946265057194978e-05,0.6298828125
+bp,100,1,1e-07,0.994140625,6.946265057194978e-05,0.6298828125
+bp,100,1,1e-06,0.9541015625,6.946265057194978e-05,0.6298828125
+bp,100,1,1e-05,0.791015625,6.946265057194978e-05,0.6298828125
+bp,100,1,0.0001,0.279296875,6.946265057194978e-05,0.6298828125
+bp,100,2,1e-08,1.0,7.156480569392443e-05,0.6298828125
+bp,100,2,1e-07,0.9951171875,7.156480569392443e-05,0.6298828125
+bp,100,2,1e-06,0.95703125,7.156480569392443e-05,0.6298828125
+bp,100,2,1e-05,0.7998046875,7.156480569392443e-05,0.6298828125
+bp,100,2,0.0001,0.2958984375,7.156480569392443e-05,0.6298828125
+bp,100,3,1e-08,1.0,6.617877807002515e-05,0.6298828125
+bp,100,3,1e-07,0.9951171875,6.617877807002515e-05,0.6298828125
+bp,100,3,1e-06,0.955078125,6.617877807002515e-05,0.6298828125
+bp,100,3,1e-05,0.7900390625,6.617877807002515e-05,0.6298828125
+bp,100,3,0.0001,0.2666015625,6.617877807002515e-05,0.6298828125
+dfa,1,0,1e-08,1.0,3.0525882266374538e-06,0.3076171875
+dfa,1,0,1e-07,1.0,3.0525882266374538e-06,0.3076171875
+dfa,1,0,1e-06,0.9541015625,3.0525882266374538e-06,0.3076171875
+dfa,1,0,1e-05,0.0205078125,3.0525882266374538e-06,0.3076171875
+dfa,1,0,0.0001,0.0,3.0525882266374538e-06,0.3076171875
+dfa,1,1,1e-08,1.0,1.8007306152867386e-06,0.3076171875
+dfa,1,1,1e-07,1.0,1.8007306152867386e-06,0.3076171875
+dfa,1,1,1e-06,0.6884765625,1.8007306152867386e-06,0.3076171875
+dfa,1,1,1e-05,0.0087890625,1.8007306152867386e-06,0.3076171875
+dfa,1,1,0.0001,0.0,1.8007306152867386e-06,0.3076171875
+dfa,1,2,1e-08,1.0,1.7740828752721427e-06,0.3076171875
+dfa,1,2,1e-07,1.0,1.7740828752721427e-06,0.3076171875
+dfa,1,2,1e-06,0.6962890625,1.7740828752721427e-06,0.3076171875
+dfa,1,2,1e-05,0.0078125,1.7740828752721427e-06,0.3076171875
+dfa,1,2,0.0001,0.0,1.7740828752721427e-06,0.3076171875
+dfa,1,3,1e-08,1.0,1.772904170138645e-06,0.3076171875
+dfa,1,3,1e-07,1.0,1.772904170138645e-06,0.3076171875
+dfa,1,3,1e-06,0.7138671875,1.772904170138645e-06,0.3076171875
+dfa,1,3,1e-05,0.0068359375,1.772904170138645e-06,0.3076171875
+dfa,1,3,0.0001,0.0,1.772904170138645e-06,0.3076171875
+dfa,5,0,1e-08,1.0,6.300403470049787e-07,0.2958984375
+dfa,5,0,1e-07,0.994140625,6.300403470049787e-07,0.2958984375
+dfa,5,0,1e-06,0.1513671875,6.300403470049787e-07,0.2958984375
+dfa,5,0,1e-05,0.0,6.300403470049787e-07,0.2958984375
+dfa,5,0,0.0001,0.0,6.300403470049787e-07,0.2958984375
+dfa,5,1,1e-08,1.0,4.731383640432796e-08,0.2958984375
+dfa,5,1,1e-07,0.02734375,4.731383640432796e-08,0.2958984375
+dfa,5,1,1e-06,0.0,4.731383640432796e-08,0.2958984375
+dfa,5,1,1e-05,0.0,4.731383640432796e-08,0.2958984375
+dfa,5,1,0.0001,0.0,4.731383640432796e-08,0.2958984375
+dfa,5,2,1e-08,1.0,4.211676696286304e-08,0.2958984375
+dfa,5,2,1e-07,0.0029296875,4.211676696286304e-08,0.2958984375
+dfa,5,2,1e-06,0.0,4.211676696286304e-08,0.2958984375
+dfa,5,2,1e-05,0.0,4.211676696286304e-08,0.2958984375
+dfa,5,2,0.0001,0.0,4.211676696286304e-08,0.2958984375
+dfa,5,3,1e-08,1.0,4.2581724812862376e-08,0.2958984375
+dfa,5,3,1e-07,0.0029296875,4.2581724812862376e-08,0.2958984375
+dfa,5,3,1e-06,0.0,4.2581724812862376e-08,0.2958984375
+dfa,5,3,1e-05,0.0,4.2581724812862376e-08,0.2958984375
+dfa,5,3,0.0001,0.0,4.2581724812862376e-08,0.2958984375
+dfa,10,0,1e-08,1.0,3.4604073562150006e-07,0.3056640625
+dfa,10,0,1e-07,0.94921875,3.4604073562150006e-07,0.3056640625
+dfa,10,0,1e-06,0.0205078125,3.4604073562150006e-07,0.3056640625
+dfa,10,0,1e-05,0.0,3.4604073562150006e-07,0.3056640625
+dfa,10,0,0.0001,0.0,3.4604073562150006e-07,0.3056640625
+dfa,10,1,1e-08,0.576171875,1.1805626698446758e-08,0.3056640625
+dfa,10,1,1e-07,0.0009765625,1.1805626698446758e-08,0.3056640625
+dfa,10,1,1e-06,0.0,1.1805626698446758e-08,0.3056640625
+dfa,10,1,1e-05,0.0,1.1805626698446758e-08,0.3056640625
+dfa,10,1,0.0001,0.0,1.1805626698446758e-08,0.3056640625
+dfa,10,2,1e-08,0.5205078125,1.0734424904512707e-08,0.3056640625
+dfa,10,2,1e-07,0.0,1.0734424904512707e-08,0.3056640625
+dfa,10,2,1e-06,0.0,1.0734424904512707e-08,0.3056640625
+dfa,10,2,1e-05,0.0,1.0734424904512707e-08,0.3056640625
+dfa,10,2,0.0001,0.0,1.0734424904512707e-08,0.3056640625
+dfa,10,3,1e-08,0.52734375,1.080153211319157e-08,0.3056640625
+dfa,10,3,1e-07,0.0,1.080153211319157e-08,0.3056640625
+dfa,10,3,1e-06,0.0,1.080153211319157e-08,0.3056640625
+dfa,10,3,1e-05,0.0,1.080153211319157e-08,0.3056640625
+dfa,10,3,0.0001,0.0,1.080153211319157e-08,0.3056640625
+dfa,100,0,1e-08,1.0,7.399695789445104e-08,0.306640625
+dfa,100,0,1e-07,0.208984375,7.399695789445104e-08,0.306640625
+dfa,100,0,1e-06,0.0,7.399695789445104e-08,0.306640625
+dfa,100,0,1e-05,0.0,7.399695789445104e-08,0.306640625
+dfa,100,0,0.0001,0.0,7.399695789445104e-08,0.306640625
+dfa,100,1,1e-08,0.0,6.518139361588737e-10,0.306640625
+dfa,100,1,1e-07,0.0,6.518139361588737e-10,0.306640625
+dfa,100,1,1e-06,0.0,6.518139361588737e-10,0.306640625
+dfa,100,1,1e-05,0.0,6.518139361588737e-10,0.306640625
+dfa,100,1,0.0001,0.0,6.518139361588737e-10,0.306640625
+dfa,100,2,1e-08,0.0,6.477210989785931e-10,0.306640625
+dfa,100,2,1e-07,0.0,6.477210989785931e-10,0.306640625
+dfa,100,2,1e-06,0.0,6.477210989785931e-10,0.306640625
+dfa,100,2,1e-05,0.0,6.477210989785931e-10,0.306640625
+dfa,100,2,0.0001,0.0,6.477210989785931e-10,0.306640625
+dfa,100,3,1e-08,0.0,6.475002756189951e-10,0.306640625
+dfa,100,3,1e-07,0.0,6.475002756189951e-10,0.306640625
+dfa,100,3,1e-06,0.0,6.475002756189951e-10,0.306640625
+dfa,100,3,1e-05,0.0,6.475002756189951e-10,0.306640625
+dfa,100,3,0.0001,0.0,6.475002756189951e-10,0.306640625
diff --git a/results/confirmatory/B2_active_subset.csv b/results/confirmatory/B2_active_subset.csv new file mode 100644 index 0000000..64c39a0 --- /dev/null +++ b/results/confirmatory/B2_active_subset.csv @@ -0,0 +1,17 @@ +method,layer,n_active,n_inactive,pct_active,active_miscls_rate,active_mean_margin,active_mean_entropy,active_mean_loss,active_mean_grad_norm,inactive_miscls_rate,inactive_mean_margin,inactive_mean_entropy,inactive_mean_loss
+bp,0,967,57,94.43359375,0.40227508544921875,0.3419192433357239,0.8721402287483215,1.1970059871673584,6.79631921229884e-05,0.0,0.9946256875991821,0.024497823789715767,0.003277508309110999
+bp,1,971,53,94.82421875,0.40061789751052856,0.344588965177536,0.868725061416626,1.1921000480651855,7.240669219754636e-05,0.0,0.994976282119751,0.023094838485121727,0.0030680671334266663
+bp,2,973,51,95.01953125,0.39979439973831177,0.3459070920944214,0.8670549988746643,1.1896668672561646,7.396662840619683e-05,0.0,0.9953330159187317,0.021794386208057404,0.0028594606555998325
+bp,3,973,51,95.01953125,0.39979439973831177,0.3459070920944214,0.8670549988746643,1.1896668672561646,6.922091415617615e-05,0.0,0.9953330159187317,0.021794386208057404,0.0028594606555998325
+dfa,0,0,1024,0.0,nan,nan,nan,nan,nan,0.6923828125,-0.007857793010771275,2.000530242919922,1.9306241273880005
+dfa,1,0,1024,0.0,nan,nan,nan,nan,nan,0.6923828125,-0.007857793010771275,2.000530242919922,1.9306241273880005
+dfa,2,0,1024,0.0,nan,nan,nan,nan,nan,0.6923828125,-0.007857793010771275,2.000530242919922,1.9306241273880005
+dfa,3,0,1024,0.0,nan,nan,nan,nan,nan,0.6923828125,-0.007857793010771275,2.000530242919922,1.9306241273880005
+state_bridge,0,541,483,52.83203125,0.7523105293512344,-0.02964283898472786,2.212118625640869,2.356250762939453,2.467326567057171e-06,0.8571428507566452,-0.018465902656316757,2.1256067752838135,1.9952110052108765
+state_bridge,1,0,1024,0.0,nan,nan,nan,nan,nan,0.8017578125,-0.02437090501189232,2.1713125705718994,2.18595552444458
+state_bridge,2,0,1024,0.0,nan,nan,nan,nan,nan,0.8017578125,-0.02437090501189232,2.1713125705718994,2.18595552444458
+state_bridge,3,0,1024,0.0,nan,nan,nan,nan,nan,0.8017578125,-0.02437090501189232,2.1713125705718994,2.18595552444458
+credit_bridge,0,5,1019,0.48828125,1.0,-0.16813702881336212,1.9660528898239136,3.1437084674835205,1.5858988717809552e-06,0.7536800801753998,-0.040122922509908676,2.0013222694396973,2.007547616958618
+credit_bridge,1,0,1024,0.0,nan,nan,nan,nan,nan,0.7548828125,-0.0407479926943779,2.001150131225586,2.0130953788757324
+credit_bridge,2,0,1024,0.0,nan,nan,nan,nan,nan,0.7548828125,-0.0407479926943779,2.001150131225586,2.0130953788757324
+credit_bridge,3,0,1024,0.0,nan,nan,nan,nan,nan,0.7548828125,-0.0407479926943779,2.001150131225586,2.0130953788757324
diff --git a/results/confirmatory/C1_active_vs_inactive_cosine.csv b/results/confirmatory/C1_active_vs_inactive_cosine.csv new file mode 100644 index 0000000..128d422 --- /dev/null +++ b/results/confirmatory/C1_active_vs_inactive_cosine.csv @@ -0,0 +1,17 @@ +method,layer,gamma_all,gamma_active,gamma_inactive,n_active
+bp,0,0.006214196793735027,nan,0.006214196793735027,0
+bp,1,0.0051556359976530075,nan,0.0051556359976530075,0
+bp,2,0.0005391754675656557,nan,0.0005391754675656557,0
+bp,3,0.010759560391306877,nan,0.010759560391306877,0
+dfa,0,0.4290076792240143,nan,0.4290076792240143,0
+dfa,1,0.0003339389804750681,nan,0.0003339389804750681,0
+dfa,2,-0.0017952910857275128,nan,-0.0017952910857275128,0
+dfa,3,-0.0022174338810145855,nan,-0.0022174338810145855,0
+state_bridge,0,-0.02511497773230076,nan,-0.02511497773230076,0
+state_bridge,1,-0.0012293035397306085,nan,-0.0012293035397306085,0
+state_bridge,2,0.0008412246825173497,nan,0.0008412246825173497,0
+state_bridge,3,-0.0005532625946216285,nan,-0.0005532625946216285,0
+credit_bridge,0,0.22883227467536926,nan,0.22883227467536926,0
+credit_bridge,1,-0.0003760556865017861,nan,-0.0003760556865017861,0
+credit_bridge,2,-0.000569079362321645,nan,-0.000569079362321645,0
+credit_bridge,3,-0.0005933507927693427,nan,-0.0005933507927693427,0
diff --git a/results/confirmatory/C2_energy_concentration.csv b/results/confirmatory/C2_energy_concentration.csv new file mode 100644 index 0000000..14aca4b --- /dev/null +++ b/results/confirmatory/C2_energy_concentration.csv @@ -0,0 +1,145 @@ +method,layer,top_k_pct,energy_fraction
+bp,0,1,0.13753145273807194
+bp,0,5,0.35701777123429734
+bp,0,10,0.5159474002827283
+bp,0,25,0.7943125586728143
+bp,0,50,0.9714117002797403
+bp,0,75,0.9988166873843537
+bp,0,90,0.9999761227393358
+bp,0,95,0.9999988894297354
+bp,0,99,1.0000001110570251
+bp,1,1,0.1297232299501944
+bp,1,5,0.3497155690797685
+bp,1,10,0.5093345016389781
+bp,1,25,0.7883455327426614
+bp,1,50,0.9702861498059445
+bp,1,75,0.9987571209577216
+bp,1,90,0.9999741823562015
+bp,1,95,0.999998527510809
+bp,1,99,0.9999999018340529
+bp,2,1,0.12374509737447499
+bp,2,5,0.33456602870859053
+bp,2,10,0.49312004186629665
+bp,2,25,0.7798190887013513
+bp,2,50,0.9685336195724928
+bp,2,75,0.998686425827226
+bp,2,90,0.9999719236054664
+bp,2,95,0.9999986630288307
+bp,2,99,0.9999999999999989
+bp,3,1,0.1027336453566387
+bp,3,5,0.30835154774974977
+bp,3,10,0.47058760658651144
+bp,3,25,0.7681905781944047
+bp,3,50,0.9665398652301048
+bp,3,75,0.9986141375208012
+bp,3,90,0.9999692229522898
+bp,3,95,0.9999985450850162
+bp,3,99,0.9999999999999988
+dfa,0,1,0.19170666743225284
+dfa,0,5,0.3795297051536722
+dfa,0,10,0.5104383036640857
+dfa,0,25,0.7294313447755049
+dfa,0,50,0.9008497350940852
+dfa,0,75,0.9730721244161769
+dfa,0,90,0.9934959441875912
+dfa,0,95,0.9976399971559203
+dfa,0,99,0.9997116250584779
+dfa,1,1,0.0860107043808162
+dfa,1,5,0.21043027435761633
+dfa,1,10,0.32512331598602956
+dfa,1,25,0.5567496248117701
+dfa,1,50,0.7878665235468751
+dfa,1,75,0.9277183529779829
+dfa,1,90,0.9808399579669186
+dfa,1,95,0.992088867317112
+dfa,1,99,0.9987344758976114
+dfa,2,1,0.05961776172376825
+dfa,2,5,0.18779875797459003
+dfa,2,10,0.30585963206629463
+dfa,2,25,0.544531229800748
+dfa,2,50,0.7813344865115508
+dfa,2,75,0.9251346541326293
+dfa,2,90,0.9800314956502143
+dfa,2,95,0.9917227018837421
+dfa,2,99,0.9986685710293339
+dfa,3,1,0.05967490435446207
+dfa,3,5,0.1879808313252313
+dfa,3,10,0.30616538901654755
+dfa,3,25,0.5449839185027274
+dfa,3,50,0.781448232095201
+dfa,3,75,0.9251596989626301
+dfa,3,90,0.9800463437018364
+dfa,3,95,0.9917392391086693
+dfa,3,99,0.9986696064622027
+state_bridge,0,1,0.20317336833941943
+state_bridge,0,5,0.49468661509043105
+state_bridge,0,10,0.6580444219284254
+state_bridge,0,25,0.8562727475157194
+state_bridge,0,50,0.9601549009100333
+state_bridge,0,75,0.9952179015698904
+state_bridge,0,90,0.9997876241003377
+state_bridge,0,95,0.9999750349945622
+state_bridge,0,99,0.9999998266299683
+state_bridge,1,1,0.0531351290225806
+state_bridge,1,5,0.2151738724624021
+state_bridge,1,10,0.3574744381994048
+state_bridge,1,25,0.6321327815346899
+state_bridge,1,50,0.8732424675608174
+state_bridge,1,75,0.9758400653803934
+state_bridge,1,90,0.9932852111098038
+state_bridge,1,95,0.9970524799343273
+state_bridge,1,99,0.9994260779481953
+state_bridge,2,1,0.05286753918312922
+state_bridge,2,5,0.2139591223590171
+state_bridge,2,10,0.3567652889050792
+state_bridge,2,25,0.6341718106644586
+state_bridge,2,50,0.8769370792996489
+state_bridge,2,75,0.9774679945901615
+state_bridge,2,90,0.9938357640611795
+state_bridge,2,95,0.9973033327200956
+state_bridge,2,99,0.9994738283742864
+state_bridge,3,1,0.051939006029132324
+state_bridge,3,5,0.20947933276572225
+state_bridge,3,10,0.3519404047954473
+state_bridge,3,25,0.6359673864748835
+state_bridge,3,50,0.8836522001067242
+state_bridge,3,75,0.9787903210546228
+state_bridge,3,90,0.9941854375022825
+state_bridge,3,95,0.9974879462745829
+state_bridge,3,99,0.9994787981789558
+credit_bridge,0,1,0.31011199445640253
+credit_bridge,0,5,0.5786801897100221
+credit_bridge,0,10,0.7113891442979374
+credit_bridge,0,25,0.887568033514632
+credit_bridge,0,50,0.9752441083674347
+credit_bridge,0,75,0.9962907181769892
+credit_bridge,0,90,0.9995383934364757
+credit_bridge,0,95,0.9998897605040997
+credit_bridge,0,99,0.9999934498693954
+credit_bridge,1,1,0.5730181594857161
+credit_bridge,1,5,0.6770922908706485
+credit_bridge,1,10,0.7357803143615438
+credit_bridge,1,25,0.8322458533587014
+credit_bridge,1,50,0.9179857051023547
+credit_bridge,1,75,0.9668314457594543
+credit_bridge,1,90,0.9890903594907721
+credit_bridge,1,95,0.9954568228064521
+credit_bridge,1,99,0.9993198981765166
+credit_bridge,2,1,0.031811539085280977
+credit_bridge,2,5,0.12687634548712629
+credit_bridge,2,10,0.22562109578048103
+credit_bridge,2,25,0.4403314298228397
+credit_bridge,2,50,0.6879013439998086
+credit_bridge,2,75,0.8731390692115758
+credit_bridge,2,90,0.9625342746564928
+credit_bridge,2,95,0.9850371005931208
+credit_bridge,2,99,0.997304594827771
+credit_bridge,3,1,0.032057487942480804
+credit_bridge,3,5,0.1273236882734525
+credit_bridge,3,10,0.22616188325363795
+credit_bridge,3,25,0.44043817050113104
+credit_bridge,3,50,0.6880500497042855
+credit_bridge,3,75,0.873429466432226
+credit_bridge,3,90,0.9627584561243466
+credit_bridge,3,95,0.9851447686730626
+credit_bridge,3,99,0.9973057160798828
|
