Manuscript Offprint
arXiv:2611.01530Learning Gradients of Homogeneous Functions
ABSTRACT
Homogeneous gradient functions have widespread significance, including applications in maximum energy subspace selection and retrieval problems. Euler's homogeneous function theorem specifies how the potential associated with a positively -homogeneous gradient field can be recovered directly from the field itself. We use Euler's theorem to build on GradNets [1] and propose a homogeneous gradient network architecture that is guaranteed to correspond to the gradient of a homogeneous function. Then, we describe how monotone homogeneous GradNets universally approximate the gradients of -homogeneous convex functions. The inductive bias of homogeneous GradNets enables them to outperform baseline ICNNs by up to 7dB in our max energy subspace projection experiment and by up to 13% higher accuracy, 98% fewer parameters, and 70% fewer FLOPS in our amortized inner product search experiment.
Index Terms— Homogeneous Functions, Convex Functions, Monotone Gradient, Inner Product Search, Neural Network
1. INTRODUCTION
Many signal processing and machine learning problems have structured solutions that leverage prior knowledge about the problem. Vector fields for physics and optimization problems often obey common properties like scaling consistently with the input (positive homogeneity) and corresponding to the gradient of an underlying scalar potential (conservativity). Such requirements arise in learned convex regularizers [2, 3], optimal transport [4, 5], and in retrieval problems where the optimal map is the gradient of a convex support function [6]. Specifically, controlling the degree of positive homogeneity of the underlying potential is an important design requirement in applications where the target field has known scaling behavior.
Maximum inner product search (MIPS): The support function of a fixed database, , is convex and positively 1-homogeneous, and its gradient at is exactly the maximizing database vector. The runtime scales linearly in the dimension and the database size; amortizing MIPS requires learning the gradient of a 1-homogeneous convex function [6]. Maximum-energy subspace selection and projection in array and radar applications: candidate signal or interference subspaces can be compared by the energy they capture from a received snapshot [7, 8]. For a candidate subspace with projection matrix , this energy is . The resulting pointwise maximum of quadratic forms is convex and positively 2-homogeneous. Efficient amortized identification of dominant signal or interference subspaces is useful in high-throughput radar processing. Convex regularizers used in
inverse problems (e.g., norms, gauge functions, and total variation-type penalties) are positively 1-homogeneous by design, as the scaling enables consistent behavior across signal amplitudes [9]; computing their proximal or gradient steps requires exactly the structure we study in this paper. Global optimization guarantees have also been prove using positive homogeneity [10].
Neural network architectures have been proposed to approximate gradient functions, but they do not explicitly parameterize the degree of positive homogeneity of the underlying potential. For examples, input convex neural networks [11] guarantee convexity of the potential by construction, but leave the scaling behavior of the learned field unconstrained. A natural solution is to use an unconstrained (or convexity-constrained) neural network and encourage homogeneity through regularization or a wrapper function. This strategy struggles to simultaneously guarantee that the learned field is integrable and corresponds to a convex homogeneous function.
In this work, we encode prior knowledge into the neural network architecture to guarantee homogeneity, conservativity, and monotonicity. By enforcing the correct functional properties in neural network architectures, we guarantee that every parameter setting yields a valid gradient field with the desired structure. Instead of first parameterizing the potential function, we directly parameterize the gradient function with a modular gradient network (GradNet-M) that we proposed in [1]. Crucially, we leverage Euler's homogeneous function theorem and use homogeneous module activations to express each module's potential as an inner product.
Contributions: Our contributions are threefold. (1) We propose a gradient network architecture [1] whose output is guaranteed to be the gradient of a positively -homogeneous (convex) function. (2) We prove that the proposed network universally approximates (sub)gradients of positively -homogeneous convex functions. (3) We evaluate on two tasks with different homogeneity degrees: amortized maximum quadratic energy subspace selection () and amortized maximum inner product search (), comparing against unconstrained and convexity-constrained baselines.
*Equal contribution.
Authors partially supported by NSF Grants CNS-2106891, CNS-2409138, and CCF-2327905. S. Chaudhari and S. Pranav partially supported by NSF Graduate Research Fellowships (GRFP; Grants DGE1745016, DGE2140739). S. Pranav partially supported by an ARCS Fellowship.
to the gradient of a convex function. Counterexample: ; the Hessian of at has an eigenvalue of -1. Our proposed homogeneous GradNet constructively enforces the target homogeneity degree in the parameterization and ensures convexity and homogeneity hold simultaneously (see Sec. 4).
Gradient Networks (GradNets [1]) directly parameterize the gradient of a convex potential, avoiding a separate potential network. They have been used in applications ranging from optimal transport [5] and generative flows [13, 14] to physics-informed safe control [15], electromagnetic fields [16], and material science [17].
Subspace detection and selection is a long-studied problem in array and radar processing. Comparing an observation against multiple candidate signal or interference subspaces arises in matched subspace detection [7], adaptive beamforming [18], and related detection-theoretic formulations where a statistic such as is computed for each candidate subspace projector and thresholded or maximized over . These classical formulations typically assume a small, fixed number of candidate subspaces evaluated exactly at each observation. Our first experiment (Sec. 6.1) instead treats the maximum projected energy as the learning objective since is convex and positively 2-homogeneous, and its gradient at points of unique maximization is exactly .
Maximum inner product and subspace search require an exhaustive comparison of each query against a database, which becomes prohibitive at scale. Classical approaches instead build search structures such as locality-sensitive hashing [19] or tree- and graph-based indices [20]. Alternatively, [6] proposes amortizing the search by learning a direct query-to-answer map using the gradient of the database support function. In Sec. 6.2, we adopt their MIPS setup and compare to their proposed methods.
Positively homogeneous convex functions and regularizers are classically studied as gauge functions and sublinear functions [21] and used throughout inverse problems, where the scaling behavior of the regularizer makes it behave consistently across signal amplitudes. Our universal approximation results (Sec. 5) build on the density of pointwise maxima of supporting hyperplanes [22]; the extension from 1-homogeneous to k-homogeneous convex functions uses the factorization result of [23].
3. PROBLEM STATEMENT
We consider the problem of learning vector fields that are gradients of positively homogeneous (convex) functions. Such structure arises in applications where the learned mapping must simultaneously satisfy integrability, scale-consistency, and convexity constraints. Rather than learning an unconstrained vector-valued function and subsequently enforcing these properties, we leverage the prior knowledge about the optimal solution to construct a neural network architecture whose output satisfies the properties by construction.
Objective: construct a parameterized vector field such that, for every choice of the learnable parameters , there exists a potential satisfying where is positively k-homogeneous. In addition, we seek a parameterization that permits the homogeneity degree of the potential to be controlled explicitly.
Definition 1 (Positive k-Homogeneity). Let . A function is positively k-homogeneous if for every .
Positive homogeneity imposes a simple scaling relationship between a function and its values along rays from the origin. An important consequence is that the gradient of a differentiable positively
k-homogeneous function is positively -homogeneous:
Thus, if the target vector field is the gradient of a positively k-homogeneous potential, its degree of homogeneity is determined by that of the underlying potential. Euler's homogeneous function theorem provides the following pointwise characterization that enables us to recover the potential from its gradient: for a (sub)differentiable positively k-homogeneous function,
This identity allows us to express the potential associated with a learned homogeneous gradient field directly in terms of an inner product with the learned field, without requiring a separate neural network to represent the potential. Next, we leverage these properties to construct the proposed homogeneous gradient network.
4. HOMOGENEOUS GRADIENT NETWORKS
We propose a neural network architecture that is, by construction, guaranteed to correspond to the gradient of a positively nk-homogeneous function:
The architecture has learnable modules and resembles the modular gradient networks (GradNet-M) that we previously proposed in [1, 13]. The hyperparameter is user-defined and controls the potential function 's degree of homogeneity. The activation is constrained to be the gradient of , a positively -homogeneous scalar-valued function. Each module has unconstrained learnable parameters: scalar mixing coefficients and weight matrices .
The neural network corresponds to the monotone gradient of a convex positively -homogeneous function if the following additional requirements are satisfied: the coefficients are constrained to be nonnegative and the are additionally convex and nonnegative. As we prove next, corresponds to the gradient of a (convex) positively -homogeneous function under these conditions.
Theorem 1. Let be positively -homogeneous and be the gradient of . Then neural networks of the form (1) are guaranteed to correspond to gradients of positively -homogeneous functions. If every and is additionally convex and nonnegative, then is guaranteed to correspond to the monotone gradient of a convex positively -homogeneous function.
Proof. Let so that . By Euler's identity, . Substituting into (1) gives
Therefore, with . Each is positively -homogeneous, so is positively -homogeneous and is positively -homogeneous.
If is additionally convex and nonnegative, then each is convex and nonnegative. For and , is convex because is convex and nondecreasing on . Therefore, is convex and hence is the gradient of a convex, positively -homogeneous function.
The key observation is that, when is homogeneous, Euler's identity converts the scalar quantity into the potential associated with the module. This permits nonlinear powers of the potential to be differentiated analytically, yielding a gradient field while preserving positive homogeneity. The theorem also provides an analytic form for the antiderivative of a homogeneous function. Each module (2) is a bias-free mGradNet-M module of [1] whose modular architecture takes the form with , , and convex and nonnegative; such a module is . Two consequences of homogeneity distinguish the proposed form: there is no separate evaluation of , and the nonnegativity requirement on is automatically satisfied.
5. UNIVERSAL APPROXIMATION RESULTS
In this section, we prove universal approximation results for the homogeneous monotone gradient network architecture. First we consider approximators of convex 1-homogeneous potential functions.
Lemma 1. Pointwise maximum of linear functions is dense in the space of convex positively 1-homogenous functions.
Proof. This follows from Proposition 2 of [22], which shows that the pointwise maximum of supporting hyperplanes can uniformly approximate (where is a subgradient of evaluated at ). If is homogeneous, then by Euler's identity
and the supporting hyperplanes are linear instead of affine.
We show that a subgradient of the universal approximators in extend Lemma 1 yield universal approximators of gradients of convex 1-homogeneous functions.
Theorem 2. The function in (2) is a universal approximator of monotone (sub)gradients of convex positively 1-homogeneous functions when the activation is argmax.
Proof. Let be a 1-homogeneous convex function. By Lemma 1, there exists a sequence of convex approximators (i.e., maximum of linear functions) that converges pointwise to . By Theorem 24.5 in [21], a subsequence of subdifferentials of these approximators becomes increasingly similar to those of . When in (2) has argmax activation, it is precisely a subgradient of the maximum of linear functions.
Next, we consider the broader class of convex positively -homogeneous functions and express it in terms of convex positively 1-homogeneous functions. will lead to extensions of.
Lemma 2. Let be convex and positively -homogeneous with . Then is non-negative and there exists convex positively 1-homogeneous such that .
Proof. Let . Homogeneity of implies . Convexity of implies because
Since and , this implies . The remainder of the proof follows from Lemma D.1 in [23].
Next, we leverage Lemma 2 to show universal approximation of monotone gradients of convex positively -homogeneous functions.

Fig. 1. Ground-truth and learned potentials on a 2-D orthonormal slice of a maximum energy subspace problem. White lines indicate boundaries where the maximizing projector changes.
Theorem 3. The function in (1) is a universal approximator of monotone (sub)gradients of convex positively -homogeneous functions, where , when the activation is argmax.
Proof. Let be convex positively -homogeneous, with . By Lemma 2, there exists convex positively 1-homogeneous such that . By Lemma 1, there exists a sequence of maximum of linear functions that converges to pointwise. Since composing with a continuous function preserves pointwise convergence, the sequence raised to the power also converges pointwise to , and the result follows by Theorem 24.5 in [21].
6. EXPERIMENTAL EVALUATION
6.1. Amortized Max Energy Subspace
Subspace projection is a fundamental operation in signal processing that has applications including matched-subspace detection and hyperspectral target detection, where observations are compared with low-dimensional signal or target subspaces. We consider candidate -dimensional subspaces in . Let contain an orthonormal basis for and be the corresponding orthogonal projector. For an observation , the energy captured by the th subspace is . We study the maximum subspace energy projection problem: project onto the candidate subspace that captures the most signal energy
When the maximizing subspace is unique, is differentiable and . We use this to evaluate the accuracy of the projection amortization. We construct candidate subspaces and vary the ambient dimension as with subspace dimension . Observations are generated from randomly selected latent subspaces with additive isotropic Gaussian noise (), yielding samples that concentrate around the candidate subspaces while allowing overlap. We respectively construct 100K, 10K, and 10K samples for training, validation, and testing, and evaluate all projected energies to construct the targets.
Figure 1 visualizes the target and learned potentials on the slice . The ground-truth potential is piecewise quadratic, with boundaries corresponding to changes in the maximizing projector. GradNet more closely reproduces this geometry than ICNN. We compare an input convex neural network (ICNN) [11] baseline with our proposed 1-homogeneous GradNet architecture () using weighted softmax activation. Let denote the output of the th GradNet module. The predicted field is

Fig. 2. maximum energy subspace problem. Left and center: true vs. predicted potentials for ICNN and GradNet; dashed line denotes exact agreement. Right: absolute potential error distributions.
where are learned mixture coefficients and . During training, the softmax logit scale is increased linearly from 0.25 to 100, progressively sharpening the module responses. We scale both architectures' hidden dimensions such that each model has 1024d parameters. Each model is trained for 100 epochs using Adam and MSE loss . We evaluate the lowest validation MSE checkpoint on the held-out test set.
Figure 2 evaluates the learned potentials on the complete test set. GradNet predictions closely follow the ground-truth diagonal, with absolute errors more concentrated near zero than those of the ICNN. Across all dimensions, Table. 1 shows that explicitly incorporating the 1-homogeneity of the target gradient into our GradNet architecture enables it to achieve significantly lower test gradient MSE than the ICNN baseline – with up to 7dB improvement.
Table 1. Maximum projected subspace energy task test gradient MSE (dB) across ambient dimensions . Lower is better.
| d | 16 | 32 | 64 | 128 | 256 |
|---|---|---|---|---|---|
| ICNN | -5.04 | -4.36 | -4.13 | -3.99 | -3.89 |
| GradNet | -11.97 | -9.74 | -7.66 | -5.63 | -4.89 |
6.2. Amortized Max Inner Product Search
We consider queries , keys , a fixed database and the maximum inner product search (MIPS) problem:
with corresponding maximizing key . When using a fixed database, repeatedly evaluating all inner products incurs cost per query. Amortized MIPS [6] instead exploits the fixed database to learn a query-dependent map that approximates the maximizing key, shifting computation to an offline training stage. We follow the setup in [6] and define the database support function as the following convex positively 1-homogeneous function: . When the maximizing key is unique, the support function's gradient is exactly the maximizing database vector. We exploit this observation by learning a parameterized gradient field satisfying . Thus, the learned model maps a query directly to an approximation of the maximizing database vector. We perform exact exhaustive retrieval to obtain training and test data. Following the setup of [6], we evaluate on two text-retrieval datasets: FIQA and Quora. In the restricted setting, training uses only the original query embeddings. In the noise-augmented setting, each query is augmented with 10 noisy copies while keeping the database fixed. During training, we optimize the sum of a target-vector objective and a support-value consistency objective .
Table 2. Retrieval performance and efficiency under the restricted (no-noise) setting (25K training steps).
| Model | Acc. | MRR | R@0.01% | Params | Proj. FLOPs |
|---|---|---|---|---|---|
| FIQA | |||||
| SupportNet-M4 [6] | 52.70 | 0.6545 | 81.46 | 2.15M | 73.2K |
| KeyNet-M4 [6] | 51.52 | 0.6434 | 80.26 | 2.30M | 29.8K |
| GradNet 144-M8 | 63.71 | 0.7553 | 90.83 | 442K | 28.5K |
| GradNet 128-M9 | 63.87 | 0.7562 | 91.14 | 442K | 29.3K |
| GradNet 112-M10 | 64.25 | 0.7591 | 91.06 | 430K | 29.3K |
| Quora | |||||
| SupportNet-M4 [6] | 88.97 | 0.9311 | 99.84 | 20.03M | 224.2K |
| KeyNet-M4 [6] | 88.19 | 0.9255 | 99.79 | 20.20M | 100.9K |
| GradNet 144-M8 | 92.00 | 0.9540 | 99.99 | 442K | 28.5K |
| GradNet 128-M9 | 92.03 | 0.9542 | 99.99 | 442K | 29.3K |
| GradNet 112-M10 | 92.12 | 0.9544 | 99.99 | 430K | 29.3K |
Table 3. Retrieval performance and efficiency with noise-augmented training using 10 noisy samples per query (10K training steps).
| Model | Acc. | MRR | R@0.01% | Params | Proj. FLOPs |
|---|---|---|---|---|---|
| FIQA | |||||
| SupportNet-M4 [6] | 51.76 | 0.6449 | 80.53 | 2.15M | 73.2K |
| KeyNet-M4 [6] | 63.20 | 0.7354 | 86.60 | 2.30M | 29.8K |
| GradNet 144-M8 | 64.50 | 0.7618 | 91.52 | 442K | 28.5K |
| GradNet 128-M9 | 64.19 | 0.7592 | 91.43 | 442K | 29.3K |
| GradNet 112-M10 | 64.60 | 0.7614 | 91.28 | 430K | 29.3K |
| Quora | |||||
| SupportNet-M4 [6] | 87.77 | 0.9242 | 99.89 | 20.03M | 224.2K |
| KeyNet-M4 [6] | 87.82 | 0.9220 | 99.77 | 20.20M | 100.9K |
| GradNet 144-M8 | 91.54 | 0.9511 | 99.99 | 442K | 28.5K |
| GradNet 128-M9 | 91.63 | 0.9516 | 99.99 | 442K | 29.3K |
| GradNet 112-M10 | 91.63 | 0.9515 | 99.98 | 430K | 29.3K |
We parameterize as the following monotone gradient network
where , a, b > 0, and . The positive mixture coefficients are parameterized as .
Tables 2 and 3 compare GradNet models with SupportNet and KeyNet under restricted and noise-augmented training settings, respectively. In addition to retrieval accuracy, we report mean reciprocal rank (MRR), Recall@0.01%, number of trainable parameters, and projection FLOPs per query. Across both datasets and training settings, GradNet outperforms both baselines from [6]. On FIQA, GradNet improves top-1 accuracy, MRR, and Recall@0.01% over both baselines while using fewer parameters. On Quora, GradNet similarly outperforms both baselines across the retrieval metrics while requiring roughly 98% fewer parameters and 70% fewer projection FLOPs. Furthermore, under comparable parameter and projection-FLOP budget, GradNet performance is robust to the particular choice of architectural hyperparameters.
7. CONCLUSION
We introduced homogeneous GradNets, which guarantee positive homogeneity and conservativity by construction, and convexity under mild additional constraints. We proved universal approximation for gradients of convex, positively homogeneous functions. On max energy subspace selection, GradNet cuts test gradient MSE by up to 7dB over ICNNs; on amortized retrieval, it outperforms baselines across all metrics while using up to 98% fewer parameters and 70% fewer projection FLOPs. These results demonstrate benefits of encoding homogeneity directly into the architecture.
8. REFERENCES
[1] Shreyas Chaudhari, Srinivasa Pranav, and José M. F. Moura, "Gradient Networks," IEEE Transactions on Signal Processing, vol. 73, pp. 324–339, 2024.
[2] Subhadip Mukherjee, Sören Dittmer, Zakhar Shumaylov, Sebastian Lunz, Ozan Öktem, and C-B Schönlieb, “Data-driven Convex Regularizers for Inverse Problems,” in ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2024, pp. 13386–13390.
[3] Alexis Goujon, Sebastian Neumayer, Pakshal Bohra, Stanislas Ducotterd, and Michael Unser, “A Neural-Network-based Convex Regularizer for Inverse Problems,” IEEE Transactions on Computational Imaging, vol. 9, pp. 781–795, 2023.
[4] Yann Brenier, “Polar Factorization and Monotone Rearrangement of Vector-valued Functions,” Communications on Pure and Applied Mathematics, vol. 44, no. 4, pp. 375–417, 1991.
[5] Shreyas Chaudhari, Srinivasa Pranav, and José M. F. Moura, "GradNetOT: Learning Optimal Transport Maps with GradNets," in 2025 IEEE 10th International Workshop on Computational Advances in Multi-Sensor Adaptive Processing (CAM-SAP), 2025, pp. 326–330.
[6] Theo X. Olausson, Joao Monteiro, Michal Klein, and Marco Cuturi, “Amortizing Maximum Inner Product Search with Learned Support Functions,” in Forty-third International Conference on Machine Learning, 2026.
[7] L.L. Scharf and B. Friedlander, “Matched Subspace Detectors,” IEEE Transactions on Signal Processing, vol. 42, no. 8, pp. 2146–2157, 1994.
[8] Danilo Orlando, Giuseppe Ricci, and Louis L. Scharf, “A Unified Theory of Adaptive Subspace Detection part I: Detector Designs,” IEEE Transactions on Signal Processing, vol. 70, pp. 4925–4938, 2022.
[9] Martin Benning and Martin Burger, “Modern Regularization Methods for Inverse Problems,” Acta numerica, vol. 27, pp. 1–111, 2018.
[10] Benjamin D Haeffele and René Vidal, “Global Optimality in Neural Network Training,” in 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2017, pp. 4390–4398.
[11] Brandon Amos, Lei Xu, and J. Zico Kolter, “Input Convex Neural Networks,” in International Conference on Machine Learning. PMLR, 2017, pp. 146–155.
[12] Jack Richter-Powell, Jonathan Lorraine, and Brandon Amos, "Input Convex Gradient Networks," arXiv preprint arXiv:2111.12187, 2021.
[13] Shreyas Chaudhari, Srinivasa Pranav, and José M. F. Moura, “Learning Gradients of Convex Functions with Monotone Gradient Networks,” in ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2023, pp. 1–5.
[14] Naoufal El Bekri, On Generative Flow Models for Stochastic Dynamical Systems: Paths and Densities, Ph.D. thesis, Université de Brest, 2026.
[15] Zhuoyuan Wang, Albert Chern, and Yorie Nakahira, “Generalizable Physics-informed Learning for Stochastic Safety-critical Systems,” IEEE Transactions on Automatic Control, 2025.
[16] Junyi Li, Tim Foissner, Floran Martin, Antti Piippo, and Marko Hinkkanen, “Gradient Networks for Universal Magnetic Modeling of Synchronous Machines,” arXiv preprint arXiv:2602.14947, 2026.
[17] Jihong Wang, Xiaochuan Tian, Zhongqiang Zhang, Stewart Silling, Siavash Jafarzadeh, and Yue Yu, “Monotone Peridynamic Neural Operator for Nonlinear Material Modeling with Conditionally Unique Solutions,” Computer methods in applied mechanics and engineering, vol. 453, pp. 118792, 2026.
[18] D.D. Feldman and L.J. Griffiths, “A Projection Approach for Robust Adaptive Beamforming,” IEEE Transactions on Signal Processing, vol. 42, no. 4, pp. 867–876, 1994.
[19] Anshumali Shrivastava and Ping Li, “Asymmetric LSH (ALSH) for Sublinear Time Maximum Inner Product Search (MIPS),” in Advances in Neural Information Processing Systems. 2014, vol. 27, Curran Associates, Inc.
[20] Parikshit Ram and Alexander G. Gray, “Maximum Inner-product Search using Cone Trees,” in Proceedings of the 18th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA, 2012, KDD '12, p. 931–939, Association for Computing Machinery.
[21] R. Tyrrell Rockafellar, Convex Analysis, vol. 18, Princeton University Press, 1970.
[22] Chin-Wei Huang, Ricky TQ Chen, Christos Tsirigotis, and Aaron Courville, “Convex Potential Flows: Universal Probability Distributions with Optimal Transport and Convex Optimization,” in International Conference on Learning Representations, 2020.
[23] De Huang, “Generalizing Lieb’s Concavity Theorem via Operator Interpolation,” Advances in Mathematics, vol. 369, pp. 107208, 2020.