Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Since the beginning of CIL, FISTA (or now APGD) is implemented with the default momentum ($beta_{k}$ below)
![Screenshot 2025-02-04 at 12 28 15](https://private-user-images.githubusercontent.com/22398586/409511096-ceb985df-88c9-46e7-9cd5-be989a365781.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTk3MjMsIm5iZiI6MTczOTU1OTQyMywicGF0aCI6Ii8yMjM5ODU4Ni80MDk1MTEwOTYtY2ViOTg1ZGYtODhjOS00NmU3LTljZDUtYmU5ODlhMzY1NzgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE4NTcwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0ZDlkODZiMzg5MjRhNzhlZGM5MzIwZWMzMzBjODJlMzAwZTljYmUxMDZkODc5NTJlYmVkZjUzYzJhNWJhZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bQxgEyCVi4X819KzJCMbFzIpueb0ojWVYf3iwWummN8)
I suggest to replace this with a momentum callback similar to the step_size which is already available.
In case of deterministic optimisation we can implement easily other FISTA versions ([restart schemes] (https://arxiv.org/pdf/1204.3982)), modified schemes with/out backtracking.
In case of stochastic optimisation, the default momentum is not stable when combined with stochastic estimators, e.g.,
SGFunction
,SAGAFunction
etc. For FISTA+SVRG we need a constant momentum as suggested here for strongly convex objectives.For stochastic gradients (Amortized Nesterov) or other variance reduced stochastic estimators (Accelerating Variance-Reduced Stochastic Gradient Methods), convergence analysis is based on equivalent formulation of the Nesterov momentum acceleration and in particular the AuslenderTeboulle scheme,
![Screenshot 2025-02-04 at 13 15 39](https://private-user-images.githubusercontent.com/22398586/409527758-5f5ba8bc-a93d-4d55-bcc0-a9e0ad6ea500.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTk3MjMsIm5iZiI6MTczOTU1OTQyMywicGF0aCI6Ii8yMjM5ODU4Ni80MDk1Mjc3NTgtNWY1YmE4YmMtYTkzZC00ZDU1LWJjYzAtYTllMGFkNmVhNTAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDE4NTcwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkxOGU0ODk2NGM4OTljMjc0NWZkNjM0NjUyNzUwY2IwZmQzMzIwZTJkYmZlNDFjNDg0MGRmMWY5MDYzZmYzYzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Zld_3jp4k5wDorqSpRM2I6mpBEPJAyBlEsv31wMCK0I)
Therefore, using callback
step_sizes
andmomentum
we can use our stochastic framework with FISTA/APGD algo.Example Usage
❤️ Thanks for your contribution!