#!/bin/bash # ============================================================================= # random_gradient_ascent.sh — RANDOM-direction control for gradient_ascent. # # For each BATHROOM-ONLY image: steer the residual at layer l along a RANDOM unit # direction (not the bathroom-probe gradient), step alpha*‖h_l‖*ĝ (or alpha*ĝ with # HNORM=0), and measure Δ toilet score at every layer l'>=l. Averaged → heatmap. # Null model for the bathroom→toilet effect: shows what any perturbation of # comparable magnitude does. # # Tunables (override inline, e.g. NUM_IMAGES=100 HNORM=0 bash