We introduce Heuristic-Guided Fourier Fine-Tuning (HeuFouFT), a task-guided framework for selecting trainable frequency coordinates in Fourier fine-tuning. Existing uniform and Gaussian band-pass schemes allocate a limited spectral budget through fixed, task-agnostic rules. HeuFouFT instead searches for coordinates using downstream performance. A coarse intensity map from lightweight block-level probes initializes three metaheuristic optimizers: Genetic Algorithm with Simulated Annealing (GA-SA), Particle Swarm Optimization (PSO), and Cuckoo Search (CS). During search, a Random Forest filters each population so that only the top 30% of candidates proceed to proxy fine-tuning. On E2E with GPT-2-Medium, all three variants outperform random-uniform FourierFT, Gaussian band-pass FourierFT, and LoRA across five metrics. PSO further outperforms LoCA, the best-performing baseline, on four metrics while using 37.6% fewer trainable spectral coefficients. Once coordinates are selected, HeuFouFT requires only 15--18% FLOPs of Full FT. These results show that task-guided search allocates limited spectral capacity more effectively than fixed sampling. Our code is publicly available.
Figures & tables
Figure 1: Log-magnitude spectrum of the layer-1 Q projection ΔW from GPT-2-Medium LoRA fine-tuned on E2E (rank 8). Red markers indicate the 328 highest-energy frequency bins; blue markers show the 328 uniform random samples; green markers show 328 Gaussian band-pass samples.
fc
BLEU
NIST
METEOR
ROUGE-L
CIDEr
0
68.7
8.35
41.3
67.5
1.65
100
67.3
8.23
41.2
67.8
1.66
200
67.6
8.41
40.9
67.4
1.64
300
69.2
8.36
41.4
67.7
1.63
400
68.7
8.26
40.8
67.9
1.64
500
62.5
8.30
40.3
66.7
1.61
Table 1: Gaussian band-pass sampling with different frequency biases. Best values are bold.
Method
BLEU
NIST
METEOR
ROUGE-L
CIDEr
Params. (M)
Full FT
68.9
8.36
40.1
67.2
1.59
354.92
LoRA
68.4 [1pt] ±.2
8.34 [1pt] ±.05
41.0 [1pt] ±.1
67.1 [1pt] ±.3
1.57 [1pt] ±.02
0.786
LoCA
70.3 [1pt] ±.1
8.51 [1pt] ±.03
41.6 [1pt] ±.08
68.5 [1pt] ±.2
1.64 [1pt] ±.01
0.048
Random Uniform
66.7 [1pt] ±.2
8.24 [1pt] ±.04
40.2 [1pt] ±.09
66.5 [1pt] ±.2
1.54 [1pt] ±.03
0.048
Gaussian Band-Pass
69.2 [1pt] ±.1
8.36 [1pt] ±.05
41.4 [1pt] ±.07
67.7 [1pt] ±.2
1.63 [1pt] ±.02
0.048
Vanilla GA
69.6 [1pt] ±.1
8.72 [1pt] ±.03
41.4 [1pt] ±.08
67.3 [1pt] ±.2
1.63 [1pt] ±.01
0.03
Table 2: GPT-2-Medium performance on E2E. Entries with error terms show the mean and standard deviation over seeds 41, 42, and 43. Best baseline and HeuFouFT results are bolded separately.
Figure 2: Distributions of the selected frequency coordinates, shared across layers, for GA-SA (left), PSO (middle), and CS (right). Dashed circles mark frequency bands.
Figure 3: Frequency-domain metrics of GA-SA, PSO, and CS. Panels show frequency ratios, energy concentration, coverage efficiency, and sampling quality.
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
Value Range
Optimal Value
Design Rationale
Number of Estimators
100–500
300
Balances model variance (fewer trees: high variance) and computational cost (more trees: high cost).