Skip to content

StructuralAttack ignores report_individual flag #451

@shamykyzer

Description

@shamykyzer

StructuralAttack populates record_level_results and attack_metrics["individual"] unconditionally, ignoring the report_individual parameter (see sacroml/attacks/structural_attack.py:480 and :681). Other attacks (LiRA, QMIA) respect the flag and only produce per-record output when it is True.

Surfaced during PR #441 review

MetaAttack currently depends on this always-on behaviour to read structural scores without forcing the flag. Fixing structural to respect the flag would require MetaAttack to set report_individual=True for the structural sub-attack too (one-line change in _run_sub_attack).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions