Add Batch dc332181-406c-4d9a-95d0-be5efe262f82 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/e3674c10-3cf7-4572-bda0-51f9f1c251a1_content_list.json +0 -0
- 2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/e3674c10-3cf7-4572-bda0-51f9f1c251a1_model.json +0 -0
- 2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/e3674c10-3cf7-4572-bda0-51f9f1c251a1_origin.pdf +3 -0
- 2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/full.md +407 -0
- 2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/images.zip +3 -0
- 2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/layout.json +0 -0
- 2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/027a5576-0e93-469d-9194-20f01b5b3cdb_content_list.json +0 -0
- 2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/027a5576-0e93-469d-9194-20f01b5b3cdb_model.json +0 -0
- 2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/027a5576-0e93-469d-9194-20f01b5b3cdb_origin.pdf +3 -0
- 2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/full.md +526 -0
- 2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/images.zip +3 -0
- 2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/layout.json +0 -0
- 2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/2566d932-7fe8-4fe2-8907-aeb6bec0c86a_content_list.json +0 -0
- 2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/2566d932-7fe8-4fe2-8907-aeb6bec0c86a_model.json +0 -0
- 2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/2566d932-7fe8-4fe2-8907-aeb6bec0c86a_origin.pdf +3 -0
- 2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/full.md +0 -0
- 2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/images.zip +3 -0
- 2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/layout.json +0 -0
- 2025/Accelerating Spectral Clustering under Fairness Constraints/191c6346-48c4-48d9-9419-52860716d00d_content_list.json +0 -0
- 2025/Accelerating Spectral Clustering under Fairness Constraints/191c6346-48c4-48d9-9419-52860716d00d_model.json +0 -0
- 2025/Accelerating Spectral Clustering under Fairness Constraints/191c6346-48c4-48d9-9419-52860716d00d_origin.pdf +3 -0
- 2025/Accelerating Spectral Clustering under Fairness Constraints/full.md +730 -0
- 2025/Accelerating Spectral Clustering under Fairness Constraints/images.zip +3 -0
- 2025/Accelerating Spectral Clustering under Fairness Constraints/layout.json +0 -0
- 2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/cfe28aeb-f682-4f08-8c0f-893153f31c7f_content_list.json +0 -0
- 2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/cfe28aeb-f682-4f08-8c0f-893153f31c7f_model.json +0 -0
- 2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/cfe28aeb-f682-4f08-8c0f-893153f31c7f_origin.pdf +3 -0
- 2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/full.md +616 -0
- 2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/images.zip +3 -0
- 2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/layout.json +0 -0
- 2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/fbb217b7-142f-4ee6-98ad-93cb745f0f88_content_list.json +0 -0
- 2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/fbb217b7-142f-4ee6-98ad-93cb745f0f88_model.json +0 -0
- 2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/fbb217b7-142f-4ee6-98ad-93cb745f0f88_origin.pdf +3 -0
- 2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/full.md +650 -0
- 2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/images.zip +3 -0
- 2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/layout.json +0 -0
- 2025/Accurate and Efficient World Modeling with Masked Latent Transformers/734e8783-547b-4945-87bd-49752870b5cc_content_list.json +0 -0
- 2025/Accurate and Efficient World Modeling with Masked Latent Transformers/734e8783-547b-4945-87bd-49752870b5cc_model.json +0 -0
- 2025/Accurate and Efficient World Modeling with Masked Latent Transformers/734e8783-547b-4945-87bd-49752870b5cc_origin.pdf +3 -0
- 2025/Accurate and Efficient World Modeling with Masked Latent Transformers/full.md +424 -0
- 2025/Accurate and Efficient World Modeling with Masked Latent Transformers/images.zip +3 -0
- 2025/Accurate and Efficient World Modeling with Masked Latent Transformers/layout.json +0 -0
- 2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/34f5964e-adcb-49b6-aadb-b1e4aa40c8a4_content_list.json +0 -0
- 2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/34f5964e-adcb-49b6-aadb-b1e4aa40c8a4_model.json +0 -0
- 2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/34f5964e-adcb-49b6-aadb-b1e4aa40c8a4_origin.pdf +3 -0
- 2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/full.md +0 -0
- 2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/images.zip +3 -0
- 2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/layout.json +0 -0
- 2025/Action Dubber_ Timing Audible Actions via Inflectional Flow/0ddb9694-0038-4f9c-8105-9cbb51bab14c_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -169,3 +169,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 169 |
2025/Accelerated[[:space:]]Diffusion[[:space:]]Models[[:space:]]via[[:space:]]Speculative[[:space:]]Sampling/69ab461c-709a-4477-81b9-473befc6be24_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 170 |
2025/Accelerating[[:space:]]LLM[[:space:]]Inference[[:space:]]with[[:space:]]Lossless[[:space:]]Speculative[[:space:]]Decoding[[:space:]]Algorithms[[:space:]]for[[:space:]]Heterogeneous[[:space:]]Vocabularies/6e68aa2b-d20f-464e-8322-2e96f58dc240_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 171 |
2025/Accelerating[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Reasoning[[:space:]]via[[:space:]]Speculative[[:space:]]Search/421c4b62-cf3e-458b-b763-7a580b21e488_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
2025/Accelerated[[:space:]]Diffusion[[:space:]]Models[[:space:]]via[[:space:]]Speculative[[:space:]]Sampling/69ab461c-709a-4477-81b9-473befc6be24_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 170 |
2025/Accelerating[[:space:]]LLM[[:space:]]Inference[[:space:]]with[[:space:]]Lossless[[:space:]]Speculative[[:space:]]Decoding[[:space:]]Algorithms[[:space:]]for[[:space:]]Heterogeneous[[:space:]]Vocabularies/6e68aa2b-d20f-464e-8322-2e96f58dc240_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 171 |
2025/Accelerating[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Reasoning[[:space:]]via[[:space:]]Speculative[[:space:]]Search/421c4b62-cf3e-458b-b763-7a580b21e488_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 172 |
+
2025/Accelerating[[:space:]]Linear[[:space:]]Recurrent[[:space:]]Neural[[:space:]]Networks[[:space:]]for[[:space:]]the[[:space:]]Edge[[:space:]]with[[:space:]]Unstructured[[:space:]]Sparsity/e3674c10-3cf7-4572-bda0-51f9f1c251a1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 173 |
+
2025/Accelerating[[:space:]]PDE-Constrained[[:space:]]Optimization[[:space:]]by[[:space:]]the[[:space:]]Derivative[[:space:]]of[[:space:]]Neural[[:space:]]Operators/027a5576-0e93-469d-9194-20f01b5b3cdb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 174 |
+
2025/Accelerating[[:space:]]Quantum[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]a[[:space:]]Quantum[[:space:]]Natural[[:space:]]Policy[[:space:]]Gradient[[:space:]]Based[[:space:]]Approach/2566d932-7fe8-4fe2-8907-aeb6bec0c86a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 175 |
+
2025/Accelerating[[:space:]]Spectral[[:space:]]Clustering[[:space:]]under[[:space:]]Fairness[[:space:]]Constraints/191c6346-48c4-48d9-9419-52860716d00d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 176 |
+
2025/Accelerating[[:space:]]Unbiased[[:space:]]LLM[[:space:]]Evaluation[[:space:]]via[[:space:]]Synthetic[[:space:]]Feedback/cfe28aeb-f682-4f08-8c0f-893153f31c7f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 177 |
+
2025/Accurate[[:space:]]Identification[[:space:]]of[[:space:]]Communication[[:space:]]Between[[:space:]]Multiple[[:space:]]Interacting[[:space:]]Neural[[:space:]]Populations/fbb217b7-142f-4ee6-98ad-93cb745f0f88_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 178 |
+
2025/Accurate[[:space:]]and[[:space:]]Efficient[[:space:]]World[[:space:]]Modeling[[:space:]]with[[:space:]]Masked[[:space:]]Latent[[:space:]]Transformers/734e8783-547b-4945-87bd-49752870b5cc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 179 |
+
2025/Achieving[[:space:]]Linear[[:space:]]Speedup[[:space:]]and[[:space:]]Near-Optimal[[:space:]]Complexity[[:space:]]for[[:space:]]Decentralized[[:space:]]Optimization[[:space:]]over[[:space:]]Row-stochastic[[:space:]]Networks/34f5964e-adcb-49b6-aadb-b1e4aa40c8a4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 180 |
+
2025/Action[[:space:]]Dubber_[[:space:]]Timing[[:space:]]Audible[[:space:]]Actions[[:space:]]via[[:space:]]Inflectional[[:space:]]Flow/0ddb9694-0038-4f9c-8105-9cbb51bab14c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 181 |
+
2025/Action-Constrained[[:space:]]Imitation[[:space:]]Learning/16dba942-45a3-4291-8930-e42a69bb54f7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 182 |
+
2025/Action-Dependent[[:space:]]Optimality-Preserving[[:space:]]Reward[[:space:]]Shaping/9332d1e7-242c-4bfb-9bec-d1fc3562f9c9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 183 |
+
2025/Action-Minimization[[:space:]]Meets[[:space:]]Generative[[:space:]]Modeling_[[:space:]]Efficient[[:space:]]Transition[[:space:]]Path[[:space:]]Sampling[[:space:]]with[[:space:]]the[[:space:]]Onsager-Machlup[[:space:]]Functional/df79d7f5-8b77-402c-912c-311037c51786_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 184 |
+
2025/ActionPiece_[[:space:]]Contextually[[:space:]]Tokenizing[[:space:]]Action[[:space:]]Sequences[[:space:]]for[[:space:]]Generative[[:space:]]Recommendation/3b05857a-03b5-4acd-9172-08460798941d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 185 |
+
2025/Activation[[:space:]]Space[[:space:]]Interventions[[:space:]]Can[[:space:]]Be[[:space:]]Transferred[[:space:]]Between[[:space:]]Large[[:space:]]Language[[:space:]]Models/adf79fc2-d784-4002-a63f-c4b8e54710e2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 186 |
+
2025/Activation[[:space:]]by[[:space:]]Interval-wise[[:space:]]Dropout_[[:space:]]A[[:space:]]Simple[[:space:]]Way[[:space:]]to[[:space:]]Prevent[[:space:]]Neural[[:space:]]Networks[[:space:]]from[[:space:]]Plasticity[[:space:]]Loss/22e7ba58-24f6-43a3-8e08-9f98b1cc96a1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 187 |
+
2025/Active[[:space:]]Evaluation[[:space:]]Acquisition[[:space:]]for[[:space:]]Efficient[[:space:]]LLM[[:space:]]Benchmarking/8ff72ad8-d114-41b5-a691-4fb8fa0d392b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 188 |
+
2025/Active[[:space:]]Fine-Tuning[[:space:]]of[[:space:]]Multi-Task[[:space:]]Policies/527fbd9d-1062-4172-a58a-68755b8f9ce5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 189 |
+
2025/Active[[:space:]]Learning[[:space:]]for[[:space:]]Efficient[[:space:]]Discovery[[:space:]]of[[:space:]]Optimal[[:space:]]Combinatorial[[:space:]]Perturbations/c9fc9cc5-36e2-4684-8935-06bef671e791_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 190 |
+
2025/Active[[:space:]]Learning[[:space:]]of[[:space:]]Deep[[:space:]]Neural[[:space:]]Networks[[:space:]]via[[:space:]]Gradient-Free[[:space:]]Cutting[[:space:]]Planes/d9106283-dc62-4fe5-b432-1669110e64e3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 191 |
+
2025/Active[[:space:]]Learning[[:space:]]with[[:space:]]Selective[[:space:]]Time-Step[[:space:]]Acquisition[[:space:]]for[[:space:]]PDEs/380e3020-58e8-4ed6-b305-f5c23b0733b2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 192 |
+
2025/Active[[:space:]]Reward[[:space:]]Modeling_[[:space:]]Adaptive[[:space:]]Preference[[:space:]]Labeling[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Model[[:space:]]Alignment/af4e1a7c-6b4b-4d3b-a1c9-61423c9d594c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 193 |
+
2025/Active[[:space:]]Treatment[[:space:]]Effect[[:space:]]Estimation[[:space:]]via[[:space:]]Limited[[:space:]]Samples/1dbe455c-9547-4604-8749-2d89689d847f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 194 |
+
2025/Active[[:space:]]feature[[:space:]]acquisition[[:space:]]via[[:space:]]explainability-driven[[:space:]]ranking/476b39f9-4bb5-4550-82c1-73a8d399774b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 195 |
+
2025/Actor-Critics[[:space:]]Can[[:space:]]Achieve[[:space:]]Optimal[[:space:]]Sample[[:space:]]Efficiency/2d1c7987-2868-4bfa-b2f4-ce525f2982b7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 196 |
+
2025/Ad[[:space:]]Hoc[[:space:]]Teamwork[[:space:]]via[[:space:]]Offline[[:space:]]Goal-Based[[:space:]]Decision[[:space:]]Transformers/cd624946-1b8f-4f8b-8705-c1a13f4791e3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 197 |
+
2025/Ad-Hoc[[:space:]]Human-AI[[:space:]]Coordination[[:space:]]Challenge/262a8ee9-7955-445f-8da1-74063915a58a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 198 |
+
2025/AdaDecode_[[:space:]]Accelerating[[:space:]]LLM[[:space:]]Decoding[[:space:]]with[[:space:]]Adaptive[[:space:]]Layer[[:space:]]Parallelism/6ee03bbf-eec1-41b3-ab7d-47db97bd79ba_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 199 |
+
2025/AdaPTS_[[:space:]]Adapting[[:space:]]Univariate[[:space:]]Foundation[[:space:]]Models[[:space:]]to[[:space:]]Probabilistic[[:space:]]Multivariate[[:space:]]Time[[:space:]]Series[[:space:]]Forecasting/af2987f4-ddd1-42fe-ad34-770e411d47a9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 200 |
+
2025/AdaSplash_[[:space:]]Adaptive[[:space:]]Sparse[[:space:]]Flash[[:space:]]Attention/4ee00833-3dec-454c-8244-2ca08f293bff_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 201 |
+
2025/AdaWorld_[[:space:]]Learning[[:space:]]Adaptable[[:space:]]World[[:space:]]Models[[:space:]]with[[:space:]]Latent[[:space:]]Actions/edf8022a-79b7-4588-91d1-bf5178957951_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 202 |
+
2025/Adapter[[:space:]]Naturally[[:space:]]Serves[[:space:]]as[[:space:]]Decoupler[[:space:]]for[[:space:]]Cross-Domain[[:space:]]Few-Shot[[:space:]]Semantic[[:space:]]Segmentation/9fe1da43-d959-4373-b205-7eda5e974f08_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 203 |
+
2025/Adapting[[:space:]]Precomputed[[:space:]]Features[[:space:]]for[[:space:]]Efficient[[:space:]]Graph[[:space:]]Condensation/47440de5-93ae-4cf7-81f2-4de01ad917be_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 204 |
+
2025/Adapting[[:space:]]While[[:space:]]Learning_[[:space:]]Grounding[[:space:]]LLMs[[:space:]]for[[:space:]]Scientific[[:space:]]Problems[[:space:]]with[[:space:]]Tool[[:space:]]Usage[[:space:]]Adaptation/7d37d36c-ddc7-4d26-ab35-58026329ea2e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 205 |
+
2025/Adapting[[:space:]]to[[:space:]]Evolving[[:space:]]Adversaries[[:space:]]with[[:space:]]Regularized[[:space:]]Continual[[:space:]]Robust[[:space:]]Training/a1c127c7-dada-43c7-b3af-0888db713197_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 206 |
+
2025/Adapting[[:space:]]to[[:space:]]Linear[[:space:]]Separable[[:space:]]Subsets[[:space:]]with[[:space:]]Large-Margin[[:space:]]in[[:space:]]Differentially[[:space:]]Private[[:space:]]Learning/0bea23a6-02f9-4f5d-bd87-68104eb3b507_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 207 |
+
2025/Adaptive[[:space:]]Data[[:space:]]Collection[[:space:]]for[[:space:]]Robust[[:space:]]Learning[[:space:]]Across[[:space:]]Multiple[[:space:]]Distributions/6b633131-0b87-459f-a556-7573172949e5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 208 |
+
2025/Adaptive[[:space:]]Elicitation[[:space:]]of[[:space:]]Latent[[:space:]]Information[[:space:]]Using[[:space:]]Natural[[:space:]]Language/940eae74-0894-4cde-8e08-9e93b502c25e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 209 |
+
2025/Adaptive[[:space:]]Estimation[[:space:]]and[[:space:]]Learning[[:space:]]under[[:space:]]Temporal[[:space:]]Distribution[[:space:]]Shift/181c6972-fc3a-4f7b-96c3-f3d6fab87c6a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 210 |
+
2025/Adaptive[[:space:]]Exploration[[:space:]]for[[:space:]]Multi-Reward[[:space:]]Multi-Policy[[:space:]]Evaluation/9f50e1f1-a618-4b32-84d0-05459ce933ff_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 211 |
+
2025/Adaptive[[:space:]]Flow[[:space:]]Matching[[:space:]]for[[:space:]]Resolving[[:space:]]Small-Scale[[:space:]]Physics/79ca66c0-06e0-4785-a5b7-b67fa31ce30b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 212 |
+
2025/Adaptive[[:space:]]Learn-then-Test_[[:space:]]Statistically[[:space:]]Valid[[:space:]]and[[:space:]]Efficient[[:space:]]Hyperparameter[[:space:]]Selection/8deee788-80da-43fc-b7fa-b984d527ad51_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 213 |
+
2025/Adaptive[[:space:]]Localization[[:space:]]of[[:space:]]Knowledge[[:space:]]Negation[[:space:]]for[[:space:]]Continual[[:space:]]LLM[[:space:]]Unlearning/4a8c80da-0e46-4550-a485-43bd0934881c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 214 |
+
2025/Adaptive[[:space:]]Median[[:space:]]Smoothing_[[:space:]]Adversarial[[:space:]]Defense[[:space:]]for[[:space:]]Unlearned[[:space:]]Text-to-Image[[:space:]]Diffusion[[:space:]]Models[[:space:]]at[[:space:]]Inference[[:space:]]Time/36392d94-a532-4961-bd6f-62975ba0a4c0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 215 |
+
2025/Adaptive[[:space:]]Message[[:space:]]Passing_[[:space:]]A[[:space:]]General[[:space:]]Framework[[:space:]]to[[:space:]]Mitigate[[:space:]]Oversmoothing,[[:space:]]Oversquashing,[[:space:]]and[[:space:]]Underreaching/d1ba4992-8bd9-49dd-bb20-901cfc5e9fe7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 216 |
+
2025/Adaptive[[:space:]]Multi-prompt[[:space:]]Contrastive[[:space:]]Network[[:space:]]for[[:space:]]Few-shot[[:space:]]Out-of-distribution[[:space:]]Detection/cd4dbd36-3e1a-408b-a9da-bc78f7e47c09_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 217 |
+
2025/Adaptive[[:space:]]Partitioning[[:space:]]Schemes[[:space:]]for[[:space:]]Optimistic[[:space:]]Optimization/80275576-cc72-4114-9430-d89e0368a62b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 218 |
+
2025/Adaptive[[:space:]]Sample[[:space:]]Sharing[[:space:]]for[[:space:]]Multi[[:space:]]Agent[[:space:]]Linear[[:space:]]Bandits/3508dc36-fb6c-4317-bc81-f93c7f7eb8a1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 219 |
+
2025/Adaptive[[:space:]]Self-improvement[[:space:]]LLM[[:space:]]Agentic[[:space:]]System[[:space:]]for[[:space:]]ML[[:space:]]Library[[:space:]]Development/7d0ae5c3-b3d4-4fdf-8387-fcc00582d265_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 220 |
+
2025/Adaptive[[:space:]]Sensitivity[[:space:]]Analysis[[:space:]]for[[:space:]]Robust[[:space:]]Augmentation[[:space:]]against[[:space:]]Natural[[:space:]]Corruptions[[:space:]]in[[:space:]]Image[[:space:]]Segmentation/fcc92b54-b627-411f-8efe-a73dd44c816b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 221 |
+
2025/Adaptive[[:space:]]kernel[[:space:]]predictors[[:space:]]from[[:space:]]feature-learning[[:space:]]infinite[[:space:]]limits[[:space:]]of[[:space:]]neural[[:space:]]networks/93aae802-dac7-4533-8dcf-8bfea4e0cba8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 222 |
+
2025/AdaptiveStep_[[:space:]]Automatically[[:space:]]Dividing[[:space:]]Reasoning[[:space:]]Step[[:space:]]through[[:space:]]Model[[:space:]]Confidence/b732e74e-e4c5-4731-85dc-fd469652ec45_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 223 |
+
2025/Addressing[[:space:]]Concept[[:space:]]Mislabeling[[:space:]]in[[:space:]]Concept[[:space:]]Bottleneck[[:space:]]Models[[:space:]]Through[[:space:]]Preference[[:space:]]Optimization/c24df3ff-2608-4e67-820d-1c318d874d59_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 224 |
+
2025/Addressing[[:space:]]Imbalanced[[:space:]]Domain-Incremental[[:space:]]Learning[[:space:]]through[[:space:]]Dual-Balance[[:space:]]Collaborative[[:space:]]Experts/003acd09-ca30-4a50-b1b0-a9577d4ee83b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 225 |
+
2025/Addressing[[:space:]]Misspecification[[:space:]]in[[:space:]]Simulation-based[[:space:]]Inference[[:space:]]through[[:space:]]Data-driven[[:space:]]Calibration/adfa1b5c-58b9-48fb-9851-00ffb7a50dc1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 226 |
+
2025/Adjoint[[:space:]]Sampling_[[:space:]]Highly[[:space:]]Scalable[[:space:]]Diffusion[[:space:]]Samplers[[:space:]]via[[:space:]]Adjoint[[:space:]]Matching/42e6a042-e16f-4e50-bcc0-ae5febee908d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 227 |
+
2025/Adjusting[[:space:]]Model[[:space:]]Size[[:space:]]in[[:space:]]Continual[[:space:]]Gaussian[[:space:]]Processes_[[:space:]]How[[:space:]]Big[[:space:]]is[[:space:]]Big[[:space:]]Enough_/eeb425e3-93b4-4656-898e-b76c277f3fe3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 228 |
+
2025/Adjustment[[:space:]]for[[:space:]]Confounding[[:space:]]using[[:space:]]Pre-Trained[[:space:]]Representations/a8907b32-f7b1-4793-b6b8-e190672f7350_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 229 |
+
2025/AdvAgent_[[:space:]]Controllable[[:space:]]Blackbox[[:space:]]Red-teaming[[:space:]]on[[:space:]]Web[[:space:]]Agents/c6775265-4f8d-4e95-b2b1-9a29664abead_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 230 |
+
2025/AdvI2I_[[:space:]]Adversarial[[:space:]]Image[[:space:]]Attack[[:space:]]on[[:space:]]Image-to-Image[[:space:]]Diffusion[[:space:]]Models/f7ac9f38-ff72-4a12-84f3-9cde005c3fbb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 231 |
+
2025/AdvPrompter_[[:space:]]Fast[[:space:]]Adaptive[[:space:]]Adversarial[[:space:]]Prompting[[:space:]]for[[:space:]]LLMs/baddada0-573d-4b1d-ac74-68974dc26f4c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 232 |
+
2025/Advancing[[:space:]]Constrained[[:space:]]Monotonic[[:space:]]Neural[[:space:]]Networks_[[:space:]]Achieving[[:space:]]Universal[[:space:]]Approximation[[:space:]]Beyond[[:space:]]Bounded[[:space:]]Activations/34a6ee11-a723-4fb9-8a84-314f46a76291_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 233 |
+
2025/Advancing[[:space:]]Personalized[[:space:]]Learning[[:space:]]with[[:space:]]Neural[[:space:]]Collapse[[:space:]]for[[:space:]]Long-Tail[[:space:]]Challenge/0134cf31-428c-4773-a57d-1f0e6b68a617_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 234 |
+
2025/Adversarial[[:space:]]Combinatorial[[:space:]]Semi-bandits[[:space:]]with[[:space:]]Graph[[:space:]]Feedback/55bfecce-d8f7-4c02-a39d-ba3b0ca6de87_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 235 |
+
2025/Adversarial[[:space:]]Cooperative[[:space:]]Rationalization_[[:space:]]The[[:space:]]Risk[[:space:]]of[[:space:]]Spurious[[:space:]]Correlations[[:space:]]in[[:space:]]Even[[:space:]]Clean[[:space:]]Datasets/5ca95780-cac3-40e2-bb55-9f366ae5b522_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/e3674c10-3cf7-4572-bda0-51f9f1c251a1_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/e3674c10-3cf7-4572-bda0-51f9f1c251a1_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/e3674c10-3cf7-4572-bda0-51f9f1c251a1_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a491001aabd31b36f1cf91b7685c8714a25b3da1c1b6d33062d9bccd5e801fbe
|
| 3 |
+
size 7187411
|
2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/full.md
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity
|
| 2 |
+
|
| 3 |
+
Alessandro Pierro *12 Steven Abreu *13 Jonathan Timcheck 1 Philipp Stratmann 1 Andreas Wild 1 Sumit Bam Shrestha 1
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Linear recurrent neural networks enable powerful long-range sequence modeling with constant memory usage and time-per-token during inference. These architectures hold promise for streaming applications at the edge, but deployment in resource-constrained environments requires hardware-aware optimizations to minimize latency and energy consumption. Unstructured sparsity offers a compelling solution—when accelerated by compatible hardware platforms. In this paper, we investigate the Pareto front of performance and efficiency across inference compute budgets. We find that highly sparse linear RNNs consistently achieve better efficiency-performance trade-offs than dense baselines, with $2 \times$ less compute and $36\%$ less memory iso-accuracy. Our models achieve state-of-the-art results on a streaming audio denoising task. By quantizing our sparse models to fixed-point arithmetic and deploying them on the Intel Loihi 2 neuromorphic chip, we translate model compression into tangible gains of $42 \times$ lower latency and $149 \times$ lower energy consumption compared to a dense model on an edge GPU. Our findings showcase the transformative potential of unstructured sparsity, paving the way for highly efficient recurrent neural networks in real-world, resource-constrained environments.
|
| 8 |
+
|
| 9 |
+
https://github.com/IntelLabs/SparseRNNs
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
Linear Recurrent Neural Networks (RNNs) have recently emerged as powerful primitives for sequence modeling, both in isolation or hybridized with self-attention, achieving impressive results in language modeling (Poli et al., 2024), audio generation (Goel et al., 2022), and genomics (Nguyen et al., 2023), and many other areas. This success has been ignited by advances in initialization, parametrization, and parallelization of these models, which, combined, enabled large-scale training on GPUs (Voelker et al., 2019; Chilkuri et al., 2021; Gu et al., 2020; 2022b; Smith et al., 2023).
|
| 14 |
+
|
| 15 |
+
At inference time, linear RNNs iteratively compress the input sequence into a finite-dimensional representation whose dimensionality does not depend on the sequence length. Their memory requirements remain constant regardless of sequence length, and runtime scales linearly with sequence length. In contrast, transformer architectures (Vaswani et al.,
|
| 16 |
+
|
| 17 |
+
*Equal contribution 1Neuromorphic Computing Lab, Intel Corporation, USA 2Institute of Informatics, LMU Munich, Germany 3Bernoulli Institute & CogniGron, University of Groningen, Netherlands. Correspondence to: Alessandro Pierro <alessandro.piero@intel.com>.
|
| 18 |
+
|
| 19 |
+
Proceedings of the $42^{nd}$ International Conference on Machine Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025 by the author(s).
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1. Model compression and acceleration pipeline for linear RNNs, tailored to the Intel Loihi 2 chip.
|
| 23 |
+
|
| 24 |
+
2017) exhibit linear memory growth and quadratic runtime scaling as sequence length increases. This advantageous scaling makes linear RNNs especially well-suited for real-time long-range sequence modeling on edge devices that require low latency, a small form factor, and are subject to weight and power constraints, as common for applications like audio denoising (Timcheck et al., 2023), keyword spotting (Warden, 2018), or perception-and-control (Lu et al., 2023). Although model optimization and compression are essential for enabling efficient edge machine learning by reducing resource demands, their application to accelerate the inference of linear RNNs remains under-explored.
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Figure 2. Overview of the S5 architecture. Symbols are shown as defined by equations in Section 2.1.
|
| 28 |
+
|
| 29 |
+
Linear RNNs are a promising match for neuromorphic processors, which can efficiently update stateful neurons due to a tight integration of massively parallel compute and memory. Neuromorphic processors are an emerging class of brain-inspired hardware architectures, with notable examples like IBM's NorthPole (Modha et al., 2023), SpiNNaker 2 (Mayr et al., 2019), Tianjic (Pei et al., 2019), and Intel's Loihi 2 (Orchard et al., 2021). Beyond parallelism and compute-memory integration, different neuromorphic processors offer unique sets of further computational features, including event-driven compute and messaging, low-precision arithmetic, and support for unstructured sparse weight matrices. These sets of features offer unique opportunities to optimize and compress linear RNNs for real-world applications.
|
| 30 |
+
|
| 31 |
+
In this work, we explore the potential of unstructured sparsity-in weights and activations-and fixed-point quantization for the compression of linear RNNs and acceleration on neuromorphic hardware as illustrated in Figure 1. Specifically, we explore four key research questions:
|
| 32 |
+
|
| 33 |
+
1. Can we train linear RNNs with high synaptic and activation sparsity while retaining high performance?
|
| 34 |
+
2. Do highly sparse linear RNNs outperform dense linear RNNs across different inference compute budgets?
|
| 35 |
+
3. Can fixed-point quantization compress sparse linear RNNs without damaging the network's performance?
|
| 36 |
+
4. Can unstructured sparsity and fixed-point quantization be translated into latency and energy advantages on neuromorphic hardware?
|
| 37 |
+
|
| 38 |
+
We provide definite positive answers to questions 1 and 4, and present positive evidence for questions 2 and 3.
|
| 39 |
+
|
| 40 |
+
# 2. Compressing linear RNNs
|
| 41 |
+
|
| 42 |
+
# 2.1. Linear Recurrent Neural Networks
|
| 43 |
+
|
| 44 |
+
Recurrent neural networks (RNNs) are a class of neural networks designed for processing sequential data by maintaining hidden states that capture temporal dependencies. Linear RNNs distinguish themselves through their linear dynamics, which enables parallelization over the sequence length and, therefore, efficient training. Previous work has shown—both theoretically (Orvieto et al., 2024) and empirically (Gu et al., 2022a)—that the network's recurrent weight matrix can effectively be diagonalized in the complex domain without any loss of generality or model capacity. We use this diagonal formulation of linear RNNs, such that the network's update equations for the state $\mathbf{x}_k \in \mathbb{C}^N$ and output $\mathbf{y}_k \in \mathbb{R}^M$ are given by:
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
\mathbf {x} _ {k} = \operatorname {d i a g} (\bar {\mathbf {A}}) \otimes \mathbf {x} _ {k - 1} + \bar {\mathbf {B}} ^ {T} \mathbf {u} _ {k} \tag {1}
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
\mathbf {y} _ {k} = \bar {\mathbf {C}} ^ {T} \mathbf {x} _ {k} + \operatorname {d i a g} (\bar {\mathbf {D}}) \otimes \mathbf {u} _ {k} \tag {2}
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where $\otimes$ denotes the Hadamard product, $\mathbf{u}_k\in \mathbb{R}^M$ is the input sequence, $\mathrm{diag}(\bar{\mathbf{A}})\in \mathbb{C}^N$ are the diagonal recurrent weights, $\bar{\mathbf{B}}^T\in \mathbb{C}^{M\times N}$ are the input weights, $\bar{\mathbf{C}}^T\in \mathbb{C}^{N\times M}$ are the output weights, and $\mathrm{diag}(\bar{\mathbf{D}})\in \mathbb{R}^M$ are the residual weights. We follow the S5 model (Smith et al., 2023) for the initialization and parameterization of the linear RNN.
|
| 55 |
+
|
| 56 |
+
Because of its linearity, the temporal mixing of the S5 block above is followed by a nonlinear channel mixing block. We use a particular variant of the GLU block (Dauphin et al., 2017) where the linear RNN's output $\mathbf{y}_k \in \mathbb{R}^M$ is transformed as: $GLU(y_k) = \sigma(W\tau(\mathbf{y}_k)) \otimes \tau(\mathbf{y}_k)$ where $\tau$ is an element-wise nonlinear function (we use either the Gaussian error linear unit (GELU) or the Rectified Linear Unit (ReLU)), $W \in \mathbb{R}^{M \times M}$ is a weight matrix, and $\sigma$ is the sigmoid function. The full model architecture is illustrated in Figure 2.
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
(a)
|
| 60 |
+
|
| 61 |
+

|
| 62 |
+
(b)
|
| 63 |
+
Figure 3. (a) Loihi 2 implements a network of neurons, which are processed by neuro-cores and communicate via an asynchronous network-on-chip. Parallel IO and 10 Gbit Ethernet interfaces enable a Loihi 2 chip to communicate with other Loihi 2 chips and external hosts, respectively. Embedded microprocessors provide a flexible method of interaction with neuro-core registers, management, and communication. On a neuro-core, each neuron receives spike messages from other neurons via synapses with multiplicative weights $w_{i}$ , and sums them up by one or multiple dendritic accumulators. The input is used by a dendrite to update memory states that are local to the respective neuron. The neuron communicates with other neurons by sending spike messages. (b) Different Loihi 2 systems are available to cover a wide range of applications from the edge to HPC with up to 1 B neurons.
|
| 64 |
+
|
| 65 |
+
# 2.2. Neuromorphic Computing with Intel Loihi 2
|
| 66 |
+
|
| 67 |
+
Neuromorphic processors mimic computing principles of the brain, which excels in processing sequential data streams with just around $20\mathrm{W}$ of power. Loihi 2 is the second-generation of Intel's neuromorphic research processor (Orchard et al., 2021) and implements a spiking neural network as illustrated in Figure 3. The network is processed by massively parallel compute units, with 120 neuro-cores per chip. The neuro-cores compute and communicate asynchronously, but a global algorithmic time step is maintained through a barrier synchronization process. The neuro-cores are co-located with memory and can thus efficiently update local states, simulating up to 8192 stateful neurons per core. Each neuron can be programmed by the user to realize a variety of temporal dynamics through assembly code. Input from and output to external hosts and sensors is provided with up to 26 M 32 bit integer messages/s (Shrestha et al., 2024b). Loihi 2 can scale to real-world workloads of various sizes with up to 1 B neurons and 128 B synapses, using fully-digital stacked systems shown in Figure 3.
|
| 68 |
+
|
| 69 |
+
The architectural features of Loihi 2 offer unique opportunities to compress and optimize deep learning models. Like GPUs, its neuro-cores benefit from model quantization, as it supports low-precision arithmetics, 8 bit for synaptic weights and up to 32 bit for spike messages. Unlike GPUs, Loihi 2 is optimized for local computations within neurons, a common focus of neuromorphic processors. First, it allows fast and efficient updates of neuronal states with recurrent dynamics with minimal data movement, due to its tight compute-memory integration. Second, the fully asynchronous event-driven architecture of Loihi 2 allows it to efficiently process unstructured sparse weight matrices. Third, the neuro cores can leverage sparsified activation between neurons, as the asynchronous communication transfers only non-zero messages.
|
| 70 |
+
|
| 71 |
+
# 2.3. Evaluating Benefits from Sparsity
|
| 72 |
+
|
| 73 |
+
Unstructured sparsity has demonstrated compelling results as an effective model compression technique, serving both as a framework for theoretical analysis of sparsity algorithms and as an upper-bound for the gains achievable with constrained forms of sparsity (Liu & Wang, 2023; Mishra et al., 2021; Han et al., 2015). In particular, when compared to structured sparsity patterns, like N:M (Mishra et al., 2021) or block-diagonal, it typically attains higher task performance or compression rates (Lee et al., 2023). However, the gains of unstructured sparsity have not been realized as the traditional GPU architecture is suited to exploit only block sparsity structures (Liu & Wang, 2023). Additionally, sparse activations complement synaptic sparsity, resulting in fewer operations overall (Mukherji et al., 2024), but GPUs typically cannot take advantage of activation sparsity either. Realizing the benefits of unstructured sparsity requires suitable hardware architectures (Lie, 2023; Ashby et al., 2019; Zhang et al., 2021). The event-driven neuromorphic architecture of Loihi 2 is inherently suited to take advantage of the unstructured sparsity in both connections and activities, in particular, when they are extremely sparse, i.e., $\geq 90\%$ . Therefore, we choose to compare the benefits of efficiency gained from sparsity on Loihi 2 with equivalent dense networks on an edge GPU.
|
| 74 |
+
|
| 75 |
+
Theoretical studies have shown that wider sparse layers outperform dense layers with the same number of parameters (Golubeva et al., 2021; Chang et al., 2021). Research has further shown that, in practice, it is better to train a larger over-parameterized network and prune it to make it leaner compared to training a compact sparse network from start (Frankle & Carbin, 2018; Renda et al., 2020; Chen et al., 2020). There is evidence showing minimal loss in accuracy when the networks are pruned, typically to sparsity levels of $50 - 80\%$ (Chen et al., 2020). However, there is not much
|
| 76 |
+
|
| 77 |
+
research on performance at extreme levels of sparsity of $\geq 90\%$ . We thus ask; Do highly sparse networks achieve superior performance to dense networks when operating under identical inference compute budgets? How does the performance benefit of sparsity vary with increased compute budget?
|
| 78 |
+
|
| 79 |
+
In Section 3.2, we evaluate the effect of pruning and activity sparsification on multiply-and-accumulate (MACs) operations and task performance for a $k$ -family of sparse and densely trained networks where $k_{\mathrm{sparse}} \in [0.5, 3.0]$ , $k_{\mathrm{dense}} \in [0.25, 1.0]$ is the width scaling factor of the networks. In linear layers, which account for most of the computation in the S5 architecture, MACs scale linearly with weight and pre-activation sparsity. The detailed MAC calculation is reported in Appendix A.1. Additionally, we benchmark iso-accuracy models on relevant hardware to validate the theoretical gains from sparsity with latency and power measurements in Section 3.3.
|
| 80 |
+
|
| 81 |
+
# 2.4. Model Compression
|
| 82 |
+
|
| 83 |
+
Synaptic pruning Given our focus on edge and low-latency applications, we design our compression pipeline assuming that fine-tuning or re-training of the models is feasible. Following previous work (Mishra et al., 2021), we initialize the parameters from the pre-trained dense models. We adopt iterative magnitude pruning (IMP) which increases sparsity progressively during training and achieves better task performance than one-shot approaches, especially at high sparsity levels (Zhu & Gupta, 2018; Lee et al., 2023).
|
| 84 |
+
|
| 85 |
+
Specifically, we train for $E$ epochs with $T$ update steps in total. Sparsity starts at $S_{i} = 0$ at $t_i = 0$ and is increased following a degree-3 polynomial schedule (Zhu & Gupta, 2018) and updated three times per epoch as:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
S _ {t} = S _ {f} - (S _ {f} - S _ {i}) \cdot \left(1 - \frac {t - t _ {i}}{t _ {f} - t _ {i}}\right) ^ {3}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
with $t_f = 0.75T$ . Given the total sparsity $S_{t}$ and weights $W_{t}^{\ell}\in \mathbb{R}^{N^{\ell}\times M^{\ell}}$ at time $t$ and position $\ell$ in the network, we scale the sparsity $s_t^\ell$ for each weight according to the Erdos-Renyi-Kernel (ERK) strategy (Evci et al., 2020; Mocanu et al., 2018) to compute the mask $M_t^\ell$ :
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
\begin{array}{l} s _ {t} ^ {\ell} = s _ {t} \cdot \frac {N ^ {\ell} + M ^ {\ell}}{N ^ {\ell} \cdot M ^ {\ell}} \\ M _ {t} ^ {\ell} = \mathbb {1} \left(\left| W _ {t} ^ {\ell} \right| \geq \tau_ {t} ^ {\ell}\right) \\ \tau_ {t} ^ {\ell} = \min \left[ \mathrm {T o p K} \left(| W _ {t} ^ {\ell} |, s _ {t} ^ {\ell} N ^ {\ell} M ^ {\ell}\right) \right] \\ \end{array}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
where $\tau_t^\ell$ is the calculated threshold for $W_{t}^{\ell}$ to reach sparsity $s_t^\ell$ and $\mathrm{TopK}(W,k)$ gives the top- $k$ values from $W$ . In the forward pass, weights are masked as $\bar{W} = M\odot W$ , while the backward pass applies straight-through estimation (Bengio et al., 2013), enabling gradient updates also for masked weights.
|
| 98 |
+
|
| 99 |
+
Activity sparsification Sparsifying layer activations provide another means for reducing the compute and on-chip memory requirements during inference. In particular, sparse pre-activations of linear layers can significantly reduce the number of MACs required for the associated matrix-vector multiplication (MVM), if appropriately supported by the hardware backend. On sparse and event-driven accelerators, such as Loihi 2, sparse pre-activations directly translate into MACs savings since the MVM operation is computed as
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
M V M (W, x) = W _ {\{i, j \mid x _ {j} \neq 0 \}} x _ {\{i \mid x _ {i} \neq 0 \}} \tag {3}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
In contrast, GPU architectures struggle to leverage dynamic sparse activation patterns and have demonstrated gains with more structured activation patterns, and only in memory-bound regimes as in auto-regressive generation with large models (Mirzadeh et al., 2024; Zhang et al., 2024; Shazeer et al., 2017; He, 2024a).
|
| 106 |
+
|
| 107 |
+
Techniques for activation sparsity include top-k (Key et al., 2024), sigma-delta coding (Shrestha et al., 2024a; O'Connor & Welling, 2016), sparse mixture-of-experts (Fedus et al., 2022; He, 2024b) and ReLU-fication (Mirzadeh et al., 2024). We base our methodology on the latter of these. Since ReLU is a fully element-wise operation, it doesn't require synchronization across channels which would complicate implementation in compute-memory integrated platforms, such as Loihi 2. Following previous work on transformer models (Mirzadeh et al., 2024), we start from the original dense model with GELU non-linearity, as shown in Figure 2, and apply two modifications. First, we replace the GELU activation with a ReLU, sparsifying pre-activations of the linear layer in the GLU block. Second, we insert additional ReLU activations after the residual add in the GLU block and to the real component of the S5 hidden layer, further increasing the pre-activation sparsity of linear operators. Both model surgeries are applied to the pre-trained model at the beginning of the iterative pruning procedure, enabling accuracy recovery from both weight and activation pruning without extra training budget.
|
| 108 |
+
|
| 109 |
+
Quantization and fixed-point computation Reducing the numerical precision of weights and activations through quantization is an essential way to compress machine learning models, directly leading to reduced memory footprint and faster inference (Gholami et al., 2021). We denote the tensor to be quantized with $\mathbf{x}$ and the number of bits to use with $n$ , such that the quantized tensor $\overline{\mathbf{x}}_n$ is defined as:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\bar {\mathbf {x}} _ {n} = \left\lfloor \frac {\mathbf {x}}{\Delta_ {x}} + z _ {x} \right] = \left\lfloor s _ {x} \mathbf {x} + z _ {x} \right] \tag {4}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $\lfloor \cdot \rfloor$ indicates rounding to the nearest integer, $s_x$ is the scale for the given tensor, $z_{x}$ is the zero point, and $\Delta_{x}$ is the corresponding step size. For simplicity, we choose
|
| 116 |
+
|
| 117 |
+
$s_x = (2^{n - 1} - 1)(\max |\mathbf{x}|)^{-1}$ and $z_{x} = \mathbf{0}$ , i.e., we use symmetric quantization based on the absolute maximum.
|
| 118 |
+
|
| 119 |
+
Post-training quantization (PTQ) applies quantization to a pre-trained model without further training, which is computationally efficient but may lead to a notable drop in accuracy, especially for complex models or tasks (Gholami et al., 2021). Without constraints during training, it has been shown to under-perform on both nonlinear (Wu et al., 2016) and linear RNNs (Abreu et al., 2024). In contrast, quantization-aware training (QAT) incorporates quantization into the training process using straight-through estimators for the gradients (Bengio et al., 2013), allowing the model to adapt to the reduced precision and typically achieving superior performance retention compared to PTQ (Hubara et al., 2018), which has also shown promising results on linear RNNs such as S4D (Meyer et al., 2024) and S5 (Abreu et al., 2024) on synthetic tasks from the Long Range Arena benchmark (Tay et al., 2021). To demonstrate advantages on hardware, we use static quantization (Gholami et al., 2021) using only fixed-point (integer) arithmetic (Wu et al., 2020). Whereas in dynamic quantization, scales $s_x$ are computed dynamically on incoming data (and therefore requiring floating-point operations), static quantization pre-computes scales for all weights and activations in the neural network and "freezes" these scales so that the network can be converted to use only fixed-point arithmetic.
|
| 120 |
+
|
| 121 |
+
Following prior work on quantizing linear RNNs (Abreu et al., 2024), we choose 8 bit for all weights, except the diagonal recurrent $\mathrm{diag}(\bar{A})$ weights which is stored with 16 bit. All activations are quantized to 16 bit. We denote this quantization recipe with W8A16. This is a more compressed quantization scheme than previous work that deployed a linear RNN to fixed-point hardware using W8A24 (Meyer et al., 2024). For the linear RNNs that are deployed to the Loihi 2 chip, we combine QAT with sparse training.
|
| 122 |
+
|
| 123 |
+
# 2.5. Porting S5 to Loihi 2
|
| 124 |
+
|
| 125 |
+
Running S5 on Loihi 2 requires a range of adjustments, to fully leverage the neuromorphic architecture and to adhere to its constraints. As a result, the S5 network shown in Figure 2 is transformed into a network of synapses and neurons for Loihi 2 as illustrated in Figure 8. In general, a state vector of dimension $\mathbb{R}^M$ is encoded by M neurons. Matrix-vector multiplications are hardware accelerated by the synaptic layers, which take a vector of neuron activities, multiply it with the matrix of synaptic weights, and pass the output to the next layer of neurons. Since complex numbers are not natively supported on Loihi 2, the complex matrices $\bar{B}$ and $\bar{C}$ have been split into two synaptic layers each. Similarly, the complex state $x_{k}$ is stored by two neuronal states. The remaining operations are performed within the assembly-programmable neurons.
|
| 126 |
+
|
| 127 |
+
A single layer of programmable neurons can efficiently fuse many operations on the vector it encodes. This applies to all element-wise operations where each neuron must operate only on its local states. The neuronal layers thus implement ReLUs, BatchNorm, Hadamard products, residual add, and multiplications of a state vector with a diagonal matrix. Applying this layer fusion, the full S5 architecture only requires one neuron group for the encoder, one for the decoder, and three for each S5 block. The detailed mapping of operations to neuron groups is illustrated in Figure 8,
|
| 128 |
+
|
| 129 |
+
# 3. Results
|
| 130 |
+
|
| 131 |
+
# 3.1. Experimental Setup
|
| 132 |
+
|
| 133 |
+
Software We implemented our methodology in JAX 0.4.30, building on top of the original S5 codebase (Smith et al., 2023), with JaxPruner (Lee et al., 2023) for the pruning algorithms and the AQT library (Google, 2024) for quantization-aware training. We implemented static quantization and a fixed-point model ourselves using only JAX.
|
| 134 |
+
|
| 135 |
+
Audio denoising task We evaluated our approach on the Intel Neuromorphic Deep Noise Suppression Challenge (Timcheck et al., 2023). The objective of the Intel N-DNS Challenge is to enhance the clarity of human speech recorded on a single microphone in a noisy environment. The Intel N-DNS Challenge utilizes data from the Microsoft DNS Challenge, encompassing clean human speech audio samples and noise source samples. (Reddy et al., 2020; 2021a;b; Dubey et al., 2024). Clean human speech and noise samples are mixed to produce noisy human speech with a ground truth clean human speech goal.
|
| 136 |
+
|
| 137 |
+
To train our models, we used the default Intel N-DNS Challenge training and validation sets, each consisting of 60 000 noisy audio samples of $30\mathrm{s}$ each, and a test set with 12 000 samples. We encoded and decoded each audio sample using the Short-Time Fourier Transform (STFT) and Inverse Short-Time Fourier Transform (iSTFT) (Grochenig, 2013). Following the N-DNS baseline solution, NsSDNet (Shrestha et al., 2024a), we adopted a $32\mathrm{ms}$ window length and a $8\mathrm{ms}$ hop length for the STFT/ISTFT. This resulted in a nominal real-time audio processing latency of $32\mathrm{ms}$ , which allows ample time $(8\mathrm{ms})$ for denoising network inference, as $40\mathrm{ms}$ is the standard for an acceptable latency according to the Microsoft DNS Challenge. We evaluated the denoising quality of our model using the scale-invariant signal-to-noise ratio (SI-SNR)
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\mathrm {S I} - \mathrm {S N R} = 1 0 \log_ {1 0} \frac {\left\| s _ {\text {t a r g e t}} \right\| ^ {2}}{\left\| e _ {\text {n o i s e}} \right\| ^ {2}}. \tag {5}
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
Importantly, SI-SNR provides a volume-agnostic measure of audio cleanliness relative to the ground truth signal.
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 4. Pareto fronts for S5 network audio denoising quality (SI-SNR) as a function of effective compute (left) and memory footprint (right) on the Intel N-DNS test set. S5 networks with weight and activation sparsity (green) exhibit a large domain of Pareto optimality versus dense S5 networks (orange). Number annotations enumerate increasing S5 dimensionality configurations, from $500\mathrm{k}$ to $4\mathrm{M}$ parameters. Dashed horizontal like marks SI-SNR of Spiking-FullSubNet XL, the previous state-of-the-art model. The horizontal arrows highlight models used for hardware deployment, the diagonal arrows highlight models of the same width. See text for details.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
|
| 150 |
+
# 3.2. Pareto Front of Performance and Efficiency
|
| 151 |
+
|
| 152 |
+
We studied the performance-efficiency Pareto front of dense and sparse models across inference compute budgets. Starting from the S5 architecture (Smith et al., 2023), we trained a family of dense models of increasing size by linearly scaling the model dimensions (i.e. model width and size of the SSM hidden state), while keeping the depth fixed to three S5 layers. Similarly, we trained a family of sparse models, i.e., pruned and ReLU-fied, according to our methodology discussed above, with $90\%$ of weights pruned by the end of training (further details on the model dimensions are provided in Appendix A.2). The results, reported in Figure 4, compare de-noising performance (SI-SNR) and computational efficiency as measured by effective MACs and memory footprint (see Appendix A.1).
|
| 153 |
+
|
| 154 |
+
The results show that sparsification significantly degrades performance when applied to under-parametrized dense models (e.g., sparsifying dense-3 reduces SI-SNR by $7.3\%$ ). However, task performance is recovered with increased model dimensions and the accuracy of dense models is matched by larger sparse ones, with fewer MACs and lower memory requirements. This gives empirical support to theoretical work on the capacity of sparse-and-wide neural networks (Golubeva et al., 2021). For example, sparse-8 model requires $2 \times$ less compute and $36\%$ lower memory than the dense-3 model, while achieving the same level of accuracy. Overall, sparse models constitute the Pareto front of task performance and computational efficiency across compute budgets.
|
| 155 |
+
|
| 156 |
+
In terms of absolute task performance, we find that the S5 architecture provides state-of-the-art results on audio denois-
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Figure 5. Activation sparsity of ReLU blocks across model depth for a dense model and a sparse-weight model. The sparse-weight model exhibits significantly lower activation sparsity across layers.
|
| 160 |
+
|
| 161 |
+
ing out of the box. When compared to Spiking-FullSubNet-XL (Hao et al., 2024), the Track 1 winner of the Intel N-DNS Challenge with $15.2\mathrm{dB}$ SI-SNR, our sparse-11 S5 model requires $3.2\times$ less compute and $5.37\times$ lower memory iso-accuracy. This finding is in line with previous research on audio modeling with state space models (Goel et al., 2022), and provides additional evidence on the suitability of these architectures for signal processing.
|
| 162 |
+
|
| 163 |
+
Interaction of weight and activation sparsity An interesting question is what is the interaction between the two
|
| 164 |
+
|
| 165 |
+
types of sparsity, in weights and activations. Figure 5 reports the pre-activation sparsity for different layers across the model depth for two ReLU-fied models of the same size (model variant 6), with and without synaptic sparsity. We observe that the synaptic-sparse model exhibits lower activation sparsity across the board, a finding that is consistent across model sizes. In addition, activation sparsity significantly decreases with model depth, both for dense and sparse models. These phenomena, previously observed in other models (Mukherji et al., 2024), suggest that, during training, the model compensates the reduced information flow caused by pruning with increased levels of activation. Additional research on more advanced activation functions would allow for the optimal allocation of MACs, especially those that provide explicit control over sparsity without cross-channel synchronization (e.g., approximate top-k (Key et al., 2024)).
|
| 166 |
+
|
| 167 |
+
# 3.3. Hardware Implementation
|
| 168 |
+
|
| 169 |
+
Impact of fixed-point conversion Since Loihi 2 only supports fixed-point (FXP) arithmetic, as presented in Section 2, we quantized the weights and activations of our model and implemented the network dynamics in FXP arithmetic. The effect of our quantization methodology is presented in Figure 6. Starting from a 32-bit floating-point (FP32) model, we apply static quantization, which rounds weights and activations using fixed scales, but still performs the actual computation in FP32. Notably, Quantization-Aware Training (QAT) is very effective in maintaining test performance (SI-SNR) from FP32 to static quantization, compared to Post-Training Quantization (PTQ). The frozen scales from static quantization are imported into our FXP model implemented in JAX, which uses only int32 types and fixed-point arithmetic to compute the forward pass of the model. We observe further performance degradation in the FXP simulation, which we analyze in more detail in Appendix A.3.3. We finally map the FXP model to Loihi 2 and perform inference on the chip, again finding a degradation in SI-SNR, which is likely due to subtle differences in the integer arithmetic performed by the FXP simulation and Loihi 2 implementation with fused layers. Another source of mismatch is that the FXP model in simulation handles overflows by clipping to the maximum value, whereas Loihi 2 "wraps around" the value, resulting in a sign inversion. The size of the model decreases by about a factor of 4 when transitioning from FP32 weights to INT8 weights, as shown on the right side of Figure 6.
|
| 170 |
+
|
| 171 |
+
Power and Performance To measure the empirical efficiency benefits afforded by the sparse S5 model on neuromorphic hardware, we profile inference on Loihi 2 using the fixed-point S5 model, in particular, configuration sparse-8 from Figure 4. To compare to conventional hardware, we profile the smallest dense model that achieves equivalent
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 6. Impact of quantization interventions on Test SI-SNR and memory footprint, with and without quantization-aware training, for model variant sparse-6. The results show that the Base model without QAT performs slightly better in FP32 than the QAT model, but significantly worse in static quantization and fixed-point precision.
|
| 175 |
+
|
| 176 |
+
performance on Jetson Orin Nano $^1$ , which is configuration dense-3 from Figure 4. There exist a variety of modes in which to execute a model on Loihi and Jetson, each exhibiting different tradeoffs in terms of latency, throughput, and energy. Therefore, we present different modes for a comprehensive characterization and comparison. We summarize our profiling results in Table 1. More details on the different execution modes on Loihi 2 are presented in Appendix A.3.2.
|
| 177 |
+
|
| 178 |
+
In real-time, token-by-token processing on a single input sequence, Loihi 2 processes a single STFT frame $35 \times$ faster and with $1200 \times$ less energy than the Jetson Orin Nano. When the Jetson Orin Nano processes "chunks" of multiple time steps, its utilization increases, and energy per token improves. With the largest chunks that fit the real-time requirement of latency $\leq 8 \mathrm{~m}$ sec, Loihi 2 is $42 \times$ faster and uses $149 \times$ less energy per token.
|
| 179 |
+
|
| 180 |
+
In offline processing, when many STFT frames are buffered to process in succession (or in parallel), the energy efficiency and throughput of the Jetson Orin Nano improves. Loihi 2 performs offline processing with pipelining (see Appendix A.3.2 for further explanation). When processing single sequences, i.e. batch size $b = 1$ , Loihi 2 has $3.7 \times$ higher throughput with $8 \times$ less energy per sample.
|
| 181 |
+
|
| 182 |
+
It is important to note that the Jetson Orin Nano is only fully
|
| 183 |
+
|
| 184 |
+
Table 1. Power and performance results*. The Loihi 2 is running a sparse and quantized S5 model, while the Jetson Orin Nano is running a smaller dense S5 model that reaches similar test performance. All measurements are averaged over 8 random samples from the test set, each containing 3750 time steps. Gray highlights denote violation of real-time constraints for the audio denoising task. Best real-time results are underlined.
|
| 185 |
+
|
| 186 |
+
<table><tr><td></td><td>Mode</td><td>Latency (↓)</td><td>Energy (↓)</td><td>Throughput (↑)</td></tr><tr><td colspan="5">Token-by-token</td></tr><tr><td>Intel Loihi 2†</td><td>Fall-Through</td><td>76 μs</td><td>13 μJ/tok</td><td>13 178 tok/s</td></tr><tr><td>Jetson Orin Nano‡</td><td>Recurrent 1-step (b = 1)</td><td>2 688 μs</td><td>15 724 μJ/tok</td><td>372 tok/s</td></tr><tr><td>Jetson Orin Nano‡</td><td>Recurrent 10-step (b = 1)</td><td>3 224 μs</td><td>1 936 μJ/tok</td><td>3 103 tok/s</td></tr><tr><td>Jetson Orin Nano‡</td><td>Recurrent 100-step (b = 1)</td><td>10 653 μs</td><td>626 μJ/tok</td><td>9 516 tok/s</td></tr><tr><td>Jetson Orin Nano‡</td><td>Recurrent scan (b = 1)</td><td>236 717 μs</td><td>404 μJ/tok</td><td>15 845 tok/s</td></tr><tr><td colspan="5">Sample-by-sample</td></tr><tr><td>Intel Loihi 2†</td><td>Pipeline</td><td>60.58 ms</td><td>185.80 mJ/sam</td><td>16.58 sam/s</td></tr><tr><td>Jetson Orin Nano‡</td><td>Scan (b = 1)</td><td>233.48 ms</td><td>1 512.60 mJ/sam</td><td>4.28 sam/s</td></tr><tr><td>Jetson Orin Nano‡</td><td>Scan (b = bmax)</td><td>226.53 ms</td><td>5.89 mJ/sam</td><td>1 130.09 sam/s</td></tr></table>
|
| 187 |
+
|
| 188 |
+
† Loihi 2 workloads were characterized on an Oheo Gulch system with N3C1-revision Loihi 2 chips running NxCore 2.5.8 and NxKernel 0.2.0 with on-chip IO unthrottle sequencing of inputs. Researchers interested to run S5 on Loihi 2 can gain access to the software and systems by joining Intel's Neuromorphic Research Community. ‡ Jetson workloads were characterized on an NVIDIA Jetson Orin Nano 8GB running Jetpack 6.2, CUDA 12.4, JAX 0.4.32, using the MAXN SUPER power mode; energy values are computed based on the TOT power as reported by jtop 4.3.0. The batch size $b_{\mathrm{max}} = 256$ was chosen to be the largest that fits into memory. *Performance results are based on testing as of January 2025 and may not reflect all publicly available security updates; results may vary.
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
Figure 7. Impact of batching on energy efficiency and latency for Loihi 2 and Jetson Orin Nano. Both platforms exhibit similar trends: energy per sample decreases proportionally with batch size, while latency remains approximately constant. Loihi 2 maintains competitive performance on both metrics across batch sizes.
|
| 192 |
+
|
| 193 |
+
utilized when processing 256 sequences in parallel, and at this level, it shows significantly higher throughput while consuming less energy per sample, compared to Loihi 2. We include these results in the last row of Table 1.
|
| 194 |
+
|
| 195 |
+
Impact of batch processing While several edge applications typically require batch-one inference, some scenarios can benefit from support for small-batch processing, e.g., de-noising audio streams from multiple on-device micro
|
| 196 |
+
|
| 197 |
+
phones. For this reason, it is interesting to investigate the effect of batch processing on energy efficiency and latency for the two hardware architectures. Intel Loihi 2 doesn't natively support batching in the sense of processing multiple independent samples through the same model instantiation. However, the parallel inference of independent sequences can be achieved by replicating the model on the chip as many times as required by batch size, thereby obtaining higher throughput through a larger silicon area. We extended the results in Table 1 to compare the effect of this implementation of batching on a 16-chip Loihi 2 VPX board to the usual batch processing of the Jetson Orin GPU. The results, reported in Figure 7, show the energy per sample and the total latency for both architectures across batch sizes, from 1 to 16. Both hardware backends exhibit a similar trend: while total latency remains constant, the energy efficiency improves proportionally with batch size. Loihi 2 remains competitive across batch sizes, showing between 4.43 to $4.72 \times$ lower energy per sample and $4.52 \times$ lower latency on average. It is important to note that since model replicas are physically mapped to different cores on Loihi, the resource requirements increase linearly with batch size. For this reason, such batch processing on Loihi is only feasible for small models and small batch sizes.
|
| 198 |
+
|
| 199 |
+
Energy at real-time inference rate The latency budget for the neural network component of the audio denoising pipeline, running either on Loihi 2 or on the Jetson, is $8\mathrm{ms}$ . Our Loihi 2 and Jetson implementations are well below 8ms for online inference. Thus, to estimate the energy consumption in real-time settings, where subsequent tokens
|
| 200 |
+
|
| 201 |
+
are actually $8\mathrm{ms}$ apart, we rescale the power as:
|
| 202 |
+
|
| 203 |
+
$$
|
| 204 |
+
P _ {\text {t o t a l}} ^ {\text {r e a l - t i m e}} = P _ {\text {s t a t i c}} + \frac {t _ {\text {c o m p u t e}}}{8 \mathrm {m s}} P _ {\text {d y n a m i c}},
|
| 205 |
+
$$
|
| 206 |
+
|
| 207 |
+
based on the power measurements in token-by-token processing. In this setting, Loihi 2 achieves $1128\mu \mathrm{J} / \mathrm{tok}$ while the Jetson achieves $36528\mu \mathrm{J} / \mathrm{tok}$ for token-by-token processing and $3720\mu \mathrm{J} / \mathrm{tok}$ when processing chunks of 10 time steps at once. Loihi 2 remains at least $3\times$ more energy efficient than the Jetson Orin Nano.
|
| 208 |
+
|
| 209 |
+
**Limitations** Our Jetson Orin Nano implementation is in FP32, while our Loihi 2 implementation is in W8A16. Our fixed-point model in JAX provides no improvements in runtime or energy. More competitive Jetson energy, latency, and throughput could potentially be obtained by developing a more optimized quantized implementation.
|
| 210 |
+
|
| 211 |
+
# 4. Discussion
|
| 212 |
+
|
| 213 |
+
In this work, we explored the Pareto front of efficiency and performance for a streaming audio processing task, comparing dense and sparsified variants of a linear RNN based on the S5 architecture. We showed that combining activation sparsity and unstructured weight pruning results in a significant reduction in compute requirements, up to $3.2 \times$ , and memory footprint, $5.7 \times$ , without accuracy degradation. In addition, we validated these theoretical gains with a hardware-accelerated implementation on a compute-memory integrated coarse accelerator, the Intel Loihi 2 neuromorphic chip. When quantized and deployed on Loihi 2, sparse models deliver $42 \times$ lower latency and $149 \times$ lower energy consumption in token-by-token processing, compared to the iso-accuracy dense models on the Jetson Orin Nano GPU.
|
| 214 |
+
|
| 215 |
+
In conclusion, our work demonstrates that sparse event-driven accelerators, such as neuromorphic processors, can provide state-of-the-art accuracy on high-frequency signal processing tasks, with orders of magnitude gains in latency and energy efficiency. This possibility opens up several research directions to further materialize these gains in real-world applications. In particular, future work should investigate how the efficiency-performance Pareto front scales up to larger models and more complex tasks, such as language and multimodal modeling. In this setting, the scalability of multi-chip neuromorphic processors (Kudithipudi et al., 2025) and high-frequency execution could power the growing need for large-scale inference compute (Snell et al., 2024). Finally, improvements to our fixed-point conversion methodology and the use of advanced data types (e.g. FP8), could help close the gap between simulation and hardware deployment.
|
| 216 |
+
|
| 217 |
+
# Acknowledgments
|
| 218 |
+
|
| 219 |
+
We acknowledge the support of several colleagues at Intel who enabled our experimental setup on Intel Loihi 2, both in hardware and software. We are also grateful to Prof. Eyke Hüllermeier for feedback on an early draft of this work.
|
| 220 |
+
|
| 221 |
+
# Impact Statement
|
| 222 |
+
|
| 223 |
+
This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
|
| 224 |
+
|
| 225 |
+
# References
|
| 226 |
+
|
| 227 |
+
Abreu, S., Pedersen, J. E., Heckel, K. M., and Pierro, A. Q-S5: Towards quantized state space models. International Conference on Machine Learning Workshops, 2024.
|
| 228 |
+
Ashby, M., Baaij, C., Baldwin, P., Bastiaan, M., Bunting, O., Cairncross, A., Chalmers, C., Corrigan, L., Davis, S., van Doorn, N., Fowler, J., Hazel, G., Henry, B., Page, D., Shipton, J., and Steenkamp, S. C. Exploiting unstructured sparsity on next-generation datacenter hardware. 2019. URL https://apisemantic scholar.org/ CorpusID:209392807.
|
| 229 |
+
Bengio, Y., Léonard, N., and Courville, A. C. Estimating or propagating gradients through stochastic neurons for conditional computation. CoRR, abs/1308.3432, 2013. URL http://arxiv.org/abs/1308.3432.
|
| 230 |
+
Chang, X., Li, Y., Oymak, S., and Thrampoulidis, C. Provable Benefits of Overparameterization in Model Compression: From Double Descent to Pruning Neural Networks. Proceedings of the AAAI Conference on Artificial Intelligence, 35(8):6974-6983, May 2021. ISSN 2374-3468. doi: 10.1609/aaai.v35i8.16859. URL https://ojs.aai.org/index.php/AAAI/article/view/16859. Number: 8.
|
| 231 |
+
Chen, T., Frankle, J., Chang, S., Liu, S., Zhang, Y., Wang, Z., and Carbin, M. The lottery ticket hypothesis for pretrained bert networks. Advances in neural information processing systems, 33:15834-15846, 2020.
|
| 232 |
+
Chilkuri, N., Hunsberger, E., Voelker, A., Malik, G., and Eliasmith, C. Language modeling using lmus: 10x better data efficiency or improved scaling compared to transformers. arXiv preprint arXiv:2110.02402, 2021.
|
| 233 |
+
Dauphin, Y. N., Fan, A., Auli, M., and Grangier, D. Language modeling with gated convolutional networks. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on
|
| 234 |
+
|
| 235 |
+
Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, volume 70 of Proceedings of Machine Learning Research, pp. 933-941. PMLR, 2017. URL http://proceedings.mlr.press/v70/dauphin17a.html.
|
| 236 |
+
Dubey, H., Aazami, A., Gopal, V., Naderi, B., Braun, S., Cutler, R., Ju, A., Zohourian, M., Tang, M., Golestaneh, M., et al. Icassp 2023 deep noise suppression challenge. IEEE Open Journal of Signal Processing, 2024.
|
| 237 |
+
Evci, U., Gale, T., Menick, J., Castro, P. S., and Elsen, E. Rigging the Lottery: Making All Tickets Winners. In Proceedings of the 37th International Conference on Machine Learning, pp. 2943-2952. PMLR, November 2020. URL https://proceedings.mlrpress/v119/evcici20a.html. ISSN: 2640-3498.
|
| 238 |
+
Fedus, W., Zoph, B., and Shazeer, N. Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity, June 2022. URL http://arxiv.org/abs/2101.03961.arXiv:2101.03961 [cs].
|
| 239 |
+
Frankle, J. and Carbin, M. The lottery ticket hypothesis: Finding sparse, trainable neural networks. arXiv preprint arXiv:1803.03635, 2018.
|
| 240 |
+
Gholami, A., Kim, S., Dong, Z., Yao, Z., Mahoney, M. W., and Keutzer, K. A Survey of Quantization Methods for Efficient Neural Network Inference, June 2021. URL http://arxiv.org/abs/2103.13630.arXiv:2103.13630 [cs].
|
| 241 |
+
Goel, K., Gu, A., Donahue, C., and Ré, C. It's raw! audio generation with state-space models. In Chaudhuri, K., Jegelka, S., Song, L., Szepesvári, C., Niu, G., and Sabato, S. (eds.), International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, volume 162 of Proceedings of Machine Learning Research, pp. 7616-7633. PMLR, 2022. URL https://proceedings.mlr.press/v162/goel22a.html.
|
| 242 |
+
Golubeva, A., Gur-Ari, G., and Neyshabur, B. Are wider nets better given the same number of parameters? October 2021. URL https://openreview.net/forum?id=zx80ka09eF.
|
| 243 |
+
Google. Aqt: Accurate quantized training. https://github.com/charlespwd/project-title, 2024.
|
| 244 |
+
Grochenig, K. Foundations of time-frequency analysis. Springer Science & Business Media, 2013.
|
| 245 |
+
|
| 246 |
+
Gu, A., Dao, T., Ermon, S., Rudra, A., and Ré, C. Hippo: Recurrent memory with optimal polynomial projections. In Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., and Lin, H. (eds.), Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL https://proceedings.neurips.cc/paper/2020混沌/102f0bb6efb3a6128a3c750dd16729be-Abstract.html.
|
| 247 |
+
Gu, A., Goel, K., Gupta, A., and Re, C. On the parameterization and initialization of diagonal state space models. In Koyejo, S., Mohamed, S., Agarwal, A., Belgrave, D., Cho, K., and Oh, A. (eds.), Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022a. URL http://papers.nips.cc/paper_files/paper/2022/hash/e9a32fade47b906de908431991440f7c-Abstract-Conference.html.
|
| 248 |
+
Gu, A., Goel, K., and Ré, C. Efficiently modeling long sequences with structured state spaces. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022b. URL https://openreview.net/forum?id=uYLFOz1vlAC.
|
| 249 |
+
Han, S., Pool, J., Tran, J., and Dally, W. Learning both weights and connections for efficient neural network. Advances in neural information processing systems, 28, 2015.
|
| 250 |
+
Hao, X., Ma, C., Yang, Q., Tan, K. C., and Wu, J. When audio denoising meets spiking neural network. In 2024 IEEE Conference on Artificial Intelligence (CAI), pp. 1524-1527, 2024. doi: 10.1109/CAI59869.2024.00275.
|
| 251 |
+
He, X. O. Mixture of A million experts. CoRR, abs/2407.04153, 2024a. doi: 10.48550/ ARXIV.2407.04153. URL https://doi.org/10.48550/arXiv.2407.04153.
|
| 252 |
+
He, X. O. Mixture of A Million Experts, July 2024b. URL http://arxiv.org/abs/2407.04153.arXiv:2407.04153 [cs].
|
| 253 |
+
Hubara, I., Courbariaux, M., Soudry, D., El-Yaniv, R., and Bengio, Y. Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activations. Journal of Machine Learning Research, 18(187):1-30, 2018. ISSN 1533-7928. URL http://jmlr.org/papers/v18/16-456.html.
|
| 254 |
+
|
| 255 |
+
Key, O., Ribar, L., Cattaneo, A., Hudlass-Galley, L., and Orr, D. Approximate top- $k$ for increased parallelism. CoRR, abs/2412.04358, 2024. doi: 10.48550/ ARXIV.2412.04358. URL https://doi.org/ 10.48550/arXiv.2412.04358.
|
| 256 |
+
Kudithipudi, D., Schuman, C., Vineyard, C. M., Pandit, T., Merkel, C., Kubendran, R., Aimone, J. B., Orchard, G., Mayr, C., Benosman, R., Hays, J., Young, C., Bartolozzi, C., Majumdar, A., Cardwell, S. G., Payvand, M., Buckley, S., Kulkarni, S., Gonzalez, H. A., Cauwenberghs, G., Thakur, C. S., Subramoney, A., and Furber, S. Neuromorphic computing at scale. Nature, 637(8047):801-812, January 2025. ISSN 1476-4687. doi: 10.1038/s41586-024-08253-8. URL https://www.nature.com/articles/s41586-024-08253-8.
|
| 257 |
+
Lee, J. H., Park, W., Mitchell, N., Pilault, J., Obando-Ceron, J. S., Kim, H., Lee, N., Frantar, E., Long, Y., Yazdanbakhsh, A., Agrawal, S., Subramanian, S., Wang, X., Kao, S., Zhang, X., Gale, T., Bik, A., Han, W., Ferev, M., Han, Z., Kim, H., Dauphin, Y. N., Dziugaite, K., Castro, P. S., and Evci, U. Jaxpruner: A concise library for sparsity research. CoRR, abs/2304.14082, 2023. doi: 10.48550/ARXIV.2304.14082. URL https://doi.org/10.48550/arXiv.2304.14082.
|
| 258 |
+
Li, J. and Alvarez, R. On the quantization of recurrent neural networks, January 2021. URL http://arxiv.org/abs/2101.05453. arXiv:2101.05453 [cs].
|
| 259 |
+
Lie, S. Cerebras architecture deep dive: First look inside the hardware/software co-design for deep learning. IEEE Micro, 43(3):18-30, 2023. doi: 10.1109/MM.2023.3256384.
|
| 260 |
+
Liu, S. and Wang, Z. Ten lessons we have learned in the new "sparseland": A short handbook for sparse neural network researchers. CoRR, abs/2302.02596, 2023. doi: 10.48550/ARXIV.2302.02596. URL https://doi.org/10.48550/arXiv.2302.02596.
|
| 261 |
+
Lu, C., Schroecker, Y., Gu, A., Parisotto, E., Foerster, J. N., Singh, S., and Behbahani, F. M. P. Structured state space models for in-context reinforcement learning. In Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., and Levine, S. (eds.), Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023. URL http://papers.nips.cc/paper_files/paper/2023混沌/92d3d2a9801211ca3693ccb2faa1316f-Abstract-Conference.html.
|
| 262 |
+
Mayr, C., Hoppner, S., and Furber, S. B. Spinnaker 2: A 10 million core processor system for brain simulation and
|
| 263 |
+
|
| 264 |
+
machine learning. CoRR, abs/1911.02385, 2019. URL http://arxiv.org/abs/1911.02385.
|
| 265 |
+
Meyer, S. M., Weidel, P., Plank, P., Campos-Macias, L., Shrestha, S. B., Stratmann, P., and Richter, M. A diagonal structured state space model on loihi 2 for efficient streaming sequence processing. arXiv preprint arXiv:2409.15022, 2024.
|
| 266 |
+
Mirzadeh, S. I., Alizadeh-Vahid, K., Mehta, S., del Mundo, C. C., Tuzel, O., Samei, G., Rastegari, M., and Farajtabar, M. ReLU strikes back: Exploiting activation sparsity in large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=osoWxY8q2E.
|
| 267 |
+
Mishra, A., Latorre, J. A., Pool, J., Stosic, D., Stosic, D., Venkatesh, G., Yu, C., and Micikevicius, P. Accelerating sparse deep neural networks. arXiv preprint arXiv:2104.08378, 2021.
|
| 268 |
+
Mocanu, D. C., Mocanu, E., Stone, P., Nguyen, P. H., Gibescu, M., and Liotta, A. Scalable training of artificial neural networks with adaptive sparse connectivity inspired by network science. Nature Communications, 9(1):2383, June 2018. ISSN 2041-1723. doi: 10.1038/s41467-018-04316-3. URL https://doi.org/10.1038/s41467-018-04316-3.
|
| 269 |
+
Modha, D. S., Akopyan, F., Andreopoulos, A., Appuswamy, R., Arthur, J. V., Cassidy, A. S., Datta, P., DeBole, M. V., Esser, S. K., Otero, C. O., Sawada, J., Taba, B., Amir, A., Bablani, D., Carlson, P. J., Flickner, M. D., Gandhasri, R., Garreau, G. J., Ito, M., Klamo, J. L., Kusnitz, J. A., McClatchey, N. J., McKinstry, J. L., Nakamura, Y., Nayak, T. K., Risk, W. P., Schleupen, K., Shaw, B., Sivagnaname, J., Smith, D. F., Terrizzano, I., and Ueda, T. Neural inference at the frontier of energy, space, and time. Science, 382 (6668):329-335, 2023. doi: 10.1126/science.adh1174. URL https://www.science.org/doi/abs/10.1126/science.adh1174.
|
| 270 |
+
Mukherji, R., Schöne, M., Nazeer, K. K., Mayr, C., Kappel, D., and Subramoney, A. Weight sparsity complements activity sparsity in neuromorphic language models. arXiv preprint arXiv:2405.00433, 2024.
|
| 271 |
+
Nguyen, E., Poli, M., Faizi, M., Thomas, A. W., Wornow, M., Birch-Sykes, C., Massaroli, S., Patel, A., Rabideau, C. M., Bengio, Y., Ermon, S., Ré, C., and Baccus, S. Hyenadna: Long-range genomic sequence modeling at single nucleotide resolution. In Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., and Levine, S. (eds.), Advances in Neural Information
|
| 272 |
+
|
| 273 |
+
Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023. URL http://papers.nips.cc/paper_files/paper/2023/bitstream/86ab6927ee4ae9bde4247793c46797c7-Abstract-Conference.html.
|
| 274 |
+
O'Connor, P. and Welling, M. Sigma delta quantized networks. arXiv preprint arXiv:1611.02024, 2016.
|
| 275 |
+
Orchard, G., Frady, E. P., Rubin, D. B. D., Sanborn, S., Shrestha, S. B., Sommer, F. T., and Davies, M. Efficient neuromorphic signal processing with loihi 2. In IEEE Workshop on Signal Processing Systems, SiPS 2021, Coimbra, Portugal, October 19-21, 2021, pp. 254-259. IEEE, 2021. doi: 10.1109/SIPS52927.2021.00053. URL https://doi.org/10.1109/SIPS52927.2021.00053.
|
| 276 |
+
Orvieto, A., De, S., Gulcehre, C., Pascanu, R., and Smith, S. L. Universality of linear recurrences followed by nonlinear projections: Finite-width guarantees and benefits of complex eigenvalues. In ICML, 2024. URL https://openreview.net/forum?id=47ahBl70xb.
|
| 277 |
+
Pei, J., Deng, L., Song, S., Zhao, M., Zhang, Y., Wu, S., Wang, G., Zou, Z., Wu, Z., He, W., Chen, F., Deng, N., Wu, S., Wang, Y., Wu, Y., Yang, Z., Ma, C., Li, G., Han, W., Li, H., Wu, H., Zhao, R., Xie, Y., and Shi, L. Towards artificial general intelligence with hybrid tianjic chip architecture. Nature, 572(7767):106-111, Aug 2019. ISSN 1476-4687. doi: 10.1038/s41586-019-1424-8. URL https://doi.org/10.1038/s41586-019-1424-8.
|
| 278 |
+
Pierro, A. and Abreu, S. Mamba-ptq: Outlier channels in recurrent large language models. International Conference on Machine Learning Workshops, 2024.
|
| 279 |
+
Poli, M., Thomas, A. W., Nguyen, E., Ponnusamy, P., Deiseroth, B., Kersting, K., Suzuki, T., Hie, B., Ermon, S., Ré, C., Zhang, C., and Massaroli, S. Mechanistic design and scaling of hybrid architectures. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=GDp7Gyd9nf.
|
| 280 |
+
Reddy, C. K., Gopal, V., Cutler, R., Beyrami, E., Cheng, R., Dubey, H., Matushevych, S., Aichner, R., Aazami, A., Braun, S., et al. The interspeech 2020 deep noise suppression challenge: Datasets, subjective testing framework, and challenge results. arXiv preprint arXiv:2005.13981, 2020.
|
| 281 |
+
|
| 282 |
+
Reddy, C. K., Dubey, H., Gopal, V., Cutler, R., Braun, S., Gamper, H., Aichner, R., and Srinivasan, S. Icassp 2021 deep noise suppression challenge. In ICASSP 2021-2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 6623-6627. IEEE, 2021a.
|
| 283 |
+
Reddy, C. K., Dubey, H., Koishida, K., Nair, A., Gopal, V., Cutler, R., Braun, S., Gamper, H., Aichner, R., and Srinivasan, S. Interspeech 2021 deep noise suppression challenge. arXiv preprint arXiv:2101.01902, 2021b.
|
| 284 |
+
Renda, A., Frankle, J., and Carbin, M. Comparing rewinding and fine-tuning in neural network pruning. arXiv preprint arXiv:2003.02389, 2020.
|
| 285 |
+
Shazeer, N., Mirhoseini, A., Maziarz, K., Davis, A., Le, Q. V., Hinton, G. E., and Dean, J. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id=B1ckMDqlg.
|
| 286 |
+
Shrestha, S. B., Timcheck, J., Frady, P., Campos-Macias, L., and Davies, M. Efficient video and audio processing with loihi 2. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 13481-13485. IEEE, 2024a.
|
| 287 |
+
Shrestha, S. B., Timcheck, J., Frady, P., Campos-Macias, L., and Davies, M. Efficient Video and Audio Processing with Loihi 2. In ICASSP 2024 - 2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 13481-13485, April 2024b. doi: 10.1109/ICASSP48485.2024.10448003. URL https://ieeexplore.ieee.org/abstract/document/10448003.
|
| 288 |
+
Smith, J. T. H., Warrington, A., and Linderman, S. W. Simplified state space layers for sequence modeling. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. URL https://openreview.net/pdf?id=Ai8Hw3AXqks.
|
| 289 |
+
Snell, C., Lee, J., Xu, K., and Kumar, A. Scaling LLM test-time compute optimally can be more effective than scaling model parameters. CoRR, abs/2408.03314, 2024. doi: 10.48550/ARXIV.2408.03314. URL https://doi.org/10.48550/arXiv.2408.03314.
|
| 290 |
+
Tay, Y., Dehghani, M., Abnar, S., Shen, Y., Bahri, D., Pham, P., Rao, J., Yang, L., Ruder, S., and Metzler, D. Long range arena: A benchmark for efficient transformers. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria,
|
| 291 |
+
|
| 292 |
+
May 3-7, 2021. OpenReview.net, 2021. URL https://openreview.net/forum?id=qVyeW-grC2k.
|
| 293 |
+
Timcheck, J., Shrestha, S. B., Ben Dayan Rubin, D., Kupryjanow, A., Orchard, G., Pindor, L., Shea, T., and Davies, M. The intel neuromorphic dns challenge. Neuro-morphic Computing and Engineering, 3(3):034005, aug 2023. doi: 10.1088/2634-4386/ace737. URL https://dx.doi.org/10.1088/2634-4386/ace737.
|
| 294 |
+
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need. In Guyon, I., von Luxburg, U., Bengio, S., Wallach, H. M., Fergus, R., Vishwanathan, S. V. N., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pp. 5998-6008, 2017. URL https://proceedings.neurips.cc/paper/2017混沌/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html.
|
| 295 |
+
Voelker, A., Kajic, I., and Eliasmith, C. Legendre memory units: Continuous-time representation in recurrent neural networks. In Wallach, H., Larochelle, H., Beygelzimer, A., d'Alché-Buc, F., Fox, E., and Garnett, R. (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/file/952285b9b7e7a1be5aa7849f32fff05-Paper.pdf.
|
| 296 |
+
Warden, P. Speech commands: A dataset for limited-vocabulary speech recognition. CoRR, abs/1804.03209, 2018. URL http://arxiv.org/abs/1804.03209.
|
| 297 |
+
Wu, H., Judd, P., Zhang, X., Isaev, M., and Micikevicius, P. Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluation, April 2020. URL http://arxiv.org/abs/2004.09602. arXiv:2004.09602 [cs, stat].
|
| 298 |
+
Wu, Y., Schuster, M., Chen, Z., Le, Q. V., Norouzi, M., Macherey, W., Krikun, M., Cao, Y., Gao, Q., Macherey, K., Klingner, J., Shah, A., Johnson, M., Liu, X., Kaiser, L., Gouws, S., Kato, Y., Kudo, T., Kazawa, H., Stevens, K., Kurian, G., Patil, N., Wang, W., Young, C., Smith, J., Riesa, J., Rudnick, A., Vinyals, O., Corrado, G., Hughes, M., and Dean, J. Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation, October 2016. URL http:// arxiv.org/abs/1609.08144. arXiv:1609.08144 [cs].
|
| 299 |
+
|
| 300 |
+
Zhang, J.-F., Lee, C.-E., Liu, C., Shao, Y. S., Keckler, S. W., and Zhang, Z. Snap: An efficient sparse neural acceleration processor for unstructured sparse deep neural network inference. IEEE Journal of Solid-State Circuits, 56 (2):636-647, 2021. doi: 10.1109/JSSC.2020.3043870.
|
| 301 |
+
Zhang, Z., Song, Y., Yu, G., Han, X., Lin, Y., Xiao, C., Song, C., Liu, Z., Mi, Z., and Sun, M. Relu<sup>2</sup> wins: Discovering efficient activation functions for sparse llms, 2024. URL https://arxiv.org/abs/2402.03804.
|
| 302 |
+
Zhu, M. and Gupta, S. To prune, or not to prune: Exploring the efficacy of pruning for model compression. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Workshop Track Proceedings. OpenReview.net, 2018. URL https://openreview.net/forum?id=SylidkPM.
|
| 303 |
+
|
| 304 |
+
# A. Supplemental Material
|
| 305 |
+
|
| 306 |
+
# A.1. Effective MACs computation for S5 architecture
|
| 307 |
+
|
| 308 |
+
In this section, we detail the computation of effective multiply-accumulate operations (MACs) for different components of the S5 architecture. The total MAC count provides an estimate of the computational cost associated with each stage of the model. Below, we outline the individual contributions from key components of the architecture. The effective MACs for all model sizes-sparse and dense-in Figure Figure 4 are calculated based on the formulas below, summed over the entire network structure.
|
| 309 |
+
|
| 310 |
+
# Notation:
|
| 311 |
+
|
| 312 |
+
- $N_{\mathrm{input}}$ : Input dimension
|
| 313 |
+
- $N_{\mathrm{model}}$ : Model dimension for activations outside of the linear RNN.
|
| 314 |
+
- $N_{\mathrm{ssm}}$ : Dimension of the linear RNN's hidden state.
|
| 315 |
+
- $N_{\mathrm{output}}$ : Output dimension (equal to the number of classes for classification)
|
| 316 |
+
- $d_x^{\mathrm{wgt}}$ : Density of weights for $x$
|
| 317 |
+
- $d_x^{\mathrm{act}}$ : Density of activations for $x$
|
| 318 |
+
|
| 319 |
+
where the density $d$ is calculated from the sparsity $s$ as $d = 1 - s$ .
|
| 320 |
+
|
| 321 |
+
# Breakdown of MAC Calculation per Component:
|
| 322 |
+
|
| 323 |
+
Encoder: The MACs for the encoder depend on the input dimension, model size, and scale linearly with activation and weight densities:5
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
N _ {\text {i n p u t}} N _ {\text {m o d e l}} d _ {\text {e n c o d e r}} ^ {\text {w g t}} d _ {\text {i n p u t}} ^ {\text {a c t}} \tag {6}
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
- Batch Normalization (BatchNorm): A lightweight operation, requiring only element-wise scaling, leading to:
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
N _ {\text {m o d e l}} \tag {7}
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
- S5 Hidden Layer: The hidden state update for the S5 model involves both matrix multiplications and element-wise operations:
|
| 336 |
+
|
| 337 |
+
$$
|
| 338 |
+
2 N _ {\text {m o d e l}} N _ {\text {s s m}} d _ {B} ^ {\text {w g t}} d _ {\text {p r e} \_ \text {s s m}} ^ {\text {a c t}} + 4 N _ {\text {s s m}} \tag {8}
|
| 339 |
+
$$
|
| 340 |
+
|
| 341 |
+
- SSM Output Layer: Computing the output transformation of the linear RNN:
|
| 342 |
+
|
| 343 |
+
$$
|
| 344 |
+
2 N _ {\text {s s m}} N _ {\text {m o d e l}} d _ {C} ^ {\text {w g t}} d _ {\text {h i d d e n}} ^ {\text {a c t}} + N _ {\text {m o d e l}} d _ {\text {p r e - s s m}} ^ {\text {a c t}} \tag {9}
|
| 345 |
+
$$
|
| 346 |
+
|
| 347 |
+
- Gated Linear Unit (GLU): The computation for the GLU involves matrix multiplications for the dense weight matrix, followed by an element-wise multiplication:
|
| 348 |
+
|
| 349 |
+
$$
|
| 350 |
+
N _ {\text {m o d e l}} ^ {2} d _ {\text {G L U}} ^ {\mathrm {w g t}} d _ {\text {p r e - G L U}} ^ {\mathrm {a c t}} + N _ {\text {m o d e l}} \tag {10}
|
| 351 |
+
$$
|
| 352 |
+
|
| 353 |
+
- Classification Head: The final linear projection for classification:
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
N _ {\text {m o d e l}} N _ {\text {o u t p u t}} d _ {\text {h e a d}} ^ {\mathrm {w g t}} d _ {\text {p r e} \text {h r e a d}} ^ {\mathrm {a c t}} \tag {11}
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
- Regression Head: The regression head follows the same computation as the classification head:
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
N _ {\text {m o d e l}} N _ {\text {o u t p u t}} d _ {\text {h e a d}} ^ {\mathrm {w g t}} d _ {\text {p r e} \text {. h r e a d}} ^ {\mathrm {a c t}} \tag {12}
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
Numerical operations such as the inverse square-root, sigmoid function, and others, are ignored from our MAC calculations, as is commonly done when calculating the MACs or floating point operations (FLOPs) of machine learning models (Evci et al., 2020).
|
| 366 |
+
|
| 367 |
+
# A.2. Experimental Details
|
| 368 |
+
|
| 369 |
+
Model architecture Our linear RNN is based on the S5 architecture (Smith et al., 2023), as described in Section Section 2.1. We use the following dimensions for our base model with width scaling $k = 1$ (i.e. configuration 4 in Figure 4). We use three layers, the recurrent state vector is $\mathbf{x}_t \in \mathbb{R}^{256}$ , we use a model dimension of 192. Both input and output have dimension 257. The width scaling factors $k_i$ scale the model and recurrent state dimension linearly. In Figure 4, we report results for a $k$ -family of sparse and densely trained networks where $k_{\mathrm{sparse}} \in [0.5, 3.0]$ , $k_{\mathrm{dense}} \in [0.25, 1.0]$ .
|
| 370 |
+
|
| 371 |
+
Training recipe We trained all models for 50 epochs with the Adam optimizer. The parameters of the SSM block were updated with initial learning rate 0.002, while the rest of the architecture used initial learning rate 0.008 and weight decay 0.04. All learning rates used cosine annealing and no warmup epochs. The dropout was set to 0.1.
|
| 372 |
+
|
| 373 |
+
# A.3. Additional Results
|
| 374 |
+
|
| 375 |
+
# A.3.1. KEYWORD SPOTTING
|
| 376 |
+
|
| 377 |
+
We extended our experiments by applying the proposed scaling protocol to the keyword spotting task of the Speech-Commands V2-35 dataset (Warden, 2018). The results, reported in Figure 9, exhibit a similar trend to that observed on the N-DNS dataset. Sparse models are more efficient while reaching the same level of accuracy. However, further scaling of the sparse model family would be required to compare against dense models at higher accuracy.
|
| 378 |
+
|
| 379 |
+

|
| 380 |
+
Figure 8. Diagram of S5 as implemented on Loihi 2. To leverage the neuromorphic hardware architecture, several adjustments are made in comparison to the original S5 model shown in Figure 2: First, complex numbers are split into real and complex components for processing. Second, ReLUs are introduced to increase activation sparsity. Third, multiple element-wise operations are fused into single neuromorphic neurons. Symbols are shown as defined in Section 2.1.
|
| 381 |
+
|
| 382 |
+
# A.3.2. LOIHI EXECUTION MODE
|
| 383 |
+
|
| 384 |
+
Loihi 2's asynchronous architecture allows to trade off between throughput and latency, as illustrated in Figure 10a. For optimal throughput, new input is provided every time step and forwarded through the neuronal layers in a pipelined mode. For optimal latency, new input is injected only once the previous input has been processed by, or fallen through, the network as fast as possible. The pipelined and fall-through mode can be balanced by changing the rate of new input, to match the throughput of a given input stream while minimizing its processing latency.
|
| 385 |
+
|
| 386 |
+
As audio denoising is typically deployed in realtime in an online fashion where one STFT input frame in processed at a time, fall-through mode is appropriate, as one desires a corresponding output STFT frame immediately.
|
| 387 |
+
|
| 388 |
+
We see that Loihi 2 processes a single STFT frame $35 \times$ faster and with $1200 \times$ less energy than the Jetson Orin Nano (Token-by-token; Loihi 2 Fall-Through and Jetson Orin Nano Recurrent 1-step $(\mathrm{b} = 1)$ in Table 1).
|
| 389 |
+
|
| 390 |
+
# A.3.3. FIXED-POINT MODEL MISMATCH
|
| 391 |
+
|
| 392 |
+
The mismatch in Figure 6 indicates that fixed-point implementation in JAX does not perfectly match the original FP32 model when using the scales computed through our
|
| 393 |
+
|
| 394 |
+
static quantization step. Further investigations show that the mismatch between hidden activations is highest for the hidden states $\mathbf{x}_k$ of the linear RNN and its outputs $\mathbf{y}_k$ , see Figure 11. This mismatch increases approximately linearly with model depth, indicating that quantization errors accumulate as information propagates through the network layers. This linear escalation of errors underscores a critical challenge in fixed-point quantization of recurrent models (Wu et al., 2016; Abreu et al., 2024; Li & Alvarez, 2021; Pierro & Abreu, 2024). Consequently, ensuring the fidelity of deeper Linear RNNs on fixed-point neuromorphic hardware may require advanced quantization techniques or error mitigation strategies to preserve the network's temporal dynamics and memory capacity effectively.
|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
Figure 9. Pareto fronts for S5 network test accuracy as a function of effective compute on SpeechCommands V2-35 keyword spotting task. S5 networks with weight and activation sparsity (green) exhibit a domain of Pareto optimality versus dense S5 networks (orange). Number annotations enumerate increasing S5 dimensionality configurations. Further scaling of the sparse architectures would be required to compare with the dense models at higher accuracy.
|
| 398 |
+
|
| 399 |
+

|
| 400 |
+
|
| 401 |
+

|
| 402 |
+
Figure 10. (a) Loihi 2 offers two processing modes that optimize either throughput or latency. In the pipelined mode, a new data point is inserted in each time step, to use all processing cores and maximize the throughput-at the expense of latency because equal time bins $t_0 = t_1 = \ldots$ are enforced. In the fall-through mode, a new data points is only provided once the last data point has been fully processed with minimum latency. Only a single neuronal layer is active at any step as data travels through the network. The time per step is thus minimized as traffic is reduced and potentially more complex neuronal layers are not updated. (b) Comparison of execution mode and time per step.
|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
|
| 406 |
+

|
| 407 |
+
Figure 11. Layer-wise analysis of mismatch between the fixed-point model in JAX against the base model using floating-point weights and activations. The left and right side show the same data with a linear y-axis and log y-axis, respectively. The top panels show the mean absolute error $N^{-1} \sum_{i}^{N} |x_i - x_i'|$ for all components of the model while the bottom panels show the mean relative error $N^{-1} \sum_{\{i \mid i \in \{0, \dots, N\} \wedge x_i \neq 0\}}^{N} |x_i - x_i'| / |x_i|$ . For further explanation, see text.
|
2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdf666315e7ce9a92e05292172492cb9159a4eb793ed0a12936676bfbe5b61e8
|
| 3 |
+
size 714973
|
2025/Accelerating Linear Recurrent Neural Networks for the Edge with Unstructured Sparsity/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/027a5576-0e93-469d-9194-20f01b5b3cdb_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/027a5576-0e93-469d-9194-20f01b5b3cdb_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/027a5576-0e93-469d-9194-20f01b5b3cdb_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85db284f1b8ea6bc082328cc8b8047451f5f2b4871ed64adf2827546d57070bd
|
| 3 |
+
size 1298058
|
2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/full.md
ADDED
|
@@ -0,0 +1,526 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators
|
| 2 |
+
|
| 3 |
+
Ze Cheng<sup>1</sup> Zhuoyu Li<sup>1</sup> Xiaoqiang Wang<sup>1</sup> Jianing Huang<sup>1</sup> Zhizhou Zhang<sup>1</sup> Zhongkai Hao<sup>2</sup> Hang Su<sup>2</sup>
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
PDE-Constrained Optimization (PDECO) problems can be accelerated significantly by employing gradient-based methods with surrogate models like neural operators compared to traditional numerical solvers. However, this approach faces two key challenges: (1) Data inefficiency: Lack of efficient data sampling and effective training for neural operators, particularly for optimization purpose. (2) Instability: High risk of optimization derailment due to inaccurate neural operator predictions and gradients. To address these challenges, we propose a novel framework: (1) Optimization-oriented training: we leverage data from full steps of traditional optimization algorithms and employ a specialized training method for neural operators. (2) Enhanced derivative learning: We introduce a Virtual-Fourier layer to enhance derivative learning within the neural operator, a crucial aspect for gradient-based optimization. (3) Hybrid optimization: We implement a hybrid approach that integrates neural operators with numerical solvers, providing robust regularization for the optimization process. Our extensive experimental results demonstrate the effectiveness of our model in accurately learning operators and their derivatives. Furthermore, our hybrid optimization approach exhibits robust convergence. $^{1}$
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
In this paper, we consider solving PDE-constrained optimization problems (PDECO) in a high-dimension design
|
| 12 |
+
|
| 13 |
+

|
| 14 |
+
Figure 1: Illustration of Error Accumulation in Gradient-Based Optimization with Neural Operators. Blue Trajectory: Represents the optimization path $(\lambda_t, \hat{u}_t)$ , where $\hat{u}_t$ is predicted by the neural operator. Red Trajectory: Represents the trajectory of the numerical solutions $u_t$ corresponding to $\lambda_t$ . While the optimization process proceeds along the blue trajectory guided by the neural operator, the red trajectory of numerical solution may deviate significantly, highlighting the potential for error accumulation and suboptimal convergence.
|
| 15 |
+
|
| 16 |
+
parameter space $\Lambda$
|
| 17 |
+
|
| 18 |
+
$$
|
| 19 |
+
\min _ {\lambda \in \Lambda} \tilde {J} (\lambda) \tag {1}
|
| 20 |
+
$$
|
| 21 |
+
|
| 22 |
+
$$
|
| 23 |
+
\text {c o n s t .} \quad \mathcal {C} (u, \lambda) = 0
|
| 24 |
+
$$
|
| 25 |
+
|
| 26 |
+
where $\tilde{J} (\lambda)\coloneqq J(u(\lambda),\lambda)$ is the objective function, and $\mathcal{C}$ is a differential operator that describes a PDE with design parameter $\lambda$ and solution $u$ . For clarity, we will henceforth omit the tilde from $J$ where the meaning is unambiguous. While gradient-free optimization methods like Bayesian optimization (Snoek et al., 2012) and particle swarm optimization (Kennedy & Eberhart, 1995) are effective for low-dimensional design spaces, gradient-based methods are generally more suitable for high-dimensional PDECO problems, for example, shape optimization (Sokolowski & Zolésio, 1992) and topology optimization (Bendsoe &
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
Figure 2: (Left) The overview of training neural operators with derivative learning, where curved arrow indicates differentiation by autodiff to obtain $\partial J / \partial \lambda$ . (Right) The iterative process of gradient-based optimization with neural operators of fixed parameters $\theta^{*}$ .
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
|
| 33 |
+
Sigmund, 2013). Some problems, such as those arising in density functional theory (DFT) (Kohn & Sham, 1965), may even involve a combination of both approaches at different stages.
|
| 34 |
+
|
| 35 |
+
This paper focuses on solving high-dimensional PDECO using gradient-based methods. These methods rely on the gradient of the objective function with respect to the design parameters, commonly referred to as sensitivity:
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\frac {\partial \tilde {J}}{\partial \lambda} = \frac {\partial J}{\partial u} \frac {\partial u}{\partial \lambda} + \frac {\partial J}{\partial \lambda}. \tag {2}
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
The design parameters are then iteratively updated according to $\lambda_{t + 1}\gets \lambda_t - \eta \frac{\partial\tilde{J}}{\partial\lambda}$ , where $\eta$ represents the learning rate. Among the various methods for gradient computation, the adjoint method (Pontryagin, 2018) is a well-established and efficient approach.
|
| 42 |
+
|
| 43 |
+
Despite the efficiency of the adjoint method, optimization processes can be computationally expensive due to the high cost of solving large-scale PDEs. This often results in long convergence times, spanning hours or even days. To address this, various surrogate models (Forrester et al., 2008; Zhu & Zabaras, 2018; Fahl & Sachs, 2003; Audet et al., 2000) are employed to replace computationally expensive simulations, leading to significant speedups, often reducing computation times to seconds or milliseconds. While some surrogate models directly map the design space to objective values, their applicability is limited by their dependence on the specific objective function. In contrast, surrogate models capable of predicting underlying physical fields (e.g., displacement, stress, temperature) offer greater flexibility. These models can be used to compute any desired quantity of interest, including the objective function. Neural operators (Kovachki et al., 2023; Lu et al., 2021; Hwang et al., 2022; Lu et al., 2019) exemplify this approach and show great promise for accelerating gradient-based optimization in PDECO problems.
|
| 44 |
+
|
| 45 |
+
However, training neural operators for PDECO presents significant challenges. Firstly, constructing a representative training dataset is crucial. Traditional sampling methods like Gaussian random fields (Neal, 2012) and uniform sampling often fail to capture the complex and diverse scenarios encountered in optimization problems, particularly those in
|
| 46 |
+
|
| 47 |
+
volving intricate geometries, boundary conditions, and material properties. Moreover, effectively sampling data near the optimal region, characterized by sophisticated patterns and complex structures, using random methods is highly improbable, akin to a "monkey typing Shakespeare." (Borel, 1913)
|
| 48 |
+
|
| 49 |
+
To address these limitations, we leverage the data generated during the optimization process itself. Optimization algorithms, such as the adjoint method, produce sequences of solutions and sensitivities as they converge towards the optimal region. These sequences, often discarded as "byproducts" in traditional optimization, form valuable trajectories in the design-solution space. However, directly training neural operators on these trajectories can be inefficient and prone to overfitting due to the high correlation between successive data points. To mitigate this, we propose a training method that leverages the relative change between data points to achieve higher learning efficacy. This approach exploits the inherent structure of the optimization process, where successive iterations provide valuable information about the search direction and proximity to the optimal solution.
|
| 50 |
+
|
| 51 |
+
The second major difficulty is derailing optimization. Suppose we have a trained neural operator
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\mathcal {G} _ {\theta}: \Lambda \mapsto \mathcal {U} \tag {3}
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\lambda \mapsto u \tag {4}
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
where $\theta$ is the learned parameter, $\Lambda$ and $\mathcal{U}$ denote design space and solution space. The gradient (2) can then be calculated by $\frac{\partial\tilde{J}}{\partial\lambda} = \frac{\partial J}{\partial u}\frac{\partial\mathcal{G}_{\theta}}{\partial\lambda} +\frac{\partial J}{\partial\lambda}$ . Fig. 2 (right) illustrates how to compute $\frac{\partial\tilde{J}}{\partial\lambda}$ using neural operators. This approach, however, introduces significant issues: (i) There is a discrepancy between $\mathcal{G}_{\theta}(\lambda)$ and the true solution $u$ , leading to differences between $J(\mathcal{G}_{\theta})$ and $J(u)$ ; (ii) similarly, there exists an error between $\frac{\partial\mathcal{G}_{\theta}}{\partial\lambda}$ and the true derivative $\frac{\partial u}{\partial\lambda}$ ; (iii) through iterations of gradient-based optimization, these errors accumulate, which often results in the optimization trajectory entering out-of-distribution (OoD) regions of the neural operator, causing unreliable predictions and erratic behavior. As illustrated in Fig. 1, the error of solution prediction grows out of control from initial point $(\lambda_0,u_0)$ to the final optimized point $(\lambda_T,u_T)$ . Hence, maintaining in-distribution is critical for reliable optimization.
|
| 62 |
+
|
| 63 |
+
Thus, to address the two fundamental questions, i.e., (i) how to effectively sample and utilize data near optimality, and (ii) how to control the growing error of neural operators during optimization, we proposed the following solutions:
|
| 64 |
+
|
| 65 |
+
1. We utilize the full data generated from optimization trajectories as the training set. In order to effectively achieve operator learning from such data, we adopt reference neural operators (RNO) (Cheng et al., 2024) to learn extended solution operators.
|
| 66 |
+
2. We analyze the effect of different neural operator architectures on their derivative performance and introduce a Virtual-Fourier layer to enhance derivative learning.
|
| 67 |
+
3. We propose a hybrid inference method that combines neural operators with numerical solvers to suppress errors and regularize optimizing process.
|
| 68 |
+
|
| 69 |
+
# 2. Related works
|
| 70 |
+
|
| 71 |
+
Surrogate models have received significant attention in recent years, particularly within the realm of PDECO. Early efforts such as (Audet et al., 2000) employed Kriging models (Gaussian processes) coupled with gradient-free optimization techniques. (Fahl & Sachs, 2003) applied Reduced-Order Models (ROMs) leveraging proper orthogonal decomposition (POD) alongside sophisticated optimization strategies. More recently, operator learning has emerged as a powerful paradigm, with (Hwang et al., 2022) outlining a general framework and formulating the optimization as a variational approximation. (Wang et al., 2021) explored the combination of DeepONet (Lu et al., 2019) with physics-informed loss on regular domains, while (Xue et al., 2020) demonstrated the effectiveness and versatility of amortized approaches for linear PDECO problems.
|
| 72 |
+
|
| 73 |
+
Neural Operators, particularly instantiated by integral operators (Kovachki et al., 2023), provide a flexible and powerful framework for modeling operators. Two prominent architectures have emerged: Fourier-based neural operator (FNO) (Li et al., 2020; Tran et al., 2021; Liu-Schiaffini et al., 2024), and transformer-based neural operators (Li et al., 2022; Cao, 2021; Hao et al., 2023; Wu et al., 2024; Xiao et al., 2024). FNOs excel on data with fixed, uniform grids by leveraging the Fast Fourier Transform. Geo-FNO (Li et al., 2023) can predict on meshes deformed from uniform grids. In contrast, transformer-based neural operators effectively handle arbitrary meshes. To enhance scalability, researchers have introduced linear transformers (Cao, 2021; Hao et al., 2023), reducing computational complexity to $O(N)$ where $N$ is the number of mesh points. Projection strategy (Wu et al., 2024) has also been proposed to decouple the complexity of attention from the number of mesh points.
|
| 74 |
+
|
| 75 |
+
Although various neural operator architectures have been
|
| 76 |
+
|
| 77 |
+
explored, the impact of architecture on the smoothness of the learned operator, a crucial aspect for gradient-based optimization, remains relatively understudied. PINO (Li et al., 2024) investigates the derivatives of neural operators but focuses mainly on enforcing residual losses from governing equations. Our work delves deeper into how the architecture of neural operators influences their derivatives, essentially examining their smoothness properties.
|
| 78 |
+
|
| 79 |
+
Sobolev training (Czarnecki et al., 2017; Tsay, 2021) enhances the smoothness of neural networks, a critical property for gradient-based optimization. Sensitivity supervision can be viewed as a specific instance of Sobolev training. Instead of randomly sampling derivatives in all directions, sensitivity supervision focuses on derivatives with respect to the optimization variables (e.g., design parameters). DeePMD (Zhang et al., 2018) exemplifies this approach by imposing supervision on the forces acting on atoms, which are essentially the derivatives of the predicted energy with respect to the atomic positions. Our method follows a similar principle, utilizing ground truth sensitivities obtained from classical numerical methods to supervise the sensitivities predicted by the derivative of neural operators.
|
| 80 |
+
|
| 81 |
+
Hybrid methods combining neural networks with traditional numerical methods have shown promise in solving PDE-related problems. Notably, Hsieh et al. (2019) have demonstrated convergence guarantees for their hybrid approach, a significant advantage currently lacking in many neural operator frameworks. However, their method is limited to linear PDEs. List et al. (2022); Um et al. (2020) integrate neural networks within the numerical solution process, often refining solutions iteratively from coarse to fine grids. These existing methods focus on solving PDEs. In contrast, (Allen et al., 2022) presents a line of works on differentiable simulators. Our method is different from these works. During inference, our model cooperates with traditional solvers to enhance the accuracy and stability of the optimization process. Importantly, the neural operator is trained independently (off-line), similar to traditional neural operator approaches.
|
| 82 |
+
|
| 83 |
+
# 3. Methods
|
| 84 |
+
|
| 85 |
+
Let $d_0, d_1, h$ represent the dimension of input space, output space, and embedded space, respectively. A neural operator can then be formulated as $\mathcal{G}_{\theta} := \mathcal{Q} \circ \mathcal{L} \circ \dots \circ \mathcal{L} \circ \mathcal{P}$ , where $\mathcal{P}: \mathbb{R}^{d_0} \to \mathbb{R}^h$ is a lifting operator, $\mathcal{Q}: \mathbb{R}^h \to \mathbb{R}^{d_1}$ is a projection operator, and $\mathcal{L}: \mathbb{R}^h \to \mathbb{R}^h$ is the integral operator.
|
| 86 |
+
|
| 87 |
+
# 3.1. Sensitivity Loss
|
| 88 |
+
|
| 89 |
+
Since the gradient of neural operators is crucial to gradient-based optimization, we impose derivative learning to neural
|
| 90 |
+
|
| 91 |
+

|
| 92 |
+
Figure 3: Overview of structure of Virtual-Fourier (VF) layer. The VF layer is composed by three steps: I. Weighted aggregating mesh points to a virtual physical space by equation (8); II. Signal processing in the virtual physical space by a Fourier-based layer (9); III. Projection of the processed signals back to physical space by equation (10).
|
| 93 |
+
|
| 94 |
+
operators. Derivative learning in this paper means imposing supervision on the sensitivity of the neural operators defined as (2). Previous studies (Czarnecki et al., 2017; Tsay, 2021; O'Leary-Roseberry et al., 2024) have shown that derivative learning is beneficial for neural networks.
|
| 95 |
+
|
| 96 |
+
Given the sensitivity $\frac{\partial J}{\partial \lambda}$ obtained from numerical solvers, along with a differentiable method of calculating $J$ given $u$ and $\lambda$ , we impose a sensitivity loss on the neural operators,
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
L _ {s e n s} = \left\| \nabla_ {\lambda} J \left(\mathcal {G} _ {\theta}, \lambda\right) - \frac {\partial J}{\partial \lambda} \right\|. \tag {5}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
Fig. 2 (left) provides an overview of the computational graph for training neural operators with sensitivity loss. Consequently, the total loss is
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
L = \left\| \mathcal {G} _ {\theta} (\lambda) - u \right\| + \alpha \cdot L _ {s e n s}, \tag {6}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
where $\alpha > 0$ is a hyperparameter controlling the weight of the sensitivity loss.
|
| 109 |
+
|
| 110 |
+
# 3.2. Virtual-Fourier Layers
|
| 111 |
+
|
| 112 |
+
The influence of neural operator architecture on derivative learning has received comparatively less attention in the literature. We find that traditional transformer-based architectures have limited expressiveness for this task. Here, we introduce a novel operator layer that exploits the simple derivative properties of Fourier layers. Notably, our layer also generalizes Fourier layers to arbitrary grids, a technical contribution that may be valuable in its own right.
|
| 113 |
+
|
| 114 |
+
In the following, we use **bold** letters to indicate tensors of different dimensions. Let us consider commonly-used transformer-based and Fourier-based neural operators. For a transformer, the derivative of the nonlinear attention unit consists of (i) the derivative of Softmax of attention mechanism, let $s = \operatorname{Softmax}(z), z \in \mathbb{R}^N$ , then $\frac{\partial s_i}{\partial z_j} = s_i \cdot (\delta_{ij} - s_j)$ ; (ii) the chain rule and the product rule of derivatives with respect to $Q, K,$ and $V$ . See Appendix A for more detailed analysis. The derivative of
|
| 115 |
+
|
| 116 |
+
transformers leads to limited expressiveness due to undesired inductive bias. On the other hand, the derivative of Fourier-based layers with discrete Fourier transform $\mathcal{F}$ is simply $\frac{d}{dx}\mathcal{F}(z) = \mathcal{F}(\frac{dz}{dx})$ . Therefore, the expressiveness of the derivative of Fourier-based layers is untempered.
|
| 117 |
+
|
| 118 |
+
Nevertheless, Fourier-based layer has a key limitation that it can only deal with uniform mesh points of fixed numbers, while many applications, particularly optimization problems rely on irregular meshes with varying numbers of points. To address this limitation, inspired by Wu et al. (2024), we propose a Virtual-Fourier layer (see Fig. 3 for an overview), which transforms irregular meshes to a virtual physical space with a fixed number of sensors. This transformation is achieved by point-wise projection and weighted aggregation.
|
| 119 |
+
|
| 120 |
+
First, let $N$ denote the number of points in the physical space, $M$ the number of sensors in the virtual physical space, and $C$ the number of channels. While $N$ can vary across different cases, $M$ remains fixed and is pre-determined. Given input $\pmb{x} \in \mathbb{R}^{N \times C}$ and a point-wise transformation $\mathrm{Project}: \mathbb{R}^{1 \times C} \to \mathbb{R}^{1 \times M}$ , let
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\boldsymbol {l} _ {i} = \frac {\operatorname {P r o j e c t} \left(\boldsymbol {x} _ {i}\right)}{\sqrt {C}} \in \mathbb {R} ^ {1 \times M}. \tag {7}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
In our implementation, Project is a simple linear transform, though it could potentially be implemented as a nonlinear transformation if needed. Here, $l \in \mathbb{R}^{N \times M}$ , and $l_{i,j}$ represents the logit of the $i$ -th point of $x$ being linearly classified to the $j$ -th sensor in the virtual physical space. Then we apply $\text{softmax}(\cdot)$ along the first dimension of $l$ to obtain the weights $\boldsymbol{w}^{(1)} \in \mathbb{R}^{N \times M}$ , specifically, $w_{i,j}^{(1)} = \exp(l_{i,j}) / \sum_{i=1}^{N} \exp(l_{i,j})$ , $i = 1, \dots, N$ . Let
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\boldsymbol {z} _ {j} = \sum_ {i = 1} ^ {N} w _ {i, j} ^ {(1)} \boldsymbol {x} _ {i} \in \mathbb {R} ^ {1 \times C}, \quad j = 1, \dots , M. \tag {8}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Here, $\mathbf{z} \in \mathbb{R}^{M \times C}$ can be intuitively interpreted as a 1-D signal in a virtual physical space sampled by $M$ sensors, each with $C$ channels.
|
| 133 |
+
|
| 134 |
+
Remark 3.1. Equation (8) is similar yet different from its counterpart of Transolver (Wu et al., 2024), which let $w_{i} = \operatorname{Softmax}(\operatorname{Project}(x_{i})) \in \mathbb{R}^{1 \times M}$ (softmax(·) applied along the second dimension of $l$ ) and $z_{j} = \frac{\sum_{i=1}^{N} w_{i,j} x_{i}}{\sum_{i=1}^{N} w_{i,j}} \in \mathbb{R}^{1 \times C}$ . Both treatments preserve the nature of the whole layer as an integral operator since they only introduce additional measures on the hidden space $\mathbb{R}^C$ , and the weight $w$ 's are probability density functions. The main difference lies in their derivatives. The derivative of equation (8) introduces less bias due to its simpler structure, which motivates us to adopt this form. See Appendix A for a detailed analysis of the derivatives.
|
| 135 |
+
|
| 136 |
+
These signals $z$ 's are then processed by a Fourier-based layer:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\boldsymbol {z} ^ {\prime} = \mathcal {F} ^ {- 1} \left(\boldsymbol {R} _ {\theta} \cdot (\mathcal {F} \boldsymbol {z})\right) \in \mathbb {R} ^ {M \times C}. \tag {9}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
The Fourier series $\mathcal{F}z$ is truncated to a finite number of modes $k\in \mathbb{Z}$ such that $\mathcal{F}z\in \mathbb{C}^{k\times C}$ and the weight parameter $\pmb{R}_{\theta}\in \mathbb{C}^{k\times C\times C}$ . Fourier-based layers assume transitional symmetry on kernel integral operator, and due to convolution theorem (Proakis, 2001), $\pmb{R}_{\theta}$ element-wise multiplies with frequency coefficient of $\pmb{z}$ . In the original treatment of FNO (Li et al., 2020), the interaction between channels is allowed. In this paper, with slightly abused notation, we take $1\leq i\leq k,1\leq j,l\leq C$ , and define the $\cdot$ operation in $(\pmb{R}_{\theta}\cdot (\mathcal{F}\pmb {z}))$ from equation (9) to be $(\pmb {R}_{\theta}\cdot (\mathcal{F}\pmb {z}))_{i,l} = \sum_{j = 1}^{C}R_{i,l,j}(\mathcal{F}\pmb {z})_{i,j}$ . To see the simplicity of the derivatives of Fourier-based layer, notice $\frac{dz^{\prime}}{dx} = \mathcal{F}^{-1}(R_{\theta}\cdot (\mathcal{F}\frac{dz}{dx}))$ , which does not change the structure of the layer. This is highly favorable for derivative learning.
|
| 143 |
+
|
| 144 |
+
Finally, the processed signals are transformed from the virtual physical space back to the physical space with the same logits from equation (7). However, this time $\mathrm{softmax}(\cdot)$ is applied on the second dimension of $l$ . Namely, let $\pmb{w}^{(2)} \in \mathbb{R}^{N \times M}$ , and $w_{i,j}^{(2)} = \exp(l_{i,j}) / \sum_{j=1}^{M} \exp(l_{i,j})$ , $j = 1, \dots, M$ and we get
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\boldsymbol {x} _ {i} ^ {\prime} = \sum_ {j = 1} ^ {M} w _ {i, j} ^ {(2)} \boldsymbol {z} _ {j} \in \mathbb {R} ^ {1 \times C}. \tag {10}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
Although Fourier-based layer is sensitive to the order of input sequence, the Virtual-Fourier layer is permutation equivariant similar to Transformer-based layers (without positional embedding). To see this, one needs to notice that $l_{i}$ only depends on $\boldsymbol{x}_i$ due to the pointwise projection and the fact that under permutation equation (8) is invariant and equation (10) is equivariant.
|
| 151 |
+
|
| 152 |
+
Following (Kovachki et al., 2023), the final output of a Virtual-Fourier layer is $\sigma(W\pmb{x} + b + \pmb{x}')$ , where $W \in \mathbb{R}^{C \times C}$ , $b \in \mathbb{R}^C$ and $\sigma$ is a nonlinear activation, such as GeLU (Hendrycks & Gimpel, 2016) in our implementation.
|
| 153 |
+
|
| 154 |
+
The overall computational complexity of the layer is $\mathcal{O}(NMC + M^2C^2)$ . By grouping channels into $n$ heads, the computation cost can be reduced to $\mathcal{O}(NMC + M^2C^2/n)$ , and the number of parameters in $\pmb{R}_{\theta}$ decreases from $\mathcal{O}(kC^2)$ to $\mathcal{O}(kC^2/n)$ . The derivative of equation (8) and (10) do introduce some additional bias to the layer, and we provide the analysis in Appendix A.
|
| 155 |
+
|
| 156 |
+
# 3.3. Training and Optimization with RNO
|
| 157 |
+
|
| 158 |
+
Finally, a key component of our neural operator-based gradient optimization method is RNO. Its design serves two
|
| 159 |
+
|
| 160 |
+
primary purposes: efficient learning from optimization trajectory data and enabling a hybrid optimization approach to mitigate error accumulation.
|
| 161 |
+
|
| 162 |
+
Reference Neural Operators (RNO) (Cheng et al., 2024), initially designed for learning smooth solution dependencies on domain deformations in shape optimization, can be extended to a broader range of gradient-based optimization problems. Our core idea is that RNO leverages "nearby" data points within an optimization trajectory to learn high-quality predictions. We find that the inherent relationships among these trajectory points are crucial for effective operator learning, allowing RNO to capture fine-grained solution changes resulting from small input perturbations. Specifically, our goal is to learn an operator,
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
\mathcal {G}: \Lambda \times \mathcal {U} \times \mathcal {T} \rightarrow \mathcal {U} \tag {11}
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\left(\lambda_ {q}, u _ {r}, \varphi\right)\rightarrow u _ {q} \tag {12}
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
where $\mathcal{U}$ and $\Lambda$ are Banach spaces, and $\mathcal{T} = C^s (\Lambda)$ , $s\geq 1$ represents a smooth transformation space on $\Lambda$ . Also, we assume that there exist $\varphi \in \mathcal{T}$ such that $\varphi (\lambda_r) = \lambda_q$ and $u_{r}\circ \varphi^{-1} = u_{q}$ . For example, in shape optimization, $\Lambda$ denotes the geometry space which can be substantiated as a space of signed distance function, and $\mathcal{T}$ denotes a collection of smooth deformation defined on $\Lambda$ . Particularly, due to the bijection between reference mesh and query mesh, the deformation $\varphi$ can be discretized as a shift vector field between them. In topology optimization problem, $\Lambda$ represents the space of input function, $\mathcal{T}$ can be assumed as any smooth, invertible transformation space, and $\varphi$ can be substantiated as the difference $\lambda_r - \lambda_q$ .
|
| 173 |
+
|
| 174 |
+
Remark 3.2. The well-posedness of the mapping (11), specifically the existence, uniqueness and smoothness of $\varphi$ , hinges on the property of the operator $\mathcal{G}': \Lambda \to \mathcal{U}$ . These properties, such as continuity and differentiability, are nontrivial and inherently dependent on the specific PDE under consideration. For instance, the shape holomorphy of steady Stokes and Navier-Stokes equations, as demonstrated by Cohen et al. (2018), establishes the smooth dependence of the solution on small shape perturbations. This implies that given a reference shape $\lambda_r$ and a slightly perturbed shape $\lambda_q$ , the difference between the corresponding solutions $u_r$ and $u_q$ is bounded by the norm of perturbation. For a comprehensive overview of shape optimization theory, we refer readers to Sokolowski & Zolésio (1992). In the context of topology optimization, analogous results of fluid flows regarding the smooth dependence of the solution on the density coefficient have been established by Haubner et al. (2023); Evgrafov (2005; 2006). These results impose certain limitations on the applicability of our method. For example, significant shape deformations that alter the topology should be avoided, and the governing PDEs must exhibit sufficient regularity with respect to the design parameters.
|
| 175 |
+
|
| 176 |
+
Remark 3.3. In Cheng et al. (2024), the target of RNO is
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 4: Optimization Process with RNO. This figure illustrates the optimization trajectory using the RNO model. Red dashed trajectory illustrates the true solutions and objectives without access. Black solid trajectory stands for optimization with neural operators. Blue arrows indicate updates to the ground truth solution based on the current input design parameters $\lambda$ . The optimization trajectory can be recalibrated whenever a numerical solver is called, ensuring robustness and accuracy. (Left) The optimization trajectory is projected onto the objective function $J$ - design parameter $\Lambda$ plane. (Right) The optimization trajectory is projected onto the solution space $\mathcal{U}$ - design parameter $\Lambda$ plane. Note that both panels represent the same optimization trajectory.
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
|
| 183 |
+
defined to be the difference $\delta u = u_r \circ \varphi^{-1} - u_q$ , inspired by material derivatives. We modify the target to be simply $u_q$ . With skip connections outside of the integral operator layers, setting $u_q$ as the target would implicitly learn $\delta u$ . There are two benefits with this modification. Firstly, it simplifies implementation. Secondly, reference neural operators can be re-interpreted as an extension of vanilla neural operator (3), which unifies RNO and NO. In practice, it enables the flexibility of utilizing RNO as NO, which is helpful if reference is expensive or less worthy acquiring.
|
| 184 |
+
|
| 185 |
+
Remark 3.4. Although RNO is an extension of neural operators that maps from a larger space $\Lambda \times \mathcal{U} \times \mathcal{T}$ to a solution space $\mathcal{U}$ , we empirically observe that it achieves higher learning efficacy compared to vanilla neural operators. See Section 4.1. A possible underlining reason is that the training procedure of RNO is analogue to contrastive learning, which takes advantage of the inner relation between data samples, thereby improving data utilization. Given $N$ data samples, each data with $k$ neighbors, the number of pairwise data samples is $\mathcal{O}(kN)$ . Since data samples are collected from optimization processes using traditional methods, they are naturally closely related. Based on this, RNO is able to effectively learn the changes of solutions that result from small changes in input.
|
| 186 |
+
|
| 187 |
+
# 3.3.1. OPTIMIZATION-ORIENTED TRAINING OF RNO
|
| 188 |
+
|
| 189 |
+
We continue to use the notation of neural operator and represent an RNO by $\mathcal{G}_{\theta} := \mathcal{Q} \circ \mathcal{L} \cdots \mathcal{L} \circ \sum_{i}^{3} \mathcal{P}_{i}$ , where $\mathcal{P}_{i}$ 's are lifting operators corresponding to each element of triplet $(\lambda_q, u_r, \varphi)$ . The training objective function is defined as (6). We summarize the training algorithm in Algorithm D. This training paradigm is specifically tailored for optimization data, thus inherently optimization-oriented.
|
| 190 |
+
|
| 191 |
+
Reference-Query pairs. To train RNO, we require a pair of data points for each query. Since our data originates from optimization trajectories, we pair each data point with its nearest neighbor within the same trajectory, excluding neighbors that exceed a predefined distance threshold. This pairing process is implemented within a custom dataloger. For further details, please refer to Appendix C.1.
|
| 192 |
+
|
| 193 |
+
Reference dropout ratio. During training, we randomly drop reference inputs $(u_r, \varphi)$ so that RNO reduces to a vanilla neural operator that maps from $\lambda$ to $u$ . Enabling this feature is preferable because it allows RNO to perform inference flexibly without external references. This is particularly beneficial at the beginning of the optimization process, as RNO can operate without relying on any ground truth solution. Consequently, we can avoid unnecessary numerical computations during the initial stages of the design process. The reference dropout ratio is set at 0.3 to balance training performance.
|
| 194 |
+
|
| 195 |
+
# 3.3.2. OPTIMIZATION WITH RNO
|
| 196 |
+
|
| 197 |
+
To mitigate the accumulation of errors generated by neural operators during optimization, a straightforward approach involves validating intermediate optimization results and restarting the optimization process from the validated point. Then neural operators must effectively utilize newly acquired ground truth solutions. Traditional neural operators typically require retraining with the newly acquired data, which is computationally expensive in a single optimization run. In contrast, since RNO accepts a reference solution as input to predict the response for a query, it can recalibrate its predictions and adjust the optimization direction whenever a new ground-truth solution becomes available. See Fig. 4 for an illustration of the method.
|
| 198 |
+
|
| 199 |
+
Accelerating PDECO by the Derivative of Neural Operators
|
| 200 |
+
|
| 201 |
+
<table><tr><td>Dataset</td><td>Component</td><td>LA</td><td>PA</td><td>VF</td><td>R-VF w/o ref</td><td>R-LA</td><td>R-PA</td><td>R-VF (Ours)</td></tr><tr><td rowspan="5">Microreactor2D</td><td>p</td><td>7.12e-2</td><td>7.67e-2</td><td>6.36e-2</td><td>5.56e-2</td><td>1.45e-2</td><td>1.38e-2</td><td>1.33e-2</td></tr><tr><td>u</td><td>1.61e-1</td><td>1.76e-1</td><td>2.16e-1</td><td>1.25e-1</td><td>2.85e-2</td><td>2.53e-2</td><td>2.31e-2</td></tr><tr><td>v</td><td>6.87e-1</td><td>6.86e-1</td><td>6.77e-1</td><td>5.35e-1</td><td>7.34e-2</td><td>7.02e-2</td><td>6.84e-2</td></tr><tr><td>c</td><td>8.79e-2</td><td>9.33e-2</td><td>1.04e-1</td><td>7.33e-2</td><td>2.64e-2</td><td>2.56e-2</td><td>2.42e-2</td></tr><tr><td>Ls</td><td>-</td><td>-</td><td>-</td><td>-</td><td>2.05e-1</td><td>2.02e-1</td><td>1.70e-1</td></tr><tr><td rowspan="5">Fuelcell2D</td><td>p</td><td>1.63e-1</td><td>1.18e-1</td><td>1.51e-1</td><td>1.05e-1</td><td>1.37e-2</td><td>1.34e-2</td><td>1.30e-2</td></tr><tr><td>u</td><td>2.99e-1</td><td>2.19e-1</td><td>2.97e-1</td><td>1.84e-1</td><td>1.14e-2</td><td>1.14e-2</td><td>1.10e-2</td></tr><tr><td>v</td><td>3.42e-1</td><td>2.60e-1</td><td>2.36e-1</td><td>2.10e-1</td><td>1.42e-2</td><td>1.40e-2</td><td>1.38e-2</td></tr><tr><td>L1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>4.90e-1</td><td>4.62e-1</td><td>4.44e-1</td></tr><tr><td>L2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>3.18e-1</td><td>2.77e-1</td><td>2.57e-1</td></tr><tr><td rowspan="4">Inductor2D</td><td>Br</td><td>5.43e-1</td><td>4.62e-1</td><td>4.57e-1</td><td>3.93e-1</td><td>9.65e-3</td><td>1.14e-2</td><td>8.66e-3</td></tr><tr><td>Bz</td><td>3.76e-1</td><td>3.24e-1</td><td>3.91e-1</td><td>3.74e-1</td><td>1.04e-2</td><td>1.05e-2</td><td>9.55e-3</td></tr><tr><td>Lr</td><td>-</td><td>-</td><td>-</td><td>-</td><td>3.12e-1</td><td>3.64e-1</td><td>3.00e-1</td></tr><tr><td>Lz</td><td>-</td><td>-</td><td>-</td><td>-</td><td>5.11e-1</td><td>5.77e-1</td><td>4.76e-1</td></tr><tr><td rowspan="4">Drone3D</td><td>u1</td><td>5.51e-1</td><td>2.42e0</td><td>4.27e-1</td><td>4.42e-1</td><td>1.08e-1</td><td>9.60e-2</td><td>7.64e-2</td></tr><tr><td>u2</td><td>5.51e-1</td><td>6.60e-1</td><td>3.88e-1</td><td>3.84e-1</td><td>7.01e-2</td><td>7.25e-2</td><td>5.60e-2</td></tr><tr><td>u3</td><td>7.50e-1</td><td>9.91e-1</td><td>1.17e0</td><td>5.95e-1</td><td>1.32e-1</td><td>1.18e-1</td><td>1.20e-1</td></tr><tr><td>Ls</td><td>-</td><td>-</td><td>-</td><td>-</td><td>6.48e-1</td><td>5.66e-1</td><td>5.05e-1</td></tr></table>
|
| 202 |
+
|
| 203 |
+
Table 1: The prefix “R-” indicates models being modified into RNO framework. See definition of baseline models in Section 4. All metrics are relative- $l_{2}$ error. Errors are shown by each component. $L$ 's are sensitivity errors marked in blue. **Bold** is the best and **underline** is the second best. **Red values** are the best among all models without reference.
|
| 204 |
+
|
| 205 |
+
Smoothen the gradient. During inference, we adopt two tricks to further smoothen gradient while proceeding optimization: (1) Inject noise into the inputs and take average on the outputs. Let $\varepsilon_{i} \sim \mathcal{N}(0, \sigma)$ , where $\sigma$ is set to $1\%$ of the standard deviation of the input,
|
| 206 |
+
|
| 207 |
+
$$
|
| 208 |
+
\delta J := \frac {1}{N _ {1}} \sum_ {i = 1} ^ {N _ {1}} \nabla_ {\lambda} J \left(u \left(\lambda + \varepsilon_ {i}\right), \lambda\right) \tag {13}
|
| 209 |
+
$$
|
| 210 |
+
|
| 211 |
+
(2) We buffer the most recent optimization steps with certain size $M$ , and then make all steps as a reference and take average on the outputs.
|
| 212 |
+
|
| 213 |
+
$$
|
| 214 |
+
u _ {p r e d} = \frac {1}{N _ {2}} \sum_ {j = 1} ^ {N _ {2}} \mathcal {G} _ {\theta} (\lambda , u _ {j}, \varphi_ {j}) \tag {14}
|
| 215 |
+
$$
|
| 216 |
+
|
| 217 |
+
The total number of forward passes for a single optimization step is $N_{1}N_{2}$ . Since the derivative of the summation of $J$ with respect to all inputs $\lambda + \varepsilon_{i}$ are independent to each other, the derivative in (13) can be computed by Autograd in one pass. Also, (14) can be computed in parallel. The optimization algorithm is summarized as Algorithm 1.
|
| 218 |
+
|
| 219 |
+
# 4. Experiments
|
| 220 |
+
|
| 221 |
+
We benchmark four challenging optimization datasets from various physics backgrounds, all simulated using COMSOL 6.0. For fluid dynamics we have Microreactor2D: A 2D topology optimization problem that maximizes the reaction rate of a channel design; Fuelcell2D: A 2D shape
|
| 222 |
+
|
| 223 |
+
# Algorithm 1 Optimization with RNO
|
| 224 |
+
|
| 225 |
+
Input: RNO $\mathcal{G}_{\theta}$ , random initial input $\lambda_0$ , learning rate $\eta > 0$ , buffer list $B$ with size $N_{2}$ , Ground truth solution $u_{gt} = N_{0}$ with empty initialization, warm_up_steps for optimization before the first validation, radius $r$ around $u_{gt}$ as a criterion to trigger validation.
|
| 226 |
+
|
| 227 |
+
for $i = 1$ to $T - 1$ do
|
| 228 |
+
|
| 229 |
+
if $i > \text{warm\_up\_steps}$ and $\operatorname{Dist}(u_t, u_{gt}) > r$ then
|
| 230 |
+
|
| 231 |
+
Update $u_{gt}$ with numerical solver
|
| 232 |
+
|
| 233 |
+
Reset buffer $B = [u_{gt}]$
|
| 234 |
+
|
| 235 |
+
end if
|
| 236 |
+
|
| 237 |
+
Compute $u_{t}$ by Eq. (14) and $\delta J$ by Eq. (13)
|
| 238 |
+
|
| 239 |
+
Store $u_{t}$ in $B$
|
| 240 |
+
|
| 241 |
+
Update $\lambda_{t + 1}\gets \lambda_t - \eta \cdot \delta J$
|
| 242 |
+
|
| 243 |
+
end for
|
| 244 |
+
|
| 245 |
+
optimization problem that minimizes both pressure drop and flow velocity variance between channels. For electromagnetics we have Inductor2D: A 3D axial-symmetric shape optimization problem that aims to reduce material cost while maximizing inductance. For solid mechanics we have Drone3D: A 3D topology optimization problem that minimizes elastic strain energy under two distinct load cases: vertical acceleration and motor torque. All datasets are organized as num_traj $\times$ num_step, where num_traj and num_step are the number of trajectories and the number of optimization steps. Train and test sets are split in 8:2 by trajectories. Please check more details of each dataset in Appendix. C.
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
Figure 5: Trade-off between operator and derivative accuracy. This plot illustrates the trade-off for three models trained with different values of the hyperparameter $\alpha$ on the Microreactor2D dataset. R-VF consistently achieves points on the Pareto front, demonstrating a strong balance between accurate operator predictions and accurate derivative estimations.
|
| 249 |
+
|
| 250 |
+
Computing the sensitivity loss (Equation 6) requires the objective function value, $J$ , for each data point. To ensure differentiability, we employ simplified approximations for the objective function. For example, we approximate the average value on irregular meshes by averaging node values and incorporate constraints as additional objectives using Lagrange multipliers. These simplifications can introduce discrepancies between the true objective function used in data generation and the approximated objective used for computing neural operator sensitivities. To address this discrepancy, we utilize an equivalent form of the cosine similarity for the sensitivity loss for all datasets except Microreactor2D, where the original formulation is used. Details of this equivalent formulation are provided in Appendix B.
|
| 251 |
+
|
| 252 |
+
We compare Virtual-Fourier (VF) layer to two baselines: linear attention (LA) from GNOT (Hao et al., 2023) and physics attention (PA) from Transolver (Wu et al., 2024). Except for the layer structure, all models share the same architecture, e.g., lifting and projection operators, and the number of parameters are similar. We add prefix “R-” to models that are modified into RNO framework.
|
| 253 |
+
|
| 254 |
+
# 4.1. Learning Results
|
| 255 |
+
|
| 256 |
+
Table 1 reveals several key observations. Limitations of traditional training: Vanilla neural operators trained with standard methods exhibit poor performance across all datasets. This is likely due to the inherent similarity of data points within optimization trajectories near the optimal region, leading to a lack of diversity compared to traditional training datasets. Limited diversity can easily result in overfitting.
|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
Figure 6: Objective Function Values during Optimization on Microreactor2D. The horizontal axis represents the number of calls to the numerical solver. "Hybrid R-VF" refers to the optimization algorithm (Algorithm 1) using the trained R-VF model. "R-VF w/o reference" represents the optimization process relying solely on the R-VF model without any calls to the numerical solver.
|
| 260 |
+
|
| 261 |
+
Effectiveness of RNO: All RNO variants demonstrate effective learning across all datasets. Notably, R-VF consistently outperforms baselines in both operator and derivative learning. We highlight that the error reduction of sensitivity loss from the second best is between $3.8\%$ to $17.5\%$ , suggesting that the Virtual-Fourier (VF) layer effectively reduces bias in derivative learning.
|
| 262 |
+
|
| 263 |
+
Overfitting suppression: Interestingly, the RNO training procedure itself appears to mitigate overfitting. When operating without a reference solution (by setting the reference dropout ratio to 1), RNO effectively degenerates into a vanilla neural operator. However, even in this degenerate state, its performance often surpasses that of all traditional neural operators, as observed in the "R-VF w/o reference" column.
|
| 264 |
+
|
| 265 |
+
# 4.1.1. THE TRADEOFF DUE TO SENSITIVITY LOSS
|
| 266 |
+
|
| 267 |
+
The sensitivity loss (6) introduces a tradeoff between operator accuracy and derivative accuracy. To investigate this trade-off, we analyze the Pareto front of each model on Microreactor2D for different values of the coefficient $\alpha = \{0, 0.1, 0.5, 0.9\}$ . Figure 5 presents the results, where the relative $l_{2}$ error represents the average error across all components. R-VF outperforms both baselines and demonstrates strong performance on all $\alpha$ 's.
|
| 268 |
+
|
| 269 |
+
# 4.1.2. SCALING ABILITY OF VIRTUAL-FOURIER
|
| 270 |
+
|
| 271 |
+
In order to study the scaling ability of VF, we doubled the size of Microreactor dataset to 200 trajectories (each of
|
| 272 |
+
|
| 273 |
+
12 steps and effectively 2400 samples). 40 trajectories are kept as test set. We train models on 80, 160 trajectories respectively. In Table 3 of Appendix E, we observe that with larger dataset, R-VF keeps advantage over baselines on predicting both physical fields and sensitivities.
|
| 274 |
+
|
| 275 |
+
# 4.2. Optimization Results
|
| 276 |
+
|
| 277 |
+
To evaluate our hybrid approach (Algorithm 1), we randomly selected a test case from the Microreactor2D dataset and performed optimization from scratch using a fully trained R-VF model. We employed the Method of Moving Asymptotes (MMA) (Svanberg, 1987) and Gaussian smoothing for sensitivity updates. We compared our hybrid approach with traditional numerical gradient-based optimization. Additionally, we benchmarked the R-VF model's performance within Algorithm 1 against a baseline where the R-VF model operated without feedback from the numerical solver. In this "w/o reference" scenario, we validated intermediate objective values every 20 optimization iterations.
|
| 278 |
+
|
| 279 |
+
As shown in Figure 6, the hybrid approach (R-VF with Algorithm 1) demonstrates rapid and stable convergence. In contrast, optimization relying solely on the R-VF model quickly derails without numerical solver feedback. Although the hybrid approach may converge to a suboptimal solution due to factors such as derivative accuracy errors, objective function discrepancies, constraint handling, density projection, etc., it exhibits robust convergence behavior.
|
| 280 |
+
|
| 281 |
+
Importantly, within the first four calls to the numerical solver, the hybrid R-VF optimizer achieves objective values comparable to, or even exceeding, those obtained by the numerical optimizer, suggesting potential for computational cost savings. Furthermore, each call to the numerical solver in our hybrid approach costs approximately half as much as one adjoint method step (due to the expense of solving the adjoint equations), further amplifying the potential savings.
|
| 282 |
+
|
| 283 |
+
# 4.2.1.WALL-CLOCK TIME COMPARISON
|
| 284 |
+
|
| 285 |
+
The runtime of our hybrid method consists of the time spent optimizing with RNO and the time calling numerical solvers. The latter dominates the runtime, and optimization with RNO is much cheaper. Thus, a major potential cost saving of the hybrid method lies in fewer calls for numerical solvers.
|
| 286 |
+
|
| 287 |
+
A crucial aspect of optimization with neural operators is the method of optimization. In our implementation, we adopted GD and MMA, but there are many other choices, such as Adam, L-BFGS, and SIMP (Bendsøe, 1989). A well-chosen optimization method can achieve higher objective values and reduce both the number of iterations and the number of function calls. Thus, the optimization method significantly
|
| 288 |
+
|
| 289 |
+
<table><tr><td></td><td>Microreactor2D</td><td>Drone3D</td></tr><tr><td>Mesh nodes</td><td>4.9e3</td><td>2.1e4</td></tr><tr><td>R-VF (GPU)</td><td>0.53</td><td>0.62</td></tr><tr><td>R-VF (CPU)</td><td>1.89</td><td>3.20</td></tr><tr><td>Numerical (CPU)</td><td>3.20</td><td>49.40</td></tr></table>
|
| 290 |
+
|
| 291 |
+
Table 2: Wall-clock runtime comparison in second/iter.
|
| 292 |
+
|
| 293 |
+
affects the overall wall-clock time. Moreover, there are some important techniques in optimization, such as gradient filtering, projection, and clipping. A comprehensive and fair comparison requires all these techniques. We provide a primitive reference for wall-clock time in Table 2.
|
| 294 |
+
|
| 295 |
+
Experiments were conducted on both a laptop with CPU 2.5 GHz (11th Gen Intel i7) and a GPU Nvidia V100. The reported time is the average value of 10 iterations, measured in seconds per iteration. The runtime of traditional numerical methods increases sharply as the problem scales, since numerical methods suffer from the curse of dimensionality. In contrast, R-VF runtime increases moderately due to its linear computational complexity w.r.t. the number of mesh nodes.
|
| 296 |
+
|
| 297 |
+
# 5. Conclusion
|
| 298 |
+
|
| 299 |
+
This work addresses the challenges of applying neural operators to PDECO problems using gradient-based methods. We propose a novel framework that incorporates a specialized training procedure that leverages data generated from optimization process, a novel Virtual-Fourier layer to improve the accuracy of derivative predictions, and a hybrid approach that integrates neural operators with traditional numerical solvers. Through extensive experiments, we demonstrate the effectiveness of our proposed framework in accurately learning operators and their derivatives, leading to significant improvements in the robustness of gradient-based optimization with neural operators.
|
| 300 |
+
|
| 301 |
+
# Impact Statement
|
| 302 |
+
|
| 303 |
+
This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
|
| 304 |
+
|
| 305 |
+
# Acknowledgement
|
| 306 |
+
|
| 307 |
+
This research is a result of the collaboration within Bosch-Tsinghua Machine Learning Center. This work was supported by the National Key Research and Development Program of China (No. 2020AAA0106302), NSFC Projects (Nos. 92370124, 62350080, 92248303, 62276149).
|
| 308 |
+
|
| 309 |
+
# References
|
| 310 |
+
|
| 311 |
+
Allen, K. R., Lopez-Guevara, T., Stachenfeld, K., Sanchez-Gonzalez, A., Battaglia, P., Hamrick, J., and Pfaff, T. Physical design using differentiable learned simulators. arXiv preprint arXiv:2202.00728, 2022.
|
| 312 |
+
Audet, C., Denni, J., Moore, D., Booker, A., and Frank, P. A surrogate-model-based method for constrained optimization. In 8th symposium on multidisciplinary analysis and optimization, pp. 4891, 2000.
|
| 313 |
+
Bendsøe, M. P. Optimal shape design as a material distribution problem. Structural optimization, 1:193-202, 1989.
|
| 314 |
+
Bendsoe, M. P. and Sigmund, O. Topology optimization: theory, methods, and applications. Springer Science & Business Media, 2013.
|
| 315 |
+
Borel, É. La mécanique statique et l'irréversibilité. J. Phys. Theor. Appl., 3(1):189-196, 1913.
|
| 316 |
+
Bower, A. Applied mechanics of solids, 2009.
|
| 317 |
+
Cao, S. Choose a transformer: Fourier or galerkin. Advances in neural information processing systems, 34: 24924-24940, 2021.
|
| 318 |
+
Cheng, Z., Hao, Z., Wang, X., Huang, J., Wu, Y., Liu, X., Zhao, Y., Liu, S., and Su, H. Reference neural operators: Learning the smooth dependence of solutions of pdes on geometric deformations. In *Forty-first International Conference on Machine Learning*, 2024.
|
| 319 |
+
Cohen, A., Schwab, C., and Zech, J. Shape holomorphy of the stationary navier-stokes equations. SIAM Journal on Mathematical Analysis, 50(2):1720-1752, 2018.
|
| 320 |
+
Czarnecki, W. M., Osindero, S., Jaderberg, M., Swirszcz, G., and Pascanu, R. Sobolev training for neural networks. Advances in neural information processing systems, 30, 2017.
|
| 321 |
+
Evgrafov, A. The limits of porous materials in the topology optimization of stokes flows. Applied Mathematics and Optimization, 52(3):263-277, 2005.
|
| 322 |
+
Evgrafov, A. Topology optimization of slightly compressible fluids. ZAMM-Journal of Applied Mathematics and Mechanics/Zeitschrift für Angewandte Mathematik und Mechanik: Applied Mathematics and Mechanics, 86(1): 46-62, 2006.
|
| 323 |
+
Fahl, M. and Sachs, E. W. Reduced order modelling approaches to pde-constrained optimization based on proper orthogonal decomposition. In Large-scale PDE-constrained optimization, pp. 268-280. Springer, 2003.
|
| 324 |
+
|
| 325 |
+
Forrester, A., Sobester, A., and Keane, A. Engineering design via surrogate modelling: a practical guide. John Wiley & Sons, 2008.
|
| 326 |
+
Hao, Z., Wang, Z., Su, H., Ying, C., Dong, Y., Liu, S., Cheng, Z., Song, J., and Zhu, J. Gnot: A general neural operator transformer for operator learning. In International Conference on Machine Learning, pp. 12556-12569. PMLR, 2023.
|
| 327 |
+
Haubner, J., Neumann, F., and Ulbrich, M. A novel density based approach for topology optimization of stokes flow. SIAM Journal on Scientific Computing, 45(2):A338-A368, 2023.
|
| 328 |
+
Hendrycks, D. and Gimpel, K. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016.
|
| 329 |
+
Hsieh, J.-T., Zhao, S., Eismann, S., Mirabella, L., and Ermon, S. Learning neural pde solvers with convergence guarantees. arXiv preprint arXiv:1906.01200, 2019.
|
| 330 |
+
Hwang, R., Lee, J. Y., Shin, J. Y., and Hwang, H. J. Solving pde-constrained control problems using operator learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 4504-4512, 2022.
|
| 331 |
+
Kennedy, J. and Eberhart, R. Particle swarm optimization. In Proceedings of ICNN'95-international conference on neural networks, volume 4, pp. 1942-1948. ieee, 1995.
|
| 332 |
+
Kohn, W. and Sham, L. J. Self-consistent equations including exchange and correlation effects. Physical review, 140(4A):A1133, 1965.
|
| 333 |
+
Kovachki, N., Li, Z., Liu, B., Azizzadenesheli, K., Bhattacharya, K., Stuart, A., and Anandkumar, A. Neural operator: Learning maps between function spaces with applications to pdes. Journal of Machine Learning Research, 24(89):1-97, 2023.
|
| 334 |
+
Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., and Anandkumar, A. Fourier neural operator for parametric partial differential equations. arXiv preprint arXiv:2010.08895, 2020.
|
| 335 |
+
Li, Z., Meidani, K., and Farimani, A. B. Transformer for partial differential equations' operator learning. arXiv preprint arXiv:2205.13671, 2022.
|
| 336 |
+
Li, Z., Huang, D. Z., Liu, B., and Anandkumar, A. Fourier neural operator with learned deformations for pdes on general geometries. Journal of Machine Learning Research, 24(388):1-26, 2023.
|
| 337 |
+
Li, Z., Zheng, H., Kovachki, N., Jin, D., Chen, H., Liu, B., Azizzadenesheli, K., and Anandkumar, A. Physics-informed neural operator for learning partial differential
|
| 338 |
+
|
| 339 |
+
equations. ACM/JMS Journal of Data Science, 1(3):1-27, 2024.
|
| 340 |
+
List, B., Chen, L.-W., and Thuerey, N. Learned turbulence modelling with differentiable fluid solvers: physics-based loss functions and optimisation horizons. Journal of Fluid Mechanics, 949:A25, 2022.
|
| 341 |
+
Liu-Schiaffini, M., Berner, J., Bonev, B., Kurth, T., Aziz-zadenesheli, K., and Anandkumar, A. Neural operators with localized integral and differential kernels. arXiv preprint arXiv:2402.16845, 2024.
|
| 342 |
+
Lu, L., Jin, P., and Karniadakis, G. E. Deeponet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operators. arXiv preprint arXiv:1910.03193, 2019.
|
| 343 |
+
Lu, L., Jin, P., Pang, G., Zhang, Z., and Karniadakis, G. E. Learning nonlinear operators via deeponet based on the universal approximation theorem of operators. Nature machine intelligence, 3(3):218-229, 2021.
|
| 344 |
+
Neal, R. M. Bayesian learning for neural networks, volume 118. Springer Science & Business Media, 2012.
|
| 345 |
+
O'Leary-Roseberry, T., Chen, P., Villa, U., and Ghattas, O. Derivative-informed neural operator: an efficient framework for high-dimensional parametric derivative learning. Journal of Computational Physics, 496:112555, 2024.
|
| 346 |
+
Pontryagin, L. S. Mathematical theory of optimal processes. Routledge, 2018.
|
| 347 |
+
Proakis, J. G. Digital signal processing: principles algorithms and applications. Pearson Education India, 2001.
|
| 348 |
+
Snoek, J., Larochelle, H., and Adams, R. P. Practical bayesian optimization of machine learning algorithms. Advances in neural information processing systems, 25, 2012.
|
| 349 |
+
Sokolowski, J. and Zolésio, J.-P. Introduction to shape optimization. Springer, 1992.
|
| 350 |
+
Svanberg, K. The method of moving asymptotes—a new method for structural optimization. International journal for numerical methods in engineering, 24(2):359-373, 1987.
|
| 351 |
+
Tran, A., Mathews, A., Xie, L., and Ong, C. S. Factorized fourier neural operators. arXiv preprint arXiv:2111.13802, 2021.
|
| 352 |
+
Tsay, C. Sobolev trained neural network surrogate models for optimization. Computers & Chemical Engineering, 153:107419, 2021.
|
| 353 |
+
|
| 354 |
+
Um, K., Brand, R., Fei, Y. R., Holl, P., and Thuerey, N. Solver-in-the-loop: Learning from differentiable physics to interact with iterative pde-solvers. Advances in Neural Information Processing Systems, 33:6111-6122, 2020.
|
| 355 |
+
Wang, S., Bhouri, M. A., and Perdikaris, P. Fast pdeconstrained optimization via self-supervised operator learning. arXiv preprint arXiv:2110.13297, 2021.
|
| 356 |
+
Wu, H., Luo, H., Wang, H., Wang, J., and Long, M. Transolver: A fast transformer solver for pdes on general geometries. arXiv preprint arXiv:2402.02366, 2024.
|
| 357 |
+
Xiao, Z., Hao, Z., Lin, B., Deng, Z., and Su, H. Improved operator learning by orthogonal attention. In Proceedings of the 41st International Conference on Machine Learning, pp. 54288-54299, 2024.
|
| 358 |
+
Xue, T., Beatson, A., Adriaenssens, S., and Adams, R. Amortized finite element analysis for fast pde-constrained optimization. In International Conference on Machine Learning, pp. 10638-10647. PMLR, 2020.
|
| 359 |
+
Zhang, L., Han, J., Wang, H., Car, R., and E, W. Deep potential molecular dynamics: a scalable model with the accuracy of quantum mechanics. Physical review letters, 120(14):143001, 2018.
|
| 360 |
+
Zhu, Y. and Zabaras, N. Bayesian deep convolutional encoder-decoder networks for surrogate modeling and uncertainty quantification. Journal of Computational Physics, 366:415-447, 2018.
|
| 361 |
+
|
| 362 |
+
# A. Derivative of Virtual-Fourier Layer
|
| 363 |
+
|
| 364 |
+
First, let us take a closer look at the derivative of nonlinear attention, $\frac{d}{dx}$ softmax(QK)V, ignoring constant coefficient and the transpose of matrix. Suppose $\pmb {t}\in \mathbb{R}^N$ and $\pmb {s} = \mathrm{softmax}(\pmb {t})$ . Then $\frac{\partial s_j}{\partial t_i} = s_j(\delta_{ij} - s_i)$ . Thus, the derivative would be roughly and informally $s_j(\delta_{ij} - s_i)(Q'K + QK') + \mathrm{softmax}(QK)V'$ . Hence, the derivative of such layers is assigned with strong inductive bias (probably undesired), and the expressiveness would be severely restricted. Even for linear transformers, e.g., GNOT (Hao et al., 2023), the derivative of normalization for linear attention has a complicated form due to the quotient rule.
|
| 365 |
+
|
| 366 |
+
In contrast, the computation of the derivative of Virtual-Fourier layers essentially occurs on the Softmax function. For equation (8), its derivative is
|
| 367 |
+
|
| 368 |
+
$$
|
| 369 |
+
\frac {\partial \boldsymbol {z} _ {j}}{\partial \boldsymbol {x} _ {i}} = w _ {i, j} ^ {(1)} + \underbrace {\sum_ {k = 1} ^ {N} w _ {k , j} ^ {(1)} \left(\delta_ {i , k} - w _ {i , j} ^ {(1)}\right) \frac {\partial l _ {i , j}}{\partial \boldsymbol {x} _ {i}} \boldsymbol {x} _ {i}} _ {\text {A d d i t i o n a l b i a s}} \tag {15}
|
| 370 |
+
$$
|
| 371 |
+
|
| 372 |
+
Proof. Notice that $l_{i,j}$ only depends on $\pmb{x}_i$ by (7). $w_{i,j}^{(1)} = \exp(l_{i,j}) / \sum_{i=1}^{N} \exp(l_{i,j}), i = 1, \dots, N$ , which is $\text{softmax}(\cdot)$ along the first dimension of $l_{i,j}$ . Then it directly follows from the derivative of $\text{softmax}(\cdot)$ , product rule and chain rule. $\square$ In equation (10) since the dependence on $z_j$ is linear, we mainly focus on the derivative of $w_{k,j}^{(2)}$ . Similarly, we have
|
| 373 |
+
|
| 374 |
+
$$
|
| 375 |
+
\frac {\partial w _ {k , j} ^ {(2)}}{\partial \boldsymbol {x} _ {i}} = w _ {k, j} ^ {(2)} \left(\delta_ {i, j} - w _ {k, i} ^ {(2)}\right) \frac {\partial l _ {k , i}}{\partial \boldsymbol {x} _ {i}} \tag {16}
|
| 376 |
+
$$
|
| 377 |
+
|
| 378 |
+
Proof. Again, due to (7) and $w_{i,j}^{(2)} = \exp (l_{i,j}) / \sum_{j = 1}^{M}\exp (l_{i,j}), j = 1,\dots ,M$ , which is $\mathrm{softmax}(\cdot)$ along the second dimension of $l_{i,j}$ . It directly follows from the derivative of $\mathrm{softmax}(\cdot)$ , product rule and chain rule. $\square$
|
| 379 |
+
|
| 380 |
+
Both the derivative of (8) and (10) introduce some bias to the derivative of operators due to the derivative of $\mathrm{softmax}(\cdot)$ , but compared to transformer-based neural operators, the derivative of Virtual-Fourier layer is considerably simpler.
|
| 381 |
+
|
| 382 |
+
# B. Sensitivity Loss
|
| 383 |
+
|
| 384 |
+
Two technical challenges arise in computing the sensitivity loss (equation 5):
|
| 385 |
+
|
| 386 |
+
Sensitivity Representation: For shape optimization datasets, COMSOL provides sensitivities with respect to curve parameters (e.g., coefficients of Bernstein polynomials), not directly with respect to the coordinates of mesh nodes. To simplify the comparison, we obtain the shift in node coordinates and maximize the cosine similarity between this shift and the sensitivity of the neural operator with respect to the node coordinates. Equivalently, we normalize both vectors and minimize the $l_{2}$ loss between them.
|
| 387 |
+
|
| 388 |
+
Constraint Handling: The optimization method used within COMSOL to handle constraints introduces complexities in sensitivity computation. To simplify this aspect, we incorporate constraints as additional objectives in the objective function $J$ using Lagrange multipliers. This simplification may introduce errors in the computed sensitivities. To mitigate this, we again prioritize maximizing the cosine similarity (minimize the L2 loss between normalized sensitivities), while also choosing a small value for the coefficient $\alpha$ in equation 6.
|
| 389 |
+
|
| 390 |
+
# C. Dataset and Dataloger
|
| 391 |
+
|
| 392 |
+
# C.1. Reference Dataloger
|
| 393 |
+
|
| 394 |
+
To train RNO with pairwise data as query and reference, we use a custom dataloader to select a reference point from the same optimization trajectory for each query point. Given a trajectory $\{(\lambda_i, u_i)\}_{i=0}^{N_s}$ , where $N_s$ is the number of steps. The reference for the $i$ -th data point is chosen from the index range $[l, r]$ , where $l = \max(0, i - d)$ and $r = \min(N_s, i + d)$ . Note that the reference index $j$ can be equal to $i$ . Additionally, the relative difference between the reference solution $u_r$ and the query $u_q$ must be less than a threshold $d_r$ . The dataloader randomly selects a reference point that satisfies both conditions. In our implementation, $d = 2$ and $d_r = 0.5$ .
|
| 395 |
+
|
| 396 |
+
Because both the query and reference are selected from the same trajectory, they share a one-to-one correspondence between mesh grids. This is inherently true for data generated from topology optimization, where all meshes are identical. For shape optimization, this one-to-one correspondence is preserved after shape deformation. This consistent mesh correspondence is a key advantage of using optimization trajectories as training data. Without it, constructing appropriate transformations $\varphi$ and implementing interpolations between different meshes, as required in (Cheng et al., 2024), would be necessary.
|
| 397 |
+
|
| 398 |
+
# C.2. Microreactor
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
(a)
|
| 402 |
+
|
| 403 |
+

|
| 404 |
+
(b)
|
| 405 |
+
Figure 7: (a) The optimized density $\varepsilon$ of porous media. (b) The corresponding concentration $c$ .
|
| 406 |
+
|
| 407 |
+
We modified a model from COMSOL optimization gallery that designs a catalytic microreactor by topology optimization. The objective function is
|
| 408 |
+
|
| 409 |
+
$$
|
| 410 |
+
\max _ {\varepsilon} J = \frac {1}{\text {v o l u m e} (\Omega)} \int_ {\Omega} k _ {a} (1 - \varepsilon) c d \Omega \tag {17}
|
| 411 |
+
$$
|
| 412 |
+
|
| 413 |
+
where $c$ is concentration, $k_{a} = 1$ is the rate constant and $\varepsilon(\cdot) \in [0,1]$ denotes the control variable, the volume fraction of solid catalyst. Let $D$ be diffusion coefficient and $\mathbf{u}$ be the velocity, and the overall physics is governed by Navier-Stokes and diffusion equations,
|
| 414 |
+
|
| 415 |
+
$$
|
| 416 |
+
\rho (\mathbf {u} \cdot \nabla) \mathbf {u} = - \nabla p + \nabla \cdot \mu (\nabla \mathbf {u} + (\nabla \mathbf {u}) ^ {T}) - \alpha (\varepsilon) \mathbf {u}
|
| 417 |
+
$$
|
| 418 |
+
|
| 419 |
+
$$
|
| 420 |
+
\nabla \cdot \mathbf {u} = 0
|
| 421 |
+
$$
|
| 422 |
+
|
| 423 |
+
$$
|
| 424 |
+
\nabla \cdot (- D \nabla c) = r - \mathbf {u} \cdot \nabla c.
|
| 425 |
+
$$
|
| 426 |
+
|
| 427 |
+
The data is structured as $\lambda = (x_{1}, x_{2}, \varepsilon, m)$ is a 4-tensor with first two dimensions of spatial coordinates and $\varepsilon$ the control variable. The last dimension is a mask $m \in \{0, 1\}^{N}$ for active domain where $\varepsilon$ is defined, and $N$ is the number of mesh nodes. $\mathbf{u} = (p, u, v, c, s)$ , which are pressure, velocity components, concentration and the sensitivity $s = \frac{dJ}{d\varepsilon}$ . Finally, let $\varphi = \varepsilon_{r} - \varepsilon_{q}$ be the transformation between reference and query.
|
| 428 |
+
|
| 429 |
+
We randomly draw the widths and heights of the reaction region, as well as the heights of inlet and outlet. The size of the dataset is num_traj $\times$ num_steps $= 100\times 12$
|
| 430 |
+
|
| 431 |
+
# C.3. Fuelcell Bipolar Plate
|
| 432 |
+
|
| 433 |
+
We model a simple distribution area for a fuel cell bipolar plate, the governing equation is Navier-Stokes equation and the objective function consists of two parts: the total pressure drop and the variance of flow among all channels,
|
| 434 |
+
|
| 435 |
+
$$
|
| 436 |
+
\min _ {\lambda} J = \left(p \mid_ {i n l e t} - p \mid_ {o u t l e t}\right) + \left\| (\mathbf {u} - \bar {\mathbf {u}}) \right\vert_ {c h a n n e l} \| ^ {2}. \tag {18}
|
| 437 |
+
$$
|
| 438 |
+
|
| 439 |
+
where $\lambda$ is the control variable of the internal walls in distribution areas close to inlet and outlet. The objective can be further simplified if we set $p|_{outlet} = 0$ and assume that flow velocity in each channel is constant and hence we only need to measure the velocity at end of arm area (or the inlets of channels). In COMSOL, $\lambda$ is the control variable of shapes which is modeled by the coefficients of Bernstein polynomials. In our implementation of optimizing shape with neural operators, we simply optimize the coordinates of the movable mesh nodes in arm area so that $\lambda$ stands for the coordinates of those points.
|
| 440 |
+
|
| 441 |
+
The data is structured as $\lambda = (x_{1}, x_{2}, w, m)$ , a 4-tensor with first two dimensions of spatial coordinates and $w, m \in \{0, 1\}^{N}$ are a mask for internal walls and a mask for arm area (free shape domain), where $N$ is the number of mesh nodes.
|
| 442 |
+
|
| 443 |
+

|
| 444 |
+
(a)
|
| 445 |
+
|
| 446 |
+

|
| 447 |
+
(b)
|
| 448 |
+
Figure 8: (a) The pressure of optimized design. (b) The velocity component $u$ of optimized design.
|
| 449 |
+
|
| 450 |
+
$\pmb{u} = (p, u, v, dx_1, dx_2)$ , where $(dx_1, dx_2)$ is the shift of coordinates. $\varphi = (x_1, x_2)_r - (x_1, x_2)_q$ is the difference of spatial coordinates of mesh nodes between reference and query.
|
| 451 |
+
|
| 452 |
+
We randomly draw the widths and heights of channels, as well as the widths and heights of inlet and outlet. The size of the dataset is num_traj $\times$ num_steps $= 30\times 20$
|
| 453 |
+
|
| 454 |
+
# C.4. Inductor
|
| 455 |
+
|
| 456 |
+

|
| 457 |
+
Figure 9: (Left) The 2D inductor model, consisting of core, coil, air, and infinite boundary. (Right) The complete 3D domain after revolving the domain around the symmetry axis.
|
| 458 |
+
|
| 459 |
+
We model the magnetic field response of an inductor under axial symmetry assumption as seen in Fig. 9. The objective function consists of two competing components: maximizing the inductance (magnetic energy storage capability) while minimizing the cross sectional area of the inductor,
|
| 460 |
+
|
| 461 |
+
$$
|
| 462 |
+
\min _ {\lambda} J = - \gamma \frac {\int_ {\Omega} (\mathbf {B} \cdot \mathbf {H}) 2 \pi r d r d z}{I ^ {2}} + (1 - \gamma) \int_ {\Omega} 1 d r d z \tag {19}
|
| 463 |
+
$$
|
| 464 |
+
|
| 465 |
+
where $\mathbf{H}$ stands for magnetic field intensity, $\mathbf{B}$ for magnetic flux density, $I$ for current, and $\lambda$ for the control variable for the cross section shape. Particularly, we randomly draw $\gamma \in [0.7, 0.9]$ to enable diversity on objective functions. For simplicity, we investigate the steady state frequency domain response at $f = \frac{\omega}{2\pi} = 1\mathrm{kHz}$ by solving the magnetic wave equation in the 2D inductor cross section $\Omega$ using COMSOL,
|
| 466 |
+
|
| 467 |
+
$$
|
| 468 |
+
\nabla^ {2} \mathbf {H} + \omega^ {2} \epsilon \mu \mathbf {H} = - \nabla \times \mathbf {J} \tag {20}
|
| 469 |
+
$$
|
| 470 |
+
|
| 471 |
+
where $\mathbf{J}$ stands for current density, $\omega$ is the angular frequency, $\mu$ and $\epsilon$ are permeability and permittivity. The excitation current is set to have a small amplitude so that the induced magnetic field can be assumed to stay within the linear regime ( $\mu = 600\mathrm{Tm / A}$ ) of the core material without hysteresis effect. Therefore, the steady state field response takes the form $(\mathbf{B},\mathbf{H}) = (\tilde{\mathbf{B}},\tilde{\mathbf{H}})e^{i\omega t}$ at identical phase. The objective function in Eq. 19 can then be simplified by replacing $\mathbf{B}\cdot \mathbf{H}$ with the corresponding amplitude $\mu \tilde{\mathbf{H}}^2$ and performing integral only within the core region, as $\mu$ is only significant within the core region.
|
| 472 |
+
|
| 473 |
+
The data is structured as $\lambda = (r,z,\gamma ,m_1,m_2)$ , a 5-tensor with first two dimensions of axial-symmetrical spatial coordinates $(r,z)$ and $m_{1},m_{2}\in \{0,1\}^{N}$ are masks for coils and magnetic core, where $N$ is the number of mesh nodes. $\pmb{u} = (B_r,B_z,dr,dz)$ , where $(dr,dz)$ are shifts of coordinates. $\varphi = (r,z)_r - (r,z)_q$ is the difference of spatial coordinates of mesh nodes between reference and query.
|
| 474 |
+
|
| 475 |
+
We randomly draw the radius and heights of core, the radius and heights of inner hole, the widths and heights of coil and the parameter $\gamma$ in objective function. The size of the dataset is num_traj $\times$ num_steps $= 100\times 10$
|
| 476 |
+
|
| 477 |
+
# C.5.Drone
|
| 478 |
+
|
| 479 |
+

|
| 480 |
+
(a)
|
| 481 |
+
|
| 482 |
+

|
| 483 |
+
(b)
|
| 484 |
+
Figure 10: (a) The optimized density $\varepsilon$ filtered by a threshold. (b) The magnitude of corresponding displacement $\pmb{u}$ of the loadcase of vertical acceleration.
|
| 485 |
+
|
| 486 |
+
We modified a model from COMSOL optimization gallery that designs the arms of a drone with linear elastic material. The problem minimizes elastic strain energy with physical variables such as $3 \times 3$ strain, stress tensors and displacement. Our modification on the objective is, with Einstein sum notation,
|
| 487 |
+
|
| 488 |
+
$$
|
| 489 |
+
\min _ {\varepsilon} J = \int_ {V} b _ {i} u _ {i} d V + \int_ {\partial R} t _ {i} u _ {i} d A, \tag {21}
|
| 490 |
+
$$
|
| 491 |
+
|
| 492 |
+
where $u_{i}$ is the displacement, $b_{i}$ is force, $t_{i}$ is traction on surface $\partial R$ and $\varepsilon$ denotes the density of the plastic material. This is equivalent to elastic strain energy due to the principle of minimum potential energy (Bower, 2009). Also, the governing equation will be simplified as the Navier equations of elasticity (Chapter 5. Bower (2009)). The only field variable of interest is displacement. The problem is optimized under two load cases, a vertical acceleration on the whole body and a torque on the motor surface. The optimization process is performed on a single arm, and the final result is then mirrored twice to obtain the complete drone body. See Fig. 10.
|
| 493 |
+
|
| 494 |
+
The data is structured as $\lambda = (x_{1}, x_{2}, x_{3}, \theta, f_{1}, f_{2}, f_{3}, m_{1}, m_{2}, m_{3})$ , a 10-tensor with first 3 spatial coordinates and $\theta \in [0,1]^{N}$ the control variable of density model for topology optimization where $N$ is the number of mesh nodes. $f$ 's are force components and $m$ 's are masks for the surface where torque is applied, surfaces for symmetry conditions and volume assigned with $\theta$ . Displacement $\mathbf{u} = (u_{1}, u_{2}, u_{3}, s)$ , sensitivity $s = \frac{\partial J}{\partial \theta}$ , and transformation $\varphi = \theta_{r} - \theta_{q}$ .
|
| 495 |
+
|
| 496 |
+
We randomly draw the widths, heights and thickness of the arm of drones, as well as the torque and accelerations of two loadcases. The size of the dataset is num_traj $\times$ num_steps $= 10\times 20$
|
| 497 |
+
|
| 498 |
+
# D. Algorithms
|
| 499 |
+
|
| 500 |
+
Algorithm 2 Optimization-oriented training of RNO
|
| 501 |
+
Input: RNO $\mathcal{G}_{\theta}$ , dataloger that loads data in pairs, $(\lambda_q,u_q)$ and $(\lambda_r,u_r)$ , flag Sens for training with sensitivity loss, dropout ratio $r_{drop}$ that drops reference.
|
| 502 |
+
for epoch = 0 to $N_e - 1$ do
|
| 503 |
+
Draw $a \sim \mathcal{U}[0,1]$
|
| 504 |
+
if $a < r_{drop}$ then
|
| 505 |
+
Drop $u_r$ and $\varphi$
|
| 506 |
+
end if
|
| 507 |
+
$u_{pred} = \mathcal{G}_{\theta}(\lambda_q,u_r,\varphi)$
|
| 508 |
+
Compute loss $L = \| u_{pred} - u_q\|$
|
| 509 |
+
if Sens then
|
| 510 |
+
Compute $J$ and $\frac{\partial J}{\partial \lambda_q}$ by autodiff
|
| 511 |
+
Update loss $L$ by (6).
|
| 512 |
+
end if
|
| 513 |
+
optimizer.zero()
|
| 514 |
+
L.backup()
|
| 515 |
+
optimizer.update()
|
| 516 |
+
end for
|
| 517 |
+
|
| 518 |
+
# E. More Experiments
|
| 519 |
+
|
| 520 |
+
<table><tr><td></td><td>p</td><td>u</td><td>v</td><td>c</td><td>Ls</td></tr><tr><td>R-LA-80</td><td>1.64e-2</td><td>3.25e-2</td><td>7.83e-2</td><td>2.65e-2</td><td>2.69e-2</td></tr><tr><td>R-PA-80</td><td>1.51e-2</td><td>2.74e-2</td><td>7.46e-2</td><td>2.48e-2</td><td>2.54e-2</td></tr><tr><td>R-VF-80</td><td>1.48e-2</td><td>2.57e-2</td><td>7.56e-2</td><td>2.42e-2</td><td>2.30e-2</td></tr><tr><td>R-LA-160</td><td>1.40e-2</td><td>2.42e-2</td><td>7.16e-2</td><td>2.29e-2</td><td>2.37e-2</td></tr><tr><td>R-PA-160</td><td>1.32e-2</td><td>2.18e-2</td><td>6.81e-2</td><td>2.15e-2</td><td>2.30e-2</td></tr><tr><td>R-VF-160</td><td>1.31e-2</td><td>2.17e-2</td><td>6.95e-2</td><td>2.15e-2</td><td>2.18e-2</td></tr></table>
|
| 521 |
+
|
| 522 |
+
Table 3: The results of scaling dataset Microreactor2D. Errors are shown by each component. $L_{s}$ is sensitivity error. Bold is the best and underline is the second best.
|
| 523 |
+
|
| 524 |
+
<table><tr><td>Models</td><td>p</td><td>u</td><td>v</td><td>c</td><td>Ls</td></tr><tr><td>R-LA</td><td>1.29e-2 ± 3.3e-4</td><td>2.33e-2 ± 1.04e-3</td><td>6.85e-2 ± 1.94e-3</td><td>2.32e-2 ± 9.3e-4</td><td>2.16e-2 ± 3.55e-4</td></tr><tr><td>R-PA</td><td>1.25e-2 ± 4.1e-4</td><td>2.22e-2 ± 6.6e-4</td><td>6.6e-2 ± 1.23e-3</td><td>2.28e-2 ± 2.1e-4</td><td>2.02e-2 ± 7.8e-4</td></tr><tr><td>R-VF</td><td>1.2e-2 ± 3.2e-4</td><td>2.06e-2 ± 6.1e-4</td><td>6.42e-2 ± 1.42e-3</td><td>2.14e-2 ± 6.89e-4</td><td>1.76e-2 ± 3.81e-4</td></tr></table>
|
| 525 |
+
|
| 526 |
+
Table 4: Results of Microreactor2D with 5 random seeds. Showing consistent advantage of VF.
|
2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6783477ec3061fc98a70863cf34478708f48fc4b15f0d53f3784c5e331b8a55e
|
| 3 |
+
size 604219
|
2025/Accelerating PDE-Constrained Optimization by the Derivative of Neural Operators/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/2566d932-7fe8-4fe2-8907-aeb6bec0c86a_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/2566d932-7fe8-4fe2-8907-aeb6bec0c86a_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/2566d932-7fe8-4fe2-8907-aeb6bec0c86a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8de427cf7b8e4f6cdc082101f6f2a29a265eb10e0ff10b1f9c4bc39927c017a0
|
| 3 |
+
size 512772
|
2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71604d9252dc619b2321be0755b4c7766bae18e2bca3ade124233b583f7f4288
|
| 3 |
+
size 1128029
|
2025/Accelerating Quantum Reinforcement Learning with a Quantum Natural Policy Gradient Based Approach/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Spectral Clustering under Fairness Constraints/191c6346-48c4-48d9-9419-52860716d00d_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Spectral Clustering under Fairness Constraints/191c6346-48c4-48d9-9419-52860716d00d_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Spectral Clustering under Fairness Constraints/191c6346-48c4-48d9-9419-52860716d00d_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:828f86e758b7c9e507498fcb00a903b0e7d0a8544aa10067a421ed237eb73dff
|
| 3 |
+
size 653909
|
2025/Accelerating Spectral Clustering under Fairness Constraints/full.md
ADDED
|
@@ -0,0 +1,730 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Accelerating Spectral Clustering under Fairness Constraints
|
| 2 |
+
|
| 3 |
+
Francesco Tonin<sup>1</sup> Alex Lambert<sup>2</sup> Johan A.K. Suykens<sup>2</sup> Volkan Cevher<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Fairness of decision-making algorithms is an increasingly important issue. In this paper, we focus on spectral clustering with group fairness constraints, where every demographic group is represented in each cluster proportionally as in the general population. We present a new efficient method for fair spectral clustering (Fair SC) by casting the Fair SC problem within the difference of convex functions (DC) framework. To this end, we introduce a novel variable augmentation strategy and employ an alternating direction method of multipliers type of algorithm adapted to DC problems. We show that each associated subproblem can be solved efficiently, resulting in higher computational efficiency compared to prior work, which required a computationally expensive eigendecomposition. Numerical experiments demonstrate the effectiveness of our approach on both synthetic and real-world benchmarks, showing significant speedups in computation time over prior art, especially as the problem size grows. This work thus represents a considerable step forward towards the adoption of fair clustering in real-world applications.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
Algorithmic decision-making systems leveraging machine learning (ML) are increasingly being used in critical domains such as healthcare, social policy, and education, raising concerns about the potential for these algorithms to exhibit unfair behavior towards certain demographic groups (Hardt et al., 2016; Buolamwini & Gebru, 2018; Chouldechova & Roth, 2020). In response to these concerns, the field of fair ML has proposed mathematical fairness formulations for various ML tasks, e.g., (Dwork et al., 2012; Zafar et al., 2017; Samadi et al., 2018; Donini et al., 2018;
|
| 12 |
+
|
| 13 |
+
$^{1}$ LIONS, EPFL, Switzerland $^{2}$ ESAT-STADIUS, KU Leuven, Belgium. Correspondence to: Francesco Tonin <francesco.tonin@epfl.ch>.
|
| 14 |
+
|
| 15 |
+
Proceedings of the $42^{nd}$ International Conference on Machine Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025 by the author(s).
|
| 16 |
+
|
| 17 |
+
Agarwal et al., 2019; Aghaei et al., 2019; Amini et al., 2019; Davidson & Ravi, 2020; Celis et al., 2018; Singh et al., 2023; Ali et al., 2023).
|
| 18 |
+
|
| 19 |
+
In clustering research, Chierichetti et al. (2017) introduced demographic fairness by imposing fairness constraints to ensure balanced representation across protected groups in clusters. Initially applied to two groups in Chierichetti et al. (2017), this concept was expanded to multiple groups (Rösner & Schmidt, 2018; Bera et al., 2019a) and primarily explored in prototype-based clustering (Chierichetti et al., 2017; Carreira-Perpinan & Wang, 2013; Bera et al., 2019a). Kleindessner et al. (2019) adapted this notion of fairness to spectral clustering (Shi & Malik, 2000; Von Luxburg, 2007) and is known as fair spectral clustering (Fair SC). Although recent advances (Wang et al., 2023) have sped up the computation of Fair SC, the reliance on the computationally expensive eigendecomposition of the fairness-constrained graph Laplacian still limits the application of Fair SC to real-world problems.
|
| 20 |
+
|
| 21 |
+
From an optimization standpoint, SC can be cast as a trace maximization problem with orthonormality constraints (Bach & Jordan, 2003), falling into the differences of convex functions (DC) framework. This problem class has spurred substantial interest (Tao et al., 1986; Le Thi & Pham Dinh, 2018), and efficient DC-based algorithms have been developed for various ML tasks including feature selection (Le Thi et al., 2015), reinforcement learning (Piot et al., 2014) and (kernel) PCA (Beck & Teboulle, 2021; Tonin et al., 2023). However, these algorithms do not extend directly to Fair SC due to their lack of consideration for the fairness constraints, the integration of which within the DC framework remains unexplored in the existing literature.
|
| 22 |
+
|
| 23 |
+
In this work, we cast the Fair SC problem into the DC framework and develop an efficient alternating direction method-of-multipliers (ADMM)-type algorithm through a suitable variable augmentation, achieving higher computational efficiency over existing algorithms (Kleindessner et al., 2019; Wang et al., 2023). Our specific contributions can be summarized as follows:
|
| 24 |
+
|
| 25 |
+
- Novel Algorithm Design: We develop a new efficient optimization method for Fair SC by casting the problem in the DC framework and by designing a novel
|
| 26 |
+
|
| 27 |
+
variable augmentation suitable for efficient DC optimization within an ADMM type of algorithm.
|
| 28 |
+
|
| 29 |
+
- Efficient Solution via DC: We show that each associated ADMM subproblem can be solved efficiently. In particular, our approach can exploit fast gradient-based algorithms for the DC framework. This results in better computational efficiency of our method, avoiding the expensive eigendecomposition of a modified Laplacian required by existing algorithms.
|
| 30 |
+
- Empirical Validation: Through numerical experiments, we demonstrate the effectiveness of our approach on both synthetic and real-world benchmarks, showing significant speedups in computation time, especially with larger sample size and number of clusters.
|
| 31 |
+
|
| 32 |
+
This paper is structured as follows. Section 2 reviews the group fairness constraints for spectral clustering and the existing algorithms for Fair SC. Section 3 presents our new algorithm for Fair SC. The numerical experiments in Section 4 show the advantage of our method in computational efficiency over existing algorithms on multiple benchmarks. Proofs are deferred to the Appendix.
|
| 33 |
+
|
| 34 |
+
# 2. Problem Formulation
|
| 35 |
+
|
| 36 |
+
Notation: Given a symmetric real matrix $M \in \mathbb{R}^{n \times n}$ , $\lambda(M) \in \mathbb{R}^n$ is the vector of its eigenvalues ordered decreasingly. $I_s$ is the identity matrix of size $s \times s$ . $\|\cdot\|_{\mathrm{F}}$ denotes the Frobenius norm. For a convex set $\mathcal{C}$ , $\iota_{\mathcal{C}}(\cdot)$ is its indicator function: 0 on $\mathcal{C}$ and $+\infty$ otherwise. The Fenchel-Legendre transform of a function $f$ is $f^\star$ . For an integer $s > 0$ , $[s]$ denotes the set $\{1, \ldots, s\}$ .
|
| 37 |
+
|
| 38 |
+
# 2.1. Group-fair clustering
|
| 39 |
+
|
| 40 |
+
Given a set of data points, the goal of clustering is to partition the dataset into disjoint subsets such that data points in the same subset are more similar to each other than to those in the other subsets. Formally, let $\mathcal{D} = \{x_i\in \mathbb{R}^d\}_{i = 1}^n$ be a dataset of $n$ data points. Clustering partitions $\mathcal{D}$ into $k$ clusters:
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
\mathcal {D} = C _ {1} \cup \dots \cup C _ {k}, \tag {1}
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
such that the resulting clustering has high intra-cluster similarity and low inter-cluster similarity. Clustering can be encoded in a clustering indicator matrix $Q \in \mathbb{R}^{n \times k}$ , where $q_{il} \coloneqq 1$ if $x_i \in C_l$ , and 0 otherwise, for $i \in [n]$ and $l \in [k]$ . We now review the notion of group fairness in clustering. Suppose we are also given $h$ groups partitioning the dataset $\mathcal{D}$ (e.g., based on sensitive data such as nationality or census):
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\mathcal {D} = V _ {1} \cup \dots \cup V _ {h}, \tag {2}
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $V_{i}\cap V_{j} = \emptyset$ for $i\neq j$ . Chierichetti et al. (2017); Bera et al. (2019a) proposed the following notion of balance
|
| 53 |
+
|
| 54 |
+

|
| 55 |
+
Figure 1: Illustrative example of fair clustering. Red and blue colors indicate $h = 2$ different demographic groups. Clustering with $k = 2$ of the left-hand side data can result in two possible partitionings: the top clustering $C_1, C_2$ or the bottom clustering $C_1', C_2'$ , where balance $(C_{\{1,2\}}) = 0$ and balance $(C_{\{1,2\}}') = 1$ .
|
| 56 |
+
|
| 57 |
+
in fair clustering such that each cluster contains the same number of elements from each group $V_{s}$ .
|
| 58 |
+
|
| 59 |
+
Definition 2.1 (Balance (Chierichetti et al., 2017)). For a clustering of type (1), define the balance of the cluster $C_l$ as
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\operatorname {b a l a n c e} \left(C _ {l}\right) = \min _ {\substack {s, s ^ {\prime} \in [ h ] \\ s \neq s ^ {\prime}}} \frac {\left| V _ {s} \cap C _ {l} \right|}{\left| V _ {s ^ {\prime}} \cap C _ {l} \right|} \in [ 0, 1 ]. \tag{3}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
An example of fair clustering is shown in Figure 1, with ground-truth labels shown for visualization purposes. In group-level fairness (Chierichetti et al., 2017), the higher the balance of each cluster, the fairer the clustering. A perfectly balanced clustering means that objects from all groups are presented proportionately in each cluster. The following definition due to Kleindessner et al. (2019) gives the corresponding group fairness condition.
|
| 66 |
+
|
| 67 |
+
Definition 2.2 (Group fairness). A clustering such as (1) is group fair with respect to a group partition (2) if the proportion of each group in all clusters is the same as in $\mathcal{D}$ , i.e. for $s\in [h]$ and $l\in [k]$ ,
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\frac {\left| V _ {s} \cap C _ {l} \right|}{\left| C _ {l} \right|} = \frac {\left| V _ {s} \right|}{n}. \tag {4}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
Groups can be encoded in a group indicator matrix $G \in \mathbb{R}^{n \times h}$ with $g_{is} := 1$ if $x_i \in V_s$ , and 0 otherwise, for $i \in [n]$ , $s \in [h]$ . The fairness condition (4) can be represented in matrix form using the indicator matrices $Q$ and $G$ . This is done in Wang et al. (2023) by considering the matrices $A = G^{\top}Q$ and $B = (G^{\top}1_n) \cdot (Q^{\top}1_n)^{\top}$ . The entries of $A$ and $B$ are $a_{sl} = |V_s \cap C_l|$ and $b_{sl} = |V_s| \cdot |C_l|$ for
|
| 74 |
+
|
| 75 |
+
$s \in [h]$ and $l \in [k]$ . The group-fairness condition (4) is then equivalent to $n \cdot A = B$ , or
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
F _ {0} ^ {\top} Q = 0, \tag {5}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
where $F_0 = G - 1_n z^T \in \mathbb{R}^{n \times h}$ and $z = \frac{G^T 1_n}{n} \in \mathbb{R}^h$ .
|
| 82 |
+
|
| 83 |
+
# 2.2. Fair spectral clustering
|
| 84 |
+
|
| 85 |
+
Given the dataset $\mathcal{D}$ , in this work we consider a positive definite kernel $\kappa: \mathbb{R}^d \times \mathbb{R}^d \to \mathbb{R}$ and define the affinity matrix $K \in \mathbb{R}^{n \times n}$ as $K_{ij} = \kappa(x_i, x_j)$ and the degree matrix $D \in \mathbb{R}^{n \times n}$ as $D_{ii} = \sum_{j=1}^{n} K_{ij}$ (Alzate & Suykens, 2008). The spectral clustering solution is obtained by solving an eigenvalue problem of size $n \times n$ and corresponds to the eigenvectors $H \in \mathbb{R}^{n \times k}$ associated with the $k$ largest eigenvalues of the normalized affinity matrix $M := D^{-1/2} KD^{-1/2}$ . Typically as in normalized SC, the clustering indicators are then obtained by applying $k$ -means to the rows of $D^{-1/2} H$ .
|
| 86 |
+
|
| 87 |
+
Remark 2.3. Spectral clustering with kernel as affinity function is particularly useful in clustering applications where the input data is given as a data matrix. Our algorithm can also be applied in the standard SC setting (Shi & Malik, 2000; Von Luxburg, 2007) where the input is given as a graph with adjacency matrix $W$ , by considering $\mathcal{M} = D^{-1/2}WD^{-1/2}$ . We can regularize the problem by working with p.s.d. $M := \mathcal{M} + (1 + \omega)I_n$ for small $\omega > 0$ . In fact, it holds that $\lambda_i(\mathcal{M}) \geq -1$ , $\forall i = 1, \dots, n$ , as the eigenvalues of the normalized Laplacian $\hat{L} = D^{-1/2}LD^{-1/2}$ , with $L = D - W$ , lie in [0, 2]. This regularization does not alter the solution space as it only shifts the eigenvalues. This is a well-studied regularization technique that is widely used, e.g., in kernel methods (Bishop & Nasrabadi, 2006).
|
| 88 |
+
|
| 89 |
+
The group fairness constraint was incorporated into the framework in Kleindessner et al. (2019) by adding the linear constraint (5) to the spectral clustering problem:
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
\begin{array}{l} \max _ {H \in \mathbb {R} ^ {n \times k}} \operatorname {T r} (H ^ {\top} M H) \\ s. t. \quad H ^ {\top} H = I _ {k}, \tag {6} \\ F ^ {\top} H = 0 \\ \end{array}
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
with normalization $F = D^{-1/2}F_0$ , as reviewed in Appendix D.2. We now review existing algorithms for (6).
|
| 96 |
+
|
| 97 |
+
# 2.2.1. O-FSC ALGORITHM
|
| 98 |
+
|
| 99 |
+
The nullspace-based algorithm for solving (6) proposed in Kleindessner et al. (2019) is as follows. Since the columns of $H$ live in the null space of $F^{\top}$ , we can write $H = ZY$ , for some $Y \in \mathbb{R}^{(n - h)\times k}$ , where $Z \in \mathbb{R}^{n\times (n - h)}$ is an orthonormal basis of $\mathrm{null}(F^{\top})$ . Consequently, the optimization problem (6) is equivalent to the following trace maximization where the linear constraints are removed:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\max _ {Y \in \mathbb {R} ^ {(n - h) \times k}} \operatorname {T r} \left(Y ^ {\top} M _ {Z} Y\right) \quad \text {s . t .} \quad Y ^ {\top} Y = I _ {k}, \tag {7}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
with modified affinity $M_Z = Z^\top MZ \in \mathbb{R}^{(n - h) \times (n - h)}$ . By Bach & Jordan (2003), the solution $Y$ is given by the $k$ largest eigenvectors of $M_Z$ by the eigenvalue problem
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
M _ {Z} Y = Y \Lambda , \tag {8}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where $\Lambda = \mathrm{diag}(\lambda_{n - h - k},\dots ,\lambda_{n - h})$ is the diagonal matrix of eigenvalues of $M_Z$ . Finally, the solution to the original problem (6) is recovered as $H = D^{-1 / 2}ZY$ .
|
| 112 |
+
|
| 113 |
+
This algorithm is denoted o-FSC as it is the original algorithm for Fair SC. o-FSC requires two major computational steps. The first one is the explicit computation of the null space of $F^T$ . This can be done by the SVD of $F$ , which has time complexity $\mathcal{O}(nh^2)$ . The second major computational step is the eigenvalue decomposition of $M_Z$ . This step has complexity $\mathcal{O}((n - h)^3)$ . Due to the cubic complexity of eigendecomposition, the o-FSC algorithm is only suitable for small $n$ and is not scalable to real-world datasets.
|
| 114 |
+
|
| 115 |
+
# 2.2.2. S-FSC ALGORITHM
|
| 116 |
+
|
| 117 |
+
In Wang et al. (2023), the authors proposed a more efficient version of the o-FSC algorithm. Wang et al. (2023) rewrite the eigenvalue problem (8) in terms of a new matrix s.t. they can efficiently apply the implicitly restarted Arnoldi method (Sorensen, 1992) for computing eigenpairs. First note that (8) can be rewritten by left-multiplication with $Z$ as
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\left(Z Z ^ {\top} M Z Z ^ {\top}\right) Z Y = Z Y \Lambda , \tag {9}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
as $Z^{\top}Z = I_{n - h}$ . This leads to the following projected eigenvalue problem $A Y' = Y' \Lambda$ , where $A = P M P \in \mathbb{R}^{n \times n}$ with $P = Z Z^{\top}$ and $Y' = Z Y$ . It is possible to show that an eigenvalue/eigenvector pair $(\lambda, y')$ of $A$ , with $\lambda$ being one of its largest $n - h$ eigenvalues, is also an eigenvalue/eigenvector pair of $M_Z$ with $y = Z^{\top}y'$ . Therefore, one can solve Problem (8) by finding the smallest eigenvectors of (9). Note that, for the sake of avoiding the computation of $Z$ , Wang et al. (2023) use the rows of $H' = D^{-1/2}Y'$ instead of $H = D^{-1/2}ZY'$ in the $k$ -means step, with $Y'$ being the top $k$ eigenvectors of $A$ . The complexity of s-FSC for each eigensolver iteration is $O(n^2 + nh^2 + nk^2)$ , with constants depending on the number of required restarts of the Arnoldi method; in general, this depends on the initial vector and properties of $M$ , in particular the distribution of its eigenvalues (Stewart, 2001). While the s-FSC algorithm improves efficiency over o-FSC, its scalability remains limited by the eigendecomposition routine, which in practice exhibits significant computational cost.
|
| 124 |
+
|
| 125 |
+
# 3. Algorithm
|
| 126 |
+
|
| 127 |
+
In this section, we design an ADMM-like algorithm for Fair SC. This is done by reformulating the problem within the difference of convex functions (DC) framework and devising a
|
| 128 |
+
|
| 129 |
+
new variable augmentation allowing efficient dualization of the ADMM subproblem. Our specific construction leads to efficient gradient-based algorithms avoiding the expensive eigendecomposition routines on the $n \times n$ matrices.
|
| 130 |
+
|
| 131 |
+
Difference of convex functions. To leverage the efficiency of DC optimization, we recast Problem 6 as the minimization of a difference of convex functions. However, directly applying DC optimization to Problem 6 would necessitate computing $M^{1/2}$ , a computationally demanding operation akin to solving the original problem. To circumvent this challenge, we formulate our DC problem in terms of $M^2$ instead of $M$ . This choice allows us to bypass the computation of $M^{1/2}$ without sacrificing solution quality, as we will demonstrate empirically that optimizing with $M^2$ yields solutions exhibiting comparable fairness to those obtained with $M$ . Note that in practice we never compute $M^2$ explicitly, as we only need to compute matrix-vector products. Formally, we define $f, g, h: \mathbb{R}^{n \times k} \to \mathbb{R} \cup \{+\infty\}$ as follows:
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
f (H) = \frac {1}{2} \| H \| _ {\mathrm {F}} ^ {2}, g (H) = \iota_ {\mathcal {S} _ {n} ^ {k}} (H),
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
h (H) = \iota_ {\{0 \}} (F ^ {\top} H).
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
Remark 3.1. Here, the orthogonality constraints correspond to belonging to the Stiefel manifold $S_{n}^{k} = \{H \in \mathbb{R}^{n \times k} \mid H^{\top}H = I_{k}\}$ . While the constraint $H \in S_{n}^{k}$ is not itself convex, it can be relaxed into a convex constraint by considering the convex hull of the Stiefel manifold as the solutions necessarily lie on the boundary (Uschmajew, 2010, Lemma 2.7).
|
| 142 |
+
|
| 143 |
+
Using this notation, our proposed DC formulation reads
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\min _ {H \in \mathbb {R} ^ {n \times k}} g (H) + h (H) - f (M H). \tag {10}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
Note that Problem 10 corresponds to solving a modified (6) with $M^2$ instead of $M$ in the cost function. Notice that, without the fairness constraints, (10) reduces to finding the top $k$ eigenvectors of $M^2$ (Bach & Jordan, 2003). While efficient optimization algorithms with DC for the simpler variance-maximization case without fairness constraints (i.e., $h = 0$ ) have been studied in previous work (e.g., in the PCA literature (Thiao et al., 2010; Beck & Teboulle, 2021; Tonin et al., 2023)), the main challenge here is to develop an efficient algorithm that can handle the additional complexity introduced by the fairness constraints. In this work, we derive a dual framework that is amenable to fast gradient-based optimization of (10), as opposed to the eigendecomposition routines used in o-FSC (Kleindessner et al., 2019) and s-FSC (Wang et al., 2023).
|
| 150 |
+
|
| 151 |
+
Novel variable augmentation. To address the Fair SC problem, we propose to first cast the problem into an
|
| 152 |
+
|
| 153 |
+
ADMM framework. The ADMM approach in the context of difference of convex functions has been investigated in, e.g., (Sun et al., 2018a; Chuang et al., 2022; Tu et al., 2020). However, naively applying the existing ADMM algorithms to the Fair SC problem results in intermediate arg min problems that are not easy to solve, involving large matrix inversions. To arrive at efficient solutions, we introduce a novel variable augmentation scheme, where the linear constraint couples the ADMM variable $Y$ with $MH$ instead of directly with $H$ . This specific design choice is crucial for decomposing the problem into a subproblem w.r.t. $H$ that can be efficiently tackled through dualization within the DC framework. Moreover, as we will demonstrate empirically, enforcing fairness on $MH$ instead of $H$ effectively promotes the same group balance. Let us then write (10) with the proposed variable augmentation as a composite function with linear constraints:
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
\min _ {H, Y \in \mathbb {R} ^ {n \times k}} g (H) + h (Y) - f (M H) \quad \text {s . t .} \quad M H = Y. \tag {11}
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+
We form the augmented Lagrangian
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\begin{array}{l} \mathcal {L} (H, Y, P) = g (H) + h (Y) - f (M H) \\ + \langle P, M H - Y \rangle \tag {12} \\ + \frac {\alpha}{2} \| M H - Y \| _ {F} ^ {2}, \\ \end{array}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
where $P$ are the Lagrange multipliers and $\alpha$ is the penalty parameter. The ADMM algorithm corresponds to the following iterations:
|
| 166 |
+
|
| 167 |
+
$$
|
| 168 |
+
H ^ {(i + 1)} = \underset {H \in \mathbb {R} ^ {n \times k}} {\arg \min } \mathcal {L} (H, Y ^ {(i)}, P ^ {(i)}), \tag {13}
|
| 169 |
+
$$
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
Y ^ {(i + 1)} = \underset {Y \in \mathbb {R} ^ {n \times k}} {\arg \min } \mathcal {L} \left(H ^ {(i + 1)}, Y, P ^ {(i)}\right), \tag {14}
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
P ^ {(i + 1)} = P ^ {(i)} + \alpha \left(M H ^ {(i + 1)} - Y ^ {(i + 1)}\right). \tag {15}
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
Our algorithm is summarized in Algorithm 1. The penalty $\alpha^{(i + 1)}$ is updated according to the standard rule suggested in (Boyd et al., 2011) and detailed in Appendix B. We now analyze the two subproblems separately.
|
| 180 |
+
|
| 181 |
+
# 3.1. Subproblem with respect to $H$
|
| 182 |
+
|
| 183 |
+
Our approach to solving Problem (13) consists in the following steps. First, we remark that it can be written as a difference of convex functions. Such problems have been widely studied in the literature (Tao et al., 1986), and in our case dualization is possible and strong duality holds. Next, we solve the dual problem using iterative techniques, as we can provide an explicit form for the corresponding gradient using standard properties of the Fenchel-Legendre conjugates. Finally, we can get back the primal solution that is exactly the solution to Problem (13) by computing the SVD of a well-chosen matrix.
|
| 184 |
+
|
| 185 |
+
Algorithm 1 Proposed ADMM-type method for Fair SC
|
| 186 |
+
Input: affinity matrix $K \in \mathbb{R}^{n \times n}$ ; group matrix $F \in \mathbb{R}^{n \times h}$ ; $k \in \mathbb{N}$ ; $\alpha^{(0)} > 0$
|
| 187 |
+
1: Compute normalized affinity matrix $M = D^{-1/2}KD^{-1/2}$
|
| 188 |
+
2: Initialization $H^{(0)} = 0, Y^{(0)} = 0, P^{(0)} = 0$
|
| 189 |
+
3: $\mathcal{L}_{\alpha}(H, Y, P) = g(H) + h(Y) - f(MH) + \langle P, MH - Y \rangle + \frac{\alpha}{2} \| MH - Y \|_F^2$
|
| 190 |
+
4: for $i = 0, 1, \ldots, T - 1$ do
|
| 191 |
+
5: $H^{(i + 1)} = \arg \min_H \mathcal{L}_{\alpha^{(i)}}(H, Y^{(i)}, P^{(i)})$
|
| 192 |
+
6: $Y^{(i + 1)} = \arg \min_Y \mathcal{L}_{\alpha^{(i)}}(H^{(i + 1)}, Y, P^{(i)})$
|
| 193 |
+
7: $P^{(i + 1)} = P^{(i)} + \alpha^{(i)}(MH^{(i + 1)} - Y^{(i + 1)})$
|
| 194 |
+
8: Update $\alpha^{(i + 1)}$ according to (19)
|
| 195 |
+
9: end for
|
| 196 |
+
10: Apply $k$ -means clustering to the rows of $H' = D^{-\frac{1}{2}}H^{(T)}$
|
| 197 |
+
|
| 198 |
+
Proposition 3.2. Let $\phi: X \mapsto f(X) - \langle P, X \rangle - \frac{\alpha}{2} \|X - Y\|^2$ and assume that $\alpha < 1$ . Then Problem (13) can be written as a DC. Moreover, it holds that
|
| 199 |
+
|
| 200 |
+
$$
|
| 201 |
+
\operatorname *{arg min}_{H\in \mathbb{R}^{n\times k}}\mathcal{L}(H,Y^{(i)},P^{(i)}) = \operatorname *{arg min}_{H\in \mathbb{R}^{n\times k}}g(H) - \phi (MH)
|
| 202 |
+
$$
|
| 203 |
+
|
| 204 |
+
and the dual problem reads
|
| 205 |
+
|
| 206 |
+
$$
|
| 207 |
+
\inf _ {V \in \mathbb {R} ^ {n \times k}} \phi^ {\star} (V) - g ^ {\star} (M V). \tag {16}
|
| 208 |
+
$$
|
| 209 |
+
|
| 210 |
+
Finally, strong duality holds.
|
| 211 |
+
|
| 212 |
+
The condition $\alpha < 1$ is not a limiting assumption as the ADMM is known to converge for small $\alpha$ values (Nocedal & Wright, 1999). To solve (16), we assume that $M$ is full rank, which typically happens when the affinity matrix $K$ comes from positive definite kernels associated with infinite dimensional feature spaces, such as the Gaussian kernel, and the data dataset does not contain any duplicates.
|
| 213 |
+
|
| 214 |
+
This assumption is needed to guarantee the existence of the gradients of the terms of Problem (16) that are detailed in the following proposition.
|
| 215 |
+
|
| 216 |
+
Proposition 3.3. Let $V \in \mathbb{R}^{n \times k}$ , and $A \colon V \mapsto \frac{1}{1 - \alpha}(V + P^{(i)} - \alpha Y^{(i)})$ . Then $\phi^{\star}(V) = \frac{1}{2} \|V\|^2 - \frac{1}{2} \|A(V) - V\|^2 + \frac{\alpha}{2} \left\|A(V) - Y^{(i)}\right\|^2 + \langle P^{(i)}, A(V) \rangle$ and $g^{\star}(MV) = \operatorname{Tr}\left(\sqrt{V^\top M^2 V}\right)$ .
|
| 217 |
+
|
| 218 |
+
Gradient-based techniques for the dual problem. Solving Problem (16) can be done by using iterative gradient-based techniques, as all the quantities involved are easy to compute. Indeed, $\phi^{\star}$ is a quadratic form whose gradient is trivial and, for $g^{\star}(MV)$ , we exploit the fact that its gradient is known in closed-form (Tonin et al., 2023) and expressed through the SVD of the matrix $V^{\top}M^{2}V\in \mathbb{R}^{k\times k}$ ; this SVD
|
| 219 |
+
|
| 220 |
+
is computationally cheap in the context of a relatively small number of clusters. Overall, the computational complexity per iteration associated to the computation of a dual solution $\hat{V}$ is bounded by the sum of: (i) the computation of $V^{\top}M^{2}V$ that scales as $\mathcal{O}(kn^2)$ (ii) the SVD of $V^{\top}M^{2}V$ that costs $\mathcal{O}(k^3)$ (iii) the matrix products for $\nabla g^{\star}(MV)$ in $\mathcal{O}(nk^2 + k^3)$ (iv) the computation of $\nabla \phi^{\star}$ that scales as $\mathcal{O}(nk)$ . In the experiments, we solve Problem (16) using a fast L-BFGS optimization algorithm. Note that $M^2$ is not explicitly computed as one can use the associative property to perform consecutive multiplications, e.g. $V^{\top}M^{2}V$ can be computed as $(V^{\top}M)(MV)$ .
|
| 221 |
+
|
| 222 |
+
Computing the primal solution. Once the dual solution $\hat{V}$ is computed, one can recover the corresponding primal solution $H^{(i + 1)}$ by
|
| 223 |
+
|
| 224 |
+
$$
|
| 225 |
+
\max _ {H \in \mathbb {R} ^ {n \times k}} \langle \hat {V}, M H \rangle \quad \text {s . t .} \quad H ^ {\top} H = I _ {k}. \tag {17}
|
| 226 |
+
$$
|
| 227 |
+
|
| 228 |
+
This step can be performed by $H^{(i + 1)} = LR^{\top}$ computing the SVD of the matrix $\hat{V}^{\top}M = LSR^{\top}$ , with complexity $\mathcal{O}(nk^2)$ .
|
| 229 |
+
|
| 230 |
+
# 3.2. Subproblem with respect to $Y$
|
| 231 |
+
|
| 232 |
+
We now turn to solving Problem (14), i.e.
|
| 233 |
+
|
| 234 |
+
$$
|
| 235 |
+
\underset {Y \in \mathbb {R} ^ {n \times k}} {\arg \min } \frac {\alpha}{2} \left\| M H ^ {(i + 1)} - Y \right\| _ {\mathrm {F}} ^ {2} - \langle P ^ {(i)}, Y \rangle \tag {18}
|
| 236 |
+
$$
|
| 237 |
+
|
| 238 |
+
$$
|
| 239 |
+
\begin{array}{c c} \text {s . t .} & F ^ {\top} Y = 0. \end{array}
|
| 240 |
+
$$
|
| 241 |
+
|
| 242 |
+
The linear constraints can be removed by using a suitable parameterization $Y = QZ$ where $Q \in \mathbb{R}^{n \times (n - h)}$ is the matrix of an orthonormal basis of the nullspace of $F^{\top}$ that can be obtained from the SVD of $F$ similarly to the technique employed in Section 2.2.1. Then $Z \in \mathbb{R}^{(n - h) \times k}$ is the new variable, resulting in the problem in $Z$ without linear constraints. The problem is solved by nullifying the gradient in closed-form solution, i.e., $\hat{Z} = Q^{\top} MH^{(i + 1)} + \frac{1}{\alpha} Q^{\top} P^{(i)}$ and $Y^{(i + 1)} = Q\hat{Z}$ . The computational complexity in this step is dominated by matrix-vector products in $\mathcal{O}(kn^2)$ and by the SVD of $F$ in $\mathcal{O}(nh^2)$ . We note that this SVD is in practice fast as $h$ is typically very small.
|
| 243 |
+
|
| 244 |
+
Complexity analysis. The complete ADMM-like algorithm is summarized in Algorithm 1. The runtime is dominated by matrix multiplication applying $M$ to an $n \times k$ matrix (i.e., the $H$ variable and its dual $V$ ), with complexity $\mathcal{O}(n^2 k)$ , where typically $k \ll n$ . The improvement is therefore in the efficiency of the core operations. In fact, while for an $n \times n$ matrix both matrix multiplication and matrix eigendecomposition have the same $\mathcal{O}(n^3)$ complexity, the former is much more efficient in practice. The proposed efficient gradient-based algorithm avoids the eigendecomposition routines and is shown to achieve significantly higher computational efficiency in practice in Section 4.
|
| 245 |
+
|
| 246 |
+
Table 1: m-SBM. Runtime and balance for m-SBM benchmark with $k = {50},h = 5$ and varying $n$ .
|
| 247 |
+
|
| 248 |
+
<table><tr><td>n</td><td>Metric</td><td>o-FSC</td><td>s-FSC</td><td>Ours</td></tr><tr><td rowspan="2">5000</td><td>Time (s)</td><td>96.39</td><td>75.61</td><td>3.29</td></tr><tr><td>Balance</td><td>1.00</td><td>1.00</td><td>1.00</td></tr><tr><td rowspan="2">7500</td><td>Time (s)</td><td>235.62</td><td>88.99</td><td>5.29</td></tr><tr><td>Balance</td><td>1.0</td><td>1.0</td><td>1.0</td></tr><tr><td rowspan="2">10000</td><td>Time (s)</td><td>495.70</td><td>107.94</td><td>9.19</td></tr><tr><td>Balance</td><td>1.0</td><td>1.0</td><td>1.0</td></tr></table>
|
| 249 |
+
|
| 250 |
+
Convergence analysis. While ADMM convergence is well-established for convex problems (Eckstein & Bertsekas, 1992; Boyd et al., 2011), obtaining convergence results for nonconvex problems is an active area of research. Existing results rely on problem-specific assumptions such as in the nonconvex consensus setting (Hong et al., 2016), or require structural properties such as bounded Hessians (Li & Pong, 2015) or continuity (Wang et al., 2019) preventing their direct application to Problem 6. Other works (Sun et al., 2018b; Pham et al., 2024) exploit the difference of convex functions structure but are limited to differentiable convex functions $h$ with Lipschitz continuous gradient. Finally, another line of works relies on making additional assumptions on the sequence of iterates (Shen et al., 2014; Jiang et al., 2014; Magnusson et al., 2016), yielding weaker results. In particular, applying Proposition 3 from Magnusson et al. (2016) to (11), we characterize the convergence of the ADMM algorithm as specified in the following proposition, whose formal details can be found in Appendix D.1.
|
| 251 |
+
|
| 252 |
+
Proposition 3.4. Provided that the sequence of dual variables $P^{(i)}$ generated by Algorithm 1 converges, any limit point $(H^*, Y^*)$ of the primal sequence $(H^{(i)}, Y^{(i)})$ satisfies the first-order conditions.
|
| 253 |
+
|
| 254 |
+
The proof of Proposition 3.4 relies on (i) Problem (11) having finitely defined closed constraints sets, (ii) local solutions for subproblems, and (iii) limit solutions enjoying a regular set of constraint gradient vectors. Beyond theoretical guarantees, ADMM algorithms have been successfully applied to a wide array of nonconvex problems in machine learning, e.g., (Xu et al., 2012; Sun & Fevotte, 2014). Empirical evidence on a wide range of tasks for both synthetic and real-world datasets presented in the next section demonstrates the strong practical performances of Algorithm 1.
|
| 255 |
+
|
| 256 |
+
# 4. Numerical Experiments
|
| 257 |
+
|
| 258 |
+
Through numerical evaluations on both synthetic and real-world datasets, we show the efficiency of the proposed ADMM-type algorithm with DC dualization for Fair SC. We compare with the original Fair SC algorithm (o-FSC)
|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
Figure 2: Fair clustering of Elliptical dataset. The clustering label is represented by different colors, and sensitive attributes by shapes. The legend is "C-i, G-j" for Cluster-i, Group-j. These plots show that our method produces assignments comparable to exact algorithms (o-FSC, s-FSC). Critically, we achieve this with reduced computations.
|
| 262 |
+
|
| 263 |
+
Table 2: Real-world data. Runtime for multiple Fair SC real-world problems with $k = 25$ .
|
| 264 |
+
|
| 265 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">n</td><td colspan="3">Time (s)</td></tr><tr><td>o-FSC</td><td>s-FSC</td><td>Ours</td></tr><tr><td>LastFMNet</td><td>5576</td><td>103.82</td><td>19.08</td><td>4.59</td></tr><tr><td>Thyroid</td><td>7200</td><td>279.03</td><td>30.49</td><td>7.38</td></tr><tr><td>Census</td><td>32561</td><td>-</td><td>136.60</td><td>15.78</td></tr><tr><td>4area</td><td>35385</td><td>-</td><td>166.92</td><td>25.85</td></tr></table>
|
| 266 |
+
|
| 267 |
+
(Kleindessner et al., 2019) and its state-of-the-art scalable extension (s-FSC) (Wang et al., 2023). We apply the proposed algorithm to problems of different sizes, quantify the fairness of the computed clusters, and compare solutions with exact methods. We also study the effect of the number of clusters $k$ on runtime and conduct a sensitivity analysis on the penalty parameter $\alpha$ . Experiments are implemented in Python 3.10 on a machine with a 3.6GHz Intel i7-9700K processor and 64GB RAM.
|
| 268 |
+
|
| 269 |
+
Datasets. We consider the following synthetic datasets: mSBM, RandLaplace, and Elliptical. The m-SBM benchmark (Kleindessner et al., 2019) is a modification of the stochastic block model (Holland et al., 1983) to take fairness into account. It has ground-truth perfectly fair clustering, where the $n$ nodes are partitioned in $h$ groups and assigned to a fixed fair clustering with $k$ clusters. In the experiments, we vary $n$ and set $k = 50$ , $h = 5$ and edge connectivity probability as $(\frac{\log n}{n})^{1/10}$ . The RandLaplace dataset is a graph induced by a random $n \times n$ symmetric adjacency matrix $W$ with each node randomly assigned to one of $h = 2$ groups. Elliptical has $k = 2$ clusters and $h = 2$ groups, as defined in (Feng et al., 2024). We consider the following real-world datasets, summarized in Table 10 in Appendix. LastFMNet
|
| 270 |
+
|
| 271 |
+
(Rozemberczki & Sarkar, 2020) $(n = 5576, h = 6)$ is the graph of follower relationship between users of the Last.fm website; the groups correspond to different nationalities. Thyroid (Quinlan, 1987) $(n = 7200, h = 3)$ contains 21 attributes of patients divided into three groups: not hypothyroid, hyperfunction, and subnormal functioning. Census (Kohavi et al., 1996) $(n = 32561, h = 7)$ contains 12 attributes from 1994 US census data, with 7 groups representing demographic categories. 4area (Ahmadian et al., 2019) $(n = 35385, h = 4)$ represents researchers from four areas of computer science: data mining, machine learning, databases, and information retrieval. The RBF kernel is used for Thyroid, Census, and 4area, while the remaining datasets are given as graphs through Remark 2.3.
|
| 272 |
+
|
| 273 |
+
Metrics. The average balance, as introduced in Chierichetti et al. (2017), is used to measure how fair a clustering is; it is the average over all clusters of (3). It is a value in $[0, 1]$ , where a value of 1 corresponds to a perfectly fair clustering, i.e., (4) holds. Note that our approach follows the established line of works on fair spectral clustering, which do not provide guarantees in the general case on the balance of the clustering given by (6), as discussed in Kleindessner et al. (2019), similarly to how the relaxed spectral clustering only approximates the optimal normalized cut solution (Shi & Malik, 2000). All reported running times are averaged over 5 trials. Additional results and detailed setups are provided in Appendix A and B.
|
| 274 |
+
|
| 275 |
+
# 4.1. Experimental results
|
| 276 |
+
|
| 277 |
+
Synthetic benchmarks. In this experiment, we compute the Fair SC solution on the m-SBM benchmark (Kleindessner et al., 2019) to evaluate the performance and efficiency of our proposed method. The results are presented in Table 1. The experiment is carried out for sample sizes $n \in \{5000, 7500, 10000\}$ . Our method consistently outperforms both o-FSC and s-FSC in runtime. For instance, at $n = 10000$ , our method is approximately 54 times faster than o-FSC and 12 times faster than s-FSC. In terms of average balance, recall that Problem 6 is able to recover the ground-truth fair clustering in m-SBM (Kleindessner et al., 2019). This is confirmed in the experiments, where the balance is consistently 1.0 for all three methods across sample sizes, demonstrating that all methods equally respect the fairness constraints. We also consider the Elliptical dataset (Feng et al., 2024) ( $k = 2, h = 2$ ) and visualize the found clustering in Figure 2, showing that our method achieves comparable labels to the exact algorithms.
|
| 278 |
+
|
| 279 |
+
Real-world data. We now test on real-world datasets to compare the performance of our proposed method with oFSC (Kleindessner et al., 2019) and s-FSC (Wang et al., 2023). The runtime of the algorithms was measured for a
|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
(a) LastFMNet
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
(b) 4area
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
Figure 3: Runtime and fairness across $k$ . Fair SC on real-word datasets (a) LastFMNet, (b) 4area with s-FSC (Wang et al., 2023) (blue) and the proposed algorithm (orange). In each dataset, the left plot shows the runtime comparison and the right plot shows the average balance, for multiple numbers $k$ of clusters. Left plots show that our method is consistently faster than s-FSC, with even better efficiency gains as $k$ increases. Right plots compare the balance achieved by both methods, showing our method maintains the fairness in terms of balance of the exact algorithm.
|
| 291 |
+
|
| 292 |
+
Fair SC problem with $k = 25$ clusters. As shown in Table 2, our method consistently outperforms both o-FSC and s-FSC in terms of runtime across all datasets. For instance, on the LastFMNet dataset with $n = 5576$ , our method shows a runtime of 4.59 seconds, which is significantly faster than both o-FSC (103.82 seconds) and s-FSC (19.08 seconds). Similar trends are observed for the other datasets, with our method achieving even higher speedups for larger datasets. For example, on the 4 area dataset with $n = 35385$ , our method takes 25.85 seconds compared to 166.92 seconds by s-FSC. Overall, o-FSC cannot complete the task within 500 seconds for the larger datasets (Census and 4 area), and s-FSC takes considerably longer than our method.
|
| 293 |
+
|
| 294 |
+
Figure 3 compares runtime and average balance of the computed clustering by our method and s-FSC across multiple numbers of clusters $k \in [2,50]$ on LastFMNet and 4area datasets. In terms of runtime, we observe that our method scales better in $k$ than s-FSC, especially in LastFMNet. This
|
| 295 |
+
|
| 296 |
+

|
| 297 |
+
Figure 4: Scalability. Runtime (in seconds) of our algorithm, s-FSC, and o-FSC on RandLaplace at multiple sample sizes $n \in \{5000, 7500, 10000\}$ with $h = 5$ and $k \in \{10, 25, 50\}$ .
|
| 298 |
+
|
| 299 |
+

|
| 300 |
+
Ours s-FSC o-FSC
|
| 301 |
+
|
| 302 |
+

|
| 303 |
+
|
| 304 |
+
Table 3: Comparison of clustering cost, balance, and time speedup vs. exact algorithm.
|
| 305 |
+
|
| 306 |
+
<table><tr><td>Dataset</td><td>Method</td><td>Clustering</td><td>Balance</td><td>Time</td></tr><tr><td rowspan="2">LastFM</td><td>s-FSC</td><td>1.057±.063</td><td>0.0105±.0020</td><td>4.16×</td></tr><tr><td>Ours</td><td>1.086±.074</td><td>0.0093±.0015</td><td>1×</td></tr><tr><td rowspan="2">Thyroid</td><td>s-FSC</td><td>0.353±.020</td><td>0.0029±.0005</td><td>4.13×</td></tr><tr><td>Ours</td><td>0.353±.018</td><td>0.0030±.0004</td><td>1×</td></tr><tr><td rowspan="2">Census</td><td>s-FSC</td><td>134.539±3.667</td><td>0.0004±.0001</td><td>8.65×</td></tr><tr><td>Ours</td><td>130.973±14.371</td><td>0.0004±.0001</td><td>1×</td></tr><tr><td rowspan="2">4area</td><td>s-FSC</td><td>235.268±6.084</td><td>0.3884±.0150</td><td>6.45×</td></tr><tr><td>Ours</td><td>242.000±10.303</td><td>0.3823±.0200</td><td>1×</td></tr></table>
|
| 307 |
+
|
| 308 |
+
trend shows that more iterations are needed for convergence of the additional eigenvectors in the eigendecomposition routines, while our method involves the computation of the SVD of a small $k \times k$ matrix; in the context of a small number of clusters, this SVD is computationally cheap. The plots for each dataset show that our method offers a more efficient solution for Fair SC on multiple real-world datasets while achieving comparable average balance than the competing exact algorithm.
|
| 309 |
+
|
| 310 |
+
We compare our method with the exact approach using eigendecomposition (s-FSC) in Table 3, where we report the clustering cost, a standard metric to evaluate spectral clustering (Shi & Malik, 2000), i.e., $\mathrm{Tr}(\hat{H}^{\top}M\hat{H})$ where $\hat{H}$ is computed from the 0-1 clustering indicator matrix obtained by applying $k$ -means on $H$ . The results show that our method consistently achieves comparable clustering costs and balance to the exact eigendecomposition approach across all datasets at a fraction of the runtime, with speedups
|
| 311 |
+
|
| 312 |
+
Table 4: Comparison with methods FFSC and UFSC using different objectives for fair spectral clustering. Time is in seconds, "Cost" is the clustering cost, "Fairn." indicates the fairness constraint $\left\| F^{\top}H\right\|^{2}$ , and "Ortho." indicates the orthogonality constraint $\left\| H^{\top}H - I\right\|^{2}$ . Our method is significantly faster than both methods, while consistently achieving better fairness and orthogonality than FFSC.
|
| 313 |
+
|
| 314 |
+
<table><tr><td>Dataset</td><td>Method</td><td>Time (↓)</td><td>Cost (↓)</td><td>Balance (↑)</td><td>Fairn. (↓)</td><td>Ortho. (↓)</td></tr><tr><td rowspan="3">LastFM</td><td>FFSC</td><td>33.74</td><td>1067.91</td><td>0.2701</td><td>4.032</td><td>3.91E+00</td></tr><tr><td>UFSC</td><td>16.36</td><td>3.54</td><td>0.016</td><td>1.21E-24</td><td>4.13E-13</td></tr><tr><td>Ours</td><td>4.59</td><td>1.09</td><td>0.0093</td><td>0.000014</td><td>1.36E-11</td></tr><tr><td rowspan="3">Thyroid</td><td>FFSC</td><td>56.11</td><td>3080.85</td><td>0.0170</td><td>15.79</td><td>1.02E+01</td></tr><tr><td>UFSC</td><td>95.08</td><td>0.94</td><td>0.0026</td><td>1.25E-24</td><td>3.77E-10</td></tr><tr><td>Ours</td><td>7.38</td><td>0.35</td><td>0.0030</td><td>0.000001</td><td>2.18E-11</td></tr><tr><td rowspan="3">Census</td><td>FFSC</td><td>193.92</td><td>146669.89</td><td>0.0051</td><td>9.47</td><td>2.14E+00</td></tr><tr><td>UFSC</td><td></td><td></td><td>timed out</td><td></td><td></td></tr><tr><td>Ours</td><td>15.78</td><td>130.97</td><td>0.0004</td><td>0.000012</td><td>4.12E-10</td></tr><tr><td rowspan="3">4area</td><td>FFSC</td><td>237.35</td><td>285174.39</td><td>0.6403</td><td>58.30</td><td>2.66E+00</td></tr><tr><td>UFSC</td><td></td><td></td><td>timed out</td><td></td><td></td></tr><tr><td>Ours</td><td>25.85</td><td>242.00</td><td>0.3823</td><td>0.000001</td><td>4.22E-10</td></tr></table>
|
| 315 |
+
|
| 316 |
+
between $4 - 8\times$ faster than SOTA (Wang et al., 2023).
|
| 317 |
+
|
| 318 |
+
Scalability in RandLaplace. We use the RandLaplace dataset to illustrate the scalability of our method. Figure 4 presents the runtime of our method, s-FSC, and o-FSC for different sample sizes $n$ ranging from 5000 to 10000 with varying numbers of clusters $k \in \{10,25,50\}$ . Our method requires less time than both compared methods across all clusters and sample sizes. These findings suggest that our method better scales with increasing sample size and cluster numbers, demonstrating the practicality of our method for real-world problems of varying sizes.
|
| 319 |
+
|
| 320 |
+
Table 5: Sensitivity analysis of penalty parameter $\alpha$ .
|
| 321 |
+
|
| 322 |
+
<table><tr><td>α</td><td>Iter.</td><td>Cost</td><td>Bal.</td><td>Fairn. Constr.</td><td>Ortho. Constr.</td></tr><tr><td>0.005</td><td>9.0±.63</td><td>25.98±.004</td><td>1.0±.0</td><td>7.82e-08±5.49e-08</td><td>1.05e-14±6.55e-16</td></tr><tr><td>0.01</td><td>7.6±.49</td><td>25.99±.001</td><td>1.0±.0</td><td>8.86e-08±1.82e-08</td><td>1.07e-14±5.55e-16</td></tr><tr><td>0.05</td><td>6.6±.49</td><td>26.09±.001</td><td>1.0±.0</td><td>2.30e-07±7.82e-08</td><td>1.02e-14±6.73e-16</td></tr><tr><td>0.1</td><td>5.4±.49</td><td>26.06±.001</td><td>1.0±.0</td><td>1.27e-06±5.84e-07</td><td>9.92e-15±5.66e-16</td></tr></table>
|
| 323 |
+
|
| 324 |
+
Comparative analysis with other spectral methods. We compare with different formulations of spectral clustering with fairness constraints that deviate from (6) for comprehensive analysis. In particular, FFSC (Feng et al., 2024) and UFSC (Zhang & Wang, 2024) do not adopt the problem of (Kleindessner et al., 2019). FFSC instead introduces fairness by changing the SC objective with a different regularization term. UFSC learns an induced fairer graph where eigendecomposition is applied. Comparative results are shown in Table 4. Our method is $7 - 12 \times$ faster and achieves significantly better spectral clustering cost. FFSC's modified objective shows a different balance-clustering trade-off with higher balance but worse clustering and group fairness. Note the two different measures of fairness, where balance promotes same number of individuals in each cluster (3), and group fairness ensures proportional representation (4). Overall, these methods' solutions are far from the exact one of (6) leading to higher spectral cost, potential instability when orthogonality is not enforced, and longer runtimes.
|
| 325 |
+
|
| 326 |
+
Sensitivity analysis of $\alpha$ . We conduct a sensitivity analysis of our algorithm w.r.t. the ADMM penalty parameter $\alpha$ . Table 5 presents key indicators obtained on the RandLaplace dataset with $n = 1000$ , $k = 25$ over 5 runs, detailing how varying the initial $\alpha$ influences the number of ADMM iterations, the final objective cost, the attained balance, and the final feasibility of the orthogonality and linear fairness constraints. All tested $\alpha$ values lead to solutions with similar final cost and constraint satisfaction, as well as perfect balance (1.0) for the studied dataset. This observation suggests that our algorithm is robust to changes in $\alpha$ . As $\alpha$ increases, the faster convergence due to higher penalty on primal feasibility comes at the cost of slightly worse fairness constraint satisfaction. Given this slight decrease with larger $\alpha$ , in our experiments we opt for a smaller $\alpha^{(0)} = 0.005$ and update it as detailed in Appendix B.
|
| 327 |
+
|
| 328 |
+
# 5. Conclusion
|
| 329 |
+
|
| 330 |
+
We design a significantly faster algorithm for Fair SC than previous state-of-the-art. Our main contributions lie in $(i)$ reformulating the Fair SC problem into a differences of convex functions problem where we avoid expensive matrix routines using $M^2$ instead of $M^{1 / 2}$ , and $(ii)$ showing that the ADMM subproblems can be solved efficiently, thanks to the DC dualization enabled by our design choice of includ-
|
| 331 |
+
|
| 332 |
+
ing the fairness constraints as $MH$ instead of $H$ . Empirical evaluations show significant speedups with comparable clustering and fairness metrics to exact algorithms. Future works include investigating model-based formulations within kernel-based settings and applying our framework to more general constrained spectral clustering by accommodating other constraints whenever the DC formulation is maintained. For example, it might be possible to extend our framework to constrained spectral clustering, e.g., linear constraints for must-link and cannot-link constraints, by considering a modified indicator function $h(\cdot)$ , accommodating other constraints or fairness metrics as DC functions. ADMM could then be applied with appropriate modifications to the subproblem w.r.t. $Y$ .
|
| 333 |
+
|
| 334 |
+
# Impact Statement
|
| 335 |
+
|
| 336 |
+
A faster fair spectral clustering algorithm can have a significantly positive societal impact as it can facilitate a more widespread adoption of fairer clusterings in applications with larger real-word datasets. The approach presented in this paper aims at advancing the field of Machine Learning. No other potential societal consequences of our work are deemed necessary to specifically highlight here.
|
| 337 |
+
|
| 338 |
+
# Acknowledgements
|
| 339 |
+
|
| 340 |
+
LIONS-EPFL was supported by Hasler Foundation Program: Hasler Responsible AI (project number 21043). LIONS-EPFL was sponsored by the ARO under Grant Number W911NF-24-1-0048. LIONS-EPFL was supported by the Swiss National Science Foundation (SNSF) under grant number 200021_205011. ESAT-STADIUS was supported by the Flemish Government (AI Research Program); iBOF/23/064; KU Leuven C1 project C14/24/103.
|
| 341 |
+
|
| 342 |
+
# References
|
| 343 |
+
|
| 344 |
+
Agarwal, A., Dudík, M., and Wu, Z. S. Fair regression: Quantitative definitions and reduction-based algorithms. In International Conference on Machine Learning (ICML), pp. 120-129. PMLR, 2019.
|
| 345 |
+
Aghaei, S., Azizi, M. J., and Vayanos, P. Learning optimal and fair decision trees for non-discriminative decision-making. In International Conference on Artificial Intelligence and Statistics (AISTATS), volume 33, pp. 1418-1426, 2019.
|
| 346 |
+
Ahmadian, S., Epasto, A., Kumar, R., and Mahdian, M. Clustering without over-representation. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2019.
|
| 347 |
+
Ali, J., Kleindessner, M., Wenzel, F., Budhathoki, K.,
|
| 348 |
+
|
| 349 |
+
Cevher, V., and Russell, C. Evaluating the fairness of discriminative foundation models in computer vision. In Proceedings of the 2023 AAAI/ACM Conference on AI, Ethics, and Society, pp. 809-833, 2023.
|
| 350 |
+
Alzate, C. and Suykens, J. A. Multiway spectral clustering with out-of-sample extensions through weighted kernel PCA. IEEE Transactions on Pattern Analysis and Machine Intelligence (T-PAMI), 32(2):335-347, 2008.
|
| 351 |
+
Amini, A., Soleimany, A. P., Schwarting, W., Bhatia, S. N., and Rus, D. Uncovering and mitigating algorithmic bias through learned latent structure. In Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society, pp. 289-295, 2019.
|
| 352 |
+
Bach, F. and Jordan, M. Learning spectral clustering. In Advances in Neural Information Processing Systems (NeurIPS), volume 16. MIT Press, 2003.
|
| 353 |
+
Backurs, A., Indyk, P., Onak, K., Schieber, B., Vakilian, A., and Wagner, T. Scalable fair clustering. In International Conference on Machine Learning (ICML), pp. 405-413. PMLR, 2019.
|
| 354 |
+
Beck, A. and Teboulle, M. Dual randomized coordinate descent method for solving a class of nonconvex problems. SIAM Journal on Optimization, 31(3):1877-1896, 2021.
|
| 355 |
+
Bera, S., Chakrabarty, D., Flores, N., and Negahbani, M. Fair Algorithms for Clustering. In Advances in Neural Information Processing Systems (NeurIPS), volume 32. Curran Associates, Inc., 2019a.
|
| 356 |
+
Bera, S., Chakrabarty, D., Flores, N., and Negahbani, M. Fair algorithms for clustering. volume 32, 2019b.
|
| 357 |
+
Bishop, C. M. and Nasrabadi, N. M. Pattern recognition and machine learning, volume 4. Springer, 2006.
|
| 358 |
+
Boyd, S., Parikh, N., Chu, E., Peleato, B., Eckstein, J., et al. Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine learning, 3(1):1-122, 2011.
|
| 359 |
+
Buolamwini, J. and Gebru, T. Gender shades: Intersectional accuracy disparities in commercial gender classification. In Conference on fairness, accountability and transparency, pp. 77-91. PMLR, 2018.
|
| 360 |
+
Carreira-Perpinan, M. A. and Wang, W. The k-modes algorithm for clustering. arXiv preprint arXiv:1304.6478, 2013.
|
| 361 |
+
Celis, E., Keswani, V., Straszak, D., Deshpande, A., Kathuria, T., and Vishnoi, N. Fair and diverse dpp-based data summarization. In International Conference on Machine Learning (ICML), pp. 716-725. PMLR, 2018.
|
| 362 |
+
|
| 363 |
+
Chierichetti, F., Kumar, R., Lattanzi, S., and Vassilvitskii, S. Fair Clustering Through Fairlets. In Advances in Neural Information Processing Systems (NeurIPS), volume 30. Curran Associates, Inc., 2017.
|
| 364 |
+
Chouldechova, A. and Roth, A. A snapshot of the frontiers of fairness in machine learning. Communications of the ACM, 63(5):82-89, 2020.
|
| 365 |
+
Chuang, C.-S., He, H., and Zhang, Z. A unified Douglas-Rachford algorithm for generalized DC programming. Journal of Global Optimization, 82(2):331-349, 2022.
|
| 366 |
+
Davidson, I. and Ravi, S. Making existing clusterings fairer: Algorithms, complexity results and insights. In International Conference on Artificial Intelligence and Statistics (AISTATS), volume 34, pp. 3733-3740, 2020.
|
| 367 |
+
Donini, M., Oneto, L., Ben-David, S., Shawe-Taylor, J. S., and Pontil, M. Empirical risk minimization under fairness constraints. volume 31, 2018.
|
| 368 |
+
Dwork, C., Hardt, M., Pitassi, T., Reingold, O., and Zemel, R. Fairness through awareness. In Proceedings of the 3rd innovations in theoretical computer science conference, pp. 214-226, 2012.
|
| 369 |
+
Eckstein, J. and Bertsekas, D. P. On the Douglas-Rachford splitting method and the proximal point algorithm for maximal monotone operators. Mathematical Programming, 55(1-3):293-318, 1992.
|
| 370 |
+
Feng, R., Zhong, C., and Pan, T. Fair spectral clustering based on coordinate descent. Symmetry, 17(1):12, 2024.
|
| 371 |
+
Hardt, M., Price, E., and Srebro, N. Equality of opportunity in supervised learning. volume 29, 2016.
|
| 372 |
+
Holland, P. W., Laskey, K. B., and Leinhardt, S. Stochastic blockmodels: First steps. Social Networks, 5(2):109-137, 1983. ISSN 0378-8733.
|
| 373 |
+
Hong, M., Luo, Z.-Q., and Razaviyayn, M. Convergence analysis of alternating direction method of multipliers for a family of nonconvex problems. SIAM Journal on Optimization, 26(1):337-364, 2016.
|
| 374 |
+
Jiang, B., Ma, S., and Zhang, S. Alternating direction method of multipliers for real and complex polynomial optimization models. Optimization, 63(6):883-898, 2014.
|
| 375 |
+
Kleindessner, M., Samadi, S., Awasthi, P., and Morgenstern, J. Guarantees for Spectral Clustering with Fairness Constraints. In International Conference on Machine Learning (ICML), pp. 3458-3467. PMLR, May 2019.
|
| 376 |
+
|
| 377 |
+
Kohavi, R. et al. Scaling up the accuracy of naive-bayes classifiers: A decision-tree hybrid. In KDD, volume 96, pp. 202-207, 1996.
|
| 378 |
+
Le Thi, H. A. and Pham Dinh, T. Dc programming and dca: thirty years of developments. Mathematical Programming, 169(1):5-68, 2018.
|
| 379 |
+
Le Thi, H. A., Le, H. M., and Pham Dinh, T. Feature selection in machine learning: an exact penalty approach using a difference of convex function algorithm. Machine Learning, 101:163-186, 2015.
|
| 380 |
+
Li, G. and Pong, T. K. Global Convergence of Splitting Methods for Nonconvex Composite Optimization. SIAM Journal on Optimization, 25(4):2434-2460, January 2015.
|
| 381 |
+
Magnusson, S., Weeraddana, P. C., Rabbat, M. G., and Fischione, C. On the Convergence of Alternating Direction Lagrangian Methods for Nonconvex Structured Optimization Problems. IEEE Transactions on Control of Network Systems, 3(3):296-309, 2016.
|
| 382 |
+
Nocedal, J. and Wright, S. J. Numerical optimization. Springer, 1999.
|
| 383 |
+
Pham, T. N., Dao, M. N., Eberhard, A., and Sultanova, N. Bregman Proximal Linearized ADMM for Minimizing Separable Sums Coupled by a Difference of Functions. Journal of Optimization Theory and Applications, 203(2): 1622-1658, 2024.
|
| 384 |
+
Piot, B., Geist, M., and Pietquin, O. Difference of convex functions programming for reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), volume 27. Curran Associates, Inc., 2014.
|
| 385 |
+
Quinlan, R. Thyroid Disease. UCI Machine Learning Repository, 1987. DOI: https://doi.org/10.24432/C5D010.
|
| 386 |
+
Rösner, C. and Schmidt, M. Privacy preserving clustering with constraints. In ICALP, 2018.
|
| 387 |
+
Rozemberczki, B. and Sarkar, R. Characteristic functions on graphs: Birds of a feather, from statistical descriptors to parametric models. In Proceedings of the 29th ACM international conference on information & knowledge management, pp. 1325-1334, 2020.
|
| 388 |
+
Samadi, S., Tantipongpipat, U., Morgenstern, J. H., Singh, M., and Vempala, S. The price of fair pca: One extra dimension. In Advances in Neural Information Processing Systems (NeurIPS), volume 31. Curran Associates, Inc., 2018.
|
| 389 |
+
Shen, Y., Wen, Z., and Zhang, Y. Augmented Lagrangian alternating direction method for matrix separation based
|
| 390 |
+
|
| 391 |
+
on low-rank factorization. Optimization Methods and Software, 29(2):239-263, 2014.
|
| 392 |
+
Shi, J. and Malik, J. Normalized cuts and image segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence (T-PAMI), 22(8):888-905, 2000.
|
| 393 |
+
Singh, H., Kleindessner, M., Cevher, V., Chunara, R., and Russell, C. When do minimax-fair learning and empirical risk minimization coincide? In International Conference on Machine Learning (ICML), pp. 31969-31989. PMLR, 2023.
|
| 394 |
+
Sorensen, D. C. Implicit application of polynomial filters in ak-step arnoldi method. SIAM Journal on Matrix Analysis and Applications, 13(1):357-385, 1992.
|
| 395 |
+
Stewart, G. W. Matrix Algorithms: Volume II: Eigensystems. SIAM, 2001.
|
| 396 |
+
Sun, D. L. and Fevotte, C. Alternating direction method of multipliers for non-negative matrix factorization with the beta-divergence. pp. 6201-6205. IEEE, 2014.
|
| 397 |
+
Sun, T., Yin, P., Cheng, L., and Jiang, H. Alternating direction method of multipliers with difference of convex functions. Advances in Computational Mathematics, 44 (3):723-744, June 2018a.
|
| 398 |
+
Sun, T., Yin, P., Cheng, L., and Jiang, H. Alternating direction method of multipliers with difference of convex functions. Advances in Computational Mathematics, 44 (3):723-744, 2018b.
|
| 399 |
+
Tao, P. D. et al. Algorithms for solving a class of nonconvex optimization problems. methods of subgradients. In North-Holland Mathematics Studies, volume 129, pp. 249-271. Elsevier, 1986.
|
| 400 |
+
Thiao, M., Tao, P. D., and An, L. A DC programming approach for sparse eigenvalue problem. In International Conference on Machine Learning (ICML), pp. 1063-1070, 2010.
|
| 401 |
+
Tonin, F., Lambert, A., Patrinos, P., and Suykens, J. Extending kernel PCA through dualization: Sparsity, robustness and fast algorithms. In International Conference on Machine Learning (ICML), 2023.
|
| 402 |
+
Tu, K., Zhang, H., Gao, H., and Feng, J. A hybrid Bregman alternating direction method of multipliers for the linearly constrained difference-of-convex problems. Journal of Global Optimization, 76(4):665-693, 2020.
|
| 403 |
+
Uschmajew, A. Well-posedness of convex maximization problems on stiefel manifolds and orthogonal tensor product approximations. Numerische Mathematik, 115:309-331, 2010.
|
| 404 |
+
|
| 405 |
+
Von Luxburg, U. A tutorial on spectral clustering. Statistics and Computing, 17(4):395-416, 2007.
|
| 406 |
+
Wang, J., Lu, D., Davidson, I., and Bai, Z. Scalable Spectral Clustering with Group Fairness Constraints. In International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 6613-6629. PMLR, April 2023.
|
| 407 |
+
Wang, Y., Yin, W., and Zeng, J. Global Convergence of ADMM in Nonconvex Nonsmooth Optimization. Journal of Scientific Computing, 78(1):29-63, 2019.
|
| 408 |
+
Xu, Y., Yin, W., Wen, Z., and Zhang, Y. An alternating direction algorithm for matrix completion with nonnegative factors. Frontiers of Mathematics in China, 7:365-384, 2012.
|
| 409 |
+
Zafar, M. B., Valera, I., Rodriguez, M. G., and Gummadi, K. P. Fairness Constraints: Mechanisms for Fair Classification. In International Conference on Artificial Intelligence and Statistics (AISTATS), volume 54, pp. 962-970. PMLR, 2017.
|
| 410 |
+
Zhang, X. and Wang, Q. A dual laplacian framework with effective graph learning for unified fair spectral clustering. Neurocomputing, 601:128210, 2024.
|
| 411 |
+
|
| 412 |
+
# A. Additional experimental results
|
| 413 |
+
|
| 414 |
+
# A.1. Real-world data
|
| 415 |
+
|
| 416 |
+
LastFMNet
|
| 417 |
+

|
| 418 |
+
s-FSC - - - Ours
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
|
| 422 |
+
Thyroid
|
| 423 |
+
Figure 6: Fair spectral clustering on Thyroid with s-FSC (Wang et al., 2023) (blue) and the proposed algorithm (orange). The plot uses the same structure as Figure 3 in the main body.
|
| 424 |
+

|
| 425 |
+
s-FSC - - - Ours
|
| 426 |
+
|
| 427 |
+

|
| 428 |
+
Figure 5: Fair spectral clustering on LastFMNet with s-FSC (Wang et al., 2023) (blue) and the proposed algorithm (orange). The plot uses the same structure as Figure 3 in the main body.
|
| 429 |
+
|
| 430 |
+
In this experiment, we evaluate the runtime and average balance of the proposed algorithm for Fair SC on the real-world datasets summarized in Table 10. The affinity graphs for Thyroid, Census, and 4area are obtained by a radial basis function (RBF) kernel $k(x_{i},x_{j}) = \exp (-\gamma \| x_{i} - x_{j}\|^{2})$ , where $\gamma = 1 / d$ and $\gamma = 1 / d*0.01$ for the smaller Thyroid, with $x_{i}\in \mathbb{R}^{d}$ , $i = 1,\dots ,n$ . We compare with the fastest available Fair SC algorithm, i.e., s-FSC from (Wang et al., 2023). Here, we report the complete results for the LastFMNet, Thyroid, 4area, and Census datasets in Figures 5 to 8.
|
| 431 |
+
|
| 432 |
+
We compare the runtime and average balance of the computed clustering across multiple numbers of clusters $k \in \{2, \dots, 50\}$ . Our method consistently outperforms state-of-the-art s-FSC in terms of runtime across all datasets while maintaining approximately the same level of balance. Our method overall scales better in $k$ than s-FSC, especially in LastFMNet. Both methods require a longer time for larger $k$ values. s-FSC requires more iterations for convergence of the additional eigenvectors in the eigendecomposition routines, while our method involves the computation of the SVD of a small $k \times k$ matrix; this is computationally cheap for a small number of clusters, which is usually the case in applications. Our method also involves the $MH$ matrix product with complexity $\mathcal{O}(n^2 k)$ for dense $M$ ; however, matrix multiplication is in practice significantly more efficient than the eigendecomposition. In terms of average balance, the clustering computed by our method achieves approximately the same balance to s-FSC. Balance on Thyroid and Census is low for both algorithms, which means that, in the Fair SC clustering, some groups are under-represented across multiple clusters. Overall, our method
|
| 433 |
+
|
| 434 |
+
4area
|
| 435 |
+

|
| 436 |
+
s-FSC - - - Ours
|
| 437 |
+
|
| 438 |
+

|
| 439 |
+
|
| 440 |
+
Census
|
| 441 |
+

|
| 442 |
+
s-FSC - - - Ours
|
| 443 |
+
|
| 444 |
+

|
| 445 |
+
Figure 7: Fair spectral clustering on 4area with s-FSC (Wang et al., 2023) (blue) and the proposed algorithm (orange). The plot uses the same structure as Figure 3 in the main body.
|
| 446 |
+
Figure 8: Fair spectral clustering on Census with s-FSC (Wang et al., 2023) (green) and the proposed algorithm (blue). The plot uses the same structure as Figure 3 in the main body.
|
| 447 |
+
|
| 448 |
+
offers a more efficient solution for Fair SC on real-world datasets, without compromising the fairness of the results w.r.t. the exact Fair SC solution. This makes it a promising choice for applications where both efficiency and fairness are crucial.
|
| 449 |
+
|
| 450 |
+
# A.2. Scalability in RandLaplace
|
| 451 |
+
|
| 452 |
+
In this experiment, we employ the RandLaplace dataset to evaluate the scalability of our proposed algorithm w.r.t. sample size $n$ at different $k$ . The RandLaplace dataset is generated by a random $n \times n$ symmetric adjacency matrix and $h = 2$ protected groups randomly assigned according to a Bernoulli distribution with probability 0.3. The performance comparison between our approach and the existing Fair SC methods, o-FSC (Kleindessner et al., 2019) and s-FSC (Wang et al., 2023), is depicted in Figure 4 and reported for completeness in Table 6 here. The results show that our algorithm outperforms the compared ones in terms of computational time for all tested sample sizes and cluster sizes. These results indicate that our algorithm exhibits superior scalability as the data size and number of clusters increase, underscoring our enhanced applicability for larger-scale problems.
|
| 453 |
+
|
| 454 |
+
# A.3. Additional visualizations on synthetic data
|
| 455 |
+
|
| 456 |
+
We provide additional figures of the clustering results to illustrate the effectiveness of our method to preserve the clustering structure while satisfying the fairness constraints. We consider the 2D datasets from (Feng et al., 2024): the Elliptical dataset with $k = 2, h = 2$ and the DS-577 dataset with $k = 3, h = 3$ . Figure 9 shows the clustering results on the Elliptical
|
| 457 |
+
|
| 458 |
+
Table 6: Running time in seconds for the RandLaplace dataset with different configurations (number of samples $n \in \{5000,7500,10000\}$ and clusters $k \in \{10,25,50\}$ ). Standard deviations in parentheses.
|
| 459 |
+
(a) $k = 10,h = 5$
|
| 460 |
+
|
| 461 |
+
<table><tr><td>n</td><td>o-FSC</td><td>s-FSC</td><td>Ours</td></tr><tr><td>5000</td><td>68.12 (2.48)</td><td>4.00 (0.09)</td><td>3.50 (0.10)</td></tr><tr><td>7500</td><td>199.72 (3.20)</td><td>11.22 (0.27)</td><td>4.42 (0.12)</td></tr><tr><td>10000</td><td>454.68 (5.50)</td><td>23.99 (0.31)</td><td>5.93 (0.23)</td></tr></table>
|
| 462 |
+
|
| 463 |
+
(b) $k = 25,h\overline{=5}$
|
| 464 |
+
|
| 465 |
+
<table><tr><td>n</td><td>o-FSC</td><td>s-FSC</td><td>Ours</td></tr><tr><td>5000</td><td>71.58 (2.0)</td><td>8.73 (0.30)</td><td>3.84 (0.09)</td></tr><tr><td>7500</td><td>204.72 (4.62)</td><td>28.10 (2.25)</td><td>4.52 (0.16)</td></tr><tr><td>10000</td><td>481.18 (6.91)</td><td>42.93 (3.91)</td><td>5.93 (0.10)</td></tr></table>
|
| 466 |
+
|
| 467 |
+
$\overline{(c)} k = 50,h = 5$
|
| 468 |
+
|
| 469 |
+
<table><tr><td>n</td><td>o-FSC</td><td>s-FSC</td><td>Ours</td></tr><tr><td>5000</td><td>99.41 (3.0)</td><td>32.52 (2.11)</td><td>3.85 (0.09)</td></tr><tr><td>7500</td><td>233.97 (8.35)</td><td>43.66 (7.36)</td><td>5.29 (0.11)</td></tr><tr><td>10000</td><td>508.63 (9.78)</td><td>74.94 (7.62)</td><td>7.70 (0.16)</td></tr></table>
|
| 470 |
+
|
| 471 |
+
Table 7: Running time in seconds (average and standard deviation over 5 runs) for the m-SBM benchmark from Table 1 and the considered real-world datasets from Table 2.
|
| 472 |
+
|
| 473 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="3">Time (s)</td></tr><tr><td>o-FSC</td><td>s-FSC</td><td>Ours</td></tr><tr><td>m-SMB (n = 5000)</td><td>96.39 (3.62)</td><td>75.61 (2.58)</td><td>3.29 (0.11)</td></tr><tr><td>m-SMB (n = 7500)</td><td>235.62 (4.48)</td><td>88.99 (4.35)</td><td>5.29 (0.21)</td></tr><tr><td>m-SMB (n = 10000)</td><td>495.70 (9.49)</td><td>107.94 (5.10)</td><td>9.19 (0.36)</td></tr><tr><td>LastFMNet</td><td>103.82 (2.87)</td><td>19.08 (1.96)</td><td>4.59 (0.30)</td></tr><tr><td>Thyroid</td><td>279.03 (4.21)</td><td>30.49 (3.17)</td><td>7.38 (0.16)</td></tr><tr><td>Census</td><td>-</td><td>136.60 (0.69)</td><td>15.78 (1.06)</td></tr><tr><td>4area</td><td>-</td><td>166.92 (0.73)</td><td>25.85 (1.4)</td></tr></table>
|
| 474 |
+
|
| 475 |
+
dataset (top) and the DS-577 dataset (bottom). These plots show that our method produces assignments comparable to exact algorithms (o-FSC,s-FSC). Critically, we achieve this with reduced computations, as shown in the main paper, which constitutes our main contribution.
|
| 476 |
+
|
| 477 |
+
# A.4. Additional metrics and dataassets
|
| 478 |
+
|
| 479 |
+
In main body, we follow the setups of (Kleindessner et al., 2019; Wang et al., 2023) and report the average balance. For completeness, we also report the minimum balance for Table 2 with $k = 25$ in Table 8.
|
| 480 |
+
|
| 481 |
+
Table 8: Minimum balance for the considered real-world datasets from Table 2.
|
| 482 |
+
|
| 483 |
+
<table><tr><td>Dataset</td><td>Time (s-FSC)</td><td>Time (Ours)</td><td>Min. Balance (s-FSC)</td><td>Min. Balance (Ours)</td></tr><tr><td>LastFM</td><td>19.08</td><td>4.59</td><td>0.0027</td><td>0.0029</td></tr><tr><td>Thyroid</td><td>30.49</td><td>7.38</td><td>0.0011</td><td>0.0012</td></tr><tr><td>Census</td><td>136.60</td><td>15.78</td><td>0.0001</td><td>0.0001</td></tr><tr><td>4area</td><td>166.92</td><td>25.85</td><td>0.1582</td><td>0.1517</td></tr></table>
|
| 484 |
+
|
| 485 |
+
We also evaluate on the common FacebookNet dataset (Wang et al., 2023) that collects Facebook friendship links with $n = 155$ , $h = 2$ . We show results in Table 9. These results further demonstrates the computational advantage of our method, while achieving similar clustering quality to exact algorithms.
|
| 486 |
+
|
| 487 |
+

|
| 488 |
+
|
| 489 |
+

|
| 490 |
+
Figure 9: Clustering results on synthetic datasets. The top panel shows the Elliptical dataset with $k = 2, h = 2$ , and the bottom panel shows the DS-577 dataset with $k = 3, h = 3$ . Our method preserves the clustering structure while satisfying fairness constraints.
|
| 491 |
+
|
| 492 |
+
Table 9: Running time in seconds for the FacebookNet dataset with balance and spectral clustering cost.
|
| 493 |
+
|
| 494 |
+
<table><tr><td>#Clusters</td><td>Method</td><td>Time (s)</td><td>Balance</td><td>SC Cost</td></tr><tr><td>2</td><td>o-FSC</td><td>0.798</td><td>1.00</td><td>0.126</td></tr><tr><td>2</td><td>s-FSC</td><td>0.193</td><td>1.00</td><td>0.126</td></tr><tr><td>2</td><td>Ours</td><td>0.055</td><td>1.00</td><td>0.133</td></tr><tr><td>25</td><td>o-FSC</td><td>9.908</td><td>0.84</td><td>14.114</td></tr><tr><td>25</td><td>s-FSC</td><td>6.422</td><td>0.84</td><td>14.114</td></tr><tr><td>25</td><td>Ours</td><td>0.131</td><td>0.84</td><td>14.128</td></tr><tr><td>50</td><td>o-FSC</td><td>12.243</td><td>0.58</td><td>37.084</td></tr><tr><td>50</td><td>s-FSC</td><td>11.558</td><td>0.58</td><td>37.084</td></tr><tr><td>50</td><td>Ours</td><td>0.215</td><td>0.58</td><td>37.100</td></tr></table>
|
| 495 |
+
|
| 496 |
+
# B. Additional experimental details
|
| 497 |
+
|
| 498 |
+
Experimental setups. Regarding optimization of the dual DC problem, we employ the LBFGS algorithm in the scipy implementation with backtracking line search using the strong Wolfe conditions with initialization from the standard normal distribution; the stopping condition is given by $\mathsf{g}\mathsf{t}\mathsf{o}\mathsf{l} = 10^{-3}$ , $\mathsf{f}\mathsf{t}\mathsf{o}\mathsf{l} = 10^{-4}$ . The ADMM algorithm is run with $\alpha^{(0)} = 0.005$ , $T = 10$ . The compared methods o-FSC (Kleindessner et al., 2019) and s-FSC (Wang et al., 2023) employ the scipy eigendecomposition routine. For s-FSC, we use $\left\| \hat{L} \right\|_1$ as shift, as suggested in their paper. The $k$ -means algorithm is run to obtain the clustering indicators for all compared methods. The real-world datasets used in the experiments are summarized in Table 10.
|
| 499 |
+
|
| 500 |
+
The update rule for $\alpha$ in Algorithm 1 is standard in ADMM (Boyd et al., 2011) and is given by
|
| 501 |
+
|
| 502 |
+
$$
|
| 503 |
+
\alpha^ {(i + 1)} = \left\{ \begin{array}{l l} \tau \alpha^ {(i)} & \text {i f} \| R ^ {(i)} \| _ {F} > \mu \| S ^ {(i)} \| _ {F} \\ \alpha^ {(i)} / \tau & \text {i f} \| S ^ {(i)} \| _ {F} > \mu \| R ^ {(i)} \| _ {F}, \\ \alpha^ {(i)} & \text {o t h e r w i s e} \end{array} \right. \tag {19}
|
| 504 |
+
$$
|
| 505 |
+
|
| 506 |
+
with primal and dual residuals $R^{(i)} = MH^{(i)} - Y^{(i)}$ and $S^{(i)} = \alpha^{(i)}(Y^{(i)} - Y^{(i + 1)})$ . The parameters $\tau$ and $\mu$ are set to 2
|
| 507 |
+
|
| 508 |
+
Table 10: Description of the real-world datasets used for the experiments.
|
| 509 |
+
|
| 510 |
+
<table><tr><td>Dataset</td><td>Samples (n)</td><td>Groups (h)</td><td>Group type</td></tr><tr><td>LastFMNet</td><td>5576</td><td>6</td><td>Nationality</td></tr><tr><td>Thyroid</td><td>7200</td><td>3</td><td>Disease</td></tr><tr><td>Census</td><td>32561</td><td>7</td><td>Demographic</td></tr><tr><td>4area</td><td>35385</td><td>4</td><td>Research field</td></tr></table>
|
| 511 |
+
|
| 512 |
+
and 10, respectively.
|
| 513 |
+
|
| 514 |
+
# C. Additional discussions on related works
|
| 515 |
+
|
| 516 |
+
Our method follows the established line of work on Fair SC, which enforces fairness via linear constraints in the embedding (Kleindessner et al., 2019; Wang et al., 2023). There exist other spectral clustering methods that do not follow this line of work and enforce fairness via different means. (Feng et al., 2024) introduce fairness by changing the SC objective with a different fairness regularization term; they do not employ the group-fairness constraint $F^{\top}H = 0$ . They apply coordinate descent to this new objective where they relax the discrete clustering indicator constraint without orthogonality constraints $H^{\top}H = I$ . Therefore, (Feng et al., 2024) solves a different problem than (6): their solution is far from the exact one leading to higher spectral cost and potential training instability. Another related work is (Zhang & Wang, 2024). Our work designs a much faster method for the existing Fair SC problem defined in (Kleindessner et al., 2019). (Zhang & Wang, 2024) instead focuses on improving fairness and is orthogonal to our algorithmic contribution: it learns an induced fairer graph where Fair SC is applied. Future work could combine our method on top of (Zhang & Wang, 2024) by applying our faster algorithm to their learned graph.
|
| 517 |
+
|
| 518 |
+
Other works on fair clustering include (Bera et al., 2019b; Backurs et al., 2019), which are not directly comparable to our work as they do not consider the spectral clustering objective. (Bera et al., 2019b) propose LP-based $k$ -means, median, center) clustering. Using their formulation in our work would ignore the RatioCut objective, resulting in suboptimal solutions wr.t. the spectral objective. (Backurs et al., 2019) use fairlets for prototype-based clustering. However, extending the fairlet analysis, which relies on the $k$ -median and $k$ -center cost of the fairlet decomposition, to the spectral setting is not trivial. SC involves a spectral embedding step followed by a clustering in the embedding space, where reassigning points within a fairlet can significantly alter the spectral embedding and hence potentially violating fairness, making it non-trivial to incorporate their analysis in the fair SC case. The primary contribution of our present work is to design a significantly faster method for the already established Fair SC problem defined in (Kleindessner et al., 2019), rather than designing alternative fair clustering problems.
|
| 519 |
+
|
| 520 |
+
# D. Proofs and derivations
|
| 521 |
+
|
| 522 |
+
# D.1. Proofs of Assumptions of Proposition 3.4
|
| 523 |
+
|
| 524 |
+
We prove the convergence result from Proposition 3.4 by applying Proposition 3 from Magnusson et al. (2016) to our specific ADMM structure. There they consider problems of the form
|
| 525 |
+
|
| 526 |
+
$$
|
| 527 |
+
\min _ {x, z} u (x) + v (z) \tag {20}
|
| 528 |
+
$$
|
| 529 |
+
|
| 530 |
+
$$
|
| 531 |
+
\text {s . t .} \quad x \in \mathcal {X}, z \in \mathcal {Z} \tag {21}
|
| 532 |
+
$$
|
| 533 |
+
|
| 534 |
+
$$
|
| 535 |
+
A x + B z = c. \tag {22}
|
| 536 |
+
$$
|
| 537 |
+
|
| 538 |
+
We can already cast Problem 11 into this structure by letting
|
| 539 |
+
|
| 540 |
+
- $\mathcal{X} = S_n^k$ and $u(x) = -f(Mx)$
|
| 541 |
+
$\mathcal{Z} = \{z\in \mathbb{R}^{n\times k}\mid F^{\top}Y = 0\}$ and $v(z) = 0$
|
| 542 |
+
- $A = M$ , $B = -I$ and $c = 0$ .
|
| 543 |
+
|
| 544 |
+
To apply their result, we verify that four key assumptions hold, namely Assumption D.1, Assumption D.2, Assumption D.4 and Assumption D.5 that can be found in Magnusson et al. (2016).
|
| 545 |
+
|
| 546 |
+
Assumption D.1. The functions $u$ and $v$ are continuously differentiable.
|
| 547 |
+
|
| 548 |
+
This is satisfied in our setting.
|
| 549 |
+
|
| 550 |
+
Assumption D.2. The sets $\mathcal{X}$ and $\mathcal{Z}$ are closed and can be expressed in terms of a finite number of equality and inequality constraints. In particular,
|
| 551 |
+
|
| 552 |
+
$$
|
| 553 |
+
\mathcal {X} = \{x \in \mathbb {R} ^ {n \times k} \mid \psi (x) = 0, \phi (x) \leq 0 \} \tag {23}
|
| 554 |
+
$$
|
| 555 |
+
|
| 556 |
+
$$
|
| 557 |
+
\mathcal {Z} = \{z \in \mathbb {R} ^ {n \times k} \mid \theta (z) = 0, \sigma (z) \leq 0 \} \tag {24}
|
| 558 |
+
$$
|
| 559 |
+
|
| 560 |
+
where $\psi, \phi, \theta, \sigma$ are continuously differentiable functions.
|
| 561 |
+
|
| 562 |
+
This is clear from the definition of the spaces $\mathcal{X}$ and $\mathcal{Z}$ , a proof is provided for the case of the Stiefel manifold in the following lemma.
|
| 563 |
+
|
| 564 |
+
Lemma D.3 (Smooth Representation of Orthogonal Matrix Constraints). Let $A \in \mathbb{R}^{n \times m}$ be a matrix satisfying the orthogonality constraint $A^{\top} A = I_m$ , where $I_m$ denotes the $m \times m$ identity matrix. Then there exists a smooth function $\psi: \mathbb{R}^{nm} \to \mathbb{R}^{m(m+1)/2}$ such that the constraint can be equivalently expressed as
|
| 565 |
+
|
| 566 |
+
$$
|
| 567 |
+
\{x \in \mathbb {R} ^ {n m}: \psi (x) = 0 \},
|
| 568 |
+
$$
|
| 569 |
+
|
| 570 |
+
where $x = \operatorname{vec}(A)$ is the vectorization of matrix $A$ .
|
| 571 |
+
|
| 572 |
+
Proof. Let $x \in \mathbb{R}^{nm}$ denote the vectorization of matrix $A$ obtained by column-wise stacking:
|
| 573 |
+
|
| 574 |
+
$$
|
| 575 |
+
x = \left[ \begin{array}{c} a _ {1 1} \\ \vdots \\ a _ {n 1} \\ a _ {1 2} \\ \vdots \\ a _ {n m} \end{array} \right].
|
| 576 |
+
$$
|
| 577 |
+
|
| 578 |
+
Under this vectorization scheme, the $(k,j)$ -th element of $A$ corresponds to the $((j - 1)n + k)$ -th component of $x$ , i.e., $a_{kj} = x_{(j - 1)n + k}$ . The orthogonality constraint $A^{\top}A = I_m$ is equivalent to requiring that the columns of $A$ form an orthonormal system. Specifically, for all $1 \leq i \leq j \leq m$ :
|
| 579 |
+
|
| 580 |
+
$$
|
| 581 |
+
\sum_ {k = 1} ^ {n} a _ {k i} a _ {k j} = \delta_ {i j},
|
| 582 |
+
$$
|
| 583 |
+
|
| 584 |
+
where $\delta_{ij}$ denotes the Kronecker delta. Expressing this constraint in terms of the vectorized representation $x$ , we obtain:
|
| 585 |
+
|
| 586 |
+
$$
|
| 587 |
+
\sum_ {k = 1} ^ {n} x _ {(i - 1) n + k} x _ {(j - 1) n + k} = \delta_ {i j}.
|
| 588 |
+
$$
|
| 589 |
+
|
| 590 |
+
We now define the function $\psi : \mathbb{R}^{nm} \to \mathbb{R}^{m(m+1)/2}$ with components:
|
| 591 |
+
|
| 592 |
+
$$
|
| 593 |
+
\psi_ {i j} (x) = \sum_ {k = 1} ^ {n} x _ {(i - 1) n + k} x _ {(j - 1) n + k} - \delta_ {i j}, \quad 1 \leq i \leq j \leq m.
|
| 594 |
+
$$
|
| 595 |
+
|
| 596 |
+
The orthogonality constraint $A^\top A = I_m$ is then equivalent to the condition $\psi(x) = 0$ . To establish smoothness, observe that each component $\psi_{ij}(x)$ is a quadratic polynomial in the elements of $x$ . Since polynomial functions possess derivatives of all orders, each $\psi_{ij}$ is smooth (i.e., $C^\infty$ ). Consequently, the vector-valued function $\psi$ is smooth. Therefore, the orthogonality constraint on matrix $A$ admits a smooth representation.
|
| 597 |
+
|
| 598 |
+
Assumption D.4. At every step from Algorithm 1, the solutions of sub-Problem 13 and sub-Problem 14 computed are locally or globally optimal.
|
| 599 |
+
|
| 600 |
+
This assumption allows solutions to the subproblems to be only locally optimal. In our case, both subproblems allow global optimality.
|
| 601 |
+
|
| 602 |
+
Assumption D.5. Let $\mathcal{L}$ denote the set of limit points of the sequence $\{x_{i} := H^{(i)}, z_{i} = Y^{(i)}\}_{i \in \mathbb{N}}$ and let $(\bar{x}, \bar{z}) \in \mathcal{L}$ . The set of constraint gradient vectors at $\bar{x}$ ,
|
| 603 |
+
|
| 604 |
+
$$
|
| 605 |
+
\mathcal {C} _ {\mathcal {X}} (\bar {x}) = \left\{\nabla \psi_ {i} (\bar {x}) | i = 1, \dots , \dim \psi \right\} \cup \left\{\nabla \phi_ {i} (\bar {x}) | i \text {s . t .} \phi_ {i} (\bar {x}) = 0 \right\} \tag {25}
|
| 606 |
+
$$
|
| 607 |
+
|
| 608 |
+
associated to $\mathcal{X}$ is linearly independent. Similarly, the set of constraint gradient vectors $\mathcal{C}_{\mathcal{Z}}(\bar{z})$ is linearly independent.
|
| 609 |
+
|
| 610 |
+
This assumption is a regularity assumption that is usually satisfied in practice according to Magnusson et al. (2016). The following lemmas are dedicated to proving that it holds in our case.
|
| 611 |
+
|
| 612 |
+
Lemma D.6 (Linear Independence of Orthogonal Constraint Gradients). Let $x \in \mathbb{R}^{nm}$ be identified with the matrix $A \in \mathbb{R}^{n \times m}$ , where $A_{pi} = x_{pi}$ for $p = 1, \ldots, n$ and $i = 1, \ldots, m$ . Define $\psi_{ij}(x) = \sum_{p=1}^{n} x_{pi} x_{pj} - \delta_{ij}$ for $1 \leq i \leq j \leq m$ . Let $C(x) = \{\nabla_x \psi_{ij}(x) | 1 \leq i \leq j \leq m\}$ . If $A^T A = I$ , then $C(\bar{x})$ is linearly independent at $\bar{x}$ .
|
| 613 |
+
|
| 614 |
+
Proof. Suppose there exist scalars $\lambda_{ij}$ (with $\lambda_{ij} = \lambda_{ji}$ ) such that
|
| 615 |
+
|
| 616 |
+
$$
|
| 617 |
+
\sum_ {1 \leq i \leq j \leq m} \lambda_ {i j} \nabla_ {x} \psi_ {i j} (\bar {x}) = 0.
|
| 618 |
+
$$
|
| 619 |
+
|
| 620 |
+
Let $\Lambda$ be the $m\times m$ symmetric matrix with entries $\Lambda_{ij} = \lambda_{ij}$ . Define the scalar function
|
| 621 |
+
|
| 622 |
+
$$
|
| 623 |
+
f (A) = \sum_ {1 \leq i \leq j \leq m} \lambda_ {i j} \psi_ {i j} (x) = \sum_ {i, j = 1} ^ {m} \frac {\lambda_ {i j}}{2} (a _ {i} ^ {T} a _ {j} - \delta_ {i j}) = \frac {1}{2} \mathrm {T r} (\Lambda (A ^ {T} A - I)),
|
| 624 |
+
$$
|
| 625 |
+
|
| 626 |
+
where $a_{i}$ denotes the $i$ -th column of $A$ . For any perturbation $H \in \mathbb{R}^{n \times m}$ , the directional derivative of $f$ at $A$ in the direction of $H$ is
|
| 627 |
+
|
| 628 |
+
$$
|
| 629 |
+
\begin{array}{l} D f (A) [ H ] = \frac {1}{2} \operatorname {T r} \left(\Lambda \left(H ^ {T} A + A ^ {T} H\right)\right) \\ = \operatorname {T r} \left(H ^ {T} A \Lambda\right) \\ = \left\langle \operatorname {v e c} (H), \operatorname {v e c} (A \Lambda) \right\rangle . \\ \end{array}
|
| 630 |
+
$$
|
| 631 |
+
|
| 632 |
+
By the chain rule, and since we assumed $\sum \lambda_{ij}\nabla_x\psi_{ij}(\bar{x}) = 0$ , we have
|
| 633 |
+
|
| 634 |
+
$$
|
| 635 |
+
D f (A) [ H ] = \left\langle \sum_ {1 \leq i \leq j \leq m} \lambda_ {i j} \nabla_ {x} \psi_ {i j} (A), \operatorname {v e c} (H) \right\rangle = 0, \quad \forall H.
|
| 636 |
+
$$
|
| 637 |
+
|
| 638 |
+
This implies $\operatorname{vec}(A\Lambda) = 0$ , and hence $A\Lambda = 0$ . Since $A^T A = I$ at $\bar{x}$ , $A$ has full column rank, and thus $\Lambda = 0$ . This implies $\lambda_{ij} = 0$ for all $i,j$ . Therefore, the only linear combination of the gradients $\nabla_x\psi_{ij}(\bar{x})$ that equals zero is the trivial one, which proves that $C(\bar{x})$ is linearly independent.
|
| 639 |
+
|
| 640 |
+
Lemma D.7. Let $F \in \mathbb{R}^{n \times h}$ and $H \in \mathbb{R}^{n \times k}$ . Define $z = \operatorname{vec}(H) \in \mathbb{R}^{nk}$ and consider the constraint $F^{\top}H = 0$ . Let $\theta(z) = \operatorname{vec}(F^{\top}H) \in \mathbb{R}^{hk}$ . The set of constraint gradients
|
| 641 |
+
|
| 642 |
+
$$
|
| 643 |
+
C (z) = \left\{\nabla_ {z} \theta_ {i} (z) \mid i = 1, \dots , h k \right\}
|
| 644 |
+
$$
|
| 645 |
+
|
| 646 |
+
is linearly independent at any $\bar{z}$ such that $F^{\top}H = 0$ whenever $F$ has full column rank.
|
| 647 |
+
|
| 648 |
+
Proof. Using the Kronecker product identity $\operatorname{vec}(AB) = (I \otimes A)\operatorname{vec}(B)$ , we can express $\theta(z)$ as:
|
| 649 |
+
|
| 650 |
+
$$
|
| 651 |
+
\theta (z) = (I _ {k} \otimes F ^ {\top}) z = M z,
|
| 652 |
+
$$
|
| 653 |
+
|
| 654 |
+
where $M = I_k\otimes F^\top \in \mathbb{R}^{hk\times nk}$
|
| 655 |
+
|
| 656 |
+
Since $\theta(z)$ is linear, its Jacobian is the constant matrix $M$ . The gradient of the $i$ -th component of $\theta(z)$ , denoted $\nabla_z \theta_i(z)$ , is the $i$ -th row of $M$ transposed. Thus, the set $C(z)$ consists of the rows of $M$ .
|
| 657 |
+
|
| 658 |
+
The rows of $M$ are linearly independent if and only if $M$ has full row rank, which is $hk$ . We have:
|
| 659 |
+
|
| 660 |
+
$$
|
| 661 |
+
\operatorname {r a n k} (M) = \operatorname {r a n k} \left(I _ {k}\right) \operatorname {r a n k} \left(F ^ {\top}\right) = k \operatorname {r a n k} (F).
|
| 662 |
+
$$
|
| 663 |
+
|
| 664 |
+
Therefore, $\mathrm{rank}(M) = hk$ if and only if $\mathrm{rank}(F) = h$ . This means the gradients in $C(z)$ are linearly independent if and only if $F$ has full column rank (if $\mathrm{rank}(F) = h$ ). For instance, this is the case in the Fair SC problem when $h$ is set to be the number of groups minus 1 (Wang et al., 2023). This can be guaranteed by solving (6) with $F := F[:, : h-1]$ , i.e., removing the last column of $F$ , which guarantees that $\mathrm{rank}(F) = h-1$ with same range (Wang et al., 2023). This holds regardless of the order of the groups (Wang et al., 2023).
|
| 665 |
+
|
| 666 |
+
# D.2. Derivation of Problem 6
|
| 667 |
+
|
| 668 |
+
In this subsection, we review the derivation of the fair spectral clustering problem (6). First, recall that spectral clustering aims at partitioning $\mathcal{D}$ into $k$ clusters by minimization of a normalized cut objective, as detailed in (Shi & Malik, 2000; Von Luxburg, 2007). The spectral clustering problem is defined as
|
| 669 |
+
|
| 670 |
+
$$
|
| 671 |
+
\min _ {T \in \mathbb {R} ^ {n \times k}} \operatorname {T r} \left(T ^ {\top} L T\right) \quad \text {s . t .} \quad T ^ {\top} D T = I _ {k}. \tag {26}
|
| 672 |
+
$$
|
| 673 |
+
|
| 674 |
+
Because of the normalized cut objective, Problem 26 is also often referred to as the normalized spectral clustering problem, to distinguish it from the spectral clustering problem with mincut criterion without normalization. By substituting $T = D^{-1/2}H$ in Problem 26, we obtain the equivalent problem in terms of the normalized Laplacian $\hat{L}$ :
|
| 675 |
+
|
| 676 |
+
$$
|
| 677 |
+
\min _ {H \in \mathbb {R} ^ {n \times k}} \operatorname {T r} \left(H ^ {\top} \hat {L} H\right) \quad \text {s . t .} \quad H ^ {\top} H = I _ {k}. \tag {27}
|
| 678 |
+
$$
|
| 679 |
+
|
| 680 |
+
Solving the spectral clustering problem amounts to finding the $k$ eigenvectors of $\hat{L}$ corresponding to the $k$ smallest eigenvalues and then applying $k$ -means clustering to the rows of $D^{-1/2}H$ . The fair spectral clustering problem is obtained by adding the fairness constraint (5) to the spectral clustering problem (26):
|
| 681 |
+
|
| 682 |
+
$$
|
| 683 |
+
\min _ {T \in \mathbb {R} ^ {n \times k}} \operatorname {T r} \left(T ^ {\top} L T\right) \quad \text {s . t .} \quad T ^ {\top} D T = I _ {k}, \quad F _ {0} ^ {\top} T = 0. \tag {28}
|
| 684 |
+
$$
|
| 685 |
+
|
| 686 |
+
By substituting $T = D^{-1 / 2}H$ as above, we obtain the equivalent Fair SC problem in terms of the normalized Laplacian $\hat{L}$ :
|
| 687 |
+
|
| 688 |
+
$$
|
| 689 |
+
\min _ {H \in \mathbb {R} ^ {n \times k}} \operatorname {T r} \left(H ^ {\top} \hat {L} H\right) \quad \text {s . t .} \quad H ^ {\top} H = I _ {k}, \quad F ^ {\top} H = 0, \tag {29}
|
| 690 |
+
$$
|
| 691 |
+
|
| 692 |
+
where $F = D^{-1 / 2}F_{0}$ . Now, we have that for all $H\in \mathbb{R}^{n\times k}$
|
| 693 |
+
|
| 694 |
+
$$
|
| 695 |
+
\mathrm {T r} (H ^ {\top} \hat {L} H) = \mathrm {T r} \left(H ^ {\top} H\right) - \mathrm {T r} \left(H ^ {\top} D ^ {- 1 / 2} W D ^ {- 1 / 2} H\right) = \mathrm {T r} \left(H ^ {\top} H\right) - \mathrm {T r} \left(H ^ {\top} M H\right).
|
| 696 |
+
$$
|
| 697 |
+
|
| 698 |
+
On the Stiefel manifold, the quantity $\operatorname{Tr}\left(H^{\top}H\right)$ is constant so that the minimizers of Problem 29 are the maximizers of Problem 6.
|
| 699 |
+
|
| 700 |
+
# D.3. Proof of Proposition 3.2
|
| 701 |
+
|
| 702 |
+
Proof. Expanding $\phi(MH)$ to recover the expression of the augmented Lagrangian shows that $H \mapsto \phi(MH)$ is convex as long as $\alpha < 1$ . Then, following Proposition 3.1 from (Tonin et al., 2023), equivalently we can write the problem as
|
| 703 |
+
|
| 704 |
+
$$
|
| 705 |
+
\begin{array}{l} \inf _ {H \in \mathbb {R} ^ {n \times k}} \left[ g (H) - \sup _ {V \in \mathbb {R} ^ {n \times k}} \left\{\langle V, M H \rangle - \phi^ {*} (V) \right\} \right] = \inf _ {H \in \mathbb {R} ^ {n \times k}} g (H) + \inf _ {V \in \mathbb {R} ^ {n \times k}} \left\{\phi^ {*} (V) - \langle V, M H \rangle \right\} (30) \\ = \inf _ {H \in \mathbb {R} ^ {n \times k}, V \in \mathbb {R} ^ {n \times k}} g (H) + \phi^ {*} (V) - \langle V, M H \rangle (31) \\ = \inf _ {V \in \mathbb {R} ^ {n \times k}} \phi^ {*} (V) - \sup _ {H \in \mathbb {R} ^ {n \times k}} \left\{\langle M V, H \rangle - g (H) \right\} (32) \\ = \inf _ {V \in \mathbb {R} ^ {n \times k}} \phi^ {*} (V) - g ^ {*} (M V), (33) \\ \end{array}
|
| 706 |
+
$$
|
| 707 |
+
|
| 708 |
+
where we used the self-adjointness of $M$ .
|
| 709 |
+
|
| 710 |
+
# D.4. Proof of Proposition 3.3
|
| 711 |
+
|
| 712 |
+
Proof. We begin by the derivation of $\phi^{\star}(V)$ :
|
| 713 |
+
|
| 714 |
+
$$
|
| 715 |
+
\begin{array}{l} \phi^ {\star} (V) = \sup _ {Z} \left\{\langle V, Z \rangle - \phi (Z) \right\} (34) \\ = \sup _ {Z} \left\{\langle V, Z \rangle - \frac {1}{2} \| Z \| ^ {2} + \langle P, Z \rangle + \frac {\alpha}{2} \| Z - Y \| ^ {2} \right\} (35) \\ = \sup _ {Z} \left\{- \frac {1}{2} \| Z - V \| ^ {2} + \frac {1}{2} \| V \| ^ {2} + \langle P, Z \rangle + \frac {\alpha}{2} \| Z - Y \| ^ {2} \right\} (36) \\ = \frac {1}{2} \| V \| ^ {2} - \inf _ {Z} \left\{\frac {1}{2} \| Z - V \| ^ {2} - \langle P, Z \rangle - \frac {\alpha}{2} \| Z - Y \| ^ {2} \right\}. (37) \\ \end{array}
|
| 716 |
+
$$
|
| 717 |
+
|
| 718 |
+
By nullifying the gradient in $Z$ , we find that the critical point $\hat{Z}$ satisfies $\hat{Z} = \eta (V + P - \alpha Y)$ , where $\eta = \frac{1}{1 - \alpha}$ , which in turn gives
|
| 719 |
+
|
| 720 |
+
$$
|
| 721 |
+
\begin{array}{l} \phi^ {\star} (V) = \frac {1}{2} \| V \| ^ {2} - \frac {1}{2} \| \eta (V + P - \alpha Y) - V \| ^ {2} (38) \\ + \langle P, \eta (V + P - \alpha Y) \rangle (39) \\ + \frac {\alpha}{2} \| \eta (V + P - \alpha Y) - Y \| ^ {2}. (40) \\ \end{array}
|
| 722 |
+
$$
|
| 723 |
+
|
| 724 |
+
We now prove that $g^{\star}(MV) = \mathrm{Tr}\left(\sqrt{V^{\top}M^{2}V}\right)$ by using that the Fenchel-Legendre conjugate of $g$ is the Schatten 1-norm, also called the nuclear norm: $g^{\star}(U) = \sum_{i=1}^{k} |\lambda(U)_i| \coloneqq \| U \|_{S_1}$ . We then have
|
| 725 |
+
|
| 726 |
+
$$
|
| 727 |
+
\sup _ {H ^ {\top} H \preceq I _ {k}} \langle M V, H \rangle = \| M V \| _ {S _ {1}} = \operatorname {T r} \left(\sqrt {V ^ {\top} M ^ {2} V}\right), \tag {41}
|
| 728 |
+
$$
|
| 729 |
+
|
| 730 |
+
where the last equality is obtained by exploiting the SVD of $MV$ .
|
2025/Accelerating Spectral Clustering under Fairness Constraints/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fe9c0945155e522c11563a182d18c320a3592f3a8552ac7e8f58fb7f8671d6e
|
| 3 |
+
size 927212
|
2025/Accelerating Spectral Clustering under Fairness Constraints/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/cfe28aeb-f682-4f08-8c0f-893153f31c7f_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/cfe28aeb-f682-4f08-8c0f-893153f31c7f_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/cfe28aeb-f682-4f08-8c0f-893153f31c7f_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93711967c1d8b32946c80131815295bee6ae3c7b3fe250f2adec9163e314c2fb
|
| 3 |
+
size 3516821
|
2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/full.md
ADDED
|
@@ -0,0 +1,616 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Accelerating Unbiased LLM Evaluation via Synthetic Feedback
|
| 2 |
+
|
| 3 |
+
Zhaoyi Zhou<sup>1</sup> Yuda Song<sup>1</sup> Andrea Zanette<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
When developing new large language models (LLMs), a key step is evaluating their final performance, often by computing the win-rate against a reference model based on external feedback. Human feedback is the gold standard, particularly for capturing nuanced qualities like coherence, readability, and alignment with human expectations. However, human evaluations are costly — even for large tech companies — and when conducted with active users, they may negatively impact user experience. A promising alternative is synthetic feedback, where evaluations are conducted by other large language models, including reward models. While this eliminates the need for costly human annotations, it introduces biases that may distort the evaluation process. In this work, we propose a statistically principled framework that integrates human and synthetic feedback to reduce reliance on human annotations while maintaining unbiased win-rate calculations. Our experiments demonstrate a reduction in human annotations by up to $12.2\%$ with an off-the-shelf synthetic evaluator and up to $24.8\%$ with a finetuned variant. Apart from being generalizable, scalable, and free of hyper-parameter tuning, our method offers predictable annotation savings, which can be estimated based on data-dependent characteristics.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
Accurately evaluating the performance of large language models (LLMs) is crucial before large-scale deployment. Human judgment remains the gold standard for this evaluation, as it captures nuanced qualities such as coherence, harmlessness, and readability (Bai et al., 2022), while also ensuring alignment with human values (Ouyang et al., 2022). A widely accepted performance metric is the win rate, assessed by humans against a reference model (Chiang et al.,
|
| 12 |
+
|
| 13 |
+
$^{1}$ Carnegie Mellon University. Correspondence to: Zhaoyi Zhou <zhaoyiz@andrew.cmu.edu>.
|
| 14 |
+
|
| 15 |
+
Proceedings of the $42^{nd}$ International Conference on Machine Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025 by the author(s).
|
| 16 |
+
|
| 17 |
+
2024). However, this approach demands substantial time and financial resources due to human involvement. When conducted with active system users, it may also diminish user experience, see Figure 2.
|
| 18 |
+
|
| 19 |
+
In order to mitigate these challenges, recent works have explored cost-efficient alternatives, most notably the use of synthetic feedback generated by other LLMs, a concept often referred to as "LLM-as-a-judge" (Zheng et al., 2023; Dubois et al., 2024), to compute the head-to-head win rate. This approach leverages the computational efficiency of LLMs to evaluate other models, reducing the need for extensive human involvement. Despite its promise, synthetic feedback often introduces biases since LLM can not perfectly reflect human preference, undermining the evaluation reliability (Zheng et al., 2024). As a result, a critical need remains for evaluation methods that reduce the cost of human annotation while maintaining the reliability and generalizability.
|
| 20 |
+
|
| 21 |
+
Besides replacing the evaluator, recently there has been a growing interest in accelerating LLM evaluation (Ye et al., 2023; Polo et al., 2024a; Zhou et al., 2024) with smaller datasets. However, previous methods only focused on reducing the number of prompts in a specific benchmark with predefined answers (e.g., math problems). Thus it is unclear if these methods generalize or apply to other tasks. For example, in math benchmark it is easy to find some problems that are "representative" of the whole benchmark, but in general the prompts are more diverse and less structured, and sometimes they are generated on the fly, such as when a user interacts with a language model via APIs.
|
| 22 |
+
|
| 23 |
+
Towards reliable and cost-efficient LLM evaluation, in this work we propose to leverage LLM generated synthetic feedback to reduce the number of human annotations, in the standard head-to-head win rate setting (Chiang et al., 2024). Specifically, we propose Control Variates Evaluation (Figure 1 left), an unbiased LLM evaluation method based on the classical control variates technique (Lavenberg & Welch, 1981) that combines human annotations and synthetic feedback. Note that there are previous works (Chaganty et al., 2018; Boyeau et al., 2024) that apply control variates to machine learning evaluation, but they study settings like single-response natural language evaluation or BT modelling (Bradley & Terry, 1952). Therefore, the performance of control variates in head-to-head win rate estimation still
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: (Left) Illustration of Control Variates Evaluation, which makes use of a possibly inaccurate synthetic evaluator to reduce the variance of evaluation, reducing the need of human annotations while preserving unbiasedness. (Right) Averaged mean square error v.s. number of human annotations for Human Evaluation, Synthetic Evaluation and Control Variates Evaluation using the finetuned Skywork-8B evaluator on Chatbot Arena. The Synthetic Evaluation has high bias, while the bias of Human and Control Variates Evaluations are negligible. Control Variates Evaluation reduces the variance of Human Evaluation.
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
|
| 30 |
+
requires thorough investigation.
|
| 31 |
+
|
| 32 |
+
In our work, we theoretically show that Control variates Evaluation enjoys a lower variance, and thus it requires fewer human annotations to achieve the same level of accuracy on the win rate estimation. Empirically, Control Variates Evaluation enjoys significant human annotation saving for various types of synthetic evaluators, from a small reward model with 2B parameters to LLMs such as GPT-4. In addition, we can further reduce human annotations by finetuning the synthetic evaluators on existing human annotations for other LLMs. Note that the cost of control variates is minimal as it only requires some additional synthetic feedbacks, which can be generated at a low cost. Somehow surprisingly, the synthetic evaluators that contribute to such achievement are inaccurate themselves and have high prediction bias (c.f. Figure 1 right).
|
| 33 |
+
|
| 34 |
+
Besides the advantage of reducing the number of human annotations, Control Variates Evaluation also has a predictable saving, one that can be estimated from the data and one which depends on how strongly the synthetic feedback correlates with human judgments. This is in contrast to the all existing methods that do not provide predictions on the potential saving. Based on the theoretical guarantee, we propose human annotation saving ratio as a metric to evaluate our method, which can be computed through a few human annotations without actually running the evaluation. We demonstrate through experiments that this metric perfectly reflects the practical variance reduction effect in Control Variates Evaluation.
|
| 35 |
+
|
| 36 |
+
In summary, our contribution is three folds:
|
| 37 |
+
|
| 38 |
+
1. We introduce Control variates Evaluation to reduce the number of human annotations in head-to-head win rate estimation with zero bias, resulting in a reliable, cost-efficient and task-agnostic LLM evaluation method.
|
| 39 |
+
2. We demonstrate the viability of improving human annotation saving through fine-tuning.
|
| 40 |
+
3. We propose the human annotation saving ratio as the data-dependent metric to predict the saving in human data when using the Control Variates Evaluation.
|
| 41 |
+
|
| 42 |
+
We believe our work is a first step towards principled efficient LLM evaluation and can be combined with various existing and future works. Our code is available at https://github.com/Zanette-Labs/control variates評估。
|
| 43 |
+
|
| 44 |
+
# 2. Related Work
|
| 45 |
+
|
| 46 |
+
# 2.1. LLM Evaluation: Metric, Benchmark and Systems
|
| 47 |
+
|
| 48 |
+
The earliest attempt for LLM evaluation includes rule based metrics such as BLEU (Papineni et al., 2002) and ROUGE (Lin, 2004), which only measures the similarity between the model generation and the reference text. Going beyond rule-based metrics, LLM evaluation has been proposed, with earlier works using LLM to compute similarity (Zhang et al., 2020; Yuan et al., 2021). Recently, LLM-as-a-judge has been proposed to evaluate LLMs (Zheng et al., 2023; Dubois et al., 2024; Gu et al., 2024; Li et al., 2024a; Lan et al., 2024), by querying powerful LLMs to generate12024generation preference of generations between different models, with the hope that the powerful LLMs can serve as a proxy for human evaluation. Towards real human evaluation, very few public
|
| 49 |
+
|
| 50 |
+
Do a one line TLDR:
|
| 51 |
+
|
| 52 |
+
Large reasoning models excel at problem-solving but often rely
|
| 53 |
+
|
| 54 |
+
on long chain-of-thoughts, making inference costly. We address
|
| 55 |
+
|
| 56 |
+
this by post-training models via reinforcement learning to reason
|
| 57 |
+
|
| 58 |
+
efficiently-minimizing token use while maintaining accuracy.
|
| 59 |
+
|
| 60 |
+
You're giving feedback on a new version of ChatGPT.
|
| 61 |
+
|
| 62 |
+
Which response do you prefer? Responses may take a moment to load.
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
Figure 2: OpenAI's prompting users for feedback; excessive requests may negatively impact user experience.
|
| 66 |
+
|
| 67 |
+
Response 1
|
| 68 |
+
|
| 69 |
+
Optimized reasoning models use reinforcement learning to reduce token usage while preserving accuracy.
|
| 70 |
+
|
| 71 |
+
I prefer this response.
|
| 72 |
+
|
| 73 |
+

|
| 74 |
+
|
| 75 |
+
Response 2
|
| 76 |
+
|
| 77 |
+
Optimized reasoning models use reinforcement learning to reduce token usage while preserving accuracy.
|
| 78 |
+
|
| 79 |
+
I prefer this response.
|
| 80 |
+
|
| 81 |
+
systems exist due to their high cost and time-consuming nature, with the large-scale community collective effort Chatbot Arena (Chiang et al., 2024) being the most notable one.
|
| 82 |
+
|
| 83 |
+
# 2.2. Speeding Up LLM Evaluation
|
| 84 |
+
|
| 85 |
+
Recently there has been a surge of research on speeding up LLM evaluation, with the goal of reducing the cost and time of evaluating LLMs. One approach is to use heuristics to minimize the number of prompts or tasks to evaluate, with the hope that the selected subset can represent the whole distribution of the prompts or tasks (Ye et al., 2023; Perlitz et al., 2023; Polo et al., 2024a).
|
| 86 |
+
|
| 87 |
+
The other approach is to leverage active learning or bandit algorithms to select a subset of the prompts: (Polo et al., 2024b; Zhou et al., 2024; Li et al., 2024b). However, these methods are still limited by the requirement to operate within a specific benchmark with predefined answers, and thus can not be applied to human evaluation, the focus of our work. In addition to the essential benefit that human evaluation can provide, note that it is more challenging because it is task-agonistic and typically has less structure than any specific benchmark.
|
| 88 |
+
|
| 89 |
+
# 2.3. Control variates, Application, and related techniques
|
| 90 |
+
|
| 91 |
+
Control variates is a well-known variance reduction technique in Monte Carlo sampling (Owen, 2013), with applications to finance (Broadie & Glasserman, 1998; Hesterberg & Nelson, 1998; Kemna & Vorst, 1990; Glasserman, 2004). In recent years, it has also been applied to various areas of machine learning, such as variational inference (Geffner & Domke, 2018; Phan et al., 2023), bandits (Verma
|
| 92 |
+
|
| 93 |
+
& Hanawal, 2021), optimization (Yuan et al., 2024), computer graphics (Rousselle et al., 2016; Müller et al., 2020). In particular (Chaganty et al., 2018) uses control variates to evaluate natural language metrics, but it is restricted to single response evaluation. In our work, we extend control variates evaluation to pairwise LLM comparison.
|
| 94 |
+
|
| 95 |
+
Prediction-Powered Inference (PPI, and PPI++) (Angelopoulos et al., 2023a;b; Boyeau et al., 2024) is a related technique which uses variance reduction to improve the MLE objective. (Boyeau et al., 2024) applies PPI++ to estimate practical metrics in machine learning, such as accuracy, correlation and BT model (Bradley & Terry, 1952) in pairwise model comparisons. It differs from our work which conducts an in-depth study of control-variates to accelerate head-to-head win rate estimation.
|
| 96 |
+
|
| 97 |
+
# 3. Preliminaries
|
| 98 |
+
|
| 99 |
+
# 3.1. LLM Evaluation
|
| 100 |
+
|
| 101 |
+
We consider the problem of evaluating LLMs performance through head-to-head comparisons, via human preference judgments. Given a set of prompt $\mathcal{X}$ , we compare two LLMs $\ell^1$ and $\ell^2$ by estimating the win rate of $\ell^1$ over $\ell^2$ on $\mathcal{X}$ .
|
| 102 |
+
|
| 103 |
+
Formally, we independently sample a prompt $x \in \mathcal{X}$ , and sample two responses $y^{1} \sim \ell^{1}(\cdot \mid x)$ and $y^{2} \sim \ell^{2}(\cdot \mid x)$ from $\ell^{1}$ and $\ell^{2}$ respectively. We then ask human annotators to choose the better response with label $z(y^{1} \succ y^{2})$ , where
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
z \left(y ^ {1} \succ y ^ {2}\right) = \left\{ \begin{array}{l l} 1 & \text {i f} y ^ {1} \text {i s p r e f e r r e d o v e r} y ^ {2}, \\ 0 & \text {i f} y ^ {2} \text {i s p r e f e r r e d o v e r} y ^ {1}, \\ 0. 5 & \text {i f t i e}. \end{array} \right.
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
We will use the shorthand $z$ sometimes in the rest of the text when the context is clear. The win rate of $\ell^1$ over $\ell^2$ on the
|
| 110 |
+
|
| 111 |
+
prompt $x$ is defined as
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
p \left(\ell^ {1} \succ \ell^ {2}\right) := \mathbb {E} _ {x, y ^ {1}, y ^ {2}} \left[ z \left(y ^ {1} \succ y ^ {2}\right) \right],
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
i.e., the averaged human preference over the prompt set, and $\mathbb{E}_{x,y^1,y^2}[\cdot ]\coloneqq \mathbb{E}_{x\sim \mathrm{Uniform}(\mathcal{X})}\left[\mathbb{E}_{y^1\sim \ell^1 (\cdot |x),y^2\sim \ell^2 (\cdot |x)}[\cdot ]\right]$ . To estimate $p\big(\ell^{1}\succ \ell^{2}\big)$ empirically, we collect an evaluation dataset $\mathcal{D}^{\mathrm{eval}} = \{(x_i,y_i^1,y_i^2)\}_{i = 1}^n$ , estimate human preference $z_{i} = z(y_{i}^{1}\succ y_{i}^{2})$ with $z_{i}^{\mathrm{em}}$ and output the empirical average $\widehat{p}^{\mathrm{em}}\big(\ell^1\succ \ell^2\big) = \frac{1}{n}\sum_{i = 1}^{n}z_{i}^{\mathrm{em}}$ as the estimate of the win rate. Our goal is to minimize the number of human annotations involved in the process while keeping $\widehat{p}^{\mathrm{em}}$ close to $p$ .
|
| 118 |
+
|
| 119 |
+
# 3.2. Human and Synthetic Evaluation
|
| 120 |
+
|
| 121 |
+
Human Evaluation annotates every sample $(x_{i},y_{i}^{1},y_{i}^{2})$ in $\mathcal{D}^{\mathrm{eval}}$ with human, i.e. let $z_{i}^{\mathrm{em}}\coloneqq z_{i}$ . This makes the evaluation unbiased. However, leveraging human annotator is extremely expensive, but without enough amount of samples $n$ , the empirical mean $\widehat{p}^{\mathrm{em}}(\ell^1\succ \ell^2)$ can be very noisy due to high variance from a small sample size.
|
| 122 |
+
|
| 123 |
+
On the other hand, Synthetic Evaluation generates preference estimates $\hat{z}(y_i^1 \succ y_i^2)$ using a reward model or LLM (e.g., GPT-4) (Zheng et al., 2023) on every sample. Although it completely obviates the need for human annotations, the evaluation is biased and can lead to inaccurate win rate prediction.
|
| 124 |
+
|
| 125 |
+
# 3.3. Other Notations
|
| 126 |
+
|
| 127 |
+
For two one-dimensional random variables $x$ and $y$ , we use $\mathrm{Cov}[x,y]$ , $\mathrm{Corr}[x,y]$ to denote the covariance and correlation coefficient between $x$ and $y$ , respectively. We use $\mathrm{Var}[x]$ to denote the variance of $x$ . Let $\{x_i\}_{i=1}^n$ , $\{y_i\}_{i=1}^n$ be samples of $x$ and $y$ , respectively, we abuse the notation and use $\mathrm{Var}[\{x_i\}_{i=1}^n]$ for the empirical variance of $\{x_i\}_{i=1}^n$ , and $\mathrm{Cov}[\{x_i\}_{i=1}^n, \{y_i\}_{i=1}^n]$ , $\mathrm{Corr}[\{x_i\}_{i=1}^n, \{y_i\}_{i=1}^n]$ for the empirical covariance and correlation coefficient between $\{x_i\}_{i=1}^n$ and $\{y_i\}_{i=1}^n$ respectively.
|
| 128 |
+
|
| 129 |
+
# 4. Efficient LLM Evaluation via Control variates
|
| 130 |
+
|
| 131 |
+
In this section, we introduce Control variates Evaluation, which combines human and synthetic annotations to realize a variance-reduced unbiased evaluation method, based on control variates (Lavenberg & Welch, 1981). We first recap the classical control variates method in the context of LLM evaluation, and then formally describe how to adapt the control variates method to make it applicable in practice. Finally, we briefly discuss its application in the LLM-as-a-judge setting (Zheng et al., 2023).
|
| 132 |
+
|
| 133 |
+
# Algorithm 1 Control variates Evaluation
|
| 134 |
+
|
| 135 |
+
1: Input: Evaluation dataset $\mathcal{D}^{\mathrm{eval}} = \left\{(x_i, y_i^1, y_i^2)\right\}_{i=1}^n$ , human annotation budget $k$ ,
|
| 136 |
+
2: Optional Input: Finetune dataset $\mathcal{D}^{\mathrm{finetune}} = \{(x_j, y_j^1, y_j^2)\}_{j=1}^m$ with human annotations $\{z_j\}_{j=1}^m$ .
|
| 137 |
+
3: (Optional) Finetune the synthetic evaluator on $\mathcal{D}_{\mathrm{finetune}}$
|
| 138 |
+
|
| 139 |
+
4: Get synthetic evaluations $\hat{z}_1, \hat{z}_2, \dots, \hat{z}_n$ on $\mathcal{D}^{\mathrm{eval}}$ .
|
| 140 |
+
5: Sample $k$ data from $\mathcal{D}^{\mathrm{eval}}$ and get human annotations $z_{i_1}, z_{i_2}, \dots, z_{i_k}$ .
|
| 141 |
+
6: Estimate $\mu_{\hat{z}} = \frac{1}{n}\sum_{i = 1}^{n}\hat{z}_i$
|
| 142 |
+
7: Estimate $\alpha$ using $\{z_{i_j}\}_{j = 1}^k$ and $\{\hat{z}_{i_j}\}_{j = 1}^k$ by Equation (2)
|
| 143 |
+
8: Output the estimated win rate
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\frac {1}{k} \sum_ {j = 1} ^ {k} z _ {i _ {j}} - \alpha \left(\frac {1}{k} \sum_ {j = 1} ^ {k} \hat {z} _ {i _ {j}} - \mu_ {\hat {z}}\right).
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
# 4.1. Control variates
|
| 150 |
+
|
| 151 |
+
Given a sample $(x, y^1, y^2)$ with human preference $z$ and synthetic preference $\hat{z}$ , we treat $z$ as the random variable for which we want to estimate its mean. Using $\hat{z}$ as the control variate, the classical control variates approach (Lavenberg & Welch, 1981) constructs a new estimated preference:
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
z ^ {\mathrm {e m}} := z ^ {\mathrm {c v}; \alpha} = z - \alpha (\hat {z} - \mu_ {\hat {z}}), \tag {1}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
where $\mu_{\hat{z}} = \mathbb{E}_{x,y^1,y^2}\big[\hat{z}\big(y^1\succ y^2\big)\big]$ is the synthetic win rate, and $\alpha \in \mathbb{R}$ is the control variates coefficient used to control the variance of $z^{\mathrm{cv};\alpha}$ . Intuitively, $\mu_{\hat{z}}$ cancels out the bias incurred by the control variate $\hat{z}$ , keeping the estimate unbiased. In addition, assuming that $\mu_{\hat{z}}$ is known, we can guarantee variance reduction compared to human evaluation, as stated by
|
| 158 |
+
|
| 159 |
+
Proposition 4.1 (Control variates Properties (Lavenberg & Welch, 1981)). Suppose the expectations, variances, covariances and correlation coefficients, unless otherwise stated, are taken under the distribution $x \sim \mathrm{Uniform}(\mathcal{X})$ , $y^{1} \sim \ell^{1}(\cdot \mid x)$ , $y^{2} \sim \ell^{2}(\cdot \mid x)$ . Then the control variates estimate $z^{\mathrm{cv};\alpha}$ enjoys the following properties
|
| 160 |
+
|
| 161 |
+
(1) (Unbiasedness) For any $\alpha \in \mathbb{R}$ , we have $\mathbb{E}[z^{\mathsf{cv};\alpha}] = p(\ell^{1} \succ \ell^{2})$ .
|
| 162 |
+
(2) (Variance Reduction) Let $\rho = \mathrm{Corr}[z, \hat{z}]$ be the correlation coefficient between human and synthetic preference. Then we have
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
\min _ {\alpha \in \mathbb {R}} \operatorname {V a r} \left[ z ^ {\mathrm {c v}; \alpha} \right] = \left(1 - \rho^ {2}\right) \operatorname {V a r} [ z ].
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
The minimum is achieved if and only if $\alpha$ equals
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
\alpha^ {*} = \frac {\operatorname {C o v} [ z , \hat {z} ]}{\operatorname {V a r} [ \hat {z} ]}.
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
(3) (Human Annotation Saving) Given an evaluation dataset $\mathcal{D}_{\mathrm{eval}} = \{(x_i, y_i^1, y_i^2)\}_{i=1}^n$ , in which $\{x_i\}_{i=1}^n$ are sampled i.i.d. from $X$ , $y_i^1 \sim \ell^1(\cdot \mid x_i)$ , $y_i^2 \sim \ell^2(\cdot \mid x_i)$ ( $i \in [n]$ ). Let $\{i_j\}_{j=1}^m$ be independently sampled from $[n]$ . Then when $m = (1 - \rho^2)n$ , we have
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
\operatorname {V a r} \left[ \frac {1}{m} \sum_ {j = 1} ^ {m} z _ {i _ {j}} ^ {\mathsf {c v}; \alpha^ {*}} \right] = \operatorname {V a r} \left[ \frac {1}{n} \sum_ {k = 1} ^ {n} z _ {k} \right]
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
Here the variance on the right hand side is taken by the randomness of sampling $\{(x_i, y_i^1, y_i^2)\}_{i=1}^n$ . The variance on the left hand side is taken by the randomness of sampling $\{(x_i, y_i^1, y_i^2)\}_{i=1}^n$ as well as that of sampling $\{i_j\}_{j=1}^m$ .
|
| 181 |
+
|
| 182 |
+
We provide the proof in Appendix A for completeness.
|
| 183 |
+
|
| 184 |
+
Human annotation saving ratio. Proposition 4.1 immediately suggests that the control variates method can reduce the percentage of human annotations by $\rho^2$ while maintaining the same variance as that of Human Evaluation, with negligible cost of querying the synthetic evaluator. Therefore, $\rho^2$ is an important metrics to measure the variance reduction effect and cost efficiency of control variates method. We formally define it below.
|
| 185 |
+
|
| 186 |
+
Definition 4.2 (Human annotation saving ratio). The human annotation saving ratio of a synthetic evaluator w.r.t. LLMs $\ell^1, \ell^2$ and prompt set $\mathcal{X}$ is defined as
|
| 187 |
+
|
| 188 |
+
$$
|
| 189 |
+
\rho^ {2} = \left(\operatorname {C o r r} _ {x, y ^ {1}, y ^ {2}} [ z (y ^ {1} \succ y ^ {2}), \hat {z} (y ^ {1} \succ y ^ {2}) ]\right) ^ {2}.
|
| 190 |
+
$$
|
| 191 |
+
|
| 192 |
+
Here $z(y^{1} \succ y^{2})$ is the human preference, and $\hat{z}(y^{1} \succ y^{2})$ is the synthetic preference. The correlation coefficient is computed under the distribution $x \sim \mathrm{Uniform}(\mathcal{X}), y^{1} \sim \ell^{1}(\cdot \mid x), y^{2} \sim \ell^{2}(\cdot \mid x)$ .
|
| 193 |
+
|
| 194 |
+
Nonetheless, to apply control variates approach in the context of LLM evaluation, we still face the following challenges: 1) How to estimate the synthetic win rate $\mu_{\hat{z}}$ ? 2) How to compute the correlation coefficient $\alpha$ in practice to achieve the lowest variance? 3) How to improve the correlation coefficient if the off-the-shelf automatic evaluator does not give a satisfactory human annotation saving ratio? In the following, we discuss how to construct the control variates for LLM evaluation.
|
| 195 |
+
|
| 196 |
+
# 4.2. Control variates evaluation
|
| 197 |
+
|
| 198 |
+
Algorithm 1 describes the full procedure of control variates evaluation. Same as other evaluation methods,
|
| 199 |
+
|
| 200 |
+
control variates evaluation requires an evaluation dataset $\mathcal{D}^{\mathrm{eval}} = \left\{(x_i,y_i^1,y_i^2)\right\}_{i = 1}^n$ . The Control Variates Evaluation consists of the following steps:
|
| 201 |
+
|
| 202 |
+
Synthetic annotation gathering (Line 4). We generate synthetic preferences $\hat{z}_i \in [0,1]$ from an automatic annotator for all samples in the evaluation dataset. Synthetic preferences can be generated in various ways depending on the type of automatic annotator. For an LLM annotator like GPT-4, we query the model to directly generate the preference in natural language. If the automatic annotator is a reward model, we can query the rewards $r_i^1$ and $r_i^2$ from the two responses $y_i^1$ and $y_i^2$ respectively, and then compute the synthetic preference as the Bradley-Terry score of the two rewards (Bradley & Terry, 1952), i.e.,
|
| 203 |
+
|
| 204 |
+
$$
|
| 205 |
+
\hat {z} _ {i} = \frac {1}{1 + \exp (r _ {i} ^ {2} - r _ {i} ^ {1})}.
|
| 206 |
+
$$
|
| 207 |
+
|
| 208 |
+
Human annotation sampling (Line 5). We query the human annotator and obtain human preference $z \in \{0, 0.5, 1\}$ . Instead of annotating all the samples like in Human Evaluation, we only annotate $k$ samples randomly drawn from the evaluation dataset, in which $k$ is the number of human annotations we want to use. Increasing $k$ lowers the variance of the estimation but raises the cost of evaluation.
|
| 209 |
+
|
| 210 |
+
Synthetic win rate estimation (Line 6). Since $\mu_{\hat{z}}$ is unknown in practice, we estimate it by averaging the synthetic evaluator's preferences on the whole evaluation dataset. In other words, $\mu_{\hat{z}} := \frac{1}{n} \sum_{i=1}^{n} \hat{z}_i$ .
|
| 211 |
+
|
| 212 |
+
Control variates coefficient computation (Line 7). Although Proposition 4.1(2) already shows the optimal $\alpha$ , the covariance between human and synthetic annotations as well as the variance of synthetic annotations needs to be estimated via sampling. Since human annotations are involved in the computation, we reuse the human annotations $\left\{z_{i_j}\right\}_{j=1}^k$ :
|
| 213 |
+
|
| 214 |
+
$$
|
| 215 |
+
\alpha := \frac {\operatorname {C o v} \left[ \left\{z _ {i j} \right\} _ {j = 1} ^ {k} , \left\{\hat {z} _ {i j} \right\} _ {j = 1} ^ {k} \right]}{\operatorname {V a r} \left[ \left\{\hat {z} _ {i j} \right\} _ {j = 1} ^ {k} \right]}. \tag {2}
|
| 216 |
+
$$
|
| 217 |
+
|
| 218 |
+
It is standard practice in control variates to estimate $\alpha$ with Equation (2) (Owen, 2013, Chapter 8.9). Although it introduces some correlation between $\alpha$ and the final estimator, and thus the estimated win rate in Algorithm 1 is technically biased, the incurred bias is usually negligible, and it is standard practice to ignore such bias (Owen, 2013, Chapter 8.9). We also validate this practice through experiments in Section 5.2.
|
| 219 |
+
|
| 220 |
+
Win rate estimation (Line 8). After we obtain estimations of the synthetic win rate $\mu_{\hat{z}}$ , and the control variates coefficient $\alpha$ , we can apply Equation (1) to get the variance-reduced preference estimates $\left\{z_{i_j}^{\mathrm{cv};\alpha}\right\}_{j=1}^k$ for the samples we collected with human annotations. Then we output the win rate estimate by taking the average over the preference estimates:
|
| 221 |
+
|
| 222 |
+
$$
|
| 223 |
+
\begin{array}{l} \hat {p} ^ {\mathrm {e m}} (\ell^ {1} \succ \ell^ {2}) = \frac {1}{k} \sum_ {j = 1} ^ {k} z _ {i _ {j}} ^ {\mathrm {c v}; \alpha} \\ = \frac {1}{k} \sum_ {j = 1} ^ {k} z _ {i _ {j}} - \alpha \left(\frac {1}{k} \sum_ {j = 1} ^ {k} \hat {z} _ {i _ {j}} - \mu_ {\hat {z}}\right). \tag {3} \\ \end{array}
|
| 224 |
+
$$
|
| 225 |
+
|
| 226 |
+
(Optional) Synthetic evaluator finetuning (Line 3). On many popular LLM evaluation benchmarks such as Chatbot Arena and MT Bench (Zheng et al., 2023), there are abundant off-the-shelf human annotations for pre-generated language model responses. Now suppose we have a new LLM and we want to compare it with the existing ones in the benchmark. Can we make use of these existing human annotations to help reduce the human annotations needed in Control variates Evaluation?
|
| 227 |
+
|
| 228 |
+
Recall that the human annotation saving ratio is $\rho^2$ , the square of correlation coefficient between human and synthetic annotations. One natural idea is to raise the correlation coefficient by finetuning the synthetic evaluator with existing human annotations, to save future human annotations.
|
| 229 |
+
|
| 230 |
+
Formally, suppose that we have a finetune dataset $\mathcal{D}^{\mathrm{finetune}} = \{(x_j,y_j^1,y_j^2)\}_{j = 1}^m$ with precollected human annotations $\{z_{j}\}_{j = 1}^{m}$ . We discard the ties and assume $z_{j}\in \{0,1\}$ for all $1\leq j\leq m$ . In case that the synthetic evaluator is a reward model, we finetune the evaluator on $\mathcal{D}^{\mathrm{finetune}}$ to maximize the Bradley-Terry score (Bradley & Terry, 1952) on the chosen response:
|
| 231 |
+
|
| 232 |
+
$$
|
| 233 |
+
\mathrm {B T} \big (r _ {j} ^ {1}, r _ {j} ^ {2}, z _ {j} \big) = \frac {z _ {j}}{1 + \exp (r _ {j} ^ {2} - r _ {j} ^ {1})} + \frac {1 - z _ {j}}{1 + \exp (r _ {j} ^ {1} - r _ {j} ^ {2})}.
|
| 234 |
+
$$
|
| 235 |
+
|
| 236 |
+
After finetuning, we can expect an increase in the correlation coefficient $\rho$ and thus also the human annotation saving ratio when we want to evaluate the win rate between a new LLM pair on the same benchmark. Note that the dataset used for finetuning the synthetic annotator contains responses generated by LLMs that are different from the LLMs that we wish to evaluate, i.e., the responses in evaluation dataset are out of distribution w.r.t. the finetune dataset. We explain in Section 5.1 how to guarantee this in our experiments. Despite the out-of-distribution property, we show in the experiment section (c.f. Section 5.4) that the finetuned model still generalizes well in terms of the correlation coefficient to the human annotations.
|
| 237 |
+
|
| 238 |
+
Summary. We offer several remarks:
|
| 239 |
+
|
| 240 |
+
- Our construction of control variates is task-agnostic, i.e., we do not leverage any specific structure or knowledge of the prompt set $\mathcal{X}$ .
|
| 241 |
+
- The method is hyperparameter-free as parameters for control variates like the synthetic win rate $\mu_{\hat{z}}$ and control variates coefficient $\alpha$ are estimated directly from data. (If fine-tuning is used, one still needs to choose fine-tuning hyper-parameters over a validation dataset)
|
| 242 |
+
- The performance of Control variates Evaluation is predictable. By sampling a small subset of evaluation data, collecting human and synthetic annotations, and computing the human annotation saving ratio, the reduction in human annotations can be accurately estimated without fully performing the evaluation. In the experiment (cf. Section 5.2), we show that the saving ratio of human annotations correctly predicts the observed saving.
|
| 243 |
+
|
| 244 |
+
# 5. Experiments
|
| 245 |
+
|
| 246 |
+
To evaluate the performance of control variates in practice, we conduct experiments on real-world datasets to mainly answer the following questions:
|
| 247 |
+
|
| 248 |
+
1. How does Control variates Evaluation compare to Human Evaluation and Synthetic Evaluation (c.f. Section 3.2)?
|
| 249 |
+
2. How does the finetuning process of the synthetic evaluator affect the human annotation saving?
|
| 250 |
+
|
| 251 |
+
# 5.1. Setup
|
| 252 |
+
|
| 253 |
+
Synthetic evaluators. Towards a comprehensive analysis, we experiment with synthetic evaluators across various model types and sizes, including GRM-Gemma-2B-sftreg (GRM-2B) (Yang et al., 2024), ArmoRM-Llama3-8B (ArmoRM-8B) (Wang et al., 2024), Skywork-Reward-Llama-3.1-8B-v0.2 (Skywork-8B) (Liu et al., 2024) as well as GPT-4 (Achiam et al., 2023).
|
| 254 |
+
|
| 255 |
+
Finetuning procedure. The testing of Control Variates with finetuning (Line 3 of Algorithm 1) is done in a cross-validation manner. Suppose there are $K$ LLMs generating responses in the evaluation dataset. Our finetuning procedure trains $K$ reward models, each by leaving out the data for a specific LLM. That is, for each LLM $k$ , we finetune the reward model on the head-to-head comparisons over the remaining $K - 1$ LLMs. This finetuned reward model is then evaluated on the head-to-head comparisons involving LLM $k$ against the other $K - 1$ models. When comparing Control Variates Evaluation with finetuning and Synthetic
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
(a) Skywork-8B
|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
(b) Skywork-8B (ft)
|
| 262 |
+
Figure 3: Averaged mean-square error versus number of human annotations for Skywork-8B (pretrained and finetuned) on Chatbot Arena. The $x$ -coordinate of curves "Human" and "Control Variates" correspond to the number of human annotations (Zheng et al., 2023). The curve "Human (shifted)" is derived by horizontally scaling the Human Evaluation curve by $(1 - s)$ , in which $s$ is the averaged human annotation saving ratio in Table 1. The averaged mean-square error of Control Variates Evaluation converges to near 0, indicating that it has negligible bias. The human annotation saving ratio aligns perfectly with the actual variance relationship between Human Evaluation and Control Variates Evaluation.
|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
(a) Chatbot Arena
|
| 266 |
+
Figure 4: Averaged human annotation saving ratio before and after fine-tuning for GRM-2B and Skywork-8B on Chatbot Arena and MT-Bench. Under all setups, we observe at least $5\%$ increase in the saving ratio.
|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
(b) MT Bench
|
| 270 |
+
|
| 271 |
+
Evaluation, we apply the same cross-validation procedure to Synthetic Evaluation for a fair comparison.
|
| 272 |
+
|
| 273 |
+
We tested Control variates Evaluation with finetuning on GRM-2B and Skywork-8B models, which will be referred to as GRM-2B (ft) and Skywork-8B (ft) respectively.
|
| 274 |
+
|
| 275 |
+
Benchmark. We choose LLM evaluation datasets with abundant and trustworthy human annotations. The datasets we considered are:
|
| 276 |
+
|
| 277 |
+
ChatBot Arena (Zheng et al., 2023) contains 33k
|
| 278 |
+
|
| 279 |
+
human-annotated preferences. The responses are generated by 20 models, i.e., 190 LLM pairs in total. There are 121 pairs that have more than 100 annotations.
|
| 280 |
+
|
| 281 |
+
- MT Bench (Zheng et al., 2023) contains about $3.36\mathrm{k}$ human-annotated preferences. The responses are generated by 6 models, i.e., 15 LLM pairs in total. There are 14 pairs that have more than 100 annotations.
|
| 282 |
+
|
| 283 |
+
# 5.2. Control variates Evaluation v.s. Human Evaluation
|
| 284 |
+
|
| 285 |
+
As suggested in Section 4.1, the human annotation saving ratio is a practical metric to measure the performance of Control variates Evaluation. Therefore, we will first present the human annotation saving ratio on different evaluators and benchmarks. After that, we demonstrate that this theoretical measure matches perfectly with the actual variance reduction effect.
|
| 286 |
+
|
| 287 |
+
Human annotation saving ratio on different benchmarks and synthetic evaluators. For each synthetic evaluator and benchmark, we test the human annotation saving ratio on every LLM pair that have at least 100 human annotations. In order to clearly present the result, we take the mean of the ratios across different LLM pairs to get the average human annotation saving ratio of that evaluator on the benchmark. The result is presented in Table 1. We defer the human annotation saving ratio on each LLM pair in Appendix C.3.
|
| 288 |
+
|
| 289 |
+
For off-the-shelf evaluators, GPT-4 achieves high saving ratio on both benchmarks. However, an 8B reward model like ArmoRM-8B has comparable performance. Using the fine-tuning option of Control variates Evaluation, Skywork-8B
|
| 290 |
+
|
| 291 |
+
Table 1: Averaged human annotation saving ratio across different synthetic evaluators on Chatbot Arena and MT Bench. The averaged human annotation saving ratio is the mean of human annotation saving ratios on LLM pairs with at least 100 human annotations.
|
| 292 |
+
|
| 293 |
+
<table><tr><td></td><td>Chatbot Arena</td><td>MT Bench</td></tr><tr><td>GRM-2B</td><td>10.6%</td><td>5.7%</td></tr><tr><td>GRM-2B (ft)</td><td>17.1%</td><td>10.9%</td></tr><tr><td>Skywork-8B</td><td>8.3%</td><td>7.5%</td></tr><tr><td>Skywork-8B (ft)</td><td>24.8%</td><td>12.6%</td></tr><tr><td>ArmoRM-8B</td><td>12.2%</td><td>9.6%</td></tr><tr><td>GPT-4</td><td>12.2%</td><td>11.9%</td></tr></table>
|
| 294 |
+
|
| 295 |
+
(ft) surpasses the performance of GPT-4 on both benchmarks. With finetune, a small model (GRM-2B (ft)) can also match or outperform GPT-4 in averaged human annotation saving. This means that we can save from $10\%$ to $20\%$ human annotations using an easy-to-deploy reward model at nearly no cost. In fact, the most expensive synthetic evaluator in our experiment, GPT-4, costs just about 1 cent per annotation. This is negligible comparing to human annotation cost.
|
| 296 |
+
|
| 297 |
+
Theory matches practice. We empirically justify that the theoretical human annotation saving ratio aligns well with the practical variance reduction ratio. Besides, we verify the claim in (Owen, 2013, Chapter 8.9) that Equation (2) leads to negligible bias.
|
| 298 |
+
|
| 299 |
+
First, we measure the estimated mean square error of Human Evaluation and Control Variates Evaluation w.r.t number of human samples for each fixed LLM pair via bootstrapping. That is, we repeatedly run the evaluation method 1000 times with a fixed number of human annotations, collect the output win rate estimates, and compute the mean-square error, where the ground truth win-rate is the averaged human preference on all data of that LLM pair. For Human and Control Variates Evaluation, we run bootstrapping using different numbers of human annotations on different LLM pairs and plot a curve respectively with labels "Human" and "Control Variates" (c.f. Figure 8), in which the $y$ -axis is the averaged mean square error of the evaluation on different LLM pairs, and the $x$ -axis is the number of human annotations.
|
| 300 |
+
|
| 301 |
+
Theoretically, the mean-square error can be decomposed into the square of evaluation bias and the variance. Therefore, the mean-square error curve still effectively reflects the variance reduction tendency as the number of human annotations increases, and when the number approaches infinity, we can extract the bias of the evaluation through the limit of mean square error.
|
| 302 |
+
|
| 303 |
+
Then, we shift the $x$ -axis of the Human Evaluation as follows. Suppose $s$ is the averaged human annotation saving ratio we tested in Table 1, and $(x,y)$ is a point on the curve of Human Evaluation. Then we shift point $(x,y)$ to $(x(1 - s),y)$ . After shifting all points of the Human Evaluation, we get a new curve, referred to as Human (shifted). According to Proposition 4.1 (3), the ratio of the number of human annotations in Human Evaluation and Control Variates Evaluation should be $1:(1 - s)$ so that they have the same variance. So ideally, the shifted curve of Human Evaluation should coincide with the curve of Control Variates Evaluation. We present the bootstrap curves for Skywork8B with and without the finetuning procedure on Chatbot Arena in Figure 3. The other results are listed in Figure 8 of Appendix.
|
| 304 |
+
|
| 305 |
+
On all figures, the averaged mean-square error of Control variates Evaluation converges to near 0, indicating negligible evaluation bias. Furthermore, the shifted curve of Control Variates Evaluation overlaps with that of human evaluation. Therefore, the human annotation saving ratio predicts the actual variance reduction of our algorithm almost perfectly, even if the control variates coefficient $\alpha$ is estimated. This means that we can simply compute the human annotation saving ratio from the correlation coefficient, and then we know whether the synthetic evaluator will bring us the desired variance reduction effect when it is to be used in Control Variates Evaluation.
|
| 306 |
+
|
| 307 |
+
# 5.3. Control variates Evaluation v.s. Synthetic Evaluation
|
| 308 |
+
|
| 309 |
+
In this section, we compare the error in predicting the win rate between the Control Variates Evaluation and Synthetic Evaluation. The error metric is the mean square error with respect to the ground truth win-rate, which we approximate with the averaged human annotations on all samples of each head-to-head comparison. For Control Variates Evaluation, we use the averaged mean-square error from the previous section. For Synthetic Evaluation, we average the synthetic annotations on all samples of a fixed LLM pair as the predicted win rate and then calculate the mean square error. We also include the averaged mean-square error of human for convenience of comparison.
|
| 310 |
+
|
| 311 |
+
Figure 1 (right) presents the result of finetuned Skywork-8B, and Figure 5 presents that of GPT-4, both on Chatbot Arena. Other results are deferred to Figure 7. Although GPT-4 is claimed to be an accurate evaluator (Zheng et al., 2023), it still has a significantly high error compared to Control Variates and Human Evaluation. Similarly, even if we finetune a reward model like Skywork-8B (ft), it also suffers from high error if used in Synthetic Evaluation alone. However, these evaluators can be incorporated into Control Variates Evaluation to achieve much lower evaluation error.
|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
Figure 5: Average mean square error versus number of human annotations for GPT-4 evaluator on Chatbot Arena (Zheng et al., 2023). Note that even GPT-4 has high bias if used alone for Synthetic Evaluation.
|
| 315 |
+
|
| 316 |
+
# 5.4. How does Finetuning Improve Control variates Evaluation?
|
| 317 |
+
|
| 318 |
+
We visualize the averaged human annotation saving ratio before and after finetuning for GRM-2B and Skywork-8B on Chatbot-Arena and MT-Bench in Figure 4. For all experiments, the finetuning procedure provides at least $5\%$ more saving ratio. Specifically, for Skywork-8B on Chatbot Arena, the saving ratio nearly triples.
|
| 319 |
+
|
| 320 |
+
On the other hand, finetuning indeed introduces additional computation requirement. For instance, the fine-tuning of Skylwork-8B model requires four H100 GPUs with 80GB of GRAM. Regarding whether to finetune the evaluator or not, there are two major considerations. The first one is the human annotation saving ratio on the pretrained evaluator. If it is not satisfactory, finetuning can improve the human annotation saving ratio if a finetune dataset is available. The other consideration is the number of future tasks, as this is a trade-off between future savings in human annotation cost and the current additional cost of finetuning computation. If there are many future models to evaluate, then finetuning is beneficial because the savings generalize to unseen models.
|
| 321 |
+
|
| 322 |
+
# 5.5. Other Applications of Control variates Evaluation
|
| 323 |
+
|
| 324 |
+
Control variates Evaluation can be similarly applied in the LLM-as-a-judge setting. The difference is that the human annotator is replaced with a strong LLM evaluator, and a smaller, cheaper model plays the role of the synthetic evaluator, to save the cost of querying the expensive model.
|
| 325 |
+
|
| 326 |
+
We set GPT-4 as the strong evaluator and test the averaged human annotation saving ratio in the scenario of LLM-as-a-judge, as shown in Table 2. A 2B reward model like GRM-2B can achieve over $20\%$ saving of GPT-4 annotation
|
| 327 |
+
|
| 328 |
+
Table 2: Averaged strong evaluator's sample saving in LLM-as-a-judge using control variates evaluation. The strong evaluator is GPT-4.
|
| 329 |
+
|
| 330 |
+
<table><tr><td>Weak Evaluator</td><td>Chatbot Arena</td><td>MT Bench</td></tr><tr><td>GRM 2B sftreg</td><td>22.8%</td><td>14.6%</td></tr><tr><td>Skywork 8B</td><td>13.5%</td><td>15.1%</td></tr><tr><td>ArmoRM 8B</td><td>16.0%</td><td>18.8%</td></tr></table>
|
| 331 |
+
|
| 332 |
+
on Chatbot Arena and nearly $15\%$ saving on MT Bench. This can save the cost in LLM-as-a-judge.
|
| 333 |
+
|
| 334 |
+
In addition, we provide the experiment result of Control variates Evaluation for single response evaluation tasks in Appendix C.4.
|
| 335 |
+
|
| 336 |
+
# 6. Conclusion
|
| 337 |
+
|
| 338 |
+
In this work, we propose Control variates Evaluation to reduce human annotation costs while maintaining unbiasedness. Our method demonstrates significant savings in human annotations across benchmarks like Chatbot Arena and MT Bench, aligning well with theoretical predictions. This provides a scalable and cost-effective alternative to full human evaluation without compromising reliability.
|
| 339 |
+
|
| 340 |
+
We only study the most canonical evaluation of head-to-head win rate between two LLMs, and it is an interesting future direction to explore more nuanced human evaluation metrics and complex evaluation settings, including multi-model ranking and fine-grained assessments. Other future work can focus on improving synthetic feedback through adaptive selection or ensembling multiple evaluators.
|
| 341 |
+
|
| 342 |
+
# Acknowledgement
|
| 343 |
+
|
| 344 |
+
This work used DeltaAI at NCSA through allocation CIS240294: Advancing Large Language Model Alignment through Hybrid Feedback Integration from the Advanced Cyberinfrastructure Coordination Ecosystem: Services & Support (ACCESS) program (Boerner et al., 2023), which is supported by U.S. National Science Foundation grants #2138259, #2138286, #2138307, #2137603, and #2138296.
|
| 345 |
+
|
| 346 |
+
We also thank the ICML 2025 program chair as well as Ojash Neopan for directing us to Prediction-Powered Inference (PPI), an important and relevant line of our work.
|
| 347 |
+
|
| 348 |
+
# Impact Statement
|
| 349 |
+
|
| 350 |
+
This work seeks to accelerate LLM evaluation while preserving its unbiasedness. The societal and ethical impact aligns with that of most LLM evaluation research, which has been widely discussed.
|
| 351 |
+
|
| 352 |
+
# References
|
| 353 |
+
|
| 354 |
+
Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
|
| 355 |
+
Angelopoulos, A. N., Bates, S., Fannjiang, C., Jordan, M. I., and Zrnic, T. Prediction-powered inference. Science, 382 (6671):669-674, 2023a.
|
| 356 |
+
Angelopoulos, A. N., Duchi, J. C., and Zrnic, T. Ppi++: Efficient prediction-powered inference. arXiv preprint arXiv:2311.01453, 2023b.
|
| 357 |
+
Bai, Y., Jones, A., Ndousse, K., Askell, A., Chen, A., Das-Sarma, N., Drain, D., Fort, S., Ganguli, D., Henighan, T., et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.
|
| 358 |
+
Boerner, T. J., Deems, S., Furlani, T. R., Knuth, S. L., and Towns, J. Access: Advancing innovation: NSF's advanced cyberinfrastructure coordination ecosystem: Services & support. In Practice and Experience in Advanced Research Computing 2023: Computing for the Common Good, pp. 173-176. 2023.
|
| 359 |
+
Boyseau, P., Angelopoulos, A. N., Yosef, N., Malik, J., and Jordan, M. I. Autoeval done right: Using synthetic data for model evaluation. arXiv preprint arXiv:2403.07008, 2024.
|
| 360 |
+
Bradley, R. A. and Terry, M. E. Rank analysis of incomplete block designs: I. the method of paired comparisons. Biometrika, 39(3/4):324-345, 1952.
|
| 361 |
+
Broadie, M. and Glasserman, P. Risk management and analysis. vol. 1, 1998.
|
| 362 |
+
Chaganty, A. T., Mussman, S., and Liang, P. The price of debiasing automatic metrics in natural language evaluation. arXiv preprint arXiv:1807.02202, 2018.
|
| 363 |
+
Chiang, W.-L., Zheng, L., Sheng, Y., Angelopoulos, A. N., Li, T., Li, D., Zhang, H., Zhu, B., Jordan, M., Gonzalez, J. E., et al. Chatbot arena: An open platform for evaluating llms by human preference. arXiv preprint arXiv:2403.04132, 2024.
|
| 364 |
+
Dubois, Y., Galambosi, B., Liang, P., and Hashimoto, T. B. Length-controlled alpacaeval: A simple way to debias automatic evaluators. arXiv preprint arXiv:2404.04475, 2024.
|
| 365 |
+
Geffner, T. and Domke, J. Using large ensembles of control variates for variational inference. Advances in Neural Information Processing Systems, 31, 2018.
|
| 366 |
+
|
| 367 |
+
Glasserman, P. Monte Carlo methods in financial engineering. Springer, 2004.
|
| 368 |
+
Gu, J., Jiang, X., Shi, Z., Tan, H., Zhai, X., Xu, C., Li, W., Shen, Y., Ma, S., Liu, H., et al. A survey on llm-as-a-judge. arXiv preprint arXiv:2411.15594, 2024.
|
| 369 |
+
Hesterberg, T. C. and Nelson, B. L. Control variates for probability and quantile estimation. Management Science, 44(9):1295-1312, 1998.
|
| 370 |
+
Kemna, A. G. Z. and Vorst, A. C. F. A pricing method for options based on average asset values. Journal of Banking & Finance, 14(1):113-129, 1990.
|
| 371 |
+
Lan, T., Zhang, W., Xu, C., Huang, H., Lin, D., Chen, K., and Mao, X.-l. Criticeval: Evaluating large language model as critic. arXiv preprint arXiv:2402.13764, 2024.
|
| 372 |
+
Lavenberg, S. S. and Welch, P. D. A perspective on the use of control variables to increase the efficiency of monte carlo simulations. Management Science, 27(3):322-335, 1981.
|
| 373 |
+
Li, D., Jiang, B., Huang, L., Beigi, A., Zhao, C., Tan, Z., Bhattacharjee, A., Jiang, Y., Chen, C., Wu, T., et al. From generation to judgment: Opportunities and challenges of llm-as-a-judge. arXiv preprint arXiv:2411.16594, 2024a.
|
| 374 |
+
Li, Y., Ma, J., Ballesteros, M., Benajiba, Y., and Horwood, G. Active evaluation acquisition for efficient llm benchmarking. arXiv preprint arXiv:2410.05952, 2024b.
|
| 375 |
+
Lin, C.-Y. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pp. 74-81, 2004.
|
| 376 |
+
Liu, C. Y., Zeng, L., Liu, J., Yan, R., He, J., Wang, C., Yan, S., Liu, Y., and Zhou, Y. Skywork-reward: Bag of tricks for reward modeling in llms. arXiv preprint arXiv:2410.18451, 2024.
|
| 377 |
+
Müller, T., Rousselle, F., Keller, A., and Novák, J. Neural control variates. ACM Transactions on Graphics (TOG), 39(6):1-19, 2020.
|
| 378 |
+
Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730-27744, 2022.
|
| 379 |
+
Owen, A. B. Monte Carlo theory, methods and examples. https://artowen.su/domains/mc/, 2013.
|
| 380 |
+
Papineni, K., Roukos, S., Ward, T., and Zhu, W.-J. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics, pp. 311-318, 2002.
|
| 381 |
+
|
| 382 |
+
Perlitz, Y., Bandel, E., Gera, A., Arviv, O., Ein-Dor, L., Shnarch, E., Slonim, N., Shmueli-Scheuer, M., and Choshen, L. Efficient benchmarking (of language models). arXiv preprint arXiv:2308.11696, 2023.
|
| 383 |
+
Phan, D., Hoffman, M. D., Dohan, D., Douglas, S., Le, T. A., Parisi, A., Sountsov, P., Sutton, C., Vikram, S., and A Saurous, R. Training chain-of-thought via latent-variable inference. Advances in Neural Information Processing Systems, 36:72819-72841, 2023.
|
| 384 |
+
Polo, F. M., Weber, L., Choshen, L., Sun, Y., Xu, G., and Yurochkin, M. tinybenchmarks: evaluating llms with fewer examples. arXiv preprint arXiv:2402.14992, 2024a.
|
| 385 |
+
Polo, F. M., Xu, R., Weber, L., Silva, M., Bhardwaj, O., Choshen, L., de Oliveira, A. F. M., Sun, Y., and Yurochkin, M. Efficient multi-prompt evaluation of LLMs. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024b. URL https://openreview.net/forum?id=jkpwcj200.
|
| 386 |
+
Rousselle, F., Jarosz, W., and Novák, J. Image-space control variates for rendering. ACM Transactions on Graphics (TOG), 35(6):1-12, 2016.
|
| 387 |
+
Verma, A. and Hanawal, M. K. Stochastic multi-armed bandits with control variates. Advances in Neural Information Processing Systems, 34:27592-27603, 2021.
|
| 388 |
+
Wang, H., Xiong, W., Xie, T., Zhao, H., and Zhang, T. Interpretable preferences via multi-objective reward modeling and mixture-of-experts. In EMNLP, 2024.
|
| 389 |
+
Yang, R., Ding, R., Lin, Y., Zhang, H., and Zhang, T. Regularizing hidden states enables learning generalizable reward model for llms. arXiv preprint arXiv:2406.10216, 2024.
|
| 390 |
+
Ye, Q., Fu, H., Ren, X., and Jia, R. How predictable are large language model capabilities? a case study on BIG-bench. In Bouamor, H., Pino, J., and Bali, K. (eds.), Findings of the Association for Computational Linguistics: EMNLP 2023, December 2023.
|
| 391 |
+
Yuan, H., Liu, Y., Wu, S., Zhou, X., and Gu, Q. Mars: Unleashing the power of variance reduction for training large models. arXiv preprint arXiv:2411.10438, 2024.
|
| 392 |
+
Yuan, W., Neubig, G., and Liu, P. Bartscore: Evaluating generated text as text generation. Advances in Neural Information Processing Systems, 34:27263-27277, 2021.
|
| 393 |
+
Zhang, T., Kishore, V., Wu, F., Weinberger, K. Q., and Artzi, Y. Bertscore: Evaluating text generation with bert. In International Conference on Learning Representations,
|
| 394 |
+
|
| 395 |
+
2020. URL https://openreview.net/forum?id=SkeHuCVFDr.
|
| 396 |
+
Zheng, L., Chiang, W.-L., Sheng, Y., Zhuang, S., Wu, Z., Zhuang, Y., Lin, Z., Li, Z., Li, D., Xing, E., et al. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in Neural Information Processing Systems, 36: 46595-46623, 2023.
|
| 397 |
+
Zheng, X., Pang, T., Du, C., Liu, Q., Jiang, J., and Lin, M. Cheating automatic llm benchmarks: Null models achieve high win rates. arXiv preprint arXiv:2410.07137, 2024.
|
| 398 |
+
Zhou, J. P., Belardi, C. K., Wu, R., Zhang, T., Gomes, C. P., Sun, W., and Weinberger, K. Q. On speeding up language model evaluation. arXiv preprint arXiv:2407.06172, 2024.
|
| 399 |
+
|
| 400 |
+
# A. Proof of Proposition 4.1
|
| 401 |
+
|
| 402 |
+
Note that all expectations, variances, covariances and correlation coefficients in this section are taken under the distribution $x \sim \mathrm{Uniform}(\mathcal{X}), y^1 \sim \ell^1(\cdot \mid x), y^2 \sim \ell^2(\cdot \mid x)$ .
|
| 403 |
+
|
| 404 |
+
Proof of unbiasedness We have
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
\begin{array}{l} \mathbb {E} _ {x, y ^ {1}, y ^ {2}} \left[ z ^ {\mathrm {C V}, \alpha} \right] = \mathbb {E} _ {x, y ^ {1}, y ^ {2}} \left[ z - \alpha (\hat {z} - \mu_ {\hat {z}}) \right] \\ = \mathbb {E} _ {x, y ^ {1}, y ^ {2}} [ z ] - \alpha \left(\mathbb {E} _ {x, y ^ {1}, y ^ {2}} [ \hat {z} ] - \mu_ {\hat {z}}\right) \\ = \mathbb {E} _ {x, y ^ {1}, y ^ {2}} [ z ] \\ = p \left(\ell^ {1} \succ \ell^ {2}\right). \\ \end{array}
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
Proof of variance reduction We have
|
| 411 |
+
|
| 412 |
+
$$
|
| 413 |
+
\begin{array}{l} \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} \left[ z ^ {\mathrm {c v}, \alpha} \right] = \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} \left[ z - \alpha (\hat {z} - \mu_ {\hat {z}}) \right] \\ = \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] - 2 \alpha \operatorname {C o v} _ {x, y ^ {1}, y ^ {2}} [ z, (\hat {z} - \mu_ {\hat {z}}) ] + \alpha^ {2} \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ \hat {z} - \mu_ {\hat {z}} ] \\ = \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] - 2 \alpha \operatorname {C o v} _ {x, y ^ {1}, y ^ {2}} [ z, \hat {z} ] + \alpha^ {2} \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ \hat {z} ] \\ = \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ \hat {z} ] \left(\alpha - \frac {\operatorname {C o v} _ {x , y ^ {1} , y ^ {2}} [ z , \hat {z} ]}{\operatorname {V a r} _ {x , y ^ {1} , y ^ {2}} [ \hat {z} ]}\right) ^ {2} + \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] - \frac {\left(\operatorname {C o v} _ {x , y ^ {1} , y ^ {2}} [ z , \hat {z} ]\right) ^ {2}}{\operatorname {V a r} _ {x , y ^ {1} , y ^ {2}} [ \hat {z} ]} \\ \geq \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] - \frac {\left(\operatorname {C o v} _ {x , y ^ {1} , y ^ {2}} [ z , \hat {z} ]\right) ^ {2}}{\operatorname {V a r} _ {x , y ^ {1} , y ^ {2}} [ \hat {z} ]}. \\ \end{array}
|
| 414 |
+
$$
|
| 415 |
+
|
| 416 |
+
The equality holds if and only if $\alpha = \frac{\operatorname{Cov}_{x,y^1,y^2}[z,\hat{z}]}{\operatorname{Var}_{x,y^1,y^2}[\hat{z}]}$ . To further simplify the formula, recall that
|
| 417 |
+
|
| 418 |
+
$$
|
| 419 |
+
\rho^ {2} = \left(\operatorname {C o r r} _ {x, y ^ {1}, y ^ {2}} [ z, \hat {z} ]\right) ^ {2} = \frac {\left(\operatorname {C o v} _ {x , y ^ {1} , y ^ {2}} [ z , \hat {z} ]\right) ^ {2}}{\operatorname {V a r} _ {x , y ^ {1} , y ^ {2}} [ z ] \cdot \operatorname {V a r} _ {x , y ^ {1} , y ^ {2}} [ \hat {z} ]}.
|
| 420 |
+
$$
|
| 421 |
+
|
| 422 |
+
Therefore we have
|
| 423 |
+
|
| 424 |
+
$$
|
| 425 |
+
\begin{array}{l} \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} \left[ z ^ {\mathbf {c v}, \alpha} \right] \geq \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] - \frac {\left(\operatorname {C o v} _ {x , y ^ {1} , y ^ {2}} [ z , \hat {z} ]\right) ^ {2}}{\operatorname {V a r} _ {x , y ^ {1} , y ^ {2}} [ \hat {z} ]} \\ = \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] - \rho^ {2} \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] \\ = \left(1 - \rho^ {2}\right) \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ]. \\ \end{array}
|
| 426 |
+
$$
|
| 427 |
+
|
| 428 |
+
The optimality point is $\alpha^{*} = \frac{\operatorname{Cov}_{x,y^{1},y^{2}}[z,\hat{z}]}{\operatorname{Var}_{x,y^{1},y^{2}}[\hat{z}]}.$
|
| 429 |
+
|
| 430 |
+
Proof of human annotation saving Since all samples are i.i.d., we have
|
| 431 |
+
|
| 432 |
+
$$
|
| 433 |
+
\begin{array}{l} \mathrm {V a r} \left[ \frac {1}{m} \sum_ {j = 1} ^ {m} z _ {i _ {j}} ^ {\mathsf {c v}; \alpha} \right] = \frac {1}{m} \mathrm {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ^ {\mathsf {c v}, \alpha^ {*}} ] \\ = \frac {1}{m} \left(1 - \rho^ {2}\right) \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] \\ = \frac {1}{n} \operatorname {V a r} _ {x, y ^ {1}, y ^ {2}} [ z ] \\ = \operatorname {V a r} \left[ \frac {1}{n} \sum_ {i = 1} ^ {n} z _ {i} \right]. \\ \end{array}
|
| 434 |
+
$$
|
| 435 |
+
|
| 436 |
+
# B. Experiment Details
|
| 437 |
+
|
| 438 |
+
# B.1. Hyperparameters
|
| 439 |
+
|
| 440 |
+
The Control variates Evaluation Algorithm 1 has no hyperparameters except for the optional finetuning procedure. When finetuning Skywork-8B and GRM-2B on Chatbot Arena and MT Bench, we use global batch size 32 and train for 1 epoch. The finetuning of GRM-2B on Chatbot Arena uses learning rate 1e-6, others all use learning rate 3e-6.
|
| 441 |
+
|
| 442 |
+
To determine the optimal hyperparameters for finetuning, we conduct a systematic search over a range of learning rates and batch sizes. For instance, when we finetune Skywork-8B on Chatbot Arena, we follow these steps:
|
| 443 |
+
|
| 444 |
+
(1) We sort the LLM models in Chatbot Arena in alphabetical order and select the first model, RMKV-4-Raven-14B, as the holdout model to split train and test dataset.
|
| 445 |
+
(2) We tested learning rates in $\{1\times 10^{-7},3\times 10^{-7},1\times 10^{-6},3\times 10^{-6},1\times 10^{-5},3\times 10^{-5}\}$ and batch sizes in $\{32,64,128\}$ . For each hyperparameter combination, we finetune for one epoch and record the final test accuracy.
|
| 446 |
+
(3) The combination yielding the highest final test accuracy is selected as the optimal hyperparameter setting. We use the chosen hyperparameter setting to finetune Skywork-8B on all other holdout models.
|
| 447 |
+
|
| 448 |
+
The similar procedure applies when we finetune other synthetic evaluators on other benchmarks.
|
| 449 |
+
|
| 450 |
+
# B.2. Hardware
|
| 451 |
+
|
| 452 |
+
The experiments are run on H100 GPUs. Finetuning Skywork-8B requires 4 GPUs. Finetuning GRM-2B as well as the collection of synthetic annotations can all be done on 1 GPU.
|
| 453 |
+
|
| 454 |
+
# B.3. Prompt Template
|
| 455 |
+
|
| 456 |
+
We use the GPT-4 annotations for MT-Bench from the Hugging Face repository https://huggingface.co/datasets/lmsys/mt_bench_humanJudgments/viewer/default/gpt4_pair.
|
| 457 |
+
|
| 458 |
+
We follow the prompt template in (Zheng et al., 2023, Figure 5, Appendix A) to get GPT-4 annotations in Chatbot Arena. We provide the template in Figure 6 for completeness.
|
| 459 |
+
|
| 460 |
+
# C. Additional Experiment Results
|
| 461 |
+
|
| 462 |
+
# C.1. Bias of Synthetic Evaluation
|
| 463 |
+
|
| 464 |
+
As described in Section 5.3, we measure the averaged mean square error of Human Evaluation, Synthetic Evaluation and Control Variates Evaluation on different evaluators and datasets, as shown in Figure 7. The Synthetic Evaluation has a significantly high bias, while the error of both Human Evaluation and Control Variates Evaluation converge to zero.
|
| 465 |
+
|
| 466 |
+
# C.2. Human Annotation Saving Ratio Matches Variance Reduction in Practice
|
| 467 |
+
|
| 468 |
+
As described in Section 5.2, we measure the averaged mean square error versus number of samples for different evaluators on different datasets. The $x$ -coordinate of curves "Human" and "Control Variates" correspond to the number of human annotations (Zheng et al., 2023). The curve "Control Variates (shifted)" is derived by horizontally scaling the Control Variates curve by $1/(1 - s)$ , in which $s$ is the averaged human annotation saving ratio in Table 1. The human annotation saving ratio aligns perfectly with the actual variance relationship between Human Evaluation and Control Variates Evaluation.
|
| 469 |
+
|
| 470 |
+
# C.3. Human Annotation Saving Ratio on Each LLM pair
|
| 471 |
+
|
| 472 |
+
We visualize the human annotation ratio (in percentage) on each LLM pair that we use to compute the averaged human annotation saving ratio in Table 1. The results are shown in Figures 9 and 10. For a pretrained evaluator, each entry of the matrix is the human annotation saving ratio (in percentage) on that LLM pair. For a finetuned evaluator, each entry of the matrix is the human annotation saving ratio (in percentage) on the corresponding LLM pair, in which the LLM on the row is the left-out LLM, while the LLM on the column is used in finetuning. Please refer to Section 5.1 for the details
|
| 473 |
+
|
| 474 |
+
# Prompt for GPT-4 Annotations in Chatbot Arena
|
| 475 |
+
|
| 476 |
+
[System]
|
| 477 |
+
|
| 478 |
+
Please act as an impartial judge and evaluate the quality of the responses provided by two AI assistants to the user question displayed below. You should choose the assistant that follows the user's instructions and answers the user's question better. Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of their responses. Begin your valuation by comparing the two responses and provide a short explanation. Avoid any position biases and ensure that the order in which the responses were presented does not influence your decision. Do not allow the length of the responses to influence your evaluation. Do not favor certain names of the assistants. Be as objective as possible. After providing your explanation, output your final verdict by strictly following this format: "[A]" if assistant A is better, "[B]" if assistant B is better, and "[C]" for a tie.
|
| 479 |
+
|
| 480 |
+
[User Question]
|
| 481 |
+
|
| 482 |
+
{question}
|
| 483 |
+
|
| 484 |
+
[The Start of Assistant A's Answer]
|
| 485 |
+
{answer_a}
|
| 486 |
+
[The End of Assistant A's Answer]
|
| 487 |
+
|
| 488 |
+
[The Start of Assistant B's Answer] {answer_b} [The End of Assistant B's Answer]
|
| 489 |
+
|
| 490 |
+
Figure 6: Prompt template from (Zheng et al., 2023, Figure 5, Appendix A), which is used to get GPT-4 annotations in Chatbot Arena.
|
| 491 |
+
|
| 492 |
+
of finetuning procedure. Therefore, the matrices for pretrained evaluators are symmetric, while they are asymmetric for finetuned evaluators. The diagonal entries are white and do not have values because measuring human annotation saving ratio on identical LLMs is meaningless.
|
| 493 |
+
|
| 494 |
+
Note that there are some additional white entries with no values when testing GPT-4 as the synthetic evaluator. This is because GPT-4 cannot always follow the prompt template, so that sometimes we cannot extract a valid preference out of the output. In case that there are too few samples in an LLM pair, it is likely that we cannot compute a valid human annotation saving ratio.
|
| 495 |
+
|
| 496 |
+
# C.4. Single Response Evaluation
|
| 497 |
+
|
| 498 |
+
Besides head-to-head comparison, Control Variates Evaluation also applies smoothly to other evaluation scenarios, e.g., single response evaluation, where a human gives scores to a single LLM generation, instead of giving preference to two LLM generations.
|
| 499 |
+
|
| 500 |
+
We utilize the validation split of the HelpSteer2 dataset as our benchmark. This split consists of 1.04K samples, each containing a prompt, a response, and five human-annotated attributes: helpfulness, correctness, coherence, complexity, and morbidity. Each attribute is scored from 0 to 4, with higher scores indicating better performance. Our focus is on the helpfulness attribute, as it is the primary metric that reward models are typically trained to evaluate. We employ the Control Variates Evaluation method to predict the average helpfulness score. The human annotation saving ratio is shown in the Table 3.
|
| 501 |
+
|
| 502 |
+

|
| 503 |
+
(a) Chatbot Arena, ArmoRM-8B
|
| 504 |
+
|
| 505 |
+

|
| 506 |
+
(b) Chatbot Arena, GRM-2B
|
| 507 |
+
|
| 508 |
+

|
| 509 |
+
(c) Chatbot Arena, Skywork-8B
|
| 510 |
+
|
| 511 |
+

|
| 512 |
+
(d) Chatbot Arena, GPT-4
|
| 513 |
+
|
| 514 |
+

|
| 515 |
+
(e) MT Bench, ArmoRM-8B
|
| 516 |
+
|
| 517 |
+

|
| 518 |
+
(f) MT Bench, GRM-2B
|
| 519 |
+
|
| 520 |
+

|
| 521 |
+
(g) MT Bench, Skywork-8B
|
| 522 |
+
|
| 523 |
+

|
| 524 |
+
(h) MT Bench, GPT-4
|
| 525 |
+
|
| 526 |
+

|
| 527 |
+
(i) Chatbot Arena, GRM-2B (ft)
|
| 528 |
+
|
| 529 |
+

|
| 530 |
+
(j) MT Bench, GRM-2B (ft)
|
| 531 |
+
|
| 532 |
+

|
| 533 |
+
(k) Chatbot Arena, Skywork-8B (ft)
|
| 534 |
+
|
| 535 |
+

|
| 536 |
+
(1) MT Bench, Skywork-8B (ft)
|
| 537 |
+
Figure 7: Averaged mean square error of Human Evaluation, Synthetic Evaluation and Control Variates Evaluation on different evaluators and datasets. The Synthetic Evaluation has a significantly high bias, while the error of both Human Evaluation and Control Variates Evaluation converge to zero.
|
| 538 |
+
|
| 539 |
+
Table 3: Averaged human annotation saving ratio across different synthetic evaluators on Helpsteer2.
|
| 540 |
+
|
| 541 |
+
<table><tr><td></td><td>Human Annotation Saving Ratio</td></tr><tr><td>GRM-2B</td><td>10.3%</td></tr><tr><td>Skywork-8B</td><td>21.0%</td></tr><tr><td>ArmoRM-8B</td><td>14.1%</td></tr><tr><td>GPT-4o</td><td>27.4%</td></tr></table>
|
| 542 |
+
|
| 543 |
+

|
| 544 |
+
(a) Chatbot Arena, GRM-2B
|
| 545 |
+
|
| 546 |
+

|
| 547 |
+
(b) Chatbot Arena, ArmoRM-8B
|
| 548 |
+
|
| 549 |
+

|
| 550 |
+
(c) Chatbot Arena, Skywork-8B
|
| 551 |
+
|
| 552 |
+

|
| 553 |
+
(d) Chatbot Arena, GPT-4
|
| 554 |
+
|
| 555 |
+

|
| 556 |
+
(e) MT Bench, ArmoRM-8B
|
| 557 |
+
|
| 558 |
+

|
| 559 |
+
(f) MT Bench, GRM-2B
|
| 560 |
+
|
| 561 |
+

|
| 562 |
+
(g) MT Bench, Skywork-8B
|
| 563 |
+
|
| 564 |
+

|
| 565 |
+
(h) MT Bench, GPT-4
|
| 566 |
+
|
| 567 |
+

|
| 568 |
+
(i) Chatbot Arena, GRM-2B (ft)
|
| 569 |
+
|
| 570 |
+

|
| 571 |
+
(j) MT Bench, GRM-2B (ft)
|
| 572 |
+
|
| 573 |
+

|
| 574 |
+
(k) Chatbot Arena, Skywork-8B (ft)
|
| 575 |
+
|
| 576 |
+

|
| 577 |
+
(1) MT Bench, Skywork-8B (ft)
|
| 578 |
+
Figure 8: Averaged mean square error versus number of samples for different evaluators on different datasets. The $x$ -coordinate of curves "Human" and "Control Variates" correspond to the number of human annotations (Zheng et al., 2023). The curve "Control Variates (shifted)" is derived by horizontally scaling the Control Variates curve by $1/(1 - s)$ , in which $s$ is the averaged human annotation saving ratio in Table 1. The human annotation saving ratio aligns perfectly with the actual variance relationship between Human Evaluation and Control Variates Evaluation.
|
| 579 |
+
|
| 580 |
+

|
| 581 |
+
(a) Chatbot Arena, GRM-2B
|
| 582 |
+
|
| 583 |
+

|
| 584 |
+
(b) Chatbot Arena, GRM-2B (ft)
|
| 585 |
+
|
| 586 |
+

|
| 587 |
+
(c) Chatbot Arena, Skywork-8B
|
| 588 |
+
|
| 589 |
+

|
| 590 |
+
(d) Chatbot Arena, Skywork-8B (ft)
|
| 591 |
+
|
| 592 |
+

|
| 593 |
+
(e) Chatbot Arena, ArmoRM-8B
|
| 594 |
+
|
| 595 |
+

|
| 596 |
+
(f) Chatbot Arena, GPT-4
|
| 597 |
+
Figure 9: Human annotation saving ratio (in percentage) on each LLM pair for different evaluators on Chatbot Arena. Diagonal entries are white and do not have values because it is meaningless to compute the human annotation saving ratio on two identical LLMs. Non-diagonal white entries in (f) imply an invalid result, because sometimes valid preference cannot be extracted from GPT-4's response.
|
| 598 |
+
|
| 599 |
+

|
| 600 |
+
(a) MT Bench, GRM-2B
|
| 601 |
+
|
| 602 |
+

|
| 603 |
+
(b) MT Bench, GRM-2B (ft)
|
| 604 |
+
|
| 605 |
+

|
| 606 |
+
(c) MT Bench, Skywork-8B
|
| 607 |
+
|
| 608 |
+

|
| 609 |
+
(d) MT Bench, Skywork-8B (ft)
|
| 610 |
+
|
| 611 |
+

|
| 612 |
+
(e) MT Bench, ArmoRM-8B
|
| 613 |
+
|
| 614 |
+

|
| 615 |
+
(f) MT Bench, GPT-4
|
| 616 |
+
Figure 10: Human annotation saving ratio (in percentage) on each LLM pair for different evaluators on MT Bench. Diagonal entries are white and do not have values because it is meaningless to compute the human annotation saving ratio on two identical LLMs.
|
2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d27582bca5294a419519899d268a5610f54577e5531caaa5ee237805f95ecd14
|
| 3 |
+
size 1040433
|
2025/Accelerating Unbiased LLM Evaluation via Synthetic Feedback/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/fbb217b7-142f-4ee6-98ad-93cb745f0f88_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/fbb217b7-142f-4ee6-98ad-93cb745f0f88_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/fbb217b7-142f-4ee6-98ad-93cb745f0f88_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40c21e6c8b7b24e5beba104a4b73a6f507263b00b5e7177e7dcffa921242483e
|
| 3 |
+
size 3590284
|
2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/full.md
ADDED
|
@@ -0,0 +1,650 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Accurate Identification of Communication Between Multiple Interacting Neural Populations
|
| 2 |
+
|
| 3 |
+
Belle Liu<sup>1</sup> Jacob Sacks<sup>2</sup> Matthew D. Golub<sup>2</sup>
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Neural recording technologies now enable simultaneous recording of population activity across many brain regions, motivating the development of data-driven models of communication between brain regions. However, existing models can struggle to disentangle the sources that influence recorded neural populations, leading to inaccurate portraits of inter-regional communication. Here, we introduce Multi-Region Latent Factor Analysis via Dynamical Systems (MR-LFADS), a sequential variational autoencoder designed to disentangle inter-regional communication, inputs from unobserved regions, and local neural population dynamics. We show that MR-LFADS outperforms existing approaches at identifying communication across dozens of simulations of task-trained multi-region networks. When applied to large-scale electrophysiology, MR-LFADS predicts brain-wide effects of circuit perturbations that were held out during model fitting. These validations on synthetic and real neural data position MR-LFADS as a promising tool for discovering principles of brain-wide information processing.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
Large-scale neural recording technologies, such as high-density electrophysiology (Steinmetz et al., 2019; Siegle et al., 2021; IBL et al., 2023; Chen et al., 2024; Bennett et al., 2024) and calcium imaging (Sofroniew et al., 2016; Song et al., 2017; Allen et al., 2017), now enable simultaneous recording of neural population activity across many brain regions. These advances have revealed that many sensory, cognitive, and motor processes engage spatially distributed networks in the brain (Makino et al., 2017; Gilad
|
| 12 |
+
|
| 13 |
+
<sup>1</sup>Graduate Program in Neuroscience, University of Washington; <sup>2</sup>Paul G. Allen School of Computer Science & Engineering, University of Washington. Correspondence to: Matthew Golub <mgolub@cs.washington.edu>.
|
| 14 |
+
|
| 15 |
+
Proceedings of the $42^{nd}$ International Conference on Machine Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025 by the author(s).
|
| 16 |
+
|
| 17 |
+
et al., 2018; Stringer et al., 2019; Musall et al., 2019; Allen et al., 2019; Jia et al., 2022). Consequently, there has been growing interest in the design of data-driven communication models that seek to infer the pathways and content of communication between the recorded regions.
|
| 18 |
+
|
| 19 |
+
Accurately identifying inter-regional communication is challenging for at least four reasons (Biswas et al., 2020; Kang & Druckmann, 2020; Keeley et al., 2020; Perich & Rajan, 2020; Semedo et al., 2020; Kass et al., 2023). First, communication signals are not directly observed in multi-region recordings. Although some recorded neurons might project to other recorded regions, the identity and targets of these projection neurons are typically unknown. Second, models may need to account for inputs to the recorded brain regions from other regions that were not recorded during the experiment. Third, models should faithfully reconstruct activity within each recorded region by accounting for communication between recorded regions, inputs from unrecorded regions, and local neural population dynamics—capturing complex features such as structured trial-to-trial variability (Goris et al., 2014) and nonlinear, nonstationary, and state-dependent population dynamics (Shenoy et al., 2013; Vyas et al., 2020; Duncker & Sahani, 2021; Durstewitz et al., 2023). Fourth, accurate reconstruction of the recorded data does not guarantee accurate inference of the underlying communication. Many different models may sufficiently explain the recorded data, leading to ambiguities about which, if any, should be trusted for scientific interpretation.
|
| 20 |
+
|
| 21 |
+
In this work, we introduce Multi-Region Latent Factor Analysis via Dynamical Systems (MR-LFADS), a multi-region communication model that directly addresses all of the challenges outlined above. MR-LFADS is a probabilistic model that represents each recorded region with a distinct set of stacked recurrent neural networks (RNNs) that capture the region's potentially nonlinear and nonstationary population dynamics. MR-LFADS represents communication between observed regions and inputs from unobserved regions as disentangled sets of latent variables. Structured information bottlenecks encourage the model to infer inputs from unobserved regions only when their effects cannot be explained by communication among the recorded regions. MR-LFADS infers single-trial initial conditions and time
|
| 22 |
+
|
| 23 |
+
varying inputs that together account for trial-to-trial variability in the recorded activity. This automatic inference of inputs eliminates the need to manually specify input signals, thereby avoiding strong, difficult-to-validate assumptions about how external signals influence each region. Finally, MR-LFADS constrains communication to originate from model-reconstructed neural activity, rather than from more flexible latent representations—a design choice that, as we will show, enables more accurate inference of communication without sacrificing the quality of data reconstruction.
|
| 24 |
+
|
| 25 |
+
To evaluate MR-LFADS, we developed 37 synthetic multi-region datasets that capture real-world challenges in communication modeling across a range of neuroscience-relevant scenarios. On these datasets, MR-LFADS consistently outperforms existing models in recovering the pathways and content of communication. Through targeted ablations of key design features, we demonstrate that these features indeed improve the identification of communication. We then applied MR-LFADS to multi-region electrophysiological recordings in mice performing a decision-making task (Chen et al., 2024). In a subset of trials that were held out during model fitting, photoinhibition was applied to the anterior lateral motor cortex. MR-LFADS predicted the brain-wide effects of these circuit perturbations, suggesting that MR-LFADS inferred an accurate account of inter-regional communication. Moreover, MR-LFADS infers consistent communication across multiple training runs from different random initializations, demonstrating its robustness and reliability in real-data settings.
|
| 26 |
+
|
| 27 |
+
# 2. Related Work
|
| 28 |
+
|
| 29 |
+
Existing communication models can be broadly categorized as either static or dynamic. Static methods predict each timestep of neural activity in a target region from a corresponding timestep of activity in one or more source regions and then interpret predictive source activity as inter-regional communication (Kaufman et al., 2014; Perich et al., 2018; Ruff & Cohen, 2019; Vuethey et al., 2020). Reduced-rank regression (RRR) is a prominent static technique that models target-region activity as a low-rank linear function of the source-region activity (Semedo et al., 2019; MacDowell et al., 2025). While static methods are straightforward to fit and interpret, they are typically limited to capturing instantaneous, linear dependencies. Consequently, they do not readily account for nonlinear or nonstationary relationships, or temporal structure that may arise due to neural population dynamics (Vyas et al., 2020).
|
| 30 |
+
|
| 31 |
+
Dynamic methods explicitly model temporal dependencies using, for example, switching linear dynamical systems (SLDS) (Linderman et al., 2016), RNNs (Perich et al., 2020), or Gaussian processes (Yu et al., 2008; Gokcen et al., 2022; 2024). We will pay particular attention to
|
| 32 |
+
|
| 33 |
+
two such techniques that, like MR-LFADS, are coupled nonlinear dynamical systems, with each dynamical system representing one recorded region: multi-population sticky recurrent SLDS (mp-srSLDS) (Glaser et al., 2020), and Multi-Region Switching Dynamical Systems (MR-SDS) (Karniol-Tambour et al., 2024). In mp-srSLDS each region is modeled by an SLDS, while in MR-SDS each is modeled as a switching nonlinear dynamical system.
|
| 34 |
+
|
| 35 |
+
While these existing approaches to communication modeling address some of the challenges outlined in Section 1, none, to our knowledge, address all four challenges. In particular, none of these existing methods support inferring inputs from unobserved brain regions. This functionality is crucial because inputs from unobserved regions might influence the target region's population dynamics and modes of communication. Some approaches attempt to account for unobserved inputs by explicitly providing task-related signals as inputs to each region or by removing condition averages and modeling the residual single-trial neural activity. However, these manual strategies impose strong assumptions about the content and targets of input signals. As we will show, misspecifying such inputs risks confounding inferred population dynamics and communication, leading to models that accurately reconstruct neural activity through incorrect mechanisms.
|
| 36 |
+
|
| 37 |
+
To address such unobserved inputs, Pandarinath et al. (2018) introduced Latent Factor Analysis via Dynamical Systems (LFADS), a sequential variational autoencoder (sVAE) for modeling single-trial neural population dynamics within a single recorded brain region. LFADS jointly identifies a nonlinear dynamical system, implemented as an RNN, along with the single-trial initial conditions and time-varying unobserved inputs needed to drive the system to reconstruct single-trial neural population recordings. We henceforth use SR-LFADS to refer to a single-region LFADS model. MR-LFADS builds on this foundation to support multi-region modeling with explicit disentangling of communication, unobserved inputs, and local population dynamics.
|
| 38 |
+
|
| 39 |
+
# 3. Multi-Region LFADS (MR-LFADS)
|
| 40 |
+
|
| 41 |
+
MR-LFADS is composed of a set of SR-LFADS modules (Fig. 1a) that interact through constrained communication channels (Fig. 1b). At a high level, MR-LFADS is a coupled set of driven nonlinear dynamical systems that are jointly trained to reconstruct all single trials of a multi-region dataset. Each recorded brain region $i$ is modeled as a dynamical system that attempts to reconstruct the region- $i$ recorded neural activity $x_{t}^{i}$ at each time $t = 1,\dots,T$ . Each region- $i$ dynamical system evolves from a single-trial initial state $g_0^i$ and is driven by (1) single-trial time-varying communication messages $m_t^{j\rightarrow i}$ from other recorded brain regions $j$ and (2) single-trial time-varying inferred inputs
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
(a)
|
| 45 |
+
(b)
|
| 46 |
+
|
| 47 |
+

|
| 48 |
+
Figure 1. MR-LFADS architecture. (a) Single-region LFADS, as adapted for this work. (b) MR-LFADS with $N$ regions. KL penalties from SR-LFADS in panel (a) are included in MR-LFADS, but are omitted in the diagram for clarity.
|
| 49 |
+
|
| 50 |
+
$u_{t}^{i}$ , representing input from unobserved brain regions.
|
| 51 |
+
|
| 52 |
+
Notation. All time-indexed variables and parameters are also indexed by trial, though we omit trial indices for notational simplicity. We use $t_1:t_2$ to denote the inclusive sequence of integers $\{t_1,t_1 + 1,\dots ,t_2\}$ . We use $W^{i}(x)\coloneqq W^{i}x + b^{i}$ to denote an affine transformation with weights $W^{i}$ and offsets $b^{i}$ .
|
| 53 |
+
|
| 54 |
+
Generative Model. MR-LFADS treats all initial states $g_0^i$ , communications $m_t^{j\rightarrow i}$ , and inferred inputs $u_{t}^{i}$ as latent variables. The prior distributions over these latent variables are modeled as:
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
g _ {0} ^ {i}, u _ {t} ^ {i}, m _ {t} ^ {j \rightarrow i} \sim \mathcal {N} (0, \sigma^ {2} I) \tag {1}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
Given these quantities, the neural population dynamics in region $i$ are modeled by a "generator" gated recurrent unit (GRU) network, $\mathrm{GRU}_{\mathrm{gen}}^i$ , with internal states $g_t^i$ that evolve according to:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
g _ {t} ^ {i} = \operatorname {G R U} _ {\text {g e n}} ^ {i} \left(g _ {t - 1} ^ {i}, \left[\left\{m _ {t} ^ {j \rightarrow i} \right\} _ {j \neq i}; u _ {t} ^ {i} \right]\right) \tag {2}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
A set of region- $i$ factors $f_{t}^{i}$ are defined as an affine readout from the corresponding generator states:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
f _ {t} ^ {i} = W _ {f} ^ {i} \left(g _ {t} ^ {i}\right) \tag {3}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
These factors are then transformed into parameters of time-varying output distributions in a manner dependent on the nature of the neural recordings. For continuous-valued observations, as in calcium imaging, a Gaussian or zero-inflated Gamma distribution may be appropriate (Zhu et al., 2022). In the synthetic-data experiments of Section 4, we apply a Gaussian output distribution:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
P \left(x _ {t} ^ {i} \mid g _ {0} ^ {i}, u _ {1: t} ^ {i}, \left\{m _ {1: t} ^ {j \rightarrow i} \right\} _ {j \neq i}\right) = \mathcal {N} \left(r _ {t} ^ {i}, \Sigma_ {r, t} ^ {i}\right) \tag {4}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
r _ {t} ^ {i} = W _ {r} ^ {i} \left(f _ {t} ^ {i}\right) \quad \Sigma_ {r, t} ^ {i} = \operatorname {d i a g} \left(\exp \left(W _ {\sigma_ {r}} ^ {i} \left(f _ {t} ^ {i}\right)\right)\right) \tag {5}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where $r_t^i$ and $\Sigma_{r,t}^{i}$ are the region- $i$ predicted mean and covariance of the time- $t$ recorded neural activity, respectively, and are each computed via separate affine transformations, $W_{r}^{i}$ and $W_{\sigma_r}^i$ . For spike count observations, as modeled in the electrophysiology experiments of Section 5, we apply a Poisson output distribution:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
P \left(x _ {t} ^ {i} \mid \cdot\right) = \operatorname {P o i s s o n} \left(r _ {t} ^ {i}\right) \quad r _ {t} ^ {i} = \exp \left(W _ {r} ^ {i} \left(f _ {t} ^ {i}\right)\right) \tag {6}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where the exponential nonlinearity ensures non-negative predicted firing rates $r_t^i$ .
|
| 89 |
+
|
| 90 |
+
Inference Model. Following VAE conventions (Kingma & Welling, 2013), MR-LFADS approximates the intractable true posterior distributions over the latent variables using variational posteriors, denoted $q(\cdot|\cdot)$ .
|
| 91 |
+
|
| 92 |
+
MR-LFADS defines the approximate posteriors over communication messages from observed regions $j$ to $i$ as Gaussian distributions:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
q \left(m _ {t} ^ {j \rightarrow i} \mid x _ {1: t} ^ {j}\right) = q \left(m _ {t} ^ {j \rightarrow i} \mid r _ {t} ^ {j}\right) = \mathcal {N} \left(\mu_ {m, t} ^ {j \rightarrow i}, \Sigma_ {m, t} ^ {j \rightarrow i}\right) \tag {7}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
with parameters derived from the region- $j$ predicted firing rates $r_t^j$ :
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\mu_ {m, t} ^ {j \rightarrow i} = W _ {\mu_ {m}} ^ {j \rightarrow i} \left(r _ {t} ^ {j}\right)
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\Sigma_ {m, t} ^ {j \rightarrow i} = \operatorname {d i a g} \left(\exp \left(W _ {\sigma_ {m}} ^ {j \rightarrow i} \left(r _ {t} ^ {j}\right)\right)\right)
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
Constraining communication to be derived from $r_t^j$ anchors it to the neural recordings and in doing so reduces ambiguity in system identification. We refer to this rate-based communication model as MR-LFADS(R). In Section 4, we also explore generator-based MR-LFADS(G) and factor-based MR-LFADS(F) communication models, which replace all instances of $r_t^j$ in Eq. 8 with $g_t^j$ and $f_t^j$ , respectively.
|
| 109 |
+
|
| 110 |
+
Approximate posteriors over the region- $i$ initial generator states $g_0^i$ and inferred inputs (from unobserved brain regions) $u_{t}^{i}$ are defined as the following Gaussian distributions:
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
q \left(g _ {0} ^ {i} \mid x _ {- \tau : 0} ^ {i}\right) = \mathcal {N} \left(\mu_ {g _ {0}} ^ {i}, \Sigma_ {g _ {0}} ^ {i}\right) \tag {9}
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
q \left(u _ {t} ^ {i} \mid x _ {1: t} ^ {i}\right) = \mathcal {N} \left(\mu_ {u, t} ^ {i}, \Sigma_ {u, t} ^ {i}\right) \tag {10}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
where the mean and covariance parameters are computed from the corresponding conditioning recorded neural activity $x^{i}$ via a set of region- $i$ -specific "encoder" and "controller" GRU networks (see Appendix A.1). Our approach here slightly modifies the original SR-LFADS specification, which allows acausal inference via a bidirectional encoder network that processes each entire $T$ -timestep neural recording $x_{1:T}$ to infer $g_{0}$ and each element of $u_{1:T}$ . In contrast, we infer $g_{0}^{i}$ (Eq. 9) using a bidirectional encoder applied only to past neural activity $x_{-\tau:0}^{i}$ , preserving causality, and we infer $u_{t}^{i}$ (Eq. 10) using a unidirectional encoder RNN that processes $x_{1:t}^{i}$ in a strictly forward, causal manner. This formulation ensures that all predicted firing rates $r_{t}^{i}$ , and thus all derived communication signals $m_{t}^{j\rightarrow i}$ , are inferred causally from neural activity recorded up to time $t$ .
|
| 121 |
+
|
| 122 |
+
Model Fitting. Following VAE conventions, MR-LFADS is trained by maximizing the evidence lower bound (ELBO), a variational lower bound on the data log-likelihood. The ELBO is a sum of two terms: (1) the expected log-likelihood
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\sum_ {t = 1} ^ {T} \mathbb {E} _ {q} \left[ \log P \left(\left\{x _ {t} ^ {i} \right\} \mid \left\{g _ {0} ^ {i} \right\}, \left\{u _ {t} ^ {i} \right\}, \left\{m _ {t} ^ {j \rightarrow i} \right\}\right)\right] \tag {11}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
and (2) the negative Kullback-Leibler (KL) divergence $D_{\mathrm{KL}}$ between the approximate posteriors (Eqs. 7-10) and the priors (Eq. 1) over the latent variables.
|
| 129 |
+
|
| 130 |
+
The expected log-likelihood measures reconstruction accuracy and is estimated by running samples from the approximate posteriors (Eqs. 7-10) through the generative model to evaluate the experiment-dependent output distributions from Eqs. 4-6. The $D_{\mathrm{KL}}$ term acts as a regularizing information bottleneck on the latent variables. To control this regularization, we allow rescaling of the $D_{\mathrm{KL}}$ term (Higgins et al., 2017; Keshtkaran et al., 2022). Noting that the $D_{\mathrm{KL}}$ term decomposes into contributions from the three sets of MR-LFADS latent variables $\{g_0^i\}$ , $\{u_t^i\}$ , and $\{m_t^{j\rightarrow i}\}$ , we weight each contribution differently and treat the weights $(\beta_{g_0},\beta_u,\beta_m)$ as hyperparameters. To encourage MR-LFADS to infer inputs from unobserved regions only when that information cannot be obtained as communication from an observed region, we propose a structured KL bottleneck with $\beta_{u} = 10\beta_{m}$ . Other choices of KL regularization structure might be appropriate if a priori knowledge is available about information flow or anatomical connectivity between recorded regions. See Appendix A.1 for further detail on MR-LFADS.
|
| 131 |
+
|
| 132 |
+
# 4. Results I: Synthetic Multi-Region Datasets
|
| 133 |
+
|
| 134 |
+
Here, we evaluate MR-LFADS' ability to recover the ground truth inter-regional communication across a broad range of synthetic multi-region datasets. Each dataset was generated by a unique data-generating network (DGN): an ensemble of noisy RNN modules jointly trained to perform a specified cognitive neuroscience task, with each module representing a distinct brain region. Prior to training, we explicitly specified the presence or absence of directed, low-rank communication channels between each region pair.
|
| 135 |
+
|
| 136 |
+
In Experiments 1 and 2, we manually designed the DGNs to impose specific challenges outlined in Section 1. In Experiment 3, we randomly generated dozens of DGNs, each trained to perform a randomly selected cognitive neuroscience task. Across all experiments, we treated each module's hidden-unit activity as recorded neural activity and retained all external inputs, inter-module connectivity, and communication signals as ground truth. These ground truth quantities are crucial for evaluating communication models but are typically not directly observable in real-data settings.
|
| 137 |
+
|
| 138 |
+
To benchmark MR-LFADS, we compare it to three established communication modeling techniques—RRR (see Appendix A.2), mp-srSLDS, and MR-SDS (see Section 2). To demonstrate the importance of specific MR-LFADS design features, we also compare against ablated MR-LFADS variants that selectively exclude those features. We focus evaluation on each method's ability to recover a causal model of each DGN—including both the pathways and content of inter-regional communication—given a multi-region dataset generated by the DGN.
|
| 139 |
+
|
| 140 |
+
To assess communication pathways, we consider recovery of an "effectome" (Pospisil et al., 2024) describing the causal flow of effects along the inter-regional connectome. We represent this effectome as a matrix with each element $(i,j)_{i\neq j}$ indicating the volume of directed communication flow from region $j$ to $i$ . The effectome reflects both the inter-regional connectivity and the magnitude of communication flow over each directed connection. For each dataset, we compare model-inferred effectomes to the ground truth effectome by computing cosine similarity $S_{\mathrm{cos}}$ between the vectorized effectome matrices.
|
| 141 |
+
|
| 142 |
+
To assess communication content, we quantify how well the model-inferred messages capture the information in the ground truth messages. Specifically, we apply linear regression to predict the ground truth messages $m_{t}^{j \rightarrow i}$ from the inferred messages $\mu_{m,t}^{j \rightarrow i}$ (Eq. 7), and we report a cross-validated coefficient of determination, denoted $R^{2}(\mu_{m}^{j \rightarrow i}, m^{j \rightarrow i})$ . For MR-LFADS, we use an analogous procedure to compare model-inferred inputs $\mu_{u,t}^{i}$ (Eq. 10) to ground truth external inputs. This comparison is not applica
|
| 143 |
+
|
| 144 |
+
ble to RRR, mp-srSLDS, or MR-SDS, as these methods do not infer inputs from unobserved regions. Additional details on experiments, model hyperparameters, and evaluation metrics are provided in Appendix B-D.
|
| 145 |
+
|
| 146 |
+
# 4.1. Experiment 1: Inferring Unobserved Inputs
|
| 147 |
+
|
| 148 |
+
This experiment demonstrates that inferring inputs, rather than manually specifying inputs, enables more accurate identification of inter-regional communication. To evaluate design implications related to input specification, we designed a DGN that implements a dynamical memory function. Each region of this "memory network" receives unique stimulus information from one observed region and one unobserved region, and is tasked with remembering a recent history of those signals (Fig. 2a, left). With each region of the DGN receiving information from both observed and unobserved sources, this setup poses the challenge of disentangling whether each signal arises due to communication or due to external input. A common modeling choice is to provide all known external inputs to all model regions and to let model fitting determine which inputs are needed by each region. However, in this case, such manual input specification can result in a model completely forgoing communication (Fig. 2a, right) because the manually specified inputs contain the information that was actually transmitted as communication in the DGN.
|
| 149 |
+
|
| 150 |
+
We evaluate MR-LFADS(R), which does not use the stimulus signals during training or evaluation but rather automatically infers external inputs in an unsupervised manner. We also evaluate an ablated MR-LFADS variant that does not automatically infer inputs. Termed MR-LFADS(S), this model receives all stimulus signals as manually specified external inputs to each region's generator $\mathrm{GRU}_{\mathrm{gen}}^i$ (replacing $u_{t}^{i}$ with $s_t^{1:3}$ in Eq. 2). By comparison, MR-SDS and mp-srSLDS also receive all stimulus signals as manually specified inputs, and RRR neither receives nor infers external inputs.
|
| 151 |
+
|
| 152 |
+
The MR-LFADS variants (R and S) reconstructed the simulated multi-region activity more accurately than MR-SDS, mp-rSLDS, and RRR (Fig. 2b, Fig. S1a). Critically, MR-LFADS(R) accurately infers the effectome (Fig. 2c, left, Fig. S1b). By contrast, all models that are manually provided stimulus signals (MR-LFADS(S), MR-SDS, mprSLDS) infer less accurate effectomes and demonstrate the failure mode mentioned above, forgoing communication and instead relying on the specified inputs to provide the corresponding signals. RRR also infers a less accurate effectome. These results suggest that manually specifying inputs can discourage models from utilizing—and thus identifying—communication. By automatically inferring inputs, MR-LFADS(R) avoids this failure mode.
|
| 153 |
+
|
| 154 |
+
Next, we assess the accuracy of inferred inputs and mes
|
| 155 |
+
|
| 156 |
+
sages. In the ground truth DGN at time $t$ , region- $i$ receives only $s_t^i$ and $m_t^{j\rightarrow i}$ . An accurate communication model should therefore infer inputs and messages that encode only these time- $t$ quantities. However, due to structure of the memory task, the DGN's region- $i$ time- $t$ activity contains information about $s_{t - 4:t}^i$ and $m_{t - 4:t}^{j\rightarrow i} = s_{t - 6:t - 2}^j$ . To re
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
(a)
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Memory Network
|
| 163 |
+
|
| 164 |
+

|
| 165 |
+
(b)
|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
Model Fit
|
| 169 |
+
(c)
|
| 170 |
+
Inferred Effectome
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
(d)
|
| 182 |
+
Inferred Inputs
|
| 183 |
+
Figure 2. Experiment 1. (a) Left: DGN setup. Each region, area $A^i$ , receives a private stimulus $s_t^i$ (red) and communicates a two-step delayed version $s_{t-2}^i$ (blue) to a downstream region. Each region is trained to recall (green) the last five time steps of its private stimulus and its received communication. Right: Potential incorrect communication model capable of accurately reconstructing these synthetic neural data. (b) $R^2$ scores for data reconstruction. Box plots describe distributions of values across 10 models fit from distinct random initializations (seeds). Boxes represent the interquartile range (IQR), and whiskers extend to the most extreme points within 1.5 IQR from the quartiles. (c) Left: Cosine similarity between inferred effectomes and ground truth. Right: Example fitted models. Color intensity indicates the relative message norm, computed by concatenating all multidimensional messages across trials and time, taking the 2-norm, then normalizing across communication channels. $s^{1:3}$ indicates the ground truth input. (d) $R^2$ of linear prediction of ground truth stimulus inputs (with time lag $\in \{0,2\}$ ) from inferred inputs. (e) $R^2$ of linear prediction of ground truth messages (with time lag $\in \{2,4\}$ ) from inferred messages.
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
(e) Inferred Communication
|
| 187 |
+
|
| 188 |
+
construct the data, a communication model must account for how this time-lagged information becomes represented in region- $i$ at time- $t$ . MR-LFADS(R) correctly infers the current timestep ground truth stimuli $s_t^i$ as inputs to each region (Fig. 2d, left), while correctly avoiding inferring time-lagged versions of those stimuli (Fig. 2d, right), despite their utility for data reconstruction. Similarly, MR-LFADS(R) accurately recovers the current timestep messages $m_t^{j \rightarrow i}$ (Fig. 2e, left) and avoids incorrectly inferring time-lagged versions (Fig. 2e, right). By contrast, all other models infer no communication or communication with incorrect temporal lags (Fig. S1c). See Appendix B.2 for further details.
|
| 189 |
+
|
| 190 |
+
Taken together, these results indicate that MR-LFADS(R) learned region-specific population dynamics consistent with those that implement the memory functions in the ground truth DGN. Moreover, these results demonstrate the unique ability of MR-LFADS(R) to disentangle region-specific external inputs, communication between recorded regions, and local population dynamics, all in an unsupervised manner that mitigates biases associated with manual specification of external inputs. See Appendix E.1 for further analyses linking this disentangling (Miller et al., 2024) to MR-LFADS(R)'s structured information bottlenecks.
|
| 191 |
+
|
| 192 |
+
# 4.2. Experiment 2: Data-Constrained Communication
|
| 193 |
+
|
| 194 |
+
This experiment demonstrates the implications of message-inference design choices. We designed MR-LFADS(R) to infer messages as affine functions of the source-region predicted firing rates $r_t^i$ (Eqs. 7-8), which are tied to the observed source-region neural activity $x_t^i$ through the data reconstruction term in the ELBO (Eq. 11). This data-constrained communication architecture contrasts with that of MR-SDS and mp-srSLDS, which infer communication as a function of less-constrained, source-region latent dynamical states (see Table S3). To directly evaluate the implications of this design choice, all within the MR-LFADS framework, we designed model variants with less-constrained factor-based and generator-based communication, termed MR-LFADS(F) and MR-LFADS(G), respectively.
|
| 195 |
+
|
| 196 |
+
To highlight the significance of this design choice, we evaluate models on data from a two-region "pass-decision" DGN that computes perceptual decisions based on time-varying sensory evidence (Fig. 3a, left). An upstream region, area $A^P$ , receives a white noise stimulus $s_t$ and is trained to pass that stimulus through to a readout, effectively learning an identity function routing input to output. A downstream decision region, area $A^D$ , receives this routed stimulus as communication $m_t^{P\rightarrow D}$ , integrates that stimulus over time into a decision variable $d_t$ , and reports $\pm 1$ choices indicating the sign of that decision variable (Mante et al., 2013).
|
| 197 |
+
|
| 198 |
+
This setup again challenges models to disentangle external inputs, communication, and local dynamics—and in partic-
|
| 199 |
+
|
| 200 |
+
ular, accurately identifying and localizing the ground truth pass-through and integration computations. Though the integration dynamics are localized to $A^D$ in the DGN, an overly flexible model might instead learn integration in $A^P$ , yielding accurate data reconstruction but mislocalizing the computation, e.g., if $A^P$ integrates $s_t$ into $d_t$ and communicates $d_t$ as $m^{P\to D}$ to $A^D$ (Fig. 3a, right).
|
| 201 |
+
|
| 202 |
+
On this pass-decision dataset, all MR-LFADS models achieved comparably high-fidelity data reconstruction, slightly outperforming MR-SDS and mp-srSLDS (Fig. 3b, Fig. S2a). RRR reconstructed the data poorly, likely due to its inability to capture the timescale of the integration computation, i.e., $d_{t}$ cannot be predicted from any single-timestep value $s_{t'}$ .
|
| 203 |
+
|
| 204 |
+
MR-LFADS(R) inferred the most accurate effectome (Fig. 3c, Fig. S2b), identifying $A^P \to A^D$ communication but not $A^D \to A^P$ . By contrast, all other models, including MR-LFADS(F) and MR-LFADS(G), identified spurious
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 3. Experiment 2. (a) Left: DGN setup, with stimulus (red), communication (blue), trained readouts (green), and computations (I: identity; $\int$ : integration). Right: Potential failure mode for a learned model. (b) $R^2$ scores for data reconstruction. (c) Left: Cosine similarity between inferred effectomes and ground truth. Right: Example fitted models. Color intensity indicates relative message norm. (d) $R^2$ of linear prediction of ground truth input $s$ to region $P$ , from inferred inputs. (e) Left: $R^2$ when predicting ground truth messages $m^{P \to D} = s$ from inferred messages, $\mu_m^{P \to D}$ . Right: $R^2$ when predicting the decision variable $d$ from $\mu_m^{P \to D}$ , indicating mislocalization of integration.
|
| 212 |
+
|
| 213 |
+
$A^D\to A^P$ communication.
|
| 214 |
+
|
| 215 |
+
All MR-LFADS variants correctly inferred inputs to $A^P$ that encoded $s_t$ (Fig. 3d). Because MR-SDS and mp-srSLDS do not infer unsupervised inputs, we estimated their effective inputs by passing the manually specified inputs through their corresponding trained input mappings. In MR-SDS, these effective inputs to $A^P$ carried markedly less information about $s_t$ relative to MR-LFADS and mp-srSLDS.
|
| 216 |
+
|
| 217 |
+
Accurate identification of communication requires inferred messages $m_t^{P \rightarrow D}$ to encode the stimulus $s_t$ . By contrast, $m_t^{P \rightarrow D}$ instead encoding the decision variable $d_t$ would imply mislocalization of the integration dynamic (Fig. 3a, right). Only MR-LFADS(R), mp-srSLDS, and RRR correctly encoded $s_t$ in $m_t^{P \rightarrow D}$ (Fig. 3e, left) without incorrectly encoding $d_t$ (Fig. 3e, right).
|
| 218 |
+
|
| 219 |
+
Taken together, these Experiment 2 results again demonstrate MR-LFADS(R) outperforming existing methods at disentangling external inputs, communication, and local population dynamics, without sacrificing data reconstruction. The comparisons to MR-LFADS(F) and MR-LFADS(G) specifically highlight the importance of
|
| 220 |
+
|
| 221 |
+
MR-LFADS(R)'s data-constrained communication, which improves identification of communication by reducing ambiguity inherent to overly flexible models. See Appendix E.2 for further analyses into this excessive flexibility.
|
| 222 |
+
|
| 223 |
+
# 4.3. Experiment 3: Generalization Across Random Multi-Region Networks
|
| 224 |
+
|
| 225 |
+
The previous experiments utilized datasets synthesized by DGNs designed to highlight specific failure modes of communication models. However, real brain-wide networks exhibit a broad range of architectures and computations. To assess generalization across such a broad range of settings, here we evaluate communication models on datasets generated by a wide variety of randomly configured multi-region DGNs (Fig. 4a, top), each trained to perform a randomly selected cognitive neuroscience task (Fig. 4a, bottom). We generated 35 multi-region datasets, each from a unique task-trained DGN consisting of three or four regions and randomized inter-regional connectivity. Tasks were drawn from the set described by Yang et al. (2019), spanning multiple variants of decision-making, working memory, categorization, and inhibitory control (see Appendix D).
|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
(a) Random Multi-Region Task-Trained Networks
|
| 229 |
+
|
| 230 |
+

|
| 231 |
+
(b)
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
(c)
|
| 235 |
+
Inferred Effectome
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
(d)
|
| 239 |
+
Inferred Communication rel. MR-LFADS (R)
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
Example Task: Multisensory Decision-Making (Raposo et al., 2014)
|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
Figure 4. Experiment 3. (a) Top: Each DGN is configured with a random number of areas (3 or 4), random inter-regional connectivity, and is trained on a randomly selected task. Bottom: Example task setup. On each trial, the DGNs received a noisy fixation stimulus $s_{\mathrm{fix},t}$ and two noisy task stimuli, represented in polar coordinates as $s_t^k = (a_t^{(k)},\theta_t^{(k)})$ for $k\in \{1,2\}$ . DGNs were trained to process these inputs into task-dependent outputs: a response angle $\theta^{\mathrm{resp}}$ and a task-dependent saccadic eye movement. Here, multisensory decision-making is depicted as an example task. When the fixation cue disappears, the output area $A^N$ must saccade and report the $\theta^{(i)}$ value corresponding to the stimulus with larger $a^{(i)}$ . (b) $R^2$ scores for data reconstruction. Box plots describe distributions of values across 35 DGN fits. (c) Cosine similarity $(S_{\mathrm{cos}})$ of inferred effectomes relative to ground truth, compared to that of MR-LFADS(R), with $\Delta S_{\mathrm{cos}} = S_{\mathrm{cos}}^{\mathrm{model}} - S_{\mathrm{cos}}^{\mathrm{MR-LFADS(R)}}$ . One-tailed t-test p-values: $p = 0.00016, 0.12, 0.006, 0.0, 0.01$ . NS: not significant. (d) Left: $R^2$ scores, relative to MR-LFADS(R), for linear prediction of ground truth messages from inferred messages. One-tailed t-test p-values: $p = 0.0, 0.0, 0.01, 0.0, 0.14$ . Right: $R^2$ scores, relative to MR-LFADS(R), for linear prediction of inferred messages from ground truth messages. One-tailed t-test p-values: $p = 0.0004, 0.0, 0.08, 0.0, 0.0$ . (e) Inferred effectomes from models fit to datasets from a three-region DGN (top) and a four-region DGN (bottom). We chose the datasets on which MR-LFADS(R) achieved its median $S_{\mathrm{cos}}$ scores (across the 35 generated datasets). Color intensity indicates relative message norm.
|
| 248 |
+
|
| 249 |
+

|
| 250 |
+
(e)
|
| 251 |
+
|
| 252 |
+
We fit MR-LFADS(R), (F), and (G), along with MR-SDS, mp-srSLDS, and RRR, to each of these datasets. Aggregating results across all datasets, the MR-LFADS models achieved the best data reconstruction, which was indistinguishable across model variants (Fig. 4b, Fig. S3). MR-LFADS(R) and MR-LFADS(G) inferred the most accurate effectomes, with statistically indistinguishable $S_{\mathrm{cos}}$ distributions (Fig. 4c). To evaluate the accuracy of inferred message content, we attempted to linearly decode the ground truth messages from the inferred messages and quantified accuracy using the $R^2$ scores of these predictions (Fig. 4d, left). We also performed the reverse, predicting the inferred messages from the ground truth and interpreted lower $R^2$ scores as an indication that inferred messages contained additional information beyond that present in the ground truth (Fig. 4d, right). MR-LFADS(R) was the only model that performed best across both of these metrics. Inferred effectomes from two example datasets are shown in Fig. 4e. Taken together, these results demonstrate that MR-LFADS(R) outperforms existing communication models across a broad range of neuroscience-relevant synthetic multi-region datasets.
|
| 253 |
+
|
| 254 |
+
# 5. Results II: Multi-Region Electrophysiology
|
| 255 |
+
|
| 256 |
+
Here, we apply MR-LFADS(R) to large-scale electrophysiological data from multiple simultaneously recorded Neuropixel probes in mice performing a decision-making task (Fig. 5a) (Chen et al., 2024). We test whether MR-LFADS can predict the effects of causal circuit perturbations that
|
| 257 |
+
|
| 258 |
+
were held out from training. We also assess the reliability of inferred inter-regional communication across random initializations, comparing MR-LFADS(R) to MR-LFADS(G).
|
| 259 |
+
|
| 260 |
+
We trained a 5-region MR-LFADS(R) model on simultaneously recorded population activity from anterior lateral motor cortex (ALM), midbrain reticular nucleus (MRN), superior colliculus (SC), thalamic regions with strong, reciprocal connections to ALM (Thal(A)), and other thalamic regions (Thal(O)). In a subset of trials excluded from training, ALM was transiently photoinhibited (Fig. 5a). MR-LFADS was trained only on unperturbed ("control") trials, with photoinhibition trials held out for validation. See Appendix F for further detail.
|
| 261 |
+
|
| 262 |
+
We first verified that MR-LFADS accurately reconstructed multi-regional neural activity in held-out control trials (Fig. 5b). We then adapted MR-LFADS(R) to predict the effects of ALM photoinhibition on the remaining recorded regions (Fig. 5c). To mimic ALM photoinhibition in silico, we ablated MR-LFADS communication from ALM to the other regions by zeroing all outgoing messages from ALM. We summarized the temporal influence of ALM photoinhibition by computing the differences between condition-averaged population activity in photoinhibition $(\bar{r}_t^{\ddagger})$ and control $(\bar{r}_t^{c})$ trials. MR-LFADS predicted these photoinhibition effects (Fig. 5d), despite never seeing photoinhibition trials during training. Namely, MR-LFADS predicted that Thal(A) would be most affected by ALM photoinhibition, MRN least affected, and SC and Thal(O) intermediately affected. These results demonstrate that MR-LFADS learned
|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
Figure 5. MR-LFADS(R) applied to multi-region, high-density electrophysiology. (a) Mice receive a high- or low-tone auditory stimulus ("sample") and respond by licking left or right ("response"). (b) MR-LFADS single-trial predicted firing rates in held-out control trials (blue), recorded spike times (black vertical ticks), and smoothed, binned spike counts (black; causal, exponential filter) for example neurons in each modeled brain region. (c) Condition-averaged smoothed spike counts of example neurons in control and photoinhibition trials (left-hit condition). Shaded regions indicate the standard deviation across trials. (d) Photoinhibition-related changes in population recordings, as observed experimentally (left) and as predicted by MR-LFADS (right). (e) Cosine similarity of inferred effectomes across models with different random initializations (seeds). (f) Message norms inferred by MR-LFADS(R) for all connections across example seeds $k$ . (g) Correlation of inferred message norms across pairs of seeds $(k,l)$ . Box plots describe distributions of values across 5 models fit from distinct random initializations.
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
|
| 275 |
+

|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
|
| 279 |
+
a model of inter-regional communication that is accurate enough to predict multi-regional effects of causal circuit perturbations.
|
| 280 |
+
|
| 281 |
+
Finally, we evaluated the consistency of MR-LFADS across random initializations of the model parameters. We compared MR-LFADS(R) and MR-LFADS(G), each trained using five different random seeds, on simultaneous population recordings from ALM, thalamus, and MRN (see Appendix F2). Both models inferred consistent effectomes (Fig. 5e), but message content was more consistent across seeds in MR-LFADS(R) (Fig. 5f, g), further highlighting the benefits of data-constrained communication—particularly for improving the reproducibility of scientific conclusions derived from the model.
|
| 282 |
+
|
| 283 |
+
# 6. Discussion
|
| 284 |
+
|
| 285 |
+
Understanding how brain regions interact to support distributed computation requires communication models that can disentangle inter-regional communication from local population dynamics, accounting for region-specific inputs from unrecorded regions. In this work, we identified critical failure modes that limit existing communication models—including misidentification due to manually specified external inputs and mislocalization of neural dynamics due to overly flexible communication architectures. We introduced MR-LFADS, a communication model specifically designed to mitigate such failures through three key design features: (1) automatic inference of region-specific inputs from unobserved sources, (2) data-constrained communication inferred from reconstructed firing rates, and (3) structured regularization that promotes disentangling and prevents inferring inputs from unobserved sources when the same information can be obtained via communication from observed regions. These features discourage the model from learning spurious solutions that explain the data but misrepresent inter-regional interactions. While MR-LFADS is one concrete implementation, the three design principles are more general, and alternative architectures—for example, different formulations of the local-region dynamical systems—may also succeed if they incorporate these same principles.
|
| 286 |
+
|
| 287 |
+
Using synthetic datasets designed to rigorously test communication models, we demonstrated that MR-LFADS outperforms existing approaches in accurately recovering both the structure and content of inter-regional communication. Crucially, ablated model variants indicated that these performance gains stem directly from MR-LFADS design features. Applying MR-LFADS to real multi-region electrophysiological recordings further validated its utility. MR-LFADS inferred inter-regional interactions that accurately predicted brain-wide effects of causal perturbations, despite these perturbations being absent during training. In this setting,
|
| 288 |
+
|
| 289 |
+
MR-LFADS models were also more reproducible across random model initializations compared to a model variant that removed data-constraints on inferred communication.
|
| 290 |
+
|
| 291 |
+
Despite its advantages, MR-LFADS has potential limitations. MR-LFADS can be sensitive to hyperparameter (HP) settings, mirroring a known limitation of SR-LFADS (Keshtkaran et al., 2022). Thus, significant computational resources might be required to adequately optimize HPs. As in SR-LFADS, HPs specifying the prior distributions (Eq. 1) can shape the representations of inferred latent variables, which can in turn shape the inferred population dynamics. Although inferred inputs have been shown to reflect the presence, identity, and timing of external inputs (Pandarinath et al., 2018), future work is needed to interpret the representations of those signals (Sedler et al., 2023; Versteeg et al., 2024). The data-constrained communication we propose in this work might mitigate this representational sensitivity in the context of inferred communication.
|
| 292 |
+
|
| 293 |
+
Another set of MR-LFADS HPs (the $\beta$ 's from Section 3) control the model's preference to infer communication rather than inputs from unobserved regions whenever possible. While the settings we chose were effective in this study, different choices may be needed in other scenarios—especially when an unrecorded region directly drives multiple recorded regions. This classical correlation-causation confound cannot be resolved from passively observed neural activity alone. While MR-LFADS recovers more causal structure than existing methods, its greatest value may be in generating hypotheses about communication and motivating targeted causal circuit perturbations to test them.
|
| 294 |
+
|
| 295 |
+
# Acknowledgments
|
| 296 |
+
|
| 297 |
+
This work was supported by NIH award T32-MH132518 (JS), the Paul G. Allen Foundation (MDG), and NIH award R00-MH121533 (MDG). We thank O. Karniol-Tambour for valuable discussion and support with MR-SDS (Karniol-Tambour et al., 2024). We are grateful to S. Chen, N. Steinmetz, E. Shea-Brown, and J.N. Kutz for insightful input on the project, and to H. Gurnani, T. Kim, and J. Pemberton for thoughtful feedback on the manuscript. We are also grateful to D. Sussillo, K. Shenoy, W. Newsome, and C. Pandarinath for many years of guidance and inspiration relevant to this project.
|
| 298 |
+
|
| 299 |
+
# Impact Statement
|
| 300 |
+
|
| 301 |
+
This work aims to advance the fields of machine learning and neuroscience, with potential societal impacts including the development of neuroengineering technologies and treatments for neurological injuries, diseases, and neuropsychiatric conditions.
|
| 302 |
+
|
| 303 |
+
# References
|
| 304 |
+
|
| 305 |
+
Akiba, T., Sano, S., Yanase, T., Ohta, T., and Koyama, M. Optuna: A next-generation hyperparameter optimization framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2019.
|
| 306 |
+
Allen, W. E., Kauvar, I. V., Chen, M. Z., Richman, E. B., Yang, S. J., Chan, K., Gradinaru, V., Deverman, B. E., Luo, L., and Deisseroth, K. Global representations of goal-directed behavior in distinct cell types of mouse neocortex. Neuron, 94(4):891-907, 2017.
|
| 307 |
+
Allen, W. E., Chen, M. Z., Pichamoorthy, N., Tien, R. H., Pa-chitariu, M., Luo, L., and Deisseroth, K. Thirst regulates motivated behavior through modulation of brainwide neural population dynamics. Science, 364(6437):eaav3932, 2019.
|
| 308 |
+
Bennett, C., Ouellette, B., Ramirez, T. K., Cahoon, A., Cabasco, H., Browning, Y., Lakunina, A., Lynch, G. F., McBride, E. G., Belski, H., et al. Shield: Skull-shaped hemispheric implants enabling large-scale electrophysiology datasets in the mouse brain. *Neuron*, 112(17): 2869-2885, 2024.
|
| 309 |
+
Biswas, T., Bishop, W. E., and Fitzgerald, J. E. Theoretical principles for illuminating sensorimotor processing with brain-wide neuronal recordings. Current Opinion in Neurobiology, 65:138-145, 2020.
|
| 310 |
+
Chen, S., Liu, Y., Wang, Z. A., Colonel, J., Liu, L. D., Hou, H., Tien, N.-W., Wang, T., Harris, T., Druckmann, S., et al. Brain-wide neural activity underlying memory-guided movement. Cell, 187(3):676-691, 2024.
|
| 311 |
+
Dai, B., Wang, Y., Aston, J., Hua, G., and Wipf, D. Connections with robust PCA and the role of emergent sparsity in variational autoencoder models. Journal of Machine Learning Research, 19(41):1-42, 2018.
|
| 312 |
+
Duncker, L. and Sahani, M. Dynamics on the manifold: Identifying computational dynamical activity from neural population recordings. Current Opinion in Neurobiology, 70:163-170, 2021.
|
| 313 |
+
Durstewitz, D., Koppe, G., and Thurm, M. I. Reconstructing computational system dynamics from neural data with recurrent neural networks. Nature Reviews Neuroscience, 24(11):693-710, 2023.
|
| 314 |
+
Gilad, A., Gallero-Salas, Y., Groos, D., and Helmchen, F. Behavioral strategy determines frontal or posterior location of short-term memory in neocortex. Neuron, 99 (4):814-828, 2018.
|
| 315 |
+
|
| 316 |
+
Glaser, J., Whiteway, M., Cunningham, J. P., Paninski, L., and Linderman, S. Recurrent switching dynamical systems models for multiple interacting neural populations. Advances in Neural Information Processing Systems, 33: 14867-14878, 2020.
|
| 317 |
+
Gokcen, E., Jasper, A. I., Semento, J. D., Zandvakili, A., Kohn, A., Machens, C. K., and Yu, B. M. Disentangling the flow of signals between populations of neurons. Nature Computational Science, 2(8):512-525, 2022.
|
| 318 |
+
Gokcen, E., Jasper, A., Xu, A., Kohn, A., Machens, C. K., and Yu, B. M. Uncovering motifs of concurrent signaling across multiple neuronal populations. Advances in Neural Information Processing Systems, 36, 2024.
|
| 319 |
+
Goris, R. L., Movshon, J. A., and Simoncelli, E. P. Partitioning neuronal variability. Nature Neuroscience, 17(6): 858-865, 2014.
|
| 320 |
+
Higgins, I., Matthew, L., Pal, A., Burgess, C., Glorot, X., Botvinick, M., Mohamed, S., and Lerchner, A. beta-vae: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017.
|
| 321 |
+
IBL, Benson, B., Benson, J., Birman, D., Bonacchi, N., Bougrova, K., Bruijns, S. A., Carandini, M., Catarino, J. A., Chapuis, G. A., et al. A brain-wide map of neural activity during complex behaviour. bioRxiv preprint, 2023.
|
| 322 |
+
Jia, X., Siegle, J. H., Durand, S., Heller, G., Ramirez, T. K., Koch, C., and Olsen, S. R. Multi-regional module-based signal transmission in mouse visual cortex. Neuron, 110 (9):1585-1598, 2022.
|
| 323 |
+
Kang, B. and Druckmann, S. Approaches to inferring multi-regional interactions from simultaneous population recordings. Current Opinion in Neurobiology, 65: 108-119, 2020.
|
| 324 |
+
Karniol-Tambour, O., Zoltowski, D. M., Diamanti, E. M., Pinto, L., Brody, C. D., Tank, D. W., and Pillow, J. W. Modeling state-dependent communication between brain regions with switching nonlinear dynamical systems. In The Twelfth International Conference on Learning Representations, 2024.
|
| 325 |
+
Kass, R. E., Bong, H., Olarinre, M., Xin, Q., and Urban, K. N. Identification of interacting neural populations: methods and statistical considerations. Journal of Neurophysiology, 130(3):475-496, 2023.
|
| 326 |
+
Kaufman, M. T., Churchland, M. M., Ryu, S. I., and Shenoy, K. V. Cortical activity in the null space: permitting preparation without movement. Nature Neuroscience, 17(3): 440-448, 2014.
|
| 327 |
+
|
| 328 |
+
Keeley, S. L., Zoltowski, D. M., Aoi, M. C., and Pillow, J. W. Modeling statistical dependencies in multi-region spike train data. Current Opinion in Neurobiology, 65: 194-202, 2020.
|
| 329 |
+
Keshtkaran, M. R., Sedler, A. R., Chowdhury, R. H., Tandon, R., Basrai, D., Nguyen, S. L., Sohn, H., Jazayeri, M., Miller, L. E., and Pandarinath, C. A large-scale neural network training framework for generalized estimation of single-trial population dynamics. Nature Methods, 19 (12):1572-1577, 2022.
|
| 330 |
+
Kingma, D. P. and Welling, M. Auto-encoding variational bayes. arXiv preprint, 1312.6114, 2013.
|
| 331 |
+
Liaw, R., Liang, E., Nishihara, R., Moritz, P., Gonzalez, J. E., and Stoica, I. Tune: A research platform for distributed model selection and training. arXiv preprint arXiv:1807.05118, 2018.
|
| 332 |
+
Linderman, S. W., Miller, A. C., Adams, R. P., Blei, D. M., Paninski, L., and Johnson, M. J. Recurrent switching linear dynamical systems. arXiv preprint, 1610.08466, 2016.
|
| 333 |
+
MacDowell, C. J., Libby, A., Jahn, C. I., Tafazoli, S., Ardalan, A., and Buschman, T. J. Multiplexed subspaces route neural activity across brain-wide networks. Nature Communications, 16(1):3359, 2025.
|
| 334 |
+
Makino, H., Ren, C., Liu, H., Kim, A. N., Kondapaneni, N., Liu, X., Kuzum, D., and Komiyama, T. Transformation of cortex-wide emergent properties during motor learning. Neuron, 94(4):880-890, 2017.
|
| 335 |
+
Mante, V., Sussillo, D., Shenoy, K. V., and Newsome, W. T. Context-dependent computation by recurrent dynamics in prefrontal cortex. Nature, 503(7474):78-84, 2013.
|
| 336 |
+
Miller, K., Eckstein, M., Botvinick, M., and Kurth-Nelson, Z. Cognitive model discovery via disentangled rnns. Advances in Neural Information Processing Systems, 36, 2024.
|
| 337 |
+
Musall, S., Kaufman, M. T., Juavinett, A. L., Gluf, S., and Churchland, A. K. Single-trial neural dynamics are dominated by richly varied movements. Nature Neuroscience, 22(10):1677-1686, 2019.
|
| 338 |
+
Pandarinath, C., O'Shea, D. J., Collins, J., Jozefowicz, R., Stavisky, S. D., Kao, J. C., Trautmann, E. M., Kaufman, M. T., Ryu, S. I., Hochberg, L. R., et al. Inferring single-trial neural population dynamics using sequential auto-encoders. Nature Methods, 15(10):805-815, 2018.
|
| 339 |
+
Perich, M. G. and Rajan, K. Rethinking brain-wide interactions through multi-region 'network of networks' models. *Current Opinion in Neurobiology*, 65:146-151, 2020.
|
| 340 |
+
|
| 341 |
+
Perich, M. G., Gallego, J. A., and Miller, L. E. A neural population mechanism for rapid learning. *Neuron*, 100 (4):964-976, 2018.
|
| 342 |
+
Perich, M. G., Arlt, C., Soares, S., Young, M. E., Mosher, C. P., Minxha, J., Carter, E., Rutishauser, U., Rudebeck, P. H., Harvey, C. D., et al. Inferring brain-wide interactions using data-constrained recurrent neural network models. bioRxiv preprint, 2020.
|
| 343 |
+
Pospisil, D. A., Aragon, M. J., Dorkenwald, S., Matslieh, A., Sterling, A. R., Schlegel, P., Yu, S.-c., McKellar, C. E., Costa, M., Eichler, K., et al. The fly connectome reveals a path to the effectome. Nature, 634(8032):201-209, 2024.
|
| 344 |
+
Raposo, D., Kaufman, M. T., and Churchland, A. K. A category-free neural population supports evolving demands during decision-making. Nature neuroscience, 17(12):1784-1792, 2014.
|
| 345 |
+
Ruff, D. A. and Cohen, M. R. Simultaneous multi-area recordings suggest that attention improves performance by reshaping stimulus representations. Nature Neuroscience, 22(10):1669-1676, 2019.
|
| 346 |
+
Sedler, A. R., Versteeg, C., and Pandarinath, C. Expressive architectures enhance interpretability of dynamics-based neural population models. Neurons, Behavior, Data Analysis, and Theory, 2023, 2023.
|
| 347 |
+
Semedo, J. D., Zandvakili, A., Machens, C. K., Byron, M. Y., and Kohn, A. Cortical areas interact through a communication subspace. Neuron, 102(1):249-259, 2019.
|
| 348 |
+
Semedo, J. D., Gokcen, E., Machens, C. K., Kohn, A., and Byron, M. Y. Statistical methods for dissecting interactions between brain areas. *Current Opinion in Neurobiology*, 65:59-69, 2020.
|
| 349 |
+
Shenoy, K. V., Sahani, M., and Churchland, M. M. Cortical control of arm movements: a dynamical systems perspective. Annual Review of Neuroscience, 36(1):337-359, 2013.
|
| 350 |
+
Siegle, J. H., Jia, X., Durand, S., Gale, S., Bennett, C., Graddis, N., Heller, G., Ramirez, T. K., Choi, H., Luviano, J. A., et al. Survey of spiking in the mouse visual system reveals functional hierarchy. Nature, 592(7852):86-92, 2021.
|
| 351 |
+
Sofroniew, N. J., Flickinger, D., King, J., and Svoboda, K. A large field of view two-photon mesoscope with subcellular resolution for in vivo imaging. eLife, 5:e14472, 2016.
|
| 352 |
+
|
| 353 |
+
Song, A., Charles, A. S., Koay, S. A., Gauthier, J. L., Thiberge, S. Y., Pillow, J. W., and Tank, D. W. Volumetric two-photon imaging of neurons using stereoscopy (vTwINS). Nature Methods, 14(4):420-426, 2017.
|
| 354 |
+
Steinmetz, N. A., Zatka-Haas, P., Carandini, M., and Harris, K. D. Distributed coding of choice, action and engagement across the mouse brain. Nature, 576(7786):266-273, 2019.
|
| 355 |
+
Stringer, C., Pachitariu, M., Steinmetz, N., Reddy, C. B., Carandini, M., and Harris, K. D. Spontaneous behaviors drive multidimensional, brainwide activity. Science, 364 (6437):eaav7893, 2019.
|
| 356 |
+
Versteeg, C., Sedler, A. R., McCartney, J. D., and Pandarinath, C. Expressive dynamics models with nonlinear injective readouts enable reliable recovery of latent features from neural activity. In Proceedings of the 2nd NeurIPS Workshop on Symmetry and Geometry in Neural Representations, volume 228 of Proceedings of Machine Learning Research, pp. 255-278. PMLR, 2024.
|
| 357 |
+
Veuthey, T., Derosier, K., Kondapavulur, S., and Ganguly, K. Single-trial cross-area neural population dynamics during long-term skill learning. Nature Communications, 11(1):4057, 2020.
|
| 358 |
+
Vyas, S., Golub, M. D., Sussillo, D., and Shenoy, K. V. Computation through neural population dynamics. Annual Review of Neuroscience, 43(1):249-275, 2020.
|
| 359 |
+
Watanabe, S. Tree-structured parzen estimator: Understanding its algorithm components and their roles for better empirical performance. arXiv preprint arXiv:2304.11127, 2023.
|
| 360 |
+
Yang, G. R., Joglekar, M. R., Song, H. F., Newsome, W. T., and Wang, X.-J. Task representations in neural networks trained to perform many cognitive tasks. Nature Neuroscience, 22(2):297-306, 2019.
|
| 361 |
+
Yu, B. M., Cunningham, J. P., Santhanam, G., Ryu, S., Shenoy, K. V., and Sahani, M. Gaussian-process factor analysis for low-dimensional single-trial analysis of neural population activity. Advances in Neural Information Processing Systems, 21, 2008.
|
| 362 |
+
Zhu, F., Grier, H. A., Tandon, R., Cai, C., Agarwal, A., Giovannucci, A., Kaufman, M. T., and Pandarinath, C. A deep learning framework for inference of single-trial neural population dynamics from calcium imaging with subframe temporal resolution. Nature Neuroscience, 25 (12):1724-1734, 2022.
|
| 363 |
+
|
| 364 |
+
# A. Models
|
| 365 |
+
|
| 366 |
+
# A.1. Multi-Region LFADS (MR-LFADS)
|
| 367 |
+
|
| 368 |
+
Reconstruction validation. During training, we held out $10\%$ of the neurons in each real or synthetic brain region for validation. After training MR-LFADS, we fit a separate linear decoder post hoc on the training trials, regressing the inferred factors onto the held-out neurons' activity. Since the decoder is not trained end-to-end with MR-LFADS, held-out neurons do not influence model fitting. Goodness of fit is reported as the $R^2$ between predicted and observed held-out-neuron activity on validation trials.
|
| 369 |
+
|
| 370 |
+
KL penalty. A critical hyperparameter during training is the scale of the KL penalty. The KL penalty coefficient for the inferred inputs, $\beta_{u}$ , is always set higher than that for communication, $\beta_{m}$ , an implicit assumption that encourages the network to prioritize learning information via communication channels whenever possible. The timing of when KL penalties are introduced also impacts results, though to a lesser extent. The schedule we found to work well begins with an initial stage where no KL penalty is applied, allowing the model to overfit to the data. Next, the penalty for inferred inputs is introduced, discouraging the model's reliance on these inputs. Finally, the penalty for communication is added, limiting the model from learning excessive information through communication channels.
|
| 371 |
+
|
| 372 |
+
Weight regularization. We apply light $L_{2}$ regularization to all GRU network recurrent weights.
|
| 373 |
+
|
| 374 |
+
Hyperparameters. Table S1 summarizes key hyperparameters used in the MR-LFADS models. Overall, we find that KL coefficients have the most impact on held-out neuron loss, $S_{\mathrm{cos}}$ , and $R^2$ scores for messages compared to other hyperparameters. SR-LFADS was originally described with a factor layer that is potentially lower dimensional than the number of generator units or modeled neurons. Here, we remove the rank constraint from the generator hidden states to rates by setting $N_{\mathrm{fac}} = N_{\mathrm{neu}}$ . Additionally, the inferred input and message channel dimensions only need to exceed the estimated true dimensionality of these quantities, as KL penalties naturally suppress redundant channels by driving their activity to zero, as discussed in Appendix E.1.
|
| 375 |
+
|
| 376 |
+
Table S1. Key hyperparameters for MR-LFADS models. Experiment 4 refers to applications to multi-region electrophysiology data.
|
| 377 |
+
|
| 378 |
+
<table><tr><td>Hyperparameter</td><td>value</td><td>Description</td></tr><tr><td>learning rate</td><td>∈ [10-5, 0.004]</td><td>Scheduled by PyTorch's ReduceLROnPlateau; initial value: 0.004</td></tr><tr><td>T</td><td>190</td><td>Total time steps used for inferring inferred inputs</td></tr><tr><td>τ</td><td>10</td><td>Total time steps used for inferring the initial condition</td></tr><tr><td>total epoch</td><td>350</td><td>Total number of epochs</td></tr><tr><td>βu</td><td></td><td>KL penalty coefficient for u; performs search for this hyperparameter</td></tr><tr><td>βu start epoch</td><td>50</td><td>Epoch at which βu starts increasing from 0</td></tr><tr><td>βu increase epoch</td><td>200</td><td>Number of epochs for βu to reach the maximum value</td></tr><tr><td>βm</td><td></td><td>KL penalty coefficient for m; performs search for this hyperparameter</td></tr><tr><td>βm start epoch</td><td>150</td><td>Epoch at which βm starts increasing from 0</td></tr><tr><td>βm increase epoch</td><td>100</td><td>Number of epochs for βm to reach the maximum value</td></tr><tr><td>βg0</td><td>βu</td><td>KL penalty coefficient for g0</td></tr><tr><td>α</td><td>104</td><td>L2 penalty coefficient</td></tr><tr><td>α start epoch</td><td>0</td><td>Epoch at which α starts increasing from 0</td></tr><tr><td>α increase epoch</td><td>80</td><td>Number of epochs for α to reach the maximum value</td></tr><tr><td>Nneu^i</td><td></td><td>Number of neurons, (64, 16, 64) for exp 1, 2 and 3 respectively</td></tr><tr><td>Ngen^i</td><td>2Nneu^i</td><td>Generator size</td></tr><tr><td>Nfac^i</td><td>Nneu^i</td><td>Factor size</td></tr><tr><td>Ninp^i</td><td></td><td>Inferred input dimension, (4, 8, 6, 8) for exp 1, 2, 3 and 4 respectively</td></tr><tr><td>Nmsg^i</td><td></td><td>Inferred message dimension, (4, 16, 10, 8) for exp 1, 2, 3 and 4 respectively</td></tr></table>
|
| 379 |
+
|
| 380 |
+
Unidirectional Encoder and Controller. To ensure that inferred inputs reflect only causal information—so that messages, in turn, are causal and thereby allow a more mechanistic interpretation in MR-LFADS—we modify the original LFADS model so that both the encoder and controller used for input inference are entirely unidirectional:
|
| 381 |
+
|
| 382 |
+
$$
|
| 383 |
+
e _ {t} ^ {i} = \operatorname {G R U} _ {\text {e n c}, u} ^ {i} \left(e _ {t - 1} ^ {i}, x _ {t} ^ {i}\right) \tag {12}
|
| 384 |
+
$$
|
| 385 |
+
|
| 386 |
+
$$
|
| 387 |
+
c _ {t} ^ {i} = \mathrm {G R U} _ {\mathrm {c o n}} ^ {2} (c _ {t - 1} ^ {i}, [ e _ {t} ^ {i}; f _ {t - 1} ^ {i} ])
|
| 388 |
+
$$
|
| 389 |
+
|
| 390 |
+
The inferred inputs are then given by:
|
| 391 |
+
|
| 392 |
+
$$
|
| 393 |
+
q \left(u _ {t} ^ {i} \mid x _ {1: t} ^ {i}\right) = q \left(u _ {t} ^ {i} \mid c _ {t} ^ {i}\right) = \mathcal {N} \left(\mu_ {u, t} ^ {i}, \Sigma_ {u, t} ^ {i}\right) \tag {13}
|
| 394 |
+
$$
|
| 395 |
+
|
| 396 |
+
$$
|
| 397 |
+
\mu_ {u, t} ^ {i} = W _ {\mu_ {u}} ^ {i} \left(c _ {t} ^ {i}\right) \quad \Sigma_ {u, t} ^ {i} = \operatorname {d i a g} \left(\exp \left(W _ {\sigma_ {u}} ^ {i} \left(c _ {t} ^ {i}\right)\right)\right)
|
| 398 |
+
$$
|
| 399 |
+
|
| 400 |
+
By contrast, the encoder for the initial condition can remain bidirectional, since it operates on data preceding $t = 1$ and thus does not violate causality:
|
| 401 |
+
|
| 402 |
+
$$
|
| 403 |
+
e _ {t} ^ {i, -} = \operatorname {G R U} _ {\text {e n c}, g} ^ {i, -} \left(e _ {t + 1} ^ {i, -}, x _ {t} ^ {i}\right) \tag {14}
|
| 404 |
+
$$
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
e _ {t} ^ {i, +} = \mathrm {G R U} _ {\mathrm {e n c}, g} ^ {i, +} \left(e _ {t - 1} ^ {i, +}, x _ {t} ^ {i}\right)
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
$$
|
| 411 |
+
q (g _ {0} ^ {i} \mid x _ {- \tau : 0} ^ {i}) = q (g _ {0} ^ {i} \mid [ e _ {- \tau} ^ {i, -}; e _ {0} ^ {i, +} ]) = \mathcal {N} (\mu_ {g _ {0}} ^ {i}, \Sigma_ {g _ {0}} ^ {i})
|
| 412 |
+
$$
|
| 413 |
+
|
| 414 |
+
$$
|
| 415 |
+
\mu_ {g _ {0}} ^ {i} = W _ {\mu_ {g _ {0}}} ^ {i} \left(\left[ e _ {- \tau} ^ {i, -}; e _ {0} ^ {i, +} \right]\right) \tag {15}
|
| 416 |
+
$$
|
| 417 |
+
|
| 418 |
+
$$
|
| 419 |
+
\Sigma_ {g _ {0}} ^ {i} = \mathrm {d i a g} \Big (\exp \left(W _ {\sigma_ {g _ {0}}} ^ {i} ([ e _ {- \tau} ^ {i, -}; e _ {0} ^ {i, +} ])\right)
|
| 420 |
+
$$
|
| 421 |
+
|
| 422 |
+
# A.2. Reduced-Rank Regression
|
| 423 |
+
|
| 424 |
+
The RRR model used in this study is based on the inter-regional communication subspace model of MacDowell et al. (2025), which integrates reduced-rank regression with ridge regression. The key difference in our implementation is that we apply the rank constraint separately to each source brain region, allowing us to disentangle the contributions of individual areas. Specifically, rather than concatenating activity from all regions into a single input matrix governed by a shared rank-constrained weight matrix—which conflates signals across regions—we assign a dedicated weight submatrix to each source region $A^{j}$ , each with its own rank constraint $r^{j}$ .
|
| 425 |
+
|
| 426 |
+
Therefore, for the communication subspace model, we have:
|
| 427 |
+
|
| 428 |
+
$$
|
| 429 |
+
W^{\mathrm{rrr}} = \operatorname *{arg min}_{\mathrm{rank}(W) = r}\| Y - XW\|_{F}^{2} + \alpha \| W\|_{F}^{2}
|
| 430 |
+
$$
|
| 431 |
+
|
| 432 |
+
which is equivalent to:
|
| 433 |
+
|
| 434 |
+
$$
|
| 435 |
+
W ^ {\text {r i d g e}} = \arg \min _ {W} \| Y - X W \| _ {F} ^ {2} + \alpha \| W \| _ {F} ^ {2}
|
| 436 |
+
$$
|
| 437 |
+
|
| 438 |
+
$$
|
| 439 |
+
\begin{array}{l} W ^ {\text {r r}} = \arg \min _ {W} \| Y - X W ^ {\text {r i d g e}} \| _ {F} ^ {2} \tag {16} \\ + \left\| X W ^ {\text {r i d g e}} - X W \right\| _ {F} ^ {2} \\ \end{array}
|
| 440 |
+
$$
|
| 441 |
+
|
| 442 |
+
which is then equivalent to:
|
| 443 |
+
|
| 444 |
+
$$
|
| 445 |
+
W ^ {\text {r r}} = W ^ {\text {r i d g e}} V _ {r} V _ {r} ^ {T}, \text {w h e r e} U \Sigma V ^ {T} = X W ^ {\text {r i d g e}}
|
| 446 |
+
$$
|
| 447 |
+
|
| 448 |
+
where $X \in \mathbb{R}^{T \times N_{\mathrm{src}}}$ represents the activity of all source regions concatenated together, and $Y \in \mathbb{R}^{T \times N_{\mathrm{tar}}}$ represents the activity of the target region. $W^{\mathrm{ridge}}$ is the weight matrix obtained after applying ridge regression, and $\alpha$ is the ridge regularization parameter. $W^{\mathrm{rrr}}$ is the reduced-rank regression matrix obtained after ridge regression is applied. In the final step, singular value decomposition (SVD) is applied to $X W^{\mathrm{ridge}}$ , where $U\Sigma V^T$ is the decomposition, and $V_r$ corresponds to the top $r$ components of $V$ .
|
| 449 |
+
|
| 450 |
+
In this version, the $W^{\mathrm{ridge}}$ matrix is divided into chunks corresponding to different regions $A^{j}$ :
|
| 451 |
+
|
| 452 |
+
$$
|
| 453 |
+
W ^ {\text {r i d g e}} = \left[ W ^ {\text {r i d g e}, 1}; W ^ {\text {r i d g e}, 2}; \dots ; W ^ {\text {r i d g e}, N} \right], \tag {17}
|
| 454 |
+
$$
|
| 455 |
+
|
| 456 |
+
where each $W^{\mathrm{ridge},j}$ corresponds to the contribution of source region $A^{j}$ , and $[W^{1};\dots;W^{N}]$ represents a vertical stack of the matrices. SVD is then applied to each individual $W^{\mathrm{ridge},j}$ matrix:
|
| 457 |
+
|
| 458 |
+
$$
|
| 459 |
+
U ^ {j} \Sigma^ {j} \left(V ^ {j}\right) ^ {T} = W ^ {\text {r i d g e}, j}. \tag {18}
|
| 460 |
+
$$
|
| 461 |
+
|
| 462 |
+
The reduced-rank version of $W^{\mathrm{ridge},j}$ is computed as:
|
| 463 |
+
|
| 464 |
+
$$
|
| 465 |
+
W ^ {\text {r r}, j} = W ^ {\text {r i d g e}, j} V _ {r ^ {j}} ^ {j} \left(V _ {r ^ {j}} ^ {j}\right) ^ {T}. \tag {19}
|
| 466 |
+
$$
|
| 467 |
+
|
| 468 |
+
Finally, all $W^{\mathrm{rrr},j}$ matrices are concatenated to form the complete $W^{\mathrm{rrr}}$ matrix. This ensures that the rank reduction applied to each $W^{\mathrm{ridge},j}$ only compresses the information within that specific region's contribution, preserving the interpretability of the communication pathway from $A^{j}$ to the target region.
|
| 469 |
+
|
| 470 |
+
The hyperparameters for this model include $\alpha$ and a matrix $R\in \mathbb{R}^{N\times N}$ , where each element $r^{ij}$ represents the rank associated with the communication from source region $A^j$ to target region $A^i$ . Additionally, since time delays may exist between regions—and such delays are explicitly configured in the synthetic datasets—a delay parameter $d^{ij}$ is introduced for each source-target communication channel.
|
| 471 |
+
|
| 472 |
+
For fitting the memory and pass-decision networks, to tune the model, we perform an iterative search based on cross-validation performance, optimizing the hyperparameters in the following order: $D = \{d^{ij} : i,j = 1,\dots,N,i\neq j\}$ , $\alpha$ , and $R = \{r^{ij} : i,j = 1,\dots,N,i\neq j\}$ . This process is repeated until the hyperparameter values converge. The final values used are provided in Table S2. While the rank values $R$ for both networks did not converge exactly to the true ranks of the messages, they were close. Notably, providing the true number of latents did not necessarily lead to better results. The delay values $D$ were accurately learned for both models.
|
| 473 |
+
|
| 474 |
+
For fitting the networks in Experiment 3, the true delay is directly provided, and other hyperparameters are iterated in the same order for 10 epochs.
|
| 475 |
+
|
| 476 |
+
To increase the robustness of the RRR model fit, we implemented a bagging approach. For each model, 10 trials were bootstrapped from the training set, with each trial containing 200 time steps. A total of 87 fitted models were averaged to obtain the matrix $W^{\mathrm{rrr}}$ . This specific number of models was chosen to ensure that the total number of trials used during training remained consistent with other models.
|
| 477 |
+
|
| 478 |
+
Table S2. Hyperparameter search results for RRR models.
|
| 479 |
+
|
| 480 |
+
<table><tr><td></td><td>Memory</td><td>Pass-Decision</td></tr><tr><td>α</td><td>0.055</td><td>0.01</td></tr><tr><td>R</td><td>12 24
|
| 481 |
+
12 32
|
| 482 |
+
24 18</td><td>6 1</td></tr><tr><td>dij, i≠j</td><td>2</td><td>0</td></tr></table>
|
| 483 |
+
|
| 484 |
+
# A.3. Multi-Region Switching Dynamical Systems
|
| 485 |
+
|
| 486 |
+
We consider two variants of multi-region switching dynamical system models. The first is mp-srSLDS (Glaser et al., 2020), which consists of linear transitions, dynamics, and emissions. The relevant hyperparameters are the number of latent states per region, the number of discrete switching states, amount of $L_{1}$ and $L_{2}$ regularization on the weights, and the learning rate. Additionally, we consider MR-SDS (Karniol-Tambour et al., 2024), which is an extension that uses nonlinear transitions, dynamics, and emissions. It consists of two components: an inference network and a latent state-space model. The inference network is a transformer that performs the amortized inference of latent variables given observed neural activity. The latent state-space model is composed of a number of networks and functions as a structured prior on the latent variables. Specifically, we consider additive communication and input terms to the latent dynamics of the state-space model. That is, messages from other regions and external inputs affected the latent dynamics via additive terms. Relevant hyperparameters include the number of latent states per region, the number of discrete switching states, and the sizes of each sub-network.
|
| 487 |
+
|
| 488 |
+
For both models, we did extensive hyperparameter tuning to find the best model for each of the synthetic datasets and then computed all metrics on a held-out test set. We used the Tree-structured Parzen Estimator (TPE) algorithm (Watanabe, 2023)
|
| 489 |
+
|
| 490 |
+
with the Optuna backend (Akiba et al., 2019) in Ray Tune (Liaw et al., 2018). The algorithm fits two Gaussian mixture models (GMMs), one to the set of parameter values associated with the best objective and another to the remaining ones. It chooses new parameters to explore by maximizing the ratio of the likelihood between these two GMMs. As such, it is a search strategy which uses results from prior tested hyperparameters to inform the next choice of hyperparameters to test. We used the TPE algorithm to search over all relevant hyperparameters above. Additionally, for MR-SDS, we used dropout for regularization with the default settings in the provided implementation. We also manually picked a good learning rate and number of epochs for training. Finally, we also made use of co-smoothing for evaluation. This holds out a set of neurons from the inference network, and computes the fit on the reconstruction of these held-out neurons.
|
| 491 |
+
|
| 492 |
+
# A.4. Model Comparisons
|
| 493 |
+
|
| 494 |
+
We outline the key design features of MR-LFADS variants and existing communication models in Table S3. Models are compared across four criteria: (1) region-specific dynamics, (2) unsupervised inferred inputs, (3) data-constrained communication, and (4) structured information bottlenecks. Only MR-LFADS(R) incorporates all four features.
|
| 495 |
+
|
| 496 |
+
MR-LFADS(S) ablates the controller, removing inferred inputs and instead using manually specified external inputs for each region. MR-LFADS(F) and MR-LFADS(G) both communicate via latent variables not directly grounded in observed data—using factors and generator states, respectively.
|
| 497 |
+
|
| 498 |
+
MR-SDS and mp-srSLDS include region-specific dynamics but rely on external inputs and latent-variable-based messaging, without any regularization on inputs or communication. RRR infers communication from observable quantities but lacks dynamics and inputs altogether. While it enforces a rank constraint on the communication subspace, this is not equivalent to explicit regularization on messages.
|
| 499 |
+
|
| 500 |
+
Table S3. Design features of MR-LFADS variants and existing communication models.
|
| 501 |
+
|
| 502 |
+
<table><tr><td></td><td>Region-Specific Dynamics</td><td>Unsupervised Inferred Inputs</td><td>Data-Constrained Communication</td><td>Structured Information Bottlenecks</td></tr><tr><td>MR-LFADS(R)</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>MR-LFADS(S)</td><td>✓</td><td>×</td><td>✓</td><td>×</td></tr><tr><td>MR-LFADS(F)</td><td>✓</td><td>✓</td><td>×</td><td>✓</td></tr><tr><td>MR-LFADS(G)</td><td>✓</td><td>✓</td><td>×</td><td>✓</td></tr><tr><td>MR-SDS</td><td>✓</td><td>×</td><td>×</td><td>×</td></tr><tr><td>mp-srSLDS</td><td>✓</td><td>×</td><td>×</td><td>×</td></tr><tr><td>RRR</td><td>×</td><td>×</td><td>✓</td><td>×</td></tr></table>
|
| 503 |
+
|
| 504 |
+
# B. Evaluation Metrics
|
| 505 |
+
|
| 506 |
+
# B.1. Quantifying Effectome Similarity
|
| 507 |
+
|
| 508 |
+
In a trained MR-LFADS model, we define the inferred effectome to be a matrix of pairwise message norms, $M$ , with element $M_{i,j}$ as the average value of $\| \mu_{m,t}^{j\rightarrow i}\| _2$ (Eq. 7) across all trials and timesteps. In Experiments 1-2, we compared model-inferred effectomes to the corresponding ground truth connectivity matrix $M_{\mathrm{true}}$ , consisting of ones and zeros to indicate the presence or absence of a communication channel in the DGN, respectively. In contrast, Experiment 3 features networks in which not all connections are actively used; in this case, we define $M_{\mathrm{true}}$ analogously to $M$ , but computed using ground truth messages $m^{j\rightarrow i}$ instead of inferred messages $\mu_{m,t}^{j\rightarrow i}$ . To assess similarity between $M$ and $M_{\mathrm{true}}$ , we flatten these matrices into vectors— $\vec{m}$ and $\vec{m}_{\mathrm{true}}$ —and compute their cosine similarity:
|
| 509 |
+
|
| 510 |
+
$$
|
| 511 |
+
S _ {\cos} = \frac {\langle \vec {m} , \vec {m} _ {\text {t r u e}} \rangle}{\| \vec {m} \| _ {2} \cdot \| \vec {m} _ {\text {t r u e}} \| _ {2}} \in [ 0, 1 ], \tag {20}
|
| 512 |
+
$$
|
| 513 |
+
|
| 514 |
+
where perfect alignment is indicated when $S_{\mathrm{cos}} = 1$ .
|
| 515 |
+
|
| 516 |
+
To visualize an inferred effectome (e.g., Fig. 2c, right), we plot arrows whose color intensity reflects the relative message norm, computed by concatenating all multi-dimensional messages across trial and time, taking the 2-norm, and then
|
| 517 |
+
|
| 518 |
+
normalizing across all channels, with inferred communication and inputs normalized separately. The arrows in Fig. 4e, bottom are further scaled by a sigmoid function for visual contrast. All reported values elsewhere are computed without applying any thresholds or scaling, and heatmap visualizations of the effectome are also provided in Fig. S1b, Fig. S2b.
|
| 519 |
+
|
| 520 |
+
# B.2. Evaluating Information Encoded in Learned Messages
|
| 521 |
+
|
| 522 |
+
In Experiment 1, we tested whether the inferred inputs and communications encoded information about the past ground truth values, as the network's hidden units activity contains information about past inputs. A correct model should only learn the ground truth inputs or communications. For the results shown in Fig. 2d-e, right, the r-squared values were calculated with a time lag $d$ as $R^2 (\mu_{m,t}^{j\rightarrow i},m_{t - d}^{j\rightarrow i})$ .
|
| 523 |
+
|
| 524 |
+
# C. Synthetic Datasets for System Identification Issues
|
| 525 |
+
|
| 526 |
+
Synthetic datasets for networks from Experiments 1-3 have 1024, 1024 and 820 total trials respectively, of which $85\%$ is used for training, and $15\%$ for validation. The length of each trial is 200 time steps.
|
| 527 |
+
|
| 528 |
+
# C.1. Memory Network
|
| 529 |
+
|
| 530 |
+
In this synthetic network, each region $A^i$ is modeled as an GRU network with 64 units that receives a private stimulus $s_t^i \sim \mathcal{N}(0,\mathbb{I})$ with dimensions $r^i$ . To simulate communication channels carrying different amounts of independent information, the dimensions are set as $(r^1,r^2,r^3) = (2,3,4)$ . Each region has a linear readout $W_{\mathrm{out}}$ , and the outputs are required to encode information about the history of all inputs (i.e., stimuli and communication) for up to 5 time steps, enforced using a mean squared error loss. Similarly, the messages transmitted between regions are trained to match $s_{t - 2}^i$ and are also optimized via a mean squared error loss. Additionally, each region is subjected to dynamic noise $\xi \sim \mathcal{N}(0,0.01\mathbb{I})$ , introduced as perturbations to the RNN activity at each time step.
|
| 531 |
+
|
| 532 |
+
After training the synthetic network, for MR-LFADS, we performed a hyperparameter sweep over the KL penalty coefficients for inferred inputs $(\beta_{u} \in \{0.01, 0.1, 1, 10\})$ and communication $(\beta_{m} \in \{0.001, 0.01\})$ . The coefficient pair that resulted in the lowest held-out neuron loss, $(\beta_{u}, \beta_{m}) = (0.1, 0.01)$ , was selected. Using these optimized coefficients, we ran the MR-LFADS fit across 10 different seeds, which randomizes model initialization and subsequent sampling of inferred quantities during training, but does not change the allocation of training versus validation data.
|
| 533 |
+
|
| 534 |
+
Comparing Experiments 1 and 2, it is shown that mp-srSLDS and MR-SDS activity reconstruction performance underperforms compared to the MR-LFADS variants in Experiment 1 (Fig. 2b), but not in Experiment 2 (Fig. 3b). One possible explanation for this discrepancy is the amount of information that the latent variables must encode at each time step. For example, in area $A^1$ , the private stimulus is $s_t^1 \in \mathbb{R}^2$ , and the incoming message from area $A^3$ is $m_t^{3 \to 1} = s_{t - 2}^3 \in \mathbb{R}^4$ . As a result, the latent representation at time $t$ must capture information spanning 5 time steps and 6 variables in total. Under a standard hyperparameter tuning scheme (Section A.3), latent variable models like mp-srSLDS and MR-SDS may struggle to represent all this information accurately.
|
| 535 |
+
|
| 536 |
+
# C.2.Pass-Decision Network
|
| 537 |
+
|
| 538 |
+
In this synthetic network, each area is an GRU that contains 16 units. The stimulus $s_t$ is two-dimensional and independently sampled from an exponential distribution with rate parameter of 3 time steps. Using a non-Gaussian distribution tests whether the model can learn the correct solution despite structural mismatches between the data and the model, as both the prior and posterior of inferred inputs and messages are Gaussian.
|
| 539 |
+
|
| 540 |
+
Each region has a linear readout $W_{\mathrm{out}}$ , whose output is required to match its corresponding latent variables ( $s_t$ for area $A^P$ and $d_t$ for $A^D$ ). The message sent from $A^P$ to $A^D$ is trained to represent $s_t$ . Additionally, $A^D$ must encode whether $d_t$ is greater or less than 0 at all times, mimicking a binary decision-making process.
|
| 541 |
+
|
| 542 |
+
For the pass-decision network, a low KL penalty for inferred inputs $(\beta_{u} = 0.0075)$ was necessary to achieve good held-out neuron loss, while the KL penalty for communication $(\beta_{m} = 0.001)$ was set to be approximately one order of magnitude smaller. Using these coefficients, we ran the MR-LFADS fit across 10 different seeds.
|
| 543 |
+
|
| 544 |
+

|
| 545 |
+
(a)
|
| 546 |
+
(c)
|
| 547 |
+
Activity Reconstruction
|
| 548 |
+
Inferred Communication
|
| 549 |
+
|
| 550 |
+

|
| 551 |
+
Figure S1. Memory network. (a) Example traces of data reconstruction. Row: example neuron from an area, column: different trials. (b) Inferred effectomes visualized as heatmaps. Top: Inferred inputs, bottom: communication. Color intensity represents message norms normalized by the largest input $\left(\max_{i}||\mu_{u}^{i}||_{2}\right)$ or message norm $\left(\max_{i,j}||\mu_{m}^{j\rightarrow i}||_{2}\right)$ within each model. These largest inferred inputs are, from left to right: 76, 175, 60, 188, 0. The largest messages are: 195, 22, 95, 1431, 5. (c). $R^2$ of linear prediction of ground truth messages (with 2 time step lag on the left, 4 time step lag on the right) via inferred messages. MR-LFADS(R) results (left) are replicated from Fig. 2e.
|
| 552 |
+
|
| 553 |
+

|
| 554 |
+
(a)
|
| 555 |
+
(b)
|
| 556 |
+
|
| 557 |
+

|
| 558 |
+
Figure S2. Pass-decision network. (a) Example traces of data reconstruction. Row: example neuron from an area, column: different trials. (b) Inferred effectomes visualized as circuit diagrams and heatmaps. Top: circuit diagram, middle: inferred inputs, bottom: communication. Color intensity represents message norms normalized by the largest input or message norm within each model.
|
| 559 |
+
|
| 560 |
+
# D. Randomly Generated Multi-Region Networks
|
| 561 |
+
|
| 562 |
+
We generated a distribution of networks designed to perform computational tasks inspired by Yang et al. (2019). Each network consists of either 3 or 4 regions. A connection probability $p \in \{0.5, 0.6, 0.7\}$ is specified, and the connectome is randomly drawn. To be considered valid, the connectome must meet two criteria: (1) each region must have at least one input connection and one output connection to ensure no region is redundant, and (2) all regions must be within a maximum distance of 2 steps from the output region. Once a valid connectome is generated, the network is trained on one of the computational tasks. During training, dynamic noise $\xi \sim \mathcal{N}(0, 0.01\mathbb{I})$ is applied to all regions, and the only loss is based on whether the output region produces the correct response. Networks that meet the performance thresholds (train accuracy $> 0.8$ and validation accuracy $> 0.6$ ) are selected as synthetic datasets.
|
| 563 |
+
|
| 564 |
+
For this case, since we aim to collect a distribution of results, we do not perform a hyperparameter sweep over the KL penalties. Instead, we fit one instance of each communication model to each synthetic dataset using a single random seed. The computational tasks inspired by Yang et al. (2019) are described below.
|
| 565 |
+
|
| 566 |
+
All trials are 200 time steps in length. Each task receives a fixation input $s_{\mathrm{fix},t}$ , stimuli from two channels $s_t^{(1)} = (a^{(1)},\theta^{(1)})$ and $s_t^{(2)} = (a^{(2)},\theta^{(2)})$ , and requires a saccade response $r_t^{\mathrm{sacc}}$ and an additional response $r_{\mathrm{resp},t} = (1,\theta_{\mathrm{resp}})$ , which differ based on the specified task. For different tasks, stimuli may come from one or both of the channels. Both the stimuli and responses are expressed in polar coordinates, with a resolution of 10 degrees per angle.
|
| 567 |
+
|
| 568 |
+
The tasks are described in terms of 3 different families: the go task family, context-dependent decision-making family, and matching family. For all tasks, $t_{\mathrm{start}} \in [30,50)$ denotes the onset of the first (and sometimes only) stimulus (Table S4).
|
| 569 |
+
|
| 570 |
+
Table S4. Task parameters for all families in multi-region data generating networks.
|
| 571 |
+
|
| 572 |
+
<table><tr><td>Task</td><td>Δoffset</td><td>Δdelay</td><td>tsacc</td><td>θresp</td></tr><tr><td>Go</td><td>N/A</td><td>∞</td><td>tstart + Δdur</td><td>θ(i)</td></tr><tr><td>Anti-Go</td><td>N/A</td><td>∞</td><td>tstart + Δdur</td><td>π + θ(i)</td></tr><tr><td>Delay-Go</td><td>N/A</td><td>[30, 50)</td><td>tstart + Δdur + Δdelay</td><td>θ(i)</td></tr><tr><td>Delay-Anti-Go</td><td>N/A</td><td>[30, 50)</td><td>tstart + Δdur + Δdelay</td><td>π + θ(i)</td></tr><tr><td>DM1</td><td>0</td><td>[30, 50)</td><td>tstart + Δdur</td><td>θ(1)</td></tr><tr><td>DM2</td><td>0</td><td>[30, 50)</td><td>tstart + Δdur</td><td>θ(2)</td></tr><tr><td>MultSen DM</td><td>0</td><td>[30, 50)</td><td>tstart + Δdur</td><td>θ(i), i = arg maxi r(i)</td></tr><tr><td>Delay-DM1</td><td>[10, 20)</td><td>[30, 50)</td><td>tstart + Δdur + Δoffset</td><td>θ(1)</td></tr><tr><td>Delay-DM2</td><td>[10, 20)</td><td>[30, 50)</td><td>tstart + Δdur + Δoffset</td><td>θ(2)</td></tr><tr><td>Delay MultSen DM</td><td>[10, 20)</td><td>[30, 50)</td><td>tstart + Δdur + Δoffset</td><td>θ(i), i = arg maxi r(i)</td></tr><tr><td>Angle</td><td>[10, 20)</td><td>[30, 50)</td><td>tstart + Δdur + Δoffset if θ(1) = θ(2)</td><td>θ(2)</td></tr><tr><td>Anti-Angle</td><td>[10, 20)</td><td>[30, 50)</td><td>tstart + Δdur + Δoffset if θ(1) = θ(2)</td><td>π + θ(2)</td></tr><tr><td>Category</td><td>[10, 20)</td><td>[30, 50)</td><td>tstart + Δdur + Δoffset if sign(θ(1)) = sign(θ(2))</td><td>θ(2)</td></tr><tr><td>Anti-Category</td><td>[10, 20)</td><td>[30, 50)</td><td>tstart + Δdur + Δoffset if sign(θ(1)) = sign(θ(2))</td><td>π + θ(2)</td></tr></table>
|
| 573 |
+
|
| 574 |
+
The duration of all stimulus pulses in a trial is represented by $\Delta_{\mathrm{dur}} \in [30, 50)$ , and $\Delta_{\mathrm{offset}}$ specifies the offset between the two stimuli, if applicable. The time between the last stimulus offset and the fixation cue offset is given by $\Delta_{\mathrm{delay}}$ , where $\Delta_{\mathrm{delay}} = \infty$ indicates that the fixation cue never disappears. The onset of the saccade is denoted as $t_{\mathrm{sacc}}$ . Each parameter— $t_{\mathrm{start}}$ , $\Delta_{\mathrm{dur}}$ , $\Delta_{\mathrm{offset}}$ , and $\Delta_{\mathrm{delay}}$ —is drawn independently and uniformly from its specified half-open interval $[t_1, t_2)$ .
|
| 575 |
+
|
| 576 |
+
# D.1. Go Task Family
|
| 577 |
+
|
| 578 |
+
The common characteristic of tasks in this family is that only one of the stimulus channels contains the signal, which varies between trials. Depending on the specific task, the network must saccade dependently or independently of the fixation cue. The response is required to be either in the direction of the signal pulse, $\theta^{(i)}$ , or in the opposite direction, $\pi + \theta^{(i)}$ . The individual tasks are summarized in Table S4.
|
| 579 |
+
|
| 580 |
+
# D.2. Context-Dependent Decision-Making Family
|
| 581 |
+
|
| 582 |
+
For this family of tasks, stimulus pulses occur in both channels, and the network must report either $\theta^{(1)}$ or $\theta^{(2)}$ , depending on the specific task type. In some tasks, the pulses occur at different times, requiring the network to maintain memory of the stimuli. The task parameters for this family are summarized in Table S4.
|
| 583 |
+
|
| 584 |
+
# D.3. Matching Family
|
| 585 |
+
|
| 586 |
+
In the matching tasks, the network determines whether to saccade based on whether the two stimulus angles "match." In the "Angle" tasks, the network saccades only if $\theta^{(1)} = \theta^{(2)}$ under the given resolution (10 degrees per angle). In the "Category" tasks, the network saccades if $\mathrm{sign}(\theta^{(1)}) = \mathrm{sign}(\theta^{(2)})$ , meaning both angles are either positive or negative. Task details are provided in Table S4. Regardless of whether the angles match, the response is always set to report the angle $\theta^{(2)}$ (or the opposite of it).
|
| 587 |
+
|
| 588 |
+

|
| 589 |
+
|
| 590 |
+

|
| 591 |
+
Figure S3. Randomly generated multi-region network: example traces of data reconstruction for networks with median MR-LFADS(R) performance for 3 regions (a) and 4 regions (b).
|
| 592 |
+
|
| 593 |
+
# E. Implications of Constrained Architectural Choices in Restricting Message Content
|
| 594 |
+
|
| 595 |
+
# E.1. Input and Message Inference with KL Penalties
|
| 596 |
+
|
| 597 |
+
KL penalties with standard Gaussian priors in variational autoencoders are known to reduce latent space dimensionality by pruning unnecessary dimensions (Dai et al., 2018; Miller et al., 2024). Consequently, with sufficiently high KL penalty coefficients $(\beta_{u},\beta_{m})$ , MR-LFADS is incentivized to use only the communication channels essential for data reconstruction. This effect is evident when comparing the most active channel (i.e., the one with the highest input or message norm across trials and time) to the least active ones (Fig. S4a, b). Examining input and message norms across all channels further confirms that some channels are effectively silenced (Fig. S4c).
|
| 598 |
+
|
| 599 |
+

|
| 600 |
+
|
| 601 |
+

|
| 602 |
+
Figure S4. The effect of KL penalties on restricting information across inferred inputs and communication channels in Experiment 1. (a) Inferred input norm over time, $||\mu_{u,t}^{[k]}\|_2$ , for the most (dark red) and least (light red) active channels, where $k$ denotes channel number. (b) Inferred message norm over time, $||\mu_{m,t}^{j\rightarrow i,[k]}\|_2$ , for the most (dark blue) and least (light blue) active channels. (c) Inferred input (top) and message (bottom) norm across channels for area $A^1$ in descending order of its scalar norm across trials and time.
|
| 603 |
+
|
| 604 |
+

|
| 605 |
+
|
| 606 |
+
# E.2. Message Inference via Rates versus Factors
|
| 607 |
+
|
| 608 |
+
Since MR-LFADS factors and reconstructed rates share the same dimensionality and are related by a linear transformation, it may not be immediately clear how message inference from these variables leads to substantial differences. To investigate this, we examine MR-LFADS(F) trained on the pass-decision synthetic data. We perform SVD on projection matrices (Fig. S5a) from factors to rates, $W_{r}$ (Eq. 5), and from factors to communication, $W_{\mu_m}$ (Eq. 8 with $r_t^j$ replaced by $f_t^j$ ). Our analysis shows that $W_{r}$ has small singular values, indicating that certain factor dimensions contribute minimally to the reconstructed rates (Fig. S5b). In contrast, $W_{\mu_m}$ exhibits relatively uniform singular values (within the same order of magnitude), suggesting that all factor dimensions are utilized in communication (Fig. S5c). This implies that some factor dimensions play a role in message inference while being largely detached from rate reconstruction (Fig. S5a).
|
| 609 |
+
|
| 610 |
+
To further investigate, we re-express the factor space of area P using the left singular vectors of $W_{r}$ , denoted $U$ . In Experiment 2, MR-LFADS(F) is shown to encode both the stimulus $s$ and decision variable $d$ in its $m^{P\rightarrow D}$ messages (Fig. 3e). To examine how these variables are distributed across the subspaces of $U$ and whether this aligns with the under-constrained dimensions identified earlier, we project the factors $f^{P}$ onto the subspace spanned by the top $k$ singular vectors of $U$ , denoted $U^{[1:k]}$ , varying $k$ from 1 to $N_{\mathrm{msg}}^{D}$ . We then compute the $R^2$ values for predicting $s$ and $d$ from the projected values $f'$ (Fig. S5d, e, cyan lines). We repeat this process in the reverse direction, projecting onto the bottom $k$ singular vectors instead (Fig. S5d, e, orange lines). The results reveal a clear separation: decoding accuracy for $s$ improves more when projecting onto the top singular vectors, whereas decoding accuracy for $d$ increases more rapidly when projecting onto the bottom singular vectors. This suggests that information not used for rate reconstruction—such as $d$ —is preferentially encoded in the under-constrained dimensions of the latent space, reinforcing the idea that message inference
|
| 611 |
+
|
| 612 |
+
utilizes latent dimensions beyond those needed for rate prediction.
|
| 613 |
+
|
| 614 |
+

|
| 615 |
+
|
| 616 |
+

|
| 617 |
+
|
| 618 |
+

|
| 619 |
+
|
| 620 |
+

|
| 621 |
+
Figure S5. SVD Analysis on MR-LFADS(F). (a) Illustration of factors containing unconstrained information. Rates, factors, and communication are all from area P, i.e. $r \equiv r^p$ , $f \equiv f^p$ , $\mu_m \equiv \mu_m^{P \rightarrow D}$ . $k$ is the effective rank of $W_r$ . (b) Ranked singular values for $W_r$ . (c) Ranked singular values for $W_{\mu_m}$ . Shaded regions indicate standard deviation across different random initializations (seeds). (d) $R^2$ value for decoding $s$ from $f^P$ projected onto subspaces spanned by top / bottom left singular vectors of $W_r$ of an example seed. (e) Same as (d), but for decoding $d$ .
|
| 622 |
+
|
| 623 |
+

|
| 624 |
+
|
| 625 |
+
# F. Application to Multi-Region Electrophysiological Data
|
| 626 |
+
|
| 627 |
+
Data analyzed are from mouse ID:440959. For the photoinhibition experiment, we analyzed a session with the following recorded regions:
|
| 628 |
+
|
| 629 |
+
- Anterior Lateral Motor cortex (ALM): MOs2/3, MOs5, and MOs6 (layer 6)
|
| 630 |
+
Thalamus (ALM, A): VM and VAL
|
| 631 |
+
- Thalamus (Other, O): Anterior Ventral (AV) and Lateral Dorsal (LD)
|
| 632 |
+
|
| 633 |
+
Midbrain Reticular Nucleus (MRN): MRN
|
| 634 |
+
- Superior Colliculus (SC): intermediate gray (SCig), intermediate white (SCiw), optic (SCop), superficial gray (SCsg), and zonal layer (SCzo)
|
| 635 |
+
|
| 636 |
+
For the model consistency experiment, we analyzed a session with the these recorded regions:
|
| 637 |
+
|
| 638 |
+
- ALM: secondary motor cortex, layers 2/3 and 5 (MOs2/3, MOs5)
|
| 639 |
+
- Thalamus: Ventral Medial (VM) and Ventral Anterior-Lateral (VAL)
|
| 640 |
+
- MRN: MRN
|
| 641 |
+
|
| 642 |
+
Trials were filtered to include only those with durations between 4.5 and 5.5 seconds. Each trial was binned into 500 time steps, with each bin corresponding to a $10\mathrm{ms}$ interval.
|
| 643 |
+
|
| 644 |
+
# F.1. Comparison of Photoinhibition Effects
|
| 645 |
+
|
| 646 |
+
We selected one session of the data involving five brain regions previously implicated in a decision-making task, as identified in Chen et al. (2024). For both control and photoinhibition trials, we only used trials from the same condition per comparison—either left-hit or right-hit—where “hit” indicates making a correct choice, and “left” or “right” refers to the correct choice. For photoinhibition trials, we focused on those with perturbations within the delay period, aligning all such trials to the photoinhibition onset. Firing rate $\bar{r}_t$ is smoothed from raw spike counts using a causal exponential filter with rate parameter of 7.1. For each region, we computed the absolute difference in trial-averaged activity between photoinhibited and control trials, averaged over neurons, to estimate the influence of photoinhibition.
|
| 647 |
+
|
| 648 |
+
# F.2. Consistency of Model Inference Across Random Seeds
|
| 649 |
+
|
| 650 |
+
To ensure a fair comparison between models, we evaluated each using the same hyperparameters and same number of random seeds. We then computed all pairwise similarities between inferred effectomes and messages across seeds to assess the consistency of model inference.
|
2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8612fdce2a4cf6fdab1248bbbdd8933cb298af0bab474481ef35e47d7049dc2d
|
| 3 |
+
size 1511857
|
2025/Accurate Identification of Communication Between Multiple Interacting Neural Populations/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accurate and Efficient World Modeling with Masked Latent Transformers/734e8783-547b-4945-87bd-49752870b5cc_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accurate and Efficient World Modeling with Masked Latent Transformers/734e8783-547b-4945-87bd-49752870b5cc_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Accurate and Efficient World Modeling with Masked Latent Transformers/734e8783-547b-4945-87bd-49752870b5cc_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2173e71b21d7090258beae7a3f268798d56490184e3223287a0fe9e5d7ef7c43
|
| 3 |
+
size 8994715
|
2025/Accurate and Efficient World Modeling with Masked Latent Transformers/full.md
ADDED
|
@@ -0,0 +1,424 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Accurate and Efficient World Modeling with Masked Latent Transformers
|
| 2 |
+
|
| 3 |
+
Maxime Burchi<sup>1</sup> Radu timofte<sup>1</sup>
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
The Dreamer algorithm has recently obtained remarkable performance across diverse environment domains by training powerful agents with simulated trajectories. However, the compressed nature of its world model's latent space can result in the loss of crucial information, negatively affecting the agent's performance. Recent approaches, such as $\Delta$ -IRIS and DIAMOND, address this limitation by training more accurate world models. However, these methods require training agents directly from pixels, which reduces training efficiency and prevents the agent from benefiting from the inner representations learned by the world model. In this work, we propose an alternative approach to world modeling that is both accurate and efficient. We introduce EMERALD (Efficient MaskEd latent tRANSformer worLD model), a world model using a spatial latent state with MaskGIT predictions to generate accurate trajectories in latent space and improve the agent performance. On the Crafter benchmark, EMERALD achieves new state-of-the-art performance, becoming the first method to surpass human experts performance within 10M environment steps. Our method also succeeds to unlock all 22 Crafter achievements at least once during evaluation.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
Model-based reinforcement learning has attracted increasing research attention in recent years (Hafner et al., 2019; 2020; 2021; 2023; Schrittwieser et al., 2020). The growing computational capabilities of hardware systems have allowed researchers to make significant progress, training world models from high-dimensional observations like videos (Yan et al., 2023) using deep neural networks (LeCun et al., 2015)
|
| 12 |
+
|
| 13 |
+
<maxime.burchi@uni-wuerzburg.de>.
|
| 14 |
+
|
| 15 |
+
Proceedings of the $42^{nd}$ International Conference on Machine Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025 by the author(s).
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Achievements score and collected Frames Per Second (FPS) of recently published model-based methods on the Crafter benchmark. EMERALD is the first method to exceed the performance of human experts on the benchmark. The world model uses a spatial latent state with MaskGIT predictions to improve performance and training efficiency. $\Delta$ -IRIS proposed an accurate world model but suffers from lower training efficiency due to autoregressive decoding in latent space and agent learning from reconstructed images.
|
| 21 |
+
|
| 22 |
+
as function approximations. World models (Sutton, 1991; Ha & Schmidhuber, 2018) summarize the experience of an agent into a predictive function that can be used instead of the real environment to learn complex behaviors. Having access to a model of the environment enables the agent to simulate multiple plausible trajectories in parallel, improving generalization, sample efficiency, and decision-making via planning.
|
| 23 |
+
|
| 24 |
+
Among these approaches, the Dreamer algorithm (Hafner et al., 2020; 2021; 2023) has achieved remarkable performance in various environments by training a world model to generate imaginary trajectories in latent space. However, while the world model has no difficulty in simulating simple
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
(a) EMERALD
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
(b) DreamerV3 (M)
|
| 31 |
+
Figure 2: Comparison of EMERALD image reconstruction with DreamerV3. We show the 5 frames with highest reconstruction error among a batch of 1024 test observations. The top row indicates original images, the middle row shows reconstructed images and the bottom row shows reconstruction error. We observe that EMERALD achieves near-perfect reconstruction, with errors resulting mostly from player orientation and textures. DreamerV3 fails to perceive crucial details like diamonds and skeleton arrows, which diminishes the agent's perception capacity and negatively impacts its performance.
|
| 32 |
+
|
| 33 |
+
visual environments such as DeepMind Control (Tassa et al., 2018) tasks or Atari games (Bellemare et al., 2013), some inaccuracies appear when modeling more complex environments like Crafter (Hafner, 2022) and MineRL (Guss et al., 2019). As shown in Figure 2b, the world model has difficulty perceiving important details on Crafter. This failure to learn accurate representations for the agent leads to a lower performance.
|
| 34 |
+
|
| 35 |
+
To remedy this problem, recent approaches have proposed more accurate world models. $\Delta$ -IRIS (Micheli et al., 2024) proposed to encode stochastic deltas for changes in the observation. Concurrently, DIAMOND (Alonso et al., 2024) proposed a diffusion-based world model using a U-Net architecture. Both of these approaches proposed new world model alternatives to improve the reconstruction quality of generated trajectories and increase the agent performance. However, they also require learning the agent from reconstruction images, which impact learning efficiency and does not allow the agent to benefit from inner representations learned by the world model such as long-term memory. This significantly limits the potential of such methods for perception and training efficiency.
|
| 36 |
+
|
| 37 |
+
In this work, we propose an alternative approach to world modeling that is both accurate and efficient. We introduce EMERALD, a Transformer model-based reinforcement learning algorithm using a spatial latent state with MaskGIT predictions to generate accurate trajectories in latent space and improve the agent performance. Originally designed for vector-quantized image generation (Van Den Oord et al., 2017), MaskGIT (Chang et al., 2022) improves decoding speed and generation quality compared to autoregressive sequential decoding (Esser et al., 2021). This
|
| 38 |
+
|
| 39 |
+
approach was later adapted by TECO (Yan et al., 2023), demonstrating that MaskGIT-based latent space predictions could enable powerful video generation models. Inspired by these advances, we apply MaskGIT to model-based reinforcement learning, allowing the agent to better perceive crucial environment details while improving decoding efficiency. Furthermore, the agent benefits from internal representations learned by the world model, such as long-term memory, enabling it to track important objects and effectively map the environment. As shown in Figure 1, EMER-ALD sets a new record on the Crafter benchmark, being the first method to exceed human experts performance within 10M environment steps with a score of $58.1\%$ . Our method also succeeds to unlock all 22 Crafter achievements at least once during evaluation. Additionally, we report results on the commonly used Atari 100k benchmark (Kaiser et al., 2020) to demonstrate the general efficacy of EMERALD on Atari games that do not necessarily require the use of spatial latents to achieve near perfect reconstruction.
|
| 40 |
+
|
| 41 |
+
# 2. Related Works
|
| 42 |
+
|
| 43 |
+
# 2.1. Model-based Reinforcement Learning
|
| 44 |
+
|
| 45 |
+
Model-based reinforcement learning approaches use a model of the environment to simulate agent trajectories, improving generalization, sample efficiency, and decision-making via planning. Following the success of deep neural networks for learning function approximations, researchers proposed to learn world models using gradient backpropagation, allowing the development of powerful agents with limited data. One of the earliest model-based algorithms applied to image data is SimPLe (Kaiser et al., 2020), which proposed a world model for Atari games in pixel space using
|
| 46 |
+
|
| 47 |
+
Table 1: Comparison between EMERALD and other recent model-based approaches. Latent $(z_{t})$ refers to image latent representations carrying spatial information while hidden $(h_t)$ refers to world model hidden state carrying temporal information. EMERALD uses a spatial latent state to improve world model accuracy. It also trains the agent in latent space to increase efficiency and benefit from world model inner representations. Efficient decoding is performed using MaskGIT.
|
| 48 |
+
|
| 49 |
+
<table><tr><td>Attributes</td><td>IRIS</td><td>DreamerV3</td><td>Δ-IRIS</td><td>DIAMOND</td><td>EMERALD (Ours)</td></tr><tr><td>World Model</td><td>Transformer</td><td>GRU</td><td>Transformer</td><td>U-Net</td><td>Transformer</td></tr><tr><td>Tokens</td><td>Latent (4 × 4)</td><td>Latent</td><td>Latent (2 × 2)</td><td>N/A</td><td>Latent (4 × 4)</td></tr><tr><td>Latent Representation</td><td>VQ-VAE</td><td>Categorical-VAE</td><td>VQ-VAE</td><td>N/A</td><td>Categorical-VAE</td></tr><tr><td>Decoding</td><td>Sequential</td><td>N/A</td><td>Sequential</td><td>EDM</td><td>MaskGIT</td></tr><tr><td>Agent State (st)</td><td>Image</td><td>Latent, hidden</td><td>Image</td><td>Image</td><td>Latent (4 × 4), hidden</td></tr></table>
|
| 50 |
+
|
| 51 |
+
a convolutional autoencoder architecture. The world model predicts future frames and environment rewards based on past observations and selected actions, enabling the training of a Proximal Policy Optimization (PPO) agent (Schulman et al., 2017) with simulated trajectories.
|
| 52 |
+
|
| 53 |
+
Concurrently, PlaNet (Hafner et al., 2019) introduced a Recurrent State-Space Model (RSSM) incorporating Gated Recurrent Units (GRUs) (Cho et al., 2014) to learn a world model in latent space, planning using model predictive control. PlaNet learns a convolutional variational autoencoder (VAE) (Kingma & Welling, 2014) with a pixel reconstruction loss to encode observations into stochastic state representations. The RSSM then predicts future stochastic states and environment rewards based on previous stochastic and deterministic recurrent states. Following the success of PlaNet on DeepMind Visual Control tasks, Dreamer (Hafner et al., 2020) improved the algorithm by learning an actor and a value network from the world model hidden representations. DreamerV2 (Hafner et al., 2021) extended the algorithm to Atari games, replacing Gaussian latents by categorical latent states using straight-through gradients (Bengio et al., 2013) to improve performance. Lastly, DreamerV3 (Hafner et al., 2023) mastered diverse domains using the same hyper-parameters with a set of architectural changes to stabilize learning across tasks. The agent uses symlog predictions for the reward and value function to address the scale variance across domains. The networks also employ layer normalization (Ba et al., 2016) to improve robustness and performance while scaling to larger model sizes. It stabilizes policy learning by normalizing the returns and value function using an Exponential Moving Average (EMA) of the returns percentiles. With these modifications, DreamerV3 outperformed specialized model-free and model-based algorithms in a wide range of benchmarks.
|
| 54 |
+
|
| 55 |
+
Concurrent approaches have proposed to use a Transformer-based world model to improve the hidden representations and memory capabilities compared to RNNs. IRIS (Micheli et al., 2023) first proposed a world model composed of a VQ-VAE (Van Den Oord et al., 2017) to convert input im
|
| 56 |
+
|
| 57 |
+
ages into discrete tokens and an autoregressive Transformer to predict future tokens. TransDreamer (Chen et al., 2021) proposed to replace Dreamer's RSSM with a Transformer State-Space Model (TSSM) using masked self-attention to imagine future trajectories. TWM (Robine et al., 2023) (Transformer-based World Model) proposed a similar approach, encoding states, actions and rewards as distinct successive input tokens for the autoregressive Transformer. More recently, STORM (Zhang et al., 2024) achieved results comparable to DreamerV3 with better training efficiency on the Atari 100k benchmark.
|
| 58 |
+
|
| 59 |
+
# 2.2. Accurate World Modeling in Pixel Space
|
| 60 |
+
|
| 61 |
+
Another line of work focuses on designing accurate world models to train agents from reconstructed trajectories in pixel space. Analogously to SimPLe, the agent's policy and value functions are trained from image reconstruction instead of world model hidden state representations. This requires learning auxiliary encoder networks for the policy and value functions. Micheli et al. (2024) proposed $\Delta$ -IRIS, encoding stochastic deltas between time steps using previous action and image as conditions for the encoder and decoder. This increased VQ-VAE compression ratio and image reconstruction capabilities, achieving state-of-the-art performance on the Crafter (Hafner, 2022) benchmark.
|
| 62 |
+
|
| 63 |
+
Meanwhile, DIAMOND (Alonso et al., 2024) introduced a diffusion-based (Sohl-Dickstein et al., 2015) world model with EDM decoding (Karras et al., 2022) to generate high-quality trajectories and improve the agent performance. The paper demonstrated that diffusion can successfully be applied to world modeling, requiring as few as 3 denoising steps for imagination. The method was evaluated on the Atari 100k benchmark showing better reconstruction quality and improved performance compared to DreamerV3. However, it was not applied to a memory-demanding benchmark like Crafter that requires both good memory and visual perception to achieve strong results. The authors disclosed that initial experiments on the Crafter benchmark did not achieve good performance due to the absence of an effective
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
(a) World Model Learning
|
| 67 |
+
|
| 68 |
+

|
| 69 |
+
(b) Actor-Critic Learning
|
| 70 |
+
Figure 3: Efficient masked latent Transformer-based world model. EMERALD uses a spatial latent state $z_{t}$ and a temporal hidden state $h_{t}$ to model the environment accurately and effectively. The world model predictions are made using a spatial MaskGIT predictor network to increase decoding speed while maintaining accuracy. Actor-critic learning is performed by imagining trajectories in latent space which allows the agents to benefit from world model inner representations.
|
| 71 |
+
|
| 72 |
+
memory module for the world model. We find that DIA-MOND has difficulties predicting future frames in Crafter, generating hallucinations. In this work, we propose to improve performance and training efficiency by learning an accurate world model in latent space. Table 1 compares the architectural details of recent model-based approaches with our proposed method.
|
| 73 |
+
|
| 74 |
+
# 2.3. Scheduled MaskGIT Predictions in Latent Space
|
| 75 |
+
|
| 76 |
+
Parallel tokens prediction with refinements was introduced by MaskGIT (Masked Generative Image Transformer) (Chang et al., 2022) as an alternative to sequential decoding for vector quantized image generation (Van Den Oord et al., 2017; Ramesh et al., 2021; Esser et al., 2021). MaskGIT proposed to replace autoregressive decoding with scheduled parallel decoding of masked tokens to improve generation quality and significantly decrease decoding time. During training, the method samples decoding times $\tau \in [0,1)$ uniformly. It proceeds to mask $N = \lfloor \gamma HW\rfloor$ tokens where $\gamma = \cos \left(\frac{\pi}{2}\tau\right)$ follows a cosine schedule and $H$ and $W$ correspond to the height and width of the latent space in tokens. At decoding time, the model is sampled to progressively predict all the tokens. This is done by selecting the most probable tokens and masking the remaining tokens for the next decoding step.
|
| 77 |
+
|
| 78 |
+
Inspired by the success of MaskGIT and similar approaches such as draft-and-revise (Lee et al., 2022) for image generation, Yan et al. (2023) proposed TECO (Temporally Consistent Video Transformer). TECO is a video generation model using MaskGIT with draft-and-revise decoding to predict future frames in latent space. They showed that using a MaskGit prior allows for not just faster but also higher quality sampling compared to an autoregressive sequential prior. Using a pre-trained VQ-GAN (Esser et al., 2021) vector quantizer, the algorithm demonstrated strong memory capabilities and generation quality. In this work, we propose to apply MaskGIT to model-based reinforcement learning. We train a world model that is both accurate and efficient without requiring pre-trained discrete representations.
|
| 79 |
+
|
| 80 |
+
Meanwhile, the use of MaskGIT as prior for model-based reinforcement learning was concurrently explored by GIT-Storm (Meo et al., 2024). GIT-STORM proposed to apply MaskGIT decoding using a draft-and-revise strategy to the recently proposed STORM model. However, we note that the motivation behind GIT-STORM is different from our work: Similarly to image and video generation works (Chang et al., 2022; Yan et al., 2023), EMERALD uses MaskGIT as an alternative to sequential token decoding in order to improve decoding efficiency for spatial latent spaces. In contrast, the GIT-STORM paper applied MaskGIT to the vector latent space of STORM in order to
|
| 81 |
+
|
| 82 |
+

|
| 83 |
+
Figure 4: Comparison of scheduled parallel decoding in EMERALD vs. autoregressive sequential decoding used by IRIS and $\Delta$ -IRIS. We illustrate the $H \times W \times G$ latent space of our method with only 4 of the 32 groups for better clarity. Sequential decoding predicts one token at a time, significantly impacting efficiency. In contrast, EMERALD uses parallel predictions with scheduled refinements, reducing decoding time while preserving the coherence of predicted tokens.
|
| 84 |
+
|
| 85 |
+
improve the quality of sampling. Key differences also lie in the architecture of the MaskGIT network. GIT-STORM performs attention on the 32 feature tokens of the vector latent space while EMERALD first concatenates the tokens along the feature dimension and performs attention on spatial positions similarly to the original MaskGIT paper (Chang et al., 2022).
|
| 86 |
+
|
| 87 |
+
# 3. Method
|
| 88 |
+
|
| 89 |
+
We introduce EMERALD, a Transformer model-based reinforcement learning algorithm using a spatial latent state with MaskGIT predictions to generate accurate trajectories in latent space and improve the agent performance. EMERALD can be separated into three main components: The Transformer world model that learns to simulate the environment in latent space. A critic network that learns to estimate the sum of future rewards. And an actor network that learns to select actions that maximize future rewards estimated by the critic network. Each component is trained concurrently by sampling trajectories from a replay buffer of past experiences. This section describes the architecture and optimization process of our proposed masked latent Transformer world model. Additionally, we provide a brief overview of the imagination process for actor-critic learning. Figure 3 provides a visual overview of world model learning and imagination process during the actor-critic learning phase.
|
| 90 |
+
|
| 91 |
+
# 3.1. World Model Overview
|
| 92 |
+
|
| 93 |
+
Analogously to the Dreamer algorithm (Hafner et al., 2023) and other recent approaches learning a world model in latent space (Robine et al., 2023; Zhang et al., 2024), we encode input image observations $o_{t}$ into hidden representations using a convolutional VAE with categorical latents. To balance prediction accuracy and efficiency, our world model adopts a carefully designed architecture with spatial latent states $z_{t}$ and temporal hidden states $h_{t}$ . The spatial latent states are first projected into temporal feature vectors for efficient processing by the world model. A temporal Transformer network with masked self-attention then generates the temporal hidden states $h_{t}$ by modeling long-range dependencies. These temporal states are subsequently projected back into spatial features for MaskGIT predictions. The trainable components of the world model are the following:
|
| 94 |
+
|
| 95 |
+
Encoder Network: $z_{t} \sim q_{\phi}(z_{t} \mid o_{t})$
|
| 96 |
+
|
| 97 |
+
Transformer Network: $h_t = f_{\phi}(z_{1:t-1}, a_{1:t-1})$
|
| 98 |
+
|
| 99 |
+
MaskGIT Predictor: $\hat{z}_t\sim p_\phi (\hat{z}_t|h_t,z_t^{mask})$ (1)
|
| 100 |
+
|
| 101 |
+
Decoder Network: $\hat{o}_t\sim p_\phi (\hat{o}_t|h_t,z_t)$
|
| 102 |
+
|
| 103 |
+
Reward Predictor: $\hat{r}_t\sim p_\phi (\hat{r}_t|h_t,z_t)$
|
| 104 |
+
|
| 105 |
+
Continue Predictor: $\hat{c}_t\sim p_\phi (\hat{c}_t|h_t,z_t)$
|
| 106 |
+
|
| 107 |
+
The spatial latent states and temporal hidden states are combined to form the world model state $s_t = [z_t, h_t]$ , which integrates both spatial and temporal information. Latent state predictions are made using a spatial MaskGIT network,
|
| 108 |
+
|
| 109 |
+
while separate networks predict the environment reward $\hat{r}_t$ and episode continuation $\hat{c}_t$ .
|
| 110 |
+
|
| 111 |
+
Encoder Network While previous approaches project encoder features to a compressed vector latent space to simplify world model predictions, our method leverages a spatial latent space to improve world model accuracy and the agent performance. The spatial feature representations are first projected to categorical distribution logits $l \in \mathbb{R}^{H \times W \times D}$ , which are then reorganized into multiple feature groups $G$ for sampling. Instead of representing entire latent vector with a single embedding, the token representations combine embeddings from multiple feature groups. This grouping mechanism was originally used by DreamerV2 (Hafner et al., 2021) to improve training stability using a flexible latent representation. We sample discrete stochastic states $z_{t} \in \mathbb{R}^{H \times W \times G \times (D / G)}$ from the encoder, which serves as spatial latent states for our world model.
|
| 112 |
+
|
| 113 |
+
The use of a spatial latent space allows to effectively improve the accuracy of the world model without significantly increasing the amount of trainable parameters. The world model stochastic state capacity can also be increased by using a larger number of groups and/or token dimensions. However, this results in a significantly larger number of parameters due to linear projections. In contrast, the spatial latent space benefits from weight sharing, which provides a useful position bias for the world model.
|
| 114 |
+
|
| 115 |
+
Temporal Masked Transformer Network EMERALD uses a Transformer State-Space Model (TSSM) (Chen et al., 2021) to learn long-range memory dependencies and predict future observations more accurately. The Transformer network uses masked self-attention with relative positional encodings (Dai et al., 2019), which simplifies the use of the world model during imagination and evaluation. We also use truncated backpropagation through time (TBTT) (Pašukonis et al., 2023) to preserve information over time. This requires the sampling of training trajectories sequentially in order to access past memory, passing cached attention keys and values from one batch to the next. The Transformer network outputs hidden states $h_t \in \mathbb{R}^{T \times D}$ , carrying temporal information.
|
| 116 |
+
|
| 117 |
+
Spatial MaskGIT Predictor The MaskGIT predictor network uses a Transformer architecture with spatial attention to model relationships between spatial tokens. After spatial upsampling by the latent decoder network, the temporal hidden states serve as conditioning inputs to accurately predict the next spatial tokens. To train the MaskGIT predictor, we uniformly sample decoding times $\tau \in [0,1)$ and use a cosine schedule to mask $N = \lfloor \gamma HWG\rfloor$ tokens from the latent space: $z_{t}^{mask} = z_{t}\odot m_{t}$ with mask $m\in \{0,1\}^{H\times W\times G}$ . The MaskGIT predictor learns to predict masked tokens by
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 5: Cosine mask schedule. During training, we uniformly sample decoding times $\tau$ between 0 and 1. During imagination, the world model samples all masked tokens and refines $N = \lfloor \gamma HWG\rfloor$ tokens with lower probability. We illustrate the schedule used for $S = 3$ decoding steps.
|
| 121 |
+
|
| 122 |
+
minimizing the KL divergence with the unmasked latent state as follows:
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
L _ {m a s k} = \mathrm {K L} \left[ s g \left(q _ {\phi} \left(z _ {t} \mid o _ {t}\right)\right) \mid \mid p _ {\phi} \left(\hat {z} _ {t} \mid h _ {t}, z _ {t} ^ {m a s k}\right) \right] \tag {2}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
We use the stop gradient operator $sg(\cdot)$ to prevent the gradients of targets from being backpropagated.
|
| 129 |
+
|
| 130 |
+
In order to stabilize learning, the predictor also uses a dynamics loss with regularization (Hafner et al., 2023). A linear layer is optimized to predict the target latent states from upsampled hidden states. This allows to guide the predictions of the MaskGIT predictor in early training. The regularization terms stabilize learning by training the encoder representations to become more predictable. Both loss terms are scaled with loss weights $\beta_{dyn} = 0.5$ and $\beta_{reg} = 0.1$ , respectively:
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\begin{array}{l} L _ {d y n} = \beta_ {d y n} \operatorname {K L} \left[ s g (q _ {\phi} (z _ {t} \mid o _ {t})) \mid | p _ {\phi} (\hat {z} _ {t} \mid h _ {t}) \right] \\ + \beta_ {r e g} \operatorname {K L} \left[ q _ {\phi} \left(z _ {t} \mid o _ {t}\right) \mid s g \left(p _ {\phi} \left(\hat {z} _ {t} \mid h _ {t}\right)\right) \right] \\ \end{array}
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
Decoder Network The decoder network receives both spatial latent states $z_{t}$ and temporal hidden states $h_{t}$ as inputs. This helps the encoder to learn more compressed representations by conditioning on past context. The two representations are projected and concatenated along the channel dimension for decoding. The reconstruction loss $L_{rec}$ learns hidden representations for the world model by reconstructing input visual observations $o_{t}$ as follows:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
L _ {r e c} = \left\| \hat {o} _ {t} - o _ {t} \right\| _ {2} ^ {2} \tag {4}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
Reward and Continuation Predictors $L_{rew}$ and $L_{con}$ train the world model to predict environment rewards and
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 6: Achievements success rates over 256 evaluation episodes after training 10M environment steps. EMERALD succeeds to solve all achievements at least once. Our method also achieves new state-of-the-art performance, becoming the first method to surpass human experts performance in terms of achievements score.
|
| 146 |
+
|
| 147 |
+
episode continuation flags, which are used to compute the returns of imagined trajectories during the imagination phase. We adopt the symlog cross-entropy loss from DreamerV3 (Hafner et al., 2023), which scales and transforms rewards into twohot encoded targets to ensure robust learning across games with different reward magnitudes:
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
L _ {r e w} = \operatorname {S y m l o g C r o s s E n t} \left(\hat {r} _ {t}, r _ {t}\right) \tag {5a}
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
L _ {c o n} = \text {B i n a r y C r o s s E n t} \left(\hat {c} _ {t}, c _ {t}\right) \tag {5b}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
Complete Training Objective Given an input batch containing $B$ sequences of $T$ image observations $o_{1:T}$ , actions $a_{1:T}$ , rewards $r_{1:T}$ , and episode continuation flags $c_{1:T}$ , the world model parameters $(\phi)$ are optimized to minimize the following loss function:
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
L (\phi) = \frac {1}{T} \sum_ {t = 1} ^ {T} \left[ L _ {\text {m a s k}} + L _ {\text {d y n}} + L _ {\text {r e w}} + L _ {\text {c o n}} + L _ {\text {r e c}} \right] (6)
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
# 3.2. World Model Imagination Process
|
| 164 |
+
|
| 165 |
+
The agent critic and actor networks are trained with imaginary trajectories generated from the world model. Learning takes place entirely in latent space, which allows the agent to process large batch sizes and increase generalization. We flatten the model states of the sampled sequences along the batch and time dimensions to generate $B^{img} = B \times T$ sample trajectories using the world model. The self-attention keys and values features computed during the world model training phase are cached to be reused during the agent behavior learning phase and preserve past context. As shown in Figure 3b, the world model imagines $H = 15$ steps into the future using the Transformer network and the dynamics network head, selecting actions by sampling from the actor network categorical distribution. We detail the behavior learning process in more detail in the appendix A.6.
|
| 166 |
+
|
| 167 |
+
# 4. Experiments
|
| 168 |
+
|
| 169 |
+
In this section, we describe our experiments on the Crafter benchmark. We show the results obtained by EMERALD in Table 2. We also perform an ablation study on the world model architecture in section 4.3. Finally, we analyze the impact of the number of decoding steps on world model predictions in section 4.4. Additional comparison on the Atari 100k benchmark with other model-based methods can be found in the appendix A.7.
|
| 170 |
+
|
| 171 |
+
# 4.1. Crafter Benchmark
|
| 172 |
+
|
| 173 |
+
The Crafter benchmark was proposed in Hafner (2022) to evaluate a wide range of general abilities within a single environment. Crafter is inspired by the video game Minecraft. It features visual inputs, a discrete action space of 17 different actions and non-deterministic environment dynamics. The goal of the agent is to achieve as many achievements as possible among a list of 22 achievements<sup>1</sup>. The benchmark evaluates the capacity of the agent to use long-term memory and accurate visual perception to collect resources and craft items while surviving in a hostile environment. The agents receive a single reward of +1 for each unlocked achievement. It also perceives a reward of -0.1 for every health point lost and a reward of +0.1 for every health point that is regenerated. The benchmark compares the achievements score, which is computed as the geometric mean of success rates for all 22 achievements. This metric prioritizes general agents that unlock a wide range of achievements over those that unlock a small number of achievements very frequently. The mean episode return can also be used to
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 7: Impact of the number of decoding steps on world model prediction accuracy and efficiency. The randomness of the Crafter environment requires the world model to make refinements on the predicted tokens to avoid the sampling of tokens with contradictory representations. White rectangle boundaries show hallucinations due to incoherent predictions made during imagination. We use $S = 3$ decoding steps during imagination to achieve good prediction accuracy and efficiency.
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
|
| 180 |
+
directly compare the metric optimized during training.
|
| 181 |
+
|
| 182 |
+
Table 2: Crafter benchmark comparison (10M env frames). We show achievement scores and environment mean returns aggregated over 5 different seeds. Following Micheli et al. (2024), we also compute FPS as the total number of environment frames collected divided by the training duration.
|
| 183 |
+
|
| 184 |
+
<table><tr><td>Method</td><td>Score (%)</td><td>Return</td><td>#Params</td><td>FPS</td></tr><tr><td>Human Experts</td><td>50.5</td><td>14.3 ± 2.3</td><td>-</td><td>-</td></tr><tr><td>DreamerV3 (M)</td><td>34.9</td><td>14.0 ± 0.4</td><td>37M</td><td>38</td></tr><tr><td>DreamerV3 (XL)</td><td>39.6</td><td>15.4 ± 0.1</td><td>200M</td><td>23</td></tr><tr><td>Δ-IRIS</td><td>42.5</td><td>16.1 ± 0.1</td><td>25M</td><td>12</td></tr><tr><td>EMERALD (Ours)</td><td>58.1</td><td>16.8 ± 0.6</td><td>30M</td><td>27</td></tr></table>
|
| 185 |
+
|
| 186 |
+
# 4.2. Results
|
| 187 |
+
|
| 188 |
+
Table 2 compares the performance of EMERALD with $\Delta$ -IRIS and DreamerV3 on the Crafter benchmark after training 10M environment steps. We show achievements scores, mean episode returns and total number of parameters. Analogously to Micheli et al. (2024), we also compare the number of collected Frames Per Second (FPS) using a single RTX 3090 GPU for training. EMERALD achieves a score of $58.1\%$ , being the first algorithm to exceed human experts performance on the benchmark. EMERALD's enhanced perception enables the agent to detect objects and enemies more effectively, leading to increased survival time and improved performance. Our method also benefits from reduced training time compared to $\Delta$ -IRIS and DreamerV3 XL. The MaskGIT prior reduces decoding time during imagination while preserving the coherence of predicted tokens. Figure 6 compares the success rates of individual achievements. We find that EMERALD successfully solves all achievements
|
| 189 |
+
|
| 190 |
+
at least once when evaluating on 256 episodes. The agent progressively learns to master all levels of the technology tree, leading to the collection of diamonds.
|
| 191 |
+
|
| 192 |
+
# 4.3. Ablation Study
|
| 193 |
+
|
| 194 |
+
We study the impact of using spatial latent states and a Transformer-based world model on performance and training efficiency. Table 3 shows the performance obtained by each ablation, applying one modification at a time. We first experiment replacing the DreamerV3 vector latent space by a spatial latent space with MaskGIT predictions. We find that the use of a spatial latent state significantly helps to reduce reconstruction error and increase performance. This improves world model accuracy by encoding important environment details for the agent in the latent space. We then compare the use of a Transformer-based world model with masked self-attention with the recurrent-based world model of DreamerV3. We find that attention helps to further improve performance by conditioning representations on a longer context. The capacity of self-attention to model temporal relationships without recurrence makes the Transformer architecture highly effective at capturing historical context. The use of a Transformer-based architecture also improves training efficiency by not requiring recurrent processing of hidden states during the world model forward.
|
| 195 |
+
|
| 196 |
+
# 4.4. Choice of the number of decoding steps
|
| 197 |
+
|
| 198 |
+
While parallel predictions allow the world model to significantly reduce decoding time, this can also generate unclear predictions with unmatched sets of tokens. The randomness of the Crafter environment requires the world model to make refinements on the predicted tokens to avoid the sampling of tokens with contradictory representations. To
|
| 199 |
+
|
| 200 |
+
Table 3: Ablation study on world model architecture and latent space size (10M environment frames). We compare model performance, training efficiency and reconstruction quality. The performance metrics are aggregated over 5 seeds.
|
| 201 |
+
|
| 202 |
+
<table><tr><td>World Model Architecture</td><td>Latent Space Size</td><td>MaskGIT</td><td>Score (%)</td><td>Return</td><td>#Params</td><td>FPS</td><td>Pixel L2 loss</td></tr><tr><td>DreamerV3 (M) RSSM</td><td>32</td><td>No</td><td>34.9</td><td>14.0 ± 0.4</td><td>37M</td><td>38</td><td>0.000522</td></tr><tr><td>DreamerV3 (S) RSSM</td><td>4 × 4 × 32</td><td>Yes</td><td>40.4</td><td>15.8 ± 0.1</td><td>28M</td><td>20</td><td>0.000231</td></tr><tr><td rowspan="2">EMERALD TSSM</td><td>32</td><td>No</td><td>31.8</td><td>13.1 ± 0.5</td><td>30M</td><td>44</td><td>0.000890</td></tr><tr><td>4 × 4 × 32</td><td>Yes</td><td>58.1</td><td>16.8 ± 0.6</td><td>30M</td><td>27</td><td>0.000241</td></tr></table>
|
| 203 |
+
|
| 204 |
+

|
| 205 |
+
Figure 8: World model prediction accuracy. We show the token prediction accuracy for world model rollout aggregated over 5 seeds for several numbers of decoding steps.
|
| 206 |
+
|
| 207 |
+
avoid incoherent predictions, we follow MaskGIT by using multiple decoding steps during the imagination phase. Figure 7 shows the impact of the number of decoding steps on prediction quality. We find that using a single decoding step, without revising the prediction, can generate blurry predictions. These unmatched representations in latent space cause the world model to make incoherent predictions for successive time steps. Using a small number of decoding steps helps to revise the prediction and limit this effect while maintaining good prediction efficiency. Therefore, we set $S = 3$ decoding steps in our experiments.
|
| 208 |
+
|
| 209 |
+
Figure 8 shows the average accuracy of predictions for different numbers of decoding steps at imaginations time (No MaskGIT designates predictions made by the linear head learned by the dynamics loss $L_{dyn}$ ). The accuracy is averaged of the 5 EMERALD seeds and computed by comparing the target future states with predicted states during rollout, conditioned on the correct sequence of future actions. We find that using less than 3 decoding steps during imagination results in a drop of accuracy. We also compare the rollout time in seconds required to imagine 15 time steps in the future. Using a larger number of decoding steps can lead to a small increase in accuracy but also results in longer rollout
|
| 210 |
+
|
| 211 |
+
duration, which impacts training efficiency. We performed a corresponding ablation to study the impact of the number of imagination decoding steps on final performance over 5 seeds. Table 4 shows the impact on final performance when using different numbers of decoding steps for imagination. We find that the decrease of prediction accuracy has a noticeable impact on final performance. The decrease of average accuracy in world model predictions leads to the generation of less accurate trajectories for the actor and critic networks. Our experiments using 3 and 8 decoding steps achieves higher returns and achievement scores compared to using a single decoding step or a simple linear head for prediction.
|
| 212 |
+
|
| 213 |
+
Table 4: Impact of the number of world model decoding steps $S$ on final performance and training efficiency.
|
| 214 |
+
|
| 215 |
+
<table><tr><td>#Decoding Steps</td><td>Score (%)</td><td>Return</td><td>FPS</td></tr><tr><td>No MaskGIT</td><td>51.6</td><td>16.1 ± 0.7</td><td>33</td></tr><tr><td>S = 1 step</td><td>53.8</td><td>16.1 ± 0.5</td><td>33</td></tr><tr><td>S = 3 steps</td><td>58.1</td><td>16.8 ± 0.6</td><td>27</td></tr><tr><td>S = 8 steps</td><td>55.1</td><td>16.5 ± 0.6</td><td>23</td></tr></table>
|
| 216 |
+
|
| 217 |
+
# 5. Conclusion
|
| 218 |
+
|
| 219 |
+
We propose EMERALD, a Transformer model-based reinforcement learning algorithm using a spatial latent state with MaskGIT predictions to generate accurate trajectories in latent space and improve the agent performance. EMERALD achieves new state-of-the-art performance on the Crafter benchmark with a budget of 10M environment steps, becoming the first method to exceed human experts performance. We study the impact of latent space size and find that the use of a spatial latent state helps the world model to perceive environment details that are crucial to the agent. Additionally, we demonstrate that a Transformer-based architecture outperforms a recurrent-based approach by leveraging attention to model long-range dependencies more effectively. Based on these findings, we hope this work will inspire researchers to further explore the impact of masked latent world models in more complex environments, such as Minecraft.
|
| 220 |
+
|
| 221 |
+
# Acknowledgments
|
| 222 |
+
|
| 223 |
+
This work was partly supported by The Alexander von Humboldt Foundation (AvH).
|
| 224 |
+
|
| 225 |
+
# Impact Statement
|
| 226 |
+
|
| 227 |
+
The development of autonomous agents for real-world applications introduces various safety and environmental concerns. In real-world scenarios, an agent might cause harm to individuals and damage to its surroundings during both training and deployment. Although using world models during training can mitigate these risks by allowing policies to be learned through simulation, some risks may still persist. This statement aims to inform users of these potential risks and emphasize the importance of AI safety in the application of autonomous agents to real-world scenarios.
|
| 228 |
+
|
| 229 |
+
# References
|
| 230 |
+
|
| 231 |
+
Alonso, E., Jelley, A., Micheli, V., Kanervisto, A., Storkey, A. J., Pearce, T., and Fleuret, F. Diffusion for world modeling: Visual details matter in atari. Advances in Neural Information Processing Systems, 37:58757-58791, 2024.
|
| 232 |
+
Ba, J. L., Kiros, J. R., and Hinton, G. E. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
|
| 233 |
+
Bellemare, M. G., Naddaf, Y., Veness, J., and Bowling, M. The arcade learning environment: An evaluation platform for general agents. Journal of artificial intelligence research, 47:253-279, 2013.
|
| 234 |
+
Bengio, Y., Léonard, N., and Courville, A. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
|
| 235 |
+
Chang, H., Zhang, H., Jiang, L., Liu, C., and Freeman, W. T. Maskgit: Masked generative image transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11315-11325, 2022.
|
| 236 |
+
Chen, C., Yoon, J., Wu, Y.-F., and Ahn, S. Transdreamer: Reinforcement learning with transformer world models. In Deep RL Workshop NeurIPS 2021, 2021.
|
| 237 |
+
Cho, K., van Merrienboer, B., Gulcehre, C., Bougares, F., Schwenk, H., and Bengio, Y. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP 2014), 2014.
|
| 238 |
+
Dai, Z., Yang, Z., Yang, Y., Carbonell, J. G., Le, Q., and Salakhutdinov, R. Transformer-xl: Attentive language models beyond a fixed-length context. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2978-2988, 2019.
|
| 239 |
+
|
| 240 |
+
Esser, P., Rombach, R., and Ommer, B. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12873-12883, 2021.
|
| 241 |
+
Guss, W. H., Codel, C., Hofmann, K., Houghton, B., Kuno, N., Milani, S., Mohanty, S., Liebana, D. P., Salakhutdinov, R., Topin, N., et al. The minerl 2019 competition on sample efficient reinforcement learning using human priors. arXiv preprint arXiv:1904.10079, 2019.
|
| 242 |
+
Ha, D. and Schmidhuber, J. Recurrent world models facilitate policy evolution. Advances in Neural Information Processing Systems, 31, 2018.
|
| 243 |
+
Hafner, D. Benchmarking the spectrum of agent capabilities. In International Conference on Learning Representations, 2022.
|
| 244 |
+
Hafner, D., Lillicrap, T., Fischer, I., Villegas, R., Ha, D., Lee, H., and Davidson, J. Learning latent dynamics for planning from pixels. In International Conference on Machine Learning, pp. 2555-2565. PMLR, 2019.
|
| 245 |
+
Hafner, D., Lillicrap, T., Ba, J., and Norouzi, M. Dream to control: Learning behaviors by latent imagination. In International Conference on Learning Representations, 2020.
|
| 246 |
+
Hafner, D., Lillicrap, T., Norouzi, M., and Ba, J. Mastering atari with discrete world models. In International Conference on Learning Representations, 2021.
|
| 247 |
+
Hafner, D., Pasukonis, J., Ba, J., and Lillicrap, T. Mastering diverse domains through world models. arXiv preprint arXiv:2301.04104, 2023.
|
| 248 |
+
Kaiser, L., Babaeizadeh, M., Milos, P., Osinski, B., Campbell, R. H., Czechowski, K., Erhan, D., Finn, C., Kozakowski, P., Levine, S., et al. Model-based reinforcement learning for atari. In International Conference on Learning Representations, 2020.
|
| 249 |
+
Karras, T., Aittala, M., Aila, T., and Laine, S. Elucidating the design space of diffusion-based generative models. Advances in Neural Information Processing Systems, 35: 26565-26577, 2022.
|
| 250 |
+
Kingma, D. P. and Welling, M. Auto-encoding variational bayes. In International Conference on Learning Representations, 2014.
|
| 251 |
+
LeCun, Y., Bengio, Y., and Hinton, G. Deep learning. nature, 521(7553):436-444, 2015.
|
| 252 |
+
Lee, D., Kim, C., Kim, S., Cho, M., and HAN, W. S. Draft-and-revise: Effective image generation with contextual rq-transformer. Advances in Neural Information Processing Systems, 35:30127-30138, 2022.
|
| 253 |
+
|
| 254 |
+
Meo, C., Lica, M., Ikram, Z., Nakano, A., Shah, V., Didolkar, A. R., Liu, D., Goyal, A., and Dauwels, J. Masked generative priors improve world models sequence modelling capabilities. arXiv preprint arXiv:2410.07836, 2024.
|
| 255 |
+
Micheli, V., Alonso, E., and Fleuret, F. Transformers are sample-efficient world models. In International Conference on Learning Representations, 2023.
|
| 256 |
+
Micheli, V., Alonso, E., and Fleuret, F. Efficient world models with context-aware tokenization. In International Conference on Machine Learning, pp. 35623-35638. PMLR, 2024.
|
| 257 |
+
Pašukonis, J., Lillicrap, T. P., and Hafner, D. Evaluating long-term memory in 3d mazes. In International Conference on Learning Representations, 2023.
|
| 258 |
+
Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., and Sutskever, I. Zero-shot text-to-image generation. In International Conference on Machine Learning, pp. 8821-8831. PMLR, 2021.
|
| 259 |
+
Robine, J., Höftmann, M., Uelwer, T., and Harmeling, S. Transformer-based world models are happy with 100k interactions. In International Conference on Learning Representations, 2023.
|
| 260 |
+
Schrittwieser, J., Antonoglou, I., Hubert, T., Simonyan, K., Sifre, L., Schmitt, S., Guez, A., Lockhart, E., Hassabis, D., Graepel, T., et al. Mastering atari, go, chess and shogi by planning with a learned model. Nature, 588(7839): 604-609, 2020.
|
| 261 |
+
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 262 |
+
Schwarzer, M., Ceron, J. S. O., Courville, A., Bellemare, M. G., Agarwal, R., and Castro, P. S. Bigger, better, faster: Human-level atari with human-level efficiency. In International Conference on Machine Learning, pp. 30365-30380. PMLR, 2023.
|
| 263 |
+
Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., and Ganguli, S. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pp. 2256-2265. PMLR, 2015.
|
| 264 |
+
Sutton, R. S. Dyna, an integrated architecture for learning, planning, and reacting. ACM Sigart Bulletin, 2(4):160-163, 1991.
|
| 265 |
+
Tassa, Y., Doron, Y., Muldal, A., Erez, T., Li, Y., Casas, D. d. L., Budden, D., Abdelmaleki, A., Merel, J., Lefrancq, A., et al. Deepmind control suite. arXiv preprint arXiv:1801.00690, 2018.
|
| 266 |
+
|
| 267 |
+
Van Den Oord, A., Vinyals, O., et al. Neural discrete representation learning. Advances in Neural Information Processing Systems, 30, 2017.
|
| 268 |
+
Wang, S., Liu, S., Ye, W., You, J., and Gao, Y. Efficientzero v2: Mastering discrete and continuous control with limited data. In International Conference on Machine Learning, pp. 51041-51062. PMLR, 2024.
|
| 269 |
+
Williams, R. J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8:229-256, 1992.
|
| 270 |
+
Yan, W., Hafner, D., James, S., and Abbeel, P. Temporally consistent transformers for video generation. In International Conference on Machine Learning, pp. 39062-39098. PMLR, 2023.
|
| 271 |
+
Zhang, W., Wang, G., Sun, J., Yuan, Y., and Huang, G. Storm: Efficient stochastic transformer based world models for reinforcement learning. Advances in Neural Information Processing Systems, 36, 2024.
|
| 272 |
+
|
| 273 |
+
# A. Appendix
|
| 274 |
+
|
| 275 |
+
# A.1. Latent Space Comparison
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
|
| 279 |
+

|
| 280 |
+
(a) DreamerV3's Vector Latent Space
|
| 281 |
+
(b) EMERALD's Spatial Latent Space
|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
Figure 9: Comparison between the standard DreamerV3 vector latent space and EMERALD spatial latent space. We illustrate the size of each grouped latent space in tokens, where each token is of dimension $D / G$ . The compressed nature of the DreamerV3 vector latent space $z_{t} \in \mathbb{R}^{G \times (D / G)}$ can result in the loss of crucial information, negatively impacting the agent's performance. In contrast, the use of a spatial latent state $z_{t} \in \mathbb{R}^{H \times W \times G \times (D / G)}$ improves world model accuracy and provides further information to the agent.
|
| 285 |
+
(a) MLP Head Prediction
|
| 286 |
+
|
| 287 |
+

|
| 288 |
+
(b) MaskGIT Decoding
|
| 289 |
+
Figure 10: Comparison between standard MLP head and MaskGIT for decoding. The MLP head is very efficient and samples predictions without refinements, which can lead to ambiguous predictions with tokens having unmatched representations. MaskGIT limits this effect by progressively sampling and refining the prediction to avoid incoherent representations.
|
| 290 |
+
|
| 291 |
+
# A.2. Success Rates Comparison
|
| 292 |
+
|
| 293 |
+
Table 5: Success rates of each method on the Crafter benchmark (10M environment steps).
|
| 294 |
+
|
| 295 |
+
<table><tr><td>Achievement</td><td>Human Experts</td><td>DreamerV3 (M)</td><td>DreamerV3 (XL)</td><td>Δ-IRIS</td><td>EMERALD</td></tr><tr><td>Collect Coal</td><td>86.0%</td><td>77.3%</td><td>86.8%</td><td>90.6%</td><td>91.6%</td></tr><tr><td>Collect Diamond</td><td>12.0%</td><td>0.0%</td><td>0.0%</td><td>0.0%</td><td>0.5%</td></tr><tr><td>Collect Drink</td><td>92.0%</td><td>93.0%</td><td>96.2%</td><td>98.4%</td><td>95.8%</td></tr><tr><td>Collect Iron</td><td>53.0%</td><td>12.1%</td><td>32.6%</td><td>76.6%</td><td>71.2%</td></tr><tr><td>Collect Sapling</td><td>67.0%</td><td>86.3%</td><td>97.0%</td><td>96.9%</td><td>99.9%</td></tr><tr><td>Collect Stone</td><td>100.0%</td><td>95.4%</td><td>98.2%</td><td>98.4%</td><td>97.9%</td></tr><tr><td>Collect Wood</td><td>100.0%</td><td>99.9%</td><td>99.9%</td><td>100.0%</td><td>99.8%</td></tr><tr><td>Defeat Skeleton</td><td>31.0%</td><td>50.5%</td><td>74.3%</td><td>81.3%</td><td>82.3%</td></tr><tr><td>Defeat Zombie</td><td>84.0%</td><td>87.6%</td><td>92.4%</td><td>96.9%</td><td>92.3%</td></tr><tr><td>Eat Cow</td><td>89.0%</td><td>84.1%</td><td>94.9%</td><td>98.4%</td><td>90.5%</td></tr><tr><td>Eat Plant</td><td>8.0%</td><td>0.4%</td><td>0.8%</td><td>0.0%</td><td>0.1%</td></tr><tr><td>Make Iron Pickaxe</td><td>26.0%</td><td>0.0%</td><td>0.0%</td><td>0.0%</td><td>41.5%</td></tr><tr><td>Make Iron Sword</td><td>22.0%</td><td>0.0%</td><td>0.0%</td><td>1.6%</td><td>41.6%</td></tr><tr><td>Make Stone Pickaxe</td><td>78.0%</td><td>72.0%</td><td>84.2%</td><td>95.3%</td><td>93.7%</td></tr><tr><td>Make Stone Sword</td><td>78.0%</td><td>80.3%</td><td>91.0%</td><td>95.3%</td><td>83.5%</td></tr><tr><td>Make Wood Pickaxe</td><td>100.0%</td><td>96.5%</td><td>98.6%</td><td>98.4%</td><td>99.2%</td></tr><tr><td>Make Wood Sword</td><td>45.0%</td><td>90.0%</td><td>96.9%</td><td>98.4%</td><td>98.8%</td></tr><tr><td>Place Furnace</td><td>32.0%</td><td>90.0%</td><td>96.0%</td><td>95.3%</td><td>96.2%</td></tr><tr><td>Place Plant</td><td>24.0%</td><td>86.3%</td><td>97.0%</td><td>96.9%</td><td>99.9%</td></tr><tr><td>Place Stone</td><td>90.0%</td><td>94.8%</td><td>98.2%</td><td>98.4%</td><td>97.4%</td></tr><tr><td>Place Table</td><td>100.0%</td><td>99.3%</td><td>99.9%</td><td>98.4%</td><td>99.4%</td></tr><tr><td>Wake Up</td><td>73.0%</td><td>92.2%</td><td>98.0%</td><td>89.1%</td><td>92.2%</td></tr><tr><td>Score</td><td>50.5%</td><td>34.9%</td><td>39.6%</td><td>42.5%</td><td>58.1%</td></tr></table>
|
| 296 |
+
|
| 297 |
+
# A.3. Crafter Achievement Curves
|
| 298 |
+
|
| 299 |
+

|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
|
| 303 |
+

|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
|
| 307 |
+

|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
|
| 333 |
+

|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Figure 11: Achievement counts of EMERALD with shaded min and max.
|
| 341 |
+
|
| 342 |
+

|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
|
| 348 |
+
# A.4. Model Architecture
|
| 349 |
+
|
| 350 |
+
<table><tr><td>Encoder submodules</td><td>Output shape</td></tr><tr><td>Input image (ot)</td><td>64 × 64 × 3</td></tr><tr><td>Conv strided</td><td>32 × 32 × 32</td></tr><tr><td>Residual block</td><td>32 × 32 × 32</td></tr><tr><td>Conv strided</td><td>16 × 16 × 64</td></tr><tr><td>Residual block</td><td>16 × 16 × 64</td></tr><tr><td>Conv strided</td><td>8 × 8 × 128</td></tr><tr><td>Residual block</td><td>8 × 8 × 128</td></tr><tr><td>Conv strided</td><td>4 × 4 × 256</td></tr><tr><td>Residual block</td><td>4 × 4 × 256</td></tr><tr><td>Conv</td><td>4 × 4 × 1024</td></tr><tr><td>Reshape + Softmax</td><td>4 × 4 × 32 × 32</td></tr><tr><td>Sample + One Hot (outputszt)</td><td>4 × 4 × 32 × 32</td></tr></table>
|
| 351 |
+
|
| 352 |
+
Table 6: Architecture of the encoder and decoder networks. The size of submodules is omitted and can be derived from output shapes. We use layer normalization (LN) and a SiLU activation layer inside residual blocks.
|
| 353 |
+
|
| 354 |
+
<table><tr><td>Decoder submodules</td><td>Output shape</td></tr><tr><td>Input latent state (zt)</td><td>4 × 4 × 32 × 32</td></tr><tr><td>Reshape (label as xz)</td><td>4 × 4 × 1024</td></tr><tr><td>Input hidden state (ht)</td><td>512</td></tr><tr><td>Linear + Reshape</td><td>4 × 4 × 128</td></tr><tr><td>Conv (label as xh)</td><td>4 × 4 × 256</td></tr><tr><td>Concat xz and xh</td><td>4 × 4 × 1280</td></tr><tr><td>Conv</td><td>4 × 4 × 256</td></tr><tr><td>Residual block</td><td>4 × 4 × 256</td></tr><tr><td>Conv transposed</td><td>8 × 8 × 128</td></tr><tr><td>Residual block</td><td>8 × 8 × 128</td></tr><tr><td>Conv transposed</td><td>16 × 16 × 64</td></tr><tr><td>Residual block</td><td>16 × 16 × 64</td></tr><tr><td>Conv transposed</td><td>32 × 32 × 32</td></tr><tr><td>Residual block</td><td>32 × 32 × 32</td></tr><tr><td>Conv transposed (outputs帽子t)</td><td>64 × 64 × 3</td></tr></table>
|
| 355 |
+
|
| 356 |
+
Table 7: Transformer network. The latent states $z_{0:T-1}$ and one-hot encoded actions $a_{0:T-1} \in \mathbb{R}^{T \times A}$ are combined using an action mixer network (Zhang et al., 2024). The features are processed by the Transformer network to compute temporal hidden states $h_{1:T}$ .
|
| 357 |
+
|
| 358 |
+
<table><tr><td>Submodule</td><td>Module alias</td><td>Output shape</td></tr><tr><td>Inputs latent states (z0:T-1)</td><td></td><td>T × 4 × 4 × 32 × 32</td></tr><tr><td>Reshape + Conv</td><td>Latent Encoder</td><td>T × 4 × 4 × 128</td></tr><tr><td>Flatten + Linear</td><td></td><td>T × 512</td></tr><tr><td>Concat actions (a0:T-1)</td><td></td><td>T × (512 + A)</td></tr><tr><td>Linear + LN + SiLU</td><td>Action Mixer</td><td>T × 512</td></tr><tr><td>Linear + LN</td><td></td><td>T × 512</td></tr><tr><td>Transformer block × K</td><td>Transformer</td><td>T × 512</td></tr><tr><td>Outputs hidden states (h1:T)</td><td>Network</td><td></td></tr></table>
|
| 359 |
+
|
| 360 |
+
Table 8: MaskGIT predictor. The latent states $z_{t}$ are masked and concatenated with spatial hidden states. The features are processed by the Transformer network to predict masked tokens $\hat{z}_{t}$ .
|
| 361 |
+
|
| 362 |
+
<table><tr><td>Submodule</td><td>Module alias</td><td>Output shape</td></tr><tr><td>Inputs hidden states (ht)</td><td></td><td>512</td></tr><tr><td>Linear + Reshape</td><td>Latent Decoder</td><td>4 × 4 × 128</td></tr><tr><td>Conv</td><td></td><td>4 × 4 × 256</td></tr><tr><td>Concat masked latent states (zt)</td><td></td><td>4 × 4 × 1536</td></tr><tr><td>Flatten + Linear</td><td>Latent Embedding</td><td>16 × 256</td></tr><tr><td>Add pos embeddings</td><td></td><td>16 × 256</td></tr><tr><td>Transformer block × Kmask</td><td></td><td>16 × 256</td></tr><tr><td>Linear</td><td>MaskGIT</td><td>16 × 1024</td></tr><tr><td>Reshape + Softmax</td><td>Predictor</td><td>4 × 4 × 32 × 32</td></tr><tr><td>Sample + One Hot (outputs ẑt)</td><td></td><td>4 × 4 × 32 × 32</td></tr></table>
|
| 363 |
+
|
| 364 |
+
Table 9: World model predictors and actor-critic networks architecture. Each network first projects spatial latent states $z_{t}$ into feature vectors for concatenation with hidden states $h_{t}$ . Each Linear layer is followed by a layer normalization and SiLU activation except for the last layer which outputs distribution logits.
|
| 365 |
+
|
| 366 |
+
<table><tr><td>Predictor submodules</td><td>Output shape</td></tr><tr><td>Inputs latent states (zt)</td><td>4 × 4 × 32 × 32</td></tr><tr><td>Reshape + Conv</td><td>4 × 4 × 128</td></tr><tr><td>Flatten + Linear</td><td>512</td></tr><tr><td>Concat hidden states (ht)</td><td>1024</td></tr><tr><td>Linear + LN + SiLU</td><td>512</td></tr><tr><td>Linear + LN + SiLU</td><td>512</td></tr><tr><td>Linear prediction layer</td><td>Output dim</td></tr></table>
|
| 367 |
+
|
| 368 |
+
<table><tr><td>Network</td><td>Output dim</td><td>Output Distribution</td></tr><tr><td>Reward predictor</td><td>255</td><td>Symlog Discrete</td></tr><tr><td>Continue predictor</td><td>1</td><td>Bernoulli</td></tr><tr><td>Critic network</td><td>255</td><td>Symlog Discrete</td></tr><tr><td>Actor network</td><td>A</td><td>One hot Categorical</td></tr></table>
|
| 369 |
+
|
| 370 |
+
# A.5. Model Hyperparameters
|
| 371 |
+
|
| 372 |
+
Table 10: EMERALD hyper-parameters.
|
| 373 |
+
|
| 374 |
+
<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>General</td><td></td></tr><tr><td>Image resolution</td><td>64 × 64</td></tr><tr><td>Batch size (B)</td><td>16</td></tr><tr><td>Sequence length (T)</td><td>64</td></tr><tr><td>Optimizer</td><td>Adam</td></tr><tr><td>Environment parallel instances</td><td>16</td></tr><tr><td>Collected frames per training Step</td><td>16</td></tr><tr><td>Replay buffer capacity</td><td>1M</td></tr><tr><td>World model</td><td></td></tr><tr><td>Latent space size (H × W × G)</td><td>4 × 4 × 32</td></tr><tr><td>Number categories per group</td><td>32</td></tr><tr><td>Temporal Transformer blocks</td><td>4</td></tr><tr><td>Temporal Transformer width</td><td>512</td></tr><tr><td>Spatial MaskGIT blocks</td><td>2</td></tr><tr><td>Spatial MaskGIT width</td><td>256</td></tr><tr><td>Number of attention heads</td><td>8</td></tr><tr><td>Dropout probability</td><td>0.1</td></tr><tr><td>Attention context length</td><td>64</td></tr><tr><td>Learning rate</td><td>10-4</td></tr><tr><td>Gradient clipping</td><td>1000</td></tr><tr><td>Actor-critic</td><td></td></tr><tr><td>Imagination horizon (H)</td><td>15</td></tr><tr><td>Number of decoding steps (S)</td><td>3</td></tr><tr><td>Return discount</td><td>0.997</td></tr><tr><td>Return lambda</td><td>0.95</td></tr><tr><td>Critic EMA Decay</td><td>0.98</td></tr><tr><td>Return normalization Momentum</td><td>0.99</td></tr><tr><td>Actor entropy Scale</td><td>3·10-4</td></tr><tr><td>Learning rate</td><td>3·10-5</td></tr><tr><td>Gradient clipping</td><td>100</td></tr></table>
|
| 375 |
+
|
| 376 |
+
# A.6. Actor Critic Learning
|
| 377 |
+
|
| 378 |
+
Analogously to world model predictor networks, the actor and critic networks are designed as simple MLPs with a projection layer for the spatial latent states. The two network have parameter vectors $(\theta)$ and $(\psi)$ , respectively.
|
| 379 |
+
|
| 380 |
+
$$
|
| 381 |
+
\begin{array}{l l} \text {A c t o r N e t w o r k :} & a _ {t} \sim \pi_ {\theta} (a _ {t} | s _ {t}) \\ \text {C r i t i c N e t w o r k :} & v _ {t} \sim V _ {t} (v _ {t} | s _ {t}) \end{array} \tag {7}
|
| 382 |
+
$$
|
| 383 |
+
|
| 384 |
+
$$
|
| 385 |
+
\text {C r i t i c N e t w o r k :} \quad v _ {t} \sim V _ {\psi} (v _ {t} | s _ {t})
|
| 386 |
+
$$
|
| 387 |
+
|
| 388 |
+
Critic Learning Following DreamerV3, the critic network learns to minimize the symlog cross-entropy loss with discretized $\lambda$ -returns obtained from imagined trajectories with rewards and episode continuation flags predicted by the world model:
|
| 389 |
+
|
| 390 |
+
$$
|
| 391 |
+
R _ {t} ^ {\lambda} = \hat {r} _ {t + 1} + \gamma \hat {c} _ {t + 1} \left((1 - \lambda) V _ {\psi} (s _ {t + 1}) + \lambda R _ {t + 1} ^ {\lambda}\right) \quad R _ {H + 1} ^ {\lambda} = V _ {\psi} (s _ {H + 1}) \tag {8}
|
| 392 |
+
$$
|
| 393 |
+
|
| 394 |
+
The critic does not use a target network but relies on its own predictions for estimating rewards beyond the prediction horizon. This requires stabilizing the critic by adding a regularizing term toward the outputs of its own EMA network $V_{\psi'}$ . Equation 9 defines the critic network loss:
|
| 395 |
+
|
| 396 |
+
$$
|
| 397 |
+
L _ {\text {c r i t i c}} (\psi) = \frac {1}{H} \sum_ {t = 1} ^ {H} \left[ \underbrace {\operatorname {S y m l o g C r o s s E n t} \left(v _ {t} , R _ {t} ^ {\lambda}\right)} _ {\text {d i s c r e t e r e t u r n s r e g r e s s i o n}} + \underbrace {\operatorname {S y m l o g C r o s s E n t} \left(v _ {t} , V _ {\psi^ {\prime}} \left(s _ {t}\right)\right)} _ {\text {c r i t i c E M A r e g u l a r i z e r}} \right] \tag {9}
|
| 398 |
+
$$
|
| 399 |
+
|
| 400 |
+
Actor Learning The actor network learns to select actions that maximize the predicted returns using Reinforce (Williams, 1992) while maximizing the policy entropy to ensure sufficient exploration during both data collection and imagination. The actor network loss is defined as follows:
|
| 401 |
+
|
| 402 |
+
$$
|
| 403 |
+
L _ {\text {a c t o r}} (\theta) = \frac {1}{H} \sum_ {t = 1} ^ {H} \left[ \underbrace {- s g \left(A _ {t} ^ {\lambda}\right) \log \pi_ {\theta} \left(a _ {t} \mid s _ {t}\right)} _ {\text {r e i n f o r c e}} - \underbrace {\eta \mathrm {H} \left(\pi_ {\theta} \left(a _ {t} \mid s _ {t}\right)\right)} _ {\text {e n t r o p y r e g u l a r i z e r}} \right] \tag {10}
|
| 404 |
+
$$
|
| 405 |
+
|
| 406 |
+
Where $A_{t}^{\lambda} = \left(\hat{R}_{t}^{\lambda} - V_{\psi}(s_{t})\right) / \max (1,S)$ defines advantages computed using normalized returns. The returns are scaled using exponentially moving average statistics of their $5^{th}$ and $95^{th}$ batch percentiles to ensure stable learning across all Atari games:
|
| 407 |
+
|
| 408 |
+
$$
|
| 409 |
+
S = \operatorname {E M A} \left(\operatorname {P e r} \left(R _ {t} ^ {\lambda}, 9 5\right) - \operatorname {P e r} \left(R _ {t} ^ {\lambda}, 5\right), \text {m o m e n t u m} = 0. 9 9\right) \tag {11}
|
| 410 |
+
$$
|
| 411 |
+
|
| 412 |
+
# A.7. Atari 100k Benchmark
|
| 413 |
+
|
| 414 |
+
The commonly used Atari 100k benchmark was proposed in Kaiser et al. (2020) to evaluate reinforcement learning agents on Atari games in low data regime. The benchmark includes 26 Atari games with a budget of 400k environment frames, amounting to 100k interactions between the agent and the environment using the default action repeat setting. This amount of environment steps corresponds to about two hours (1.85 hours) of real-time play, representing a similar amount of time that a human player would need to achieve reasonably good performance.
|
| 415 |
+
|
| 416 |
+
We evaluate our method on the benchmark to assess EMERALD's performance on environments that do not necessarily require the use of spatial latents to achieve near perfect reconstruction. We also demonstrate improved training efficiency compared to $\Delta$ -IRIS and DIAMOND. Following preceding works, we use human-normalized metrics and compare the mean and median returns across all 26 games. The human-normalized scores are computed for each game using the scores achieved by a human player and the scores obtained by a random policy: normed score = agent score-random score/human score-random score.
|
| 417 |
+
|
| 418 |
+
The current state-of-the-art is held by EfficientZero V2 (Wang et al., 2024), which uses Monte-Carlo Tree Search to select the best action at every time step. Another recent notable work is BBF (Schwarzer et al., 2023), a model-free agent using learning techniques that are orthogonal to our work such as periodic network resets and hyper-parameters annealing to improve performance. In this work, to ensure fair comparison, we compare our method with model-based approaches that do not utilize look-ahead search techniques.
|
| 419 |
+
|
| 420 |
+
We compare EMERALD with Diamond (Alonso et al., 2024), $\Delta$ -IRIS (Micheli et al., 2024) and DreamerV3 (Hafner et al., 2023) as well as other model-based approaches like STORM (Zhang et al., 2024), IRIS (Micheli et al., 2023) and SimPLe (Kaiser et al., 2020). We find that EMERALD achieves comparable aggregated performance as $\Delta$ -IRIS and Diamond while offering higher training efficiency. When using a RTX 3090 GPU for training, EMERALD requires only 17 hours to reach 400k environment steps on the Breakout game while $\Delta$ -IRIS and DIAMOND need 27 hours and 75 hours, respectively.
|
| 421 |
+
|
| 422 |
+
Table 11: Agent scores and human-normalized metrics on the 26 games of the Atari 100k benchmark. We show average scores over 5 seeds. Bold numbers indicate best performing method for each game.
|
| 423 |
+
|
| 424 |
+
<table><tr><td>Game</td><td>Random</td><td>Human</td><td>SimPLe</td><td>TWM</td><td>IRIS</td><td>DreamerV3</td><td>STORM</td><td>Δ-IRIS</td><td>DIAMOND</td><td>EMERALD</td></tr><tr><td>Alien</td><td>228</td><td>7128</td><td>617</td><td>675</td><td>420</td><td>959</td><td>984</td><td>391</td><td>744</td><td>651</td></tr><tr><td>Amidar</td><td>6</td><td>1720</td><td>74</td><td>122</td><td>143</td><td>139</td><td>205</td><td>64</td><td>226</td><td>129</td></tr><tr><td>Assault</td><td>222</td><td>742</td><td>527</td><td>683</td><td>1524</td><td>706</td><td>801</td><td>1123</td><td>1526</td><td>798</td></tr><tr><td>Asterix</td><td>210</td><td>8503</td><td>1128</td><td>1116</td><td>854</td><td>932</td><td>1028</td><td>2492</td><td>3698</td><td>1045</td></tr><tr><td>Bank Heist</td><td>14</td><td>753</td><td>34</td><td>467</td><td>53</td><td>649</td><td>641</td><td>1148</td><td>20</td><td>927</td></tr><tr><td>Battle Zone</td><td>2360</td><td>37188</td><td>4031</td><td>5068</td><td>13074</td><td>12250</td><td>13540</td><td>11825</td><td>4702</td><td>15800</td></tr><tr><td>Boxing</td><td>0</td><td>12</td><td>8</td><td>78</td><td>70</td><td>78</td><td>80</td><td>70</td><td>87</td><td>71</td></tr><tr><td>Breakout</td><td>2</td><td>30</td><td>16</td><td>20</td><td>84</td><td>31</td><td>16</td><td>302</td><td>133</td><td>62</td></tr><tr><td>Chopper Command</td><td>811</td><td>7388</td><td>979</td><td>1697</td><td>1565</td><td>420</td><td>1888</td><td>1183</td><td>1370</td><td>990</td></tr><tr><td>Crazy Climber</td><td>10780</td><td>35829</td><td>62584</td><td>71820</td><td>59324</td><td>97190</td><td>66776</td><td>57854</td><td>99168</td><td>75380</td></tr><tr><td>Demon Attack</td><td>152</td><td>1971</td><td>208</td><td>350</td><td>2034</td><td>303</td><td>165</td><td>533</td><td>288</td><td>498</td></tr><tr><td>Freeway</td><td>0</td><td>30</td><td>17</td><td>24</td><td>31</td><td>0</td><td>34</td><td>31</td><td>33</td><td>31</td></tr><tr><td>Frostbite</td><td>65</td><td>4335</td><td>237</td><td>1476</td><td>259</td><td>909</td><td>1316</td><td>279</td><td>274</td><td>221</td></tr><tr><td>Gopher</td><td>258</td><td>2412</td><td>597</td><td>1675</td><td>2236</td><td>3730</td><td>8240</td><td>6445</td><td>5898</td><td>14702</td></tr><tr><td>Hero</td><td>1027</td><td>30826</td><td>2657</td><td>7254</td><td>7037</td><td>11161</td><td>11044</td><td>7049</td><td>5622</td><td>7655</td></tr><tr><td>James Bond</td><td>29</td><td>303</td><td>100</td><td>362</td><td>463</td><td>445</td><td>509</td><td>309</td><td>427</td><td>195</td></tr><tr><td>Kangaroo</td><td>52</td><td>3035</td><td>51</td><td>1240</td><td>838</td><td>4098</td><td>4208</td><td>2269</td><td>5382</td><td>8780</td></tr><tr><td>Krull</td><td>1598</td><td>2666</td><td>2205</td><td>6349</td><td>6616</td><td>7782</td><td>8413</td><td>5978</td><td>8610</td><td>7600</td></tr><tr><td>Kung Fu Master</td><td>258</td><td>22736</td><td>14862</td><td>24555</td><td>21760</td><td>21420</td><td>26182</td><td>21534</td><td>18714</td><td>22822</td></tr><tr><td>Ms Pacman</td><td>307</td><td>6952</td><td>1480</td><td>1588</td><td>999</td><td>1327</td><td>2673</td><td>1067</td><td>1958</td><td>1710</td></tr><tr><td>Pong</td><td>-21</td><td>15</td><td>13</td><td>19</td><td>15</td><td>18</td><td>11</td><td>20</td><td>20</td><td>20</td></tr><tr><td>Private Eye</td><td>25</td><td>69571</td><td>35</td><td>87</td><td>100</td><td>882</td><td>7781</td><td>103</td><td>114</td><td>100</td></tr><tr><td>Qbert</td><td>164</td><td>13455</td><td>1289</td><td>3331</td><td>746</td><td>3405</td><td>4522</td><td>1444</td><td>4499</td><td>1245</td></tr><tr><td>Road Runner</td><td>12</td><td>7845</td><td>5641</td><td>9107</td><td>9615</td><td>15565</td><td>17564</td><td>10414</td><td>20673</td><td>6620</td></tr><tr><td>Seaquest</td><td>68</td><td>42055</td><td>683</td><td>774</td><td>661</td><td>618</td><td>525</td><td>827</td><td>551</td><td>468</td></tr><tr><td>Up N Down</td><td>533</td><td>11693</td><td>3350</td><td>15982</td><td>3546</td><td>7600</td><td>7985</td><td>4072</td><td>3856</td><td>5227</td></tr><tr><td># Superhuman</td><td>0</td><td>N/A</td><td>1</td><td>8</td><td>10</td><td>9</td><td>10</td><td>11</td><td>11</td><td>11</td></tr><tr><td>Normed Mean (%)</td><td>0</td><td>100</td><td>33</td><td>96</td><td>105</td><td>112</td><td>127</td><td>139</td><td>146</td><td>134</td></tr><tr><td>Normed Median (%)</td><td>0</td><td>100</td><td>13</td><td>51</td><td>29</td><td>49</td><td>58</td><td>53</td><td>37</td><td>51</td></tr></table>
|
2025/Accurate and Efficient World Modeling with Masked Latent Transformers/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eccdb0f4e05edbc868f9f8f569555a02ee460734ed58e84cfa3dfe4642be1e32
|
| 3 |
+
size 1686578
|
2025/Accurate and Efficient World Modeling with Masked Latent Transformers/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/34f5964e-adcb-49b6-aadb-b1e4aa40c8a4_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/34f5964e-adcb-49b6-aadb-b1e4aa40c8a4_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/34f5964e-adcb-49b6-aadb-b1e4aa40c8a4_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08e01d69b08e9035aad3e0e1aeffc867cfa888b7e73f8c528f32af5af7522de9
|
| 3 |
+
size 1729701
|
2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b810d6ef9aa00f0c526b546776e7939a4d4b3900140a3a6475fa10195b6b911
|
| 3 |
+
size 2334761
|
2025/Achieving Linear Speedup and Near-Optimal Complexity for Decentralized Optimization over Row-stochastic Networks/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Action Dubber_ Timing Audible Actions via Inflectional Flow/0ddb9694-0038-4f9c-8105-9cbb51bab14c_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|