Your observation that the optimization tends to favor a diffraction-limited focusing phase aperture (effectively a single-wavelength solution) is likely due to the imbalance in the contributions from spatially overlapping vs. non-overlapping columns of ( A = \Phi \Psi ). Here’s how you can address this:
Key Issue:
The current coherence minimization or log-det maximization is dominated by the many non-overlapping column pairs (across wavelengths), overshadowing the fewer but critical overlapping pairs (within wavelengths). This leads to a trivial solution where the system acts as if it were designed for a single wavelength.
Solutions to Rebalance the Optimization:
-
Weighted Coherence or Gram Matrix:
- Modify the coherence metric to explicitly weight the inner products between columns of ( A ) that correspond to the same spatial location but different wavelengths. For example:
- Define a weighting matrix ( W ) where ( W_{ij} ) is larger for pairs of columns in ( A ) that are spatially overlapping (same ( (n_x, n_y) ) but different ( n_{\text{wvl}} )).
- Replace ( A^T A ) with ( A^T W A ) in your optimization (e.g., ( \log \det(1 + A^T W A) )).
- This forces the optimization to prioritize reducing coherence between spatially overlapping columns.
-
Spatially Localized Coherence Penalty:
- Instead of summing coherence over all column pairs, restrict the sum to pairs that are spatially close (e.g., within a small neighborhood in ( (n_x, n_y) )). This can be done by:
- Masking the Gram matrix ( A^T A ) to only include terms where the spatial locations of the columns are nearby.
- For example, use a spatial kernel (e.g., Gaussian) to weight the contribution of each pair ( (A_i, A_j) ) based on the distance between their spatial coordinates.
-
Wavelength-Dependent Regularization:
- Add a regularization term to the optimization that penalizes solutions where the PSFs are too similar across wavelengths. For example:
- Penalize the variance of the PSFs across wavelengths at each spatial location.
- This encourages the system to use the wavelength diversity effectively.
-
Stratified Optimization:
- Split the optimization into two stages:
- First, optimize for spatial incoherence (e.g., within each wavelength slice).
- Then, optimize for spectral incoherence (e.g., between wavelength slices) while fixing the spatial properties.
- This ensures that both aspects are explicitly addressed.
-
Modify the Basis ( \Psi ):
- If ( \Psi ) is not already wavelength-aware, design it to explicitly represent joint spatial-spectral sparsity (e.g., a 3D wavelet basis or a dictionary trained on your data). This can help the optimization "see" the wavelength diversity more clearly.
-
Alternative Metrics:
- Instead of coherence or log-det, use a metric that explicitly balances spatial and spectral performance, such as:
- The condition number of ( A ) restricted to spatially overlapping columns.
- A weighted sum of the mutual coherence within and across wavelength slices.
Practical Implementation:
For the weighted coherence approach (Option 1), you might implement:
- Construct ( W ) such that ( W_{ij} = 1 + \alpha \cdot \mathbb{I}[\text{columns } i,j \text{ are spatially overlapping}] ), where ( \alpha ) is a tuning parameter.
- Optimize ( \log \det(1 + A^T W A) ) or ( |W \odot (A^T A)|_F^2 ) (weighted Frobenius norm).
Why This Works:
By upweighting the contributions from spatially overlapping columns, you force the optimization to prioritize reducing coherence where it matters most (avoiding the trivial single-wavelength solution). The system will then need to find a phase aperture that works well across wavelengths, not just for one.
Experiment:
Start with a small ( \alpha ) and gradually increase it until the optimized ( \Phi ) shows meaningful wavelength diversity (e.g., PSFs that vary significantly across wavelengths). Monitor the trade-off between spatial and spectral performance.