Improving Equivariant Model Training via Constraint Relaxation

Equivariant neural networks have been widely used in a variety of applications due to their ability to generalize well in tasks where the underlying data symmetries are known. Despite their successes, such networks can be difficult to optimize and require careful hyperparameter tuning to train successfully. In this work, we propose a novel framework for improving the optimization of such models by relaxing the hard equivariance constraint during training: We relax the equivariance constraint of the network's intermediate layers by introducing an additional non-equivariant term that we progressively constrain until we arrive at an equivariant solution. By controlling the magnitude of the activation of the additional relaxation term, we allow the model to optimize over a larger hypothesis space containing approximate equivariant networks and converge back to an equivariant solution at the end of training. We provide experimental results on different state-of-the-art network architectures, demonstrating how this training framework can result in equivariant models with improved generalization performance. Our code is available at https://github.com/StefanosPert/Equivariant_Optimization_CR

Paper

References (60)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer b5uM5/10 · confidence 4/52024-06-21

Summary

The paper proposes to relax the equivariance constraints in equivariance networks by adding a non-equivariant residual in the network weights. The methodology can be applied to different equivariant architectures, e.g. vector neurons, SE(3)-equivariant GNNs, Equiformers. Besides these strictly equivariant networks, the proposed framework can also extend to the approximately equivariant networks by modulating the strength of the unconstrained network weights. Experiments suggest moderate performance increases on a variety of tasks and equivariant architectures when applied the proposed framework.

Strengths

The paper addresses an important problem: overcoming the optimization challenges for equivariant neural networks. The methodology is clearly motivated and easy to follow. The proposed framework of adding an unconstrained component in the network weights seems general enough to be implemented on various (though not all) equivariant architectures, which the authors have demonstrated with quite a few examples.

Weaknesses

* Formatting: the paper is visually difficult to read because of the incorrect use of the parentheses in citations. * Theoretical contribution: as far as I understand, the motivation for relaxing the equivariance constraints is (i) the equivariant networks can be difficult to optimize, or (ii) the data have imperfect symmetry. The paper does not include any theoretical evidence of how the proposed framework of adding unconstrained weights can be helpful in these scenarios. * Specifically, for (i), the paper did not point out what could be the specific challenges during the optimization of equivariant networks, compared to unconstrained optimization. * And for (ii), previous works have shown the error bound of approximately equivariant networks on imperfectly symmetric data (Wang et al 2022) and proposed how to find the symmetry-breaking factors (Wang et al 2023). Compared to these works, I feel this paper didn't provide enough analysis e.g. of equivariance error of the proposed network, or how to interpret the learning result and possibly identify the imperfect symmetry in data. Also, many of the results in the paper are already well-known, e.g. the equation about the Lie derivative. Several works have already proposed to use the Lie derivative as a regularization to encourage equivariance, e.g. Otto et al 2023. * Significance of experimental results: in the experiments, the proposed method only increases performance by a little. Also, in Figure 2, it seems that some models have not converged after 200 epochs. It would be better to train for more epochs and include the full results. In Table 1, the difference between Equiformer and your method is very small. It's hard to verify the significance of this result without looking at the error bar.

Questions

1. The scheduling choice of $\theta$ in Section 3.2 seems arbitrary. Have you tried other scheduling choices, e.g. initializing with zero and constantly increasing it? What is the intuition for the current choice? 2. How sensitive is the model to the regularization coefficient $\lambda_\text{reg}$? 3. L193: "During inference, we evaluate only on the equivariant part of the model." It would be interesting to also see the result for the full model (i.e. including W). I wonder how equivariant and how large W would be under the current regularization. I'm asking because approximately equivariant networks have proved to outperform strictly equivariant networks on certain tasks with imperfect symmetries (Wang et al 2022). As you have both the non-equivariant network and the equivariant one, I'm curious about the comparison between them. 4. Is it possible to have different weighing coefficients for each network layer in the Lie derivative regularization and projection error regularization? As these errors can accumulate after passing through multiple layers, I think it is intuitively reasonable to have larger weights for the first few layers. ### References * Wang, Rui, Robin Walters, and Rose Yu. "Approximately equivariant networks for imperfectly symmetric dynamics." International Conference on Machine Learning. PMLR, 2022. * Wang, Rui, Robin Walters, and Tess E. Smidt. "Relaxed Octahedral Group Convolution for Learning Symmetry Breaking in 3D Physical Systems." arXiv preprint arXiv:2310.02299 (2023). * Otto, Samuel E., et al. "A unified framework to enforce, discover, and promote symmetry in machine learning." arXiv preprint arXiv:2311.00212 (2023).

Rating

5

Confidence

4

Soundness

3

Presentation

2

Contribution

2

Limitations

The authors have discussed the limitations.

Authorsrebuttal2024-08-09

Response to Reviewer's b5uM comment

Thank you for the response. We appreciate your comment and engagement. ## Regarding the suggestion of using a non-equivariant model and including a Lie derivative regularization: Optimizing a non-equivariant model with a Lie derivative regularization, even in the case where scheduling of $\lambda_{reg}$ is performed, doesn't guarantee that the final model will be exactly equivariant i.e. the Lie derivative will be zero for all possible inputs. Thus we believe that if we want to learn a model that is exactly equivariant, which is the focus of this work, a projection operation that projects the model to the equivariant space is required. While there are multiple works on training relaxed equivariant networks, they do not consider this projection step. In our work, we described a projection operation that is simple-- so it can be easily incorporated into a typical training process-- and we provided experimental evidence showcasing how it benefits training of equivariant networks. ## Regarding the contribution of this work We recognize that a theoretical analysis (or motivation) of this phenomenon will be an important contribution, and it is a research direction we are interested in pursuing in the future. In general, we think that a first principles theoretical approach to come up with a better optimization could be beneficial to the community since the right language for this problem (in the equivariant setting) is also missing. Nevertheless, we believe that providing a simple training procedure that improves the performance of a large range of equivariant networks is an important standalone contribution to the community. As we discussed in our rebuttal responses, previous works mainly showcase the benefits of learning relaxed equivariant networks and do not consider the case that we focus on, where we want to return to the space of exactly equivariant networks. As a result, we believe that our work still provides a novel perspective that shows that even when a practitioner requires an exact equivariant network, it can still be beneficial to relax the equivariant constraint during training and project back to the space of equivariant networks during inference. Due to the lack of attention, the problem space of improving optimization of equivariant networks is unexplored and our work can be seen as a step to start exploring the space. As for the other suggestion by the reviewer, we are happy to run experiments using that and include it in the appendix if the reviewer thinks that will make it more comprehensive.

Reviewer b5uM2024-08-12

Thank you for the response. I appreciate the authors' efforts to provide additional experiments and clarifications toward the paper's objective and contribution. The lack of theoretical analysis is still a concern to me, but I agree that the method proposed in this paper is indeed an important step toward understanding the optimization challenges in equivariant networks. I will raise my score to 5.

Reviewer GoLr7/10 · confidence 3/52024-07-10

Summary

The paper proposes relaxing the equivariance constraint on an equivariant network during training. This is done by adding free weights to equivariant linear layers but setting the free weights to zero after training. Further, two regularizations are introduced to stabilize the training: a Lie derivative term encouraging the free weights to be close to equivariant and a term encouraging the influence of the free weights to be low compared to the equivariant weights. The approach is evaluated on several equivariant tasks, showing improved performance compared to the baseline of non-relaxed optimization.

Strengths

1. The paper provides a solid contribution to the understudied topic of optimizing equivariant networks. As far as I am aware, the idea has not been studied in the literature before. 2. The presented experiments show a small but consistent benefit using the proposed approach.

Weaknesses

1. There is no theoretical motivation for why the proposed approach should work. 2. The optimization will be heavier using the proposed approach since a large number of additional parameters are introduced. See also Question 2 below.

Questions

1. The proposed parameterization of equivariant layers during training is $f(x) = f_e(x) + \theta W x$ where $f_e$ is equivariant. $W$ is also encouraged to be close to equivariant through Lie derivative regularization. Would it be possible to remove $f_e$ and $\theta$ to parameterize $f(x)=W x$ as a non-equivariant layer that is regularized by the Lie derivative loss? The projection to the equivariant subspace at the end could be group averaging: $W\mapsto \int_{g\in G} \rho(g^{-1}) W \rho(g) \mathrm{d}g$. Is there something that speaks against such an approach? 2. What is the introduced overhead during training? In terms of time and memory costs. 3. What is the performance of the obtained trained network without projecting to the equivariant subnetwork? I.e. is the approximately equivariant network better than the equivariant? Minor: - Line 243 "table 2" -> "Figure 2"

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

-

Reviewer 3CAa4/10 · confidence 4/52024-07-12

Summary

The work proposes a method for improving generalization by relaxing hard equivariance and minimizing the equivariance error as additional regularizer during training.

Strengths

Symmetries play an important role in machine learning and deep learning specifically. There has been recent attention to relaxed forms of equivariance, making it a relevant topic. The paper is well-written.

Weaknesses

There is a lack of attribution to related work, which results in a false sense of novelty. Although the paper does cite many papers on (relaxed) equivariance, it does not always give proper attribution to their contributions. Especially, since several cited papers in the related work section have proposed forms of relaxed equivariance and even minimizing such “relaxation errors” as regularization objective - either in their main method or as a baseline. Yet, the paper claims that “ solutions don’t directly focus on the optimization process itself”. This gives a false impression that regularizing the amount of equivariance in the loss is novel, while it is not. As such, to me it is not entirely clear what the contribution of this paper is.

Questions

1. Projecting back to equivariance models during testing. The first contribution mentions “projecting back to the space of equivariance models during testing”. where is this method? To my understanding, the model is not actually projected, but the error in the projection is rather minimized (but not zero). I could have misunderstood this aspect? 2. Regularization term for deep neural networks. In line 165, a regularization term is proposed to encourage equivariance solutions. It seems this term is only for a single layer. For multiple layers, how are the relative importances between layers chosen? Uniform? Also, it is not clear to me how the overall regularization strength \lambda_reg should be chosen. Cross-validation? Similarly for \theta.

Rating

4

Confidence

4

Soundness

3

Presentation

3

Contribution

1

Limitations

The main contribution of the paper seems to be adding a regularization term that penalizes the ‘equivariance error’. Several works have proposed similar losses and minimizing such regularizers in the training objective. The paper lacks comparison or discussion between different choices of such regularizers, yet alone an empirical comparison. To me it is not clear what the main contribution of this paper is?

Reviewer 3CAa2024-08-12

Thank you for the response. I appreciate the authors' efforts to provide additional explanations. To me it seems that the main contribution of the work is the projecting back step. Although most works do not consider such projection, I remain concerned about the lack of sufficient contribution to prior work (for instance relating the used relaxation). Further, some experiments demonstrate that some training runs result in better test loss, but am not sure whether the provided experiments give sufficient evidence for the made claims, which is that introducing some relaxation during training but removing it afterwards through a back projection is beneficial. Especially, since the paper lacks a theoretical analysis. Regarding the claimed contributions. The used relaxation to me seems exactly equivalent to a residual pathway prior RPP [1]. Although this work is mentioned, its relation to the used relaxation is not. As such, I also argue this not to be a particular novel contribution on its own which is claimed. Similarly, the authors do cite a range of papers that introduce parameterizations of relaxed equivariance, but do not explain how these relaxations relate to the relaxations used in this paper. It is true that these work do often not explicitly consider projecting back, as also argued in the rebuttal, but it is not clear to me why this would prohibits a comparison between these relaxations and explain differences and similarities. Moreover, since projecting back seems to be the primary contribution of this work, why not consider projecting back other common relaxations of equivariance? Given the above, I lean towards keeping my current score. [1] Finzi, M., Benton, G., and Wilson, A. G. Residual pathway priors for soft equivariance constraints. 385 In Advances in Neural Information Processing Systems, volume 34, 2021.

Authorsrebuttal2024-08-13

Response to Reviewer's 3CAa comment

Thank you for the comments, we appreciate your engagement with our work and response. ## Regarding the attributions to prior work We again do agree with the suggestion of the reviewer that improving relation to previous works on relaxed equivariance will be useful. We will add a more detailed discussion, along the lines that we have stated in the rebuttal and the responses. In addition to that, we will add further discussion about the similarities between our proposed method and the Residual Pathway Priors (RPP). While we agree with the reviewer that the mechanism used to perform our relaxation is similar to the one used in RPP, we would like to note that the process for updating the level of relaxation during training is significantly different between the two works since their motivation and focus are different. Specifically, while RPP assumes only partial knowledge of the degree of equivariance for a given task, and designs a training process that allows for updating this knowledge given the data, we assume definitive knowledge about the symmetries of the given task and show that optimizing over a larger space of relaxed equivariant networks and projecting back to the equivariant space can help optimization. We will add the above discussion in Section 3 of our paper. ## Regarding the Contribution of this work As we discussed in the rebuttal and was also mentioned by the reviewer, one of the main contributions of this work is the observation that even when we know the exact symmetries of the task it can still be beneficial to train over a larger space of relaxed equivariant models and project back to the original constrained equivariant space during inference. Since this observation is not discussed by previous works on relaxed equivariant networks, we believe that it constitutes a standalone contribution that can motivate further research on this unexplored area. To support our claims we propose a simple training process that allows us to efficiently control the relaxation level of the equivariant constraint during training and project back to the equivariant space during inference. In Section 3 of our paper, we discuss the motivation for the specific choices used in our method, including the specific form of the relaxed equivariant linear layer. By evaluating our method on a diverse set of equivariant networks and tasks, we show that our proposed relaxation during training results in increased performance of equivariant networks compared to the performance achieved by the standard training of such networks solely on the equivariant space. We believe that our experimental evaluation presented in the paper, along with the additional results we added in the rebuttal after suggestions from the reviews, provides sufficient empirical evidence of a phenomenon, which can be beneficial for improving the optimization of equivariant networks and is not documented in previous literature. Therefore, we think that the step about *projection* (which seems very similar to works on relaxed equivariance) is only a way to get there and can serve as a baseline, but the main contribution can also be seen as considering how optimization of equivariant networks with fixed symmetries can be improved. So the contribution is also about exploring that problem space itself. Nevertheless, we are happy to incorporate additional suggested experiments that the reviewer believes can strengthen our claims.

Reviewer RSZ36/10 · confidence 2/52024-07-13

Summary

Starting from the consideration that equivariant neural networks, though effective for tasks with known data symmetries, are hard to optimize and require careful hyperparameter tuning, this study proposes a framework to improve their optimization process. This is done by temporarily relaxing the equivariance constraint during training. By adding and progressively reducing a non-equivariance term in intermediate layers, the model explores a broader hypothesis space before converging to an equivariant solution.

Strengths

The paper is clearly written, the topic is significant and of interest to the community.

Weaknesses

Experimental results, despite confirming the theoretical considerations, seem to not compare with competitor methods (the ones reporte in Related works section, e.g. Mondal et al. (2023), Basu et al. (2023b) etc.) or to describe and analyze the additional computational costs (time/memory) of the provided optimization procedure (also in this case, compared to such alternative approaches).

Questions

1) What are the additional computational/memory costs of the proposed method? Is there a trade-off between the achieved increased optimization stability and exploiting the proposed procedure? 2) Could the authors give some examples where the proposed method is not applicable, i.e. the symmetry group is not a matrix Lie group or a discrete finite group? And do they believe that such settings are common or not, i.e. is the proposed method general enough to be applied to real-world scenarios?

Rating

6

Confidence

2

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors adequately addressed the limitations.

Reviewer GoLr2024-08-08

-

I acknowledge that I have read the reviews and rebuttals. The authors have successfully answered the most important critique points, so I lean towards keeping my score.

Reviewer b5uM2024-08-09

Thank you for your response. Some of my concerns have been addressed. E.g. the additional experiment in Figure 1 indeed shows the benefit of relaxing the equivariance constraint. For my question 3, I was originally approaching it from the perspective of ``approximate symmetry in data'', where an approximately equivariant model (e.g. with a small $\theta$ in $\theta W$) would help. So I was thinking about training such a model by scheduling $\theta$ to be close to zero at the end, e.g. by still using your schedule in Section 3.2 but ending a few epochs earlier. However, since you focus on improving the optimization of a (strictly) equivariant model instead of specifying an approximately equivariant model that matches the data symmetry, I believe what I proposed was not the most relevant. Still, I appreciate your effort in providing the additional results in Figure 3. My main concern, however, is still about the theoretical contributions. I definitely agree that equivariant models pose optimization challenges, and also tackling this problem itself is important. However, I'd expect more theoretical evidence on why your current method would work and what kind of optimization obstacles it could possibly overcome. As also mentioned by Reviewer GoLr, there are other intuitive approaches to your goal, e.g. simply using a non-equivariant model and including the Lie derivative regularization. The amount of symmetry violation can also be controlled by the regularization coefficient $\lambda_{\text{reg}}$, and perhaps you can do a similar scheduling procedure for $\lambda_{\text{reg}}$ as for $\theta$. I agree that this would be a less explicit control of the level of relaxation. But since there are fewer components and loss terms in the model, it's hard to say exactly which one would be better. Due to the lack of theoretical analysis, I am unconvinced that the current method is a better way of addressing optimization challenges in equivariant networks, among the many possible approaches.

Reviewer RSZ32024-08-11

I acknowledgeto have read the reviews and rebuttals. Given that the authors have answered the most important questions I raised (ando also clarified the trade-off between stability and performances), I lean towards keeping my score of acceptance.

Authorsrebuttal2024-08-12

Thanks

Dear Reviewer, Thank you for taking the time for examining our response. We are glad that our responses have been able to answer the points you had raised.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC