arXiv:2610.06437cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06437

HeuFouFT: Task-Guided Metaheuristic Coordinate Search for Fourier Fine-Tuning

Ruiheng Wang, Yubo Hou, Yakun Zhu, Tianle Shen, Tao Wan, Zengchang Qin

ABSTRACT

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. 2^{2}

Index Terms— Parameter-Efficient Fine-Tuning, Meta-Heuristics, Frequency Sampling, Large Language Models

1. INTRODUCTION

Parameter-efficient fine-tuning (PEFT) adapts large language models by learning a small set of parameters while keeping pretrained weights frozen. LoRA represents weight updates through low-rank factors [1]. Spectral methods offer another parameterization by learning coefficients in a transform domain, where a compact representation can reduce the number of trainable parameters [2, 3].

Several approaches exploit spectral structure in adaptation. F-Adapter allocates adapter capacity according to spectral complexity [4], while FouRA applies Fourier and cosine transforms within low-rank adaptation for vision models [5].

Figure

Fig. 1: Log-magnitude spectrum of the layer-1 Q projection ΔW\Delta 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.

LoCA jointly learns coefficients and their locations in a cosine representation [6]. HeuFouFT differs by selecting a discrete, layer-shared Fourier coordinate set before final fine-tuning through validation-guided derivative-free search.

FourierFT constructs weight updates through an inverse discrete Fourier transform of selected coefficients [3]. Its default uniform sampling and optional Gaussian band-pass sampling choose coordinates through fixed, task-agnostic rules, so the selected frequency coordinates cannot adapt to the downstream task.

The choice of coordinates matters when only a small number of Fourier components can be trained. As Figure 1 shows, a learned LoRA update can exhibit localized spectral energy that is poorly covered by uniform or radially constrained sampling. Although this spectrum is not an oracle for FourierFT, it motivates selecting coordinates using downstream task feedback.

To realize this selection, we draw on derivative-free optimization, which recent efforts [7, 8] have applied to low-rank adaptation. Motivated by metaheuristic optimization [9, 10, 11], we introduce HeuFouFT. Our contributions are threefold. First, we make Fourier coordinate selection responsive to downstream performance rather than a fixed sampling rule. Second, we develop a surrogate-assisted framework that combines a block-level task prior with three metaheuristic optimizers, GA-SA, PSO, and CS, to refine

1^{1}Corresponding author: zcqin@buaa.edu.cn.

2^{2}Code is available at https://github.com/pierrewang2024-collab/HeuFouFT.

complete coordinate sets. Third, on GPT-2-Medium and E2E, all three variants outperform fixed sampling and LoRA across five metrics while using 37.6% fewer spectral coefficients than the FourierFT and LoCA configurations; PSO further outperforms LoCA on four metrics.

References (25)