Next Article in Journal
Improving Text-to-SQL with a Hybrid Decoding Method
Next Article in Special Issue
Consistent Model Selection Procedure for Random Coefficient INAR Models
Previous Article in Journal
A Robust and High-Dimensional Clustering Algorithm Based on Feature Weight and Entropy
Previous Article in Special Issue
ROC Analyses Based on Measuring Evidence Using the Relative Belief Ratio
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving the Performance and Stability of TIC and ICE

Department of Financial Engineering, NYU Tandon School of Engineering, 6 MetroTech Center, Brooklyn, NY 11201, USA
Entropy 2023, 25(3), 512; https://doi.org/10.3390/e25030512
Submission received: 8 February 2023 / Revised: 7 March 2023 / Accepted: 14 March 2023 / Published: 16 March 2023

Abstract

:
Takeuchi’s Information Criterion (TIC) was introduced as a generalization of Akaike’s Information Criterion (AIC) in 1976. Though TIC avoids many of AIC’s strict requirements and assumptions, it is only rarely used. One of the reasons for this is that the trace term introduced in TIC is numerically unstable and computationally expensive to compute. An extension of TIC called ICE was published in 2021, which allows this trace term to be used for model fitting (where it was primarily compared to L2 regularization) instead of just model selection. That paper also examined numerically stable and computationally efficient approximations that could be applied to TIC or ICE, but these approximations were only examined on small synthetic models. This paper applies and extends these approximations to larger models on real datasets for both TIC and ICE. This work shows the practical models may use TIC and ICE in a numerically stable way to achieve superior results at a reasonable computational cost.

1. Preliminaries

The ICE methodology that is analyzed by this paper is described in detail in [1]. That paper also contains a great deal of introductory information regarding information criteria and generalization errors. This section contains a brief review to introduce some common notation needed for the topics of this paper.
Consider the model g ( x i | θ ) that assigns a probability to the regressors x i , and is parameterized by the parameters θ . Suppose the actual probability of x i is f ( x i ) . Suppose X n is a random variable corresponding to a sample of size n drawn from f, composed of x i for 0 < i n . If the sample size is not specified (or understood to be 1), then we may write X instead. The usual definitions for this sort of analysis are listed below.
Definition 1
(Log Likelihood of θ over X).
( θ ) : = 1 n i = 1 n log g ( x i | θ )
Definition 2
(Expected Log Likelihood of θ over f).
L ( θ ) : = E x [ log g ( x | θ ) ]
where the expectation is taken over the distribution f ( x ) .
Definition 3
(Maximum Likelihood Estimate θ ^ of θ ).
θ ^ : = argmax θ Θ ( θ ) .
Definition 4
(Negative Expected Hessian Matrix).
J ( θ ) : = E X [ θ 2 log g ( X | θ ) ] = f ( x ) θ 2 log g ( x | θ ) d x ,
Definition 5
(Fisher Information Matrix).
I ( θ ) : = E X [ θ log g ( X | θ ) θ T log g ( x | θ ) ] .
For both I ( θ ) and J ( θ ) , we define J ^ ( θ , X n ) and I ^ ( θ , X n ) to be their estimators computed from the dataset X n . We may write J ^ and I ^ for simplicity when the meaning is clear.

1.1. Information Criteria and Generalization Error

A well known result by Stone [2] shows that the MLE is a biased estimator of the minimum KL-divergence:
E X n [ ( θ ^ ( X n ) , X n ) ] < E X n [ ( θ 0 , X n ) ] ,
because it is evaluated on the data X n , which was used to fit θ ^ . Cross-validation was developed as a model selection technique to select a model from a group that actually minimizes E X n [ ρ K L ( g θ 0 , g θ ^ ( X n ) ) ] and not merely E X n [ ( θ ^ ( X n ) , X n ) ] in the limit of large n. Takeuchi [3] and Akaike [4] explicitly modeled this bias (generalization error) of an estimation procedure θ ( X n ) .
Definition 6
(Generalization Error of estimation procedure θ ( X n ) ).
b ( θ ( X n ) ) : = E X n ( θ ( X n ) , X n ) E X n [ ( θ ( X n ) , X n ) ] .
Akaike’s Information Criterion (AIC) [4] was one of the earliest attempts to correct for this bias. AIC is able to correct for generalization errors when comparing MLE estimates for a restricted class of models. This work was extended by Takeuchi’s TIC [3] to expand the class of models, while still requiring that the MLE estimates be used for comparison.
In particular, note that it has long been known (e.g., in [4]) that for the MLE estimate θ ^ of a model with m parameters, the bias b is asymptotically O ( m n ) almost surely. So, for instance,
( θ ^ ( X n ) , X n ) = L ( θ ^ ( X n ) ) + O ( m n )
almost surely. Hence, for the MLE estimate θ ^ of a model with m parameters, we have that
b ( θ ^ ( X n ) ) = O ( m n )
almost surely. Proofs of this fact are found in both [4], for a restricted subset of models, and [3] for a broader class of models.
The goal of AIC, TIC, and ICE is to reduce the generalization error by reducing the order of the O ( m n ) term, by incorporating a more negative power of n. This does not guarantee superior performance. In the case of TIC particularly, numerical instability can cause this term to have an unexpectedly large constant factor. However, if numerical instability is effectively controlled, it is expected that many problems could benefit from these techniques for moderate sample sizes, as will be shown in later sections.

1.2. TIC

In [3], Takeuchi developed the information criterion
T I C = ( θ ^ ) + 1 n t r ( I ^ J ^ 1 ) .
The second term here may be periodically referred to as the “trace term,” as it appears in ICE as well in later sections. This was an extension of AIC, which had previously been developed by Akaike in [4]:
A I C = ( θ ^ ) + m n .
Here, for convenience, we use the convention that TIC (and AIC) is O ( 1 ) . In other work, it is often multiplied by n to produce a result that is O ( n ) .
Takeuchi then showed that AIC is a limiting case of TIC. It was shown by Stone in [2] that AIC model selection and model selection via cross validation are equivalent whenever AIC is valid. By extension, TIC is also equivalent to cross validation under these circumstances.
If two models are to be compared using TIC or AIC, then the model with the lower value of TIC is on average the better model. Given two models, g 1 with T I C 1 and g 2 with T I C 2 , the model g 1 is actually the better model with probability
p ( ρ K L ( f , g 1 ) < ρ K L ( f , g 2 ) ) = e n T I C 1 e n T I C 1 + e n T I C 2 .
where ρ K L ( f , g 1 ) is the KL divergence between the true distribution f and a model generated distribution g.
This follows directly from the fact that the exponential of a TIC value is a likelihood ratio, and the logic then proceeds in the usual way for likelihood ratio statistics [5].
In this way, TIC (as with any information criterion) can be used to select the better model from a family of fit models. However, it requires that all models be fit using maximum likelihood estimation (MLE).

1.3. Additional Information Criteria

Modern machine learning models often have a very large number of parameters, in some cases having more parameters than observations in the fitting set. Recalling Equation (9), it can be seen that using the MLE estimate θ ^ is likely to produce models that generalize poorly. For these models, information criteria have therefore fallen out of favor. Using an information criterion to choose the best model from a small set of models fit using MLE is unlikely to find an accurate model. If the number of models is very large, then Equation (12) dictates that the information criterion differences must be very large in order to reliably find the best model, and again the result is unlikely to perform well. Additionally, each fit of a model such as this may carry considerable expense, so producing a large number of fits to filter with information criteria may be cost prohibitive as well.
Konishi and Kitagawa [6] developed GIC, which extended TIC to no longer require MLE estimation, allowing regularization and similar generalization error reducing approaches. See [7] for an overview of typical regularization techniques that might be paired with GIC in this way. Unfortunately, GIC is not viable as written for modern machine learning models as it still has a form similar to Equation (10), and as discussed in [1,8,9], these equations are numerically unstable for large m (roughly m > 20 ), regardless of n.
Ichiguro et al. developed an alternate approach named Extended Information Criterion (EIC) in [10]. The main idea is that TIC and AIC use a Taylor expansion of the generalization error, and then their correction terms are simply the leading order terms of that expansion. However, the generalization error itself (Equation (7)) actually takes the form of an expectation over the true distribution. This expectation may be computed directly over the empirical distribution, avoiding the need for an expansion.
Additional analysis of EIC was performed by Kitagawa and Konishi in [11]. Their analysis indicates that EIC (in its most basic implementation) adds noise to the objective function proportional to the sample size. This means it may not be appropriate for large datasets without adjustment, and adjustments to reduce this issue are then proposed and analyzed.

1.4. ICE

In the discussions of information criteria in the previous sections the models would be fit using MLE, or some other procedure, and then model selection would be performed afterwards using an information criterion. The exact fitting procedure is not specified. These approaches assume that some procedure can be found which will produce models with reasonable levels of accuracy, but that is hardly a given if the model has a very high parameter count m relative to the observation count n.
Though GIC allows the use of regularization (and various other techniques), L 2 regularization itself is not always effective. For instance, see Figures 1 and 3 from Section 4 of [1] for examples where L 2 regularization is not helpful. Models as simple as estimating mean and variance of a Gaussian through MLE are always harmed by L 2 . This gives good cause to believe that cases where L 2 is not helpful, or not efficient, are fairly common. Approaches beyond regularization, such as early stopping or drop-out, tend to have hyper-parameters which can be difficult to estimate, just as regularization does. Additionally, there is little theoretical reason to believe that these approaches are reducing a generalization error efficiently.
An example of a highly parameterized model is a modern MNIST challenge leader [12] that has 1,514,187 parameters, but was fit on a dataset with only 30,000 observations. A discussion of why this often occurs within the field of machine learning is beyond the scope of this paper, but it is enough to know that this is an important use case for model fitting that is not well served by existing information criteria.
In [1], the ICE objective function is defined.
Definition 7
(ICE Objective).
* ( θ ) = ( θ ) + 1 n t r ( I θ J θ 1 ) ,
Let θ * denote the minimizer of (13).
This takes the same form as TIC, but it was shown that with only slightly stronger assumptions (see Theorem 1 below) the trace term from Definition 7 is still the leading order generalization error term in a neighborhood around the MLE θ ^ .
The important properties of this objective function are encapsulated in Theorem 1.
Theorem 1 (ICE Behavior). Suppose the following conditions hold:
1. 
M satisfies White’s regularity conditions A1–A6 (see [13]).
2. 
θ 0 is a global minimum of L ( θ ) in the compact space Θ defined in A2.
3. 
There exists a ε > 0 such that L ( θ 0 ) < L ( θ 1 ) ε for all other local minima θ 1 .
4. 
For k = 0 , 1 , 2 , 3 , 4 , 5 the derivative θ k L ( θ ) exists, is continuous, and bounded on an open set around θ 0 .
5. 
For k = 0 , 1 , 2 , 3 , 4 , 5 , the variance V [ θ k ( θ , X n ) ] 0 as n on an open set around θ 0 .
Then, for sufficiently large n there exists a compact subset U Θ containing θ 0 , θ ^ , such that:
1. 
For k = 0 , 1 , 2 , 3 the derivative θ k * ( θ , x n ) exists, is continuous, and bounded on U, almost surely.
2. 
For k = 0 , 1 , 2 , 3 , V [ θ k * ( θ , X n ) ] 0 as n on U, almost surely.
3. 
θ * U as n almost surely.
4. 
n ( θ * θ 0 * ) N ( 0 , ( J ^ θ 0 * * ) 1 I ^ θ 0 * * ( J ^ θ 0 * * ) 1 ) almost surely.
5. 
L ( θ * ) = * ( θ * ( X n ) , X n ) + O p ( n 3 / 2 ) almost surely.
Proof. 
See Appendix A of [1]. □
Theorem 1 would guarantee that b ( θ * ) = O ( m n 3 / 2 ) if I and J could be known exactly.
Taking v ( θ , x ) = θ ( θ , x ) , and using the estimates I ^ and J ^ for their true values, this can be rewritten (approximately) as
* ( θ ) = ( θ ) + 1 n i v ( θ , x i ) T ( J ^ 1 ) v ( θ , x i ) .
This substitution was also used by Takeuchi in [3].
Equation (14) (rather than Definition 7) will be the starting point for the analysis in the remainder of the paper. It is expected that since I ^ I and J ^ J this equation would converge to Definition 7 and b ( θ * ) O ( m n 3 / 2 ) ; however, that will not be proven here since it is orthogonal to the analysis performed.
This paper is primarily concerned with the empirical consequences of approximating Equation (14) through various means. The consequence of using Equation (14) instead of Definition 7 is not directly observable or relevant to that analysis. As the analysis below makes clear, numerical instability would make any approach using the Hessian directly unviable, regardless of whether or not one could gain access to the actual true Hessian.
For background on the consequences of using an empirical approximation to the Hessian or Fisher Information in lieu of the actual unobservable value, see [14].
Experiments in [1] showed that the neighborhood of validity for this approach is typically large enough to contain θ * . Thus, if some care is taken with the optimization itself (techniques for this are also described in [1]), then this approach is quite widely applicable.
For realistic data set size n, reducing the generalization error b from O ( m n ) to O ( m n 3 / 2 ) might effectively eliminate overfitting, without requiring any hyper parameters or cross validation. For an analysis of the scale of leading order bias terms, see [15], where it is seen in numerical simulations that first order corrections such as this can drastically reduce generalization errors.
Notice that for any models fit using ICE, it is sufficient to compare values of * ( θ ) for model selection, as these are also valid approximations of TIC values. Both TIC and ICE approximate the log likelihood that would be computed using cross validation (if computed at θ ^ , the MLE parameter estimate) and it can be seen that Equations (14) and (10) are identical.
As ICE is a superset of TIC, most of this paper will focus on ICE with the exception of sections comparing TIC to AIC.
The ICE approach, as with TIC, has a few main drawbacks.
  • Computation of t r ( I ^ J ^ 1 ) is expensive.
  • Computation of t r ( I ^ J ^ 1 ) is numerically unstable.
  • Since J must be positive definite, this is only valid in a neighborhood around the MLE.
  • Computing derivatives of * is expensive and potentially unstable.
Several proposals are made in [1] to overcome some of these issues. The purpose of this paper is to further analyze some of those proposals in the context of a large and more realistic problem, while also contributing additional improvements.

1.5. The Trace Term

The trace terms from Equations (10) and (14) are identical, and reproduced below.
1 n i v ( θ , x i ) T ( J ^ 1 ) v ( θ , x i )
Due to the inversion of J ^ , the computation of this term requires O ( m 3 ) time (floating point operations) and O ( m 2 ) space (bytes of memory) if m is the number of parameters in θ .
This equation is therefore well defined, but totally unsuitable for numerical computation, having two main problems:
  • For even moderate parameter counts (e.g., 20+), the inverse condition number of J ^ is typically less than machine precision. Therefore, the direct numerical computation of this quantity will be quickly dominated by numerical errors, even when a stabilized SVD-based pseudo-inversion is used.
  • The computational cost of the inversion of J ^ is O ( m 3 ) , and this must be performed on every iteration within the optimizer during model fitting. This quickly becomes intractable for parameter counts beyond a few hundred. This is less severe than the first issue, but still a major impediment to wide scale adoption in the highly parameterized models where bias is most an issue.

1.6. Efficient Approximations

In [1], several efficient approximations of Equation (14) have been proposed, and here we consider the following:
* ( θ ) = ( θ ) + 1 n i v ( θ , x i ) T ( D ^ 1 ) v ( θ , x i ) .
where here D ^ is the diagonal of J ^ . In the analysis presented in [1], it was shown that using this approximation did not meaningfully impact accuracy, and even at times improved accuracy due to the numerical instability in the direct computation of J ^ 1 . Similar approximations are also used in other well-known numerical algorithms. For instance, the widely used ADAM [16] optimizer uses an even looser approximation by replacing D with the identity matrix.

1.7. Gradient Computation

To utilize TIC, the approximation in Equation (16) is sufficient; however, efficient computation of ICE also requires an approximate derivative. Since this derivative will be used only in optimizers, it need not be exact, but it is helpful if it generally has a high cosine similarity with the true derivative of Equation (16).
The gradient of the ICE objective function may be derived from Equation (14), and written as
θ * ( θ ) = v ( θ , x ) + θ [ 1 n i v ( θ , x i ) T ( J ^ 1 ) v ( θ , x i ) ]
which simplifies to
θ * ( θ ) = v ( θ , x ) + 2 n i J ( θ , x i ) J ^ 1 v ( θ , x i ) + 1 n i v ( θ , x i ) T J ^ 1 [ θ J ^ ] J ^ 1 v ( θ , x i ) .
Notice that J ( θ , x i ) J ^ 1 does not reduce to the identity, since it is a multiplication of the J matrix computed for a single observation against the inverse computed over all observations.
Direct computation of this quantity costs O ( m 4 ) time, so an approximation is needed. Begin by applying the approximation from Equation (16) to obtain
θ * ( θ ) v ( θ , x ) + 2 n i J ( θ , x i ) D ^ 1 v ( θ , x i ) + 1 n i v ( θ , x i ) T D ^ 1 D ^ 1 [ θ D ^ ] v ( θ , x i ) .
This is much improved, but still requires the computation of [ θ D ^ ] , and J ( θ , x i ) , both of which cost O ( m 2 ) in time and space. Further approximations are available to us here due to the fact that the optimizers that will use this gradient do not need its exact value. It is enough if the gradient is generally pointing “downhill” with respect to the objective function, and it is not necessary for it to be very accurate other than that. This translates to a requirement that the gradient approximation typically has a positive cosine-similarity with respect to the actual value.
If n is not too small, then the trace term is small compared to ( θ ) , and v ( θ , x ) is small at θ * , but D is not. Similarly, [ θ D ^ ] need not be especially small or large in the neighborhood of θ * . Therefore, near θ * , the first correction term should be larger than the second, having only one factor of v ( θ , x i ) instead of two.
Behavior far from θ * would generally be less important than behavior near this optimum, since it is expected that ( θ ) would dominate these gradient terms in that case. Additionally, the numerical stabilization discussed in the next section (Equation (23)) will also tend to reduce the importance of any term containing D outside of the region where D is positive definite by forcing (in the limit) that J = D = I . In this limit, both of the correction terms would become a simple scalar multiple of v ( θ , x ) , which would make them irrelevant to the optimization.
This reduces the equation to
θ * ( θ ) v ( θ , x ) + 2 n i J ( θ , x i ) D ^ 1 v ( θ , x i ) .
The computation here is still O ( m 2 ) , but one more approximation can be applied. Near θ ^ , asymptotically, J = I under certain conditions. Therefore, making this substitution produces
θ * ( θ ) v ( θ , x ) + 2 n i v ( θ , x i ) v ( θ , x i ) T D ^ 1 v ( θ , x i )
where now the inner quantity is the original ICE correction for this specific observation, and that is used as a weight for the unadjusted gradient. This quantity can then be stabilized using the techniques in Equation (23). Computationally, this is extremely efficient, requiring only O ( m ) time and space. This is one of the approaches that will be considered for gradient calculation.
The only remaining difficulty here is that this computation requires either two passes, or O ( n m ) space, because the matrix D ^ must be computed first, and then applied element by element using Equation (21). Therefore, the gradients must either be computed twice (since they are used in the computation of D ^ ), or their values stored. Alternatively, at a minor cost in accuracy, the D ^ from the previous iteration could be used. This approach was used in the mortgage model examined here.
An alternative to the approximation in Equation (21) is to assume instead that J ( θ , x i ) = D ( θ , x i ) , here using the diagonal matrix D ( θ , x i ) in place of the full J ( θ , x i ) . If that approximation is used, then
θ * ( θ ) v ( θ , x ) + 2 n i v ( θ , x i ) D ( θ , x i ) D ^ 1 .
This approximation may also be computed in O ( m ) time and space. However, this computation appears to be less stable than Equation (21), due to the likelihood of the non-positive definiteness of D ( θ , x i ) for some observations x i , and it will be seen in later sections that this is indeed the case.
The results section will analyze both Equations (21) and (22) numerically to determine which approach is more effective in this problem space.

1.8. Numerical Stabilization

Equations (16), (21) and (22) can all suffer from the potential singularity or ill conditioning of D ^ . This is a more severe problem for ICE than for TIC, since ICE must necessarily operate far from the MLE optimum θ ^ where D may be actually singular or not positive definite.
The analysis performed in [1] shows only that the trace term is the leading order generalization error term in a neighborhood U around θ ^ , and need not be even positive outside of that neighborhood. Additional theories around the relationships between θ * and θ ^ are not developed here, but should θ * be close enough to θ ^ that it falls within U, and hence J is positive definite, then it is sufficient to ensure that the optimization over * ( θ ) is able to reach U, and then within that neighborhood it can converge to θ * .
First of all, to improve numerical stability, we truncate to zero any gradient element with [ v ( θ , x i ) ] k   < ε m a x k ( [ v ( θ , x i ) ] k ) , where here ε is double precision machine epsilon, approximately 10 16 . These terms are too small to change the outcome of a dot product within a machine error. A vector so truncated is indistinguishable via dot products from one that has not been; however, it is possible for such terms to add numerical instability due to rounding errors in the computation of D ^ 1 . Similarly, for each element [ D ^ ] k of D ^ , the value of [ D ^ 1 ] k is computed as
[ D ^ 1 ] k 1 w [ D ^ ] k + ( 1 w ) [ v ( θ , x i ) ] k 2
where the weight w is computed as
w k = e ε m a x j ( [ D ^ ] j ) m a x ( 0 , [ D ^ ] k ) .
This weight is a continuous function of [ D ^ ] k , and goes to zero as [ D ^ ] k becomes small enough that it is dominated by rounding errors. In addition, for negative values of [ D ^ ] k , when multiplied by the square of the gradient in Equation (16), the term becomes 1.0, thus preventing instability from forming when the optimizer is not near the MLE solution and D ^ is not positive definite.
Geometrically, this means that far outside of U the trace term is approximately the constant m n for sample size n, thus the optimizer will move towards U if the MLE optimization would have done so. As the optimizer draws closer to U, individual elements of the trace term start to take on values other than 1.0 . Deep within U, the objective * ( θ ) is essentially unchanged from the value that it would have in the absence of this correction, and thus the optimizer can freely converge to θ * . Proving that the adjustment from Equation (23) will always allow convergence to θ * if θ * U is beyond the scope of this paper. Qualitatively, this would be expected to usually work, and this behavior is analyzed numerically in later sections.

2. The Mortgage Modeling Problem and Dataset

The goal of this paper is to expand upon the techniques from [17], and apply them to larger datasets with more complicated models than the simplified ones analyzed there.
The real world data chosen for this analysis are a selection of Freddie Mac single family loan level mortgage data. These mortgages represent loans used to purchase or refinance single family homes within the United States. The data itself is available in [18], and can be found under the data_fit.dat and data_test.dat files. These loan records are a random subset originally pulled from the pre-2008 originations available from [19], and enriched to include Home Price Index (HPI) and Interest Rate (IR) data downloaded from FRED [20]. Pre-crisis (pre-2008) data were chosen since those loans have more data available for them (up to 12 years at the time of the data download) than post-crisis mortgages. The data themselves are described in Appendix A.1. These data were chosen because it is an open data set, contains a large amount of data, and is a problem of economic significance.
Each loan in the dataset is divided into a number of observations, one per month. In a given month, a loan may be in one of several states (i.e., status), and in the following month it may transition to a different status. Loan level mortgage models are classifiers used by major banks and other financial firms in order to evaluate the present value of individual mortgage loans. The behavior of the individual loans is aggregated to produce behavior projections for pools of loans, and the bonds collateralized by these pools. These bonds, combined with the pools themselves, are the primary instruments traded in the mortgage market, though individual underlying loans (known as whole loans) are also traded to a lesser degree. For a broad overview of mortgage finance, see [21].
The mortgage market as a whole encompasses approximately $3 trillion in valuation within the United States alone, making it one of the largest securities markets by value. This market is composed of approximately 60 million mortgages, and the market as a whole produces one new observation per month for each of these loans, so the dataset itself grows by roughly 60 million observations per month.
A complete mortgage modeling system would include one classifier for each loan status. Typically, this would be at least six classifiers, for statuses traditionally called C, 3, 6, 9, F, R, and there are two absorbing states, P and D, that do not need models. The goal of this system is to consider a loan in a given status (e.g., C) and predict its probability of transitioning to each of the other statuses. These transitions represent payments made or missed by the loan, so knowing the transitions produces a valuation for the loan. Typically, the next month’s status would be simulated using the calculated probabilities, and then the model would be run again using the simulated starting point for the next month. In this way, it would produce (one path of) the entire future trajectory of the loan, which implies all its cashflows.
For the calculations below, we consider only the most significant classifier, the classifier for loans that are current (status C) in the projected month. This is the set of loans that have made all required payments up until that point. A loan in status C can either make the required monthly payment this month (going to status C for next month), miss a payment (going to status 3) or refinance and liquidate (going to status P). These loans cannot miss multiple payments in a single month (because only one is due), so they cannot go to status 6 or 9, and they cannot be placed in foreclosure, so they cannot go to F, R, or D in the next month.
Having a highly accurate model for these transitions would allow a financial firm to accurately price mortgages, pools of mortgages, and bonds based on these pools, providing a competitive advantage within the mortgage market.
Two classifiers are analyzed in the results below.
The first classifier is an open sourced industrial model called ITEM [17]. This model was chosen because it is highly automated, greatly reducing questions of hyper parameters that might influence the results. It also makes heavy use of AIC, and so is a natural fit for discussions of information criteria. Additionally, the model is very parsimonious with parameters, making accurate models with only very few parameters. This production of low parameter count models makes the analysis of the direct computation of the trace term in Equation (14) viable. This direct computation will be used as a basis for comparison in the ITEM model section that follow, but will be omitted from the following neural network section due to unwieldy parameter counts.
The second classifier is a low depth Multilayer-Perceptron classifier [22]. This model is selected because it is very widely used. The parameter counts are too high to expect numerically stable computation of Equation (14), and therefore an approach due to LeCun [23] is used to approximate the diagonal entries of J in order to apply Equation (16).

3. Results Overview

The numerical results in the following sections are computed based on the mortgage dataset described in Section 2. For these sections, many different approximations and optimizations are used and tested, and it is necessary to show that each previous approximation is valid before moving on to later computations that will then rely on it. Therefore, the calculations here are divided into two sections.
First, the ITEM model is examined in Section 4. This model can accurately represent the problem with parameter counts small enough to enable direct computation of the trace term without approximations, and it is therefore used to compare those approximations to the direct computation. The ITEM section performs the following tests.
  • Establish direct trace computation encounters numerically singular J ^ at θ ^ : Section 4.2;
  • Establish that numerical approximations correct the above issue: Section 4.2;
  • Establish that the ICE approximations improve TIC even when used as an information criterion: Section 4.2;
  • Establish which gradient computation is most accurate and measure its accuracy: Section 4.3;
  • Establish that ICE (with optimizations and stabilization) outperforms MLE: Section 4.4;
  • Establish that ICE is not unreasonably computationally expensive: Section 4.5.
With these analyses finished, it has been shown that the proposed ICE approach is numerically stable, efficient, and effective. Then, the approach is expanded to larger parameter counts (Section 4.6), to ensure that it does not fail as the parameter counts grow to several hundred parameters. This wraps up the section that uses the ITEM model.
Next, a Multilayer-Perceptron is examined in Section 5. This is a far more common model than ITEM, but since it is prone to very large parameter counts, it is necessary to use ITEM to establish the viability of the approach at smaller parameter counts first. Additionally, since this model uses an additional approximation attributed to LeCun [23], it is helpful to examine the accuracy of ICE without that approximation, in the ITEM context first. With that done, the Multilayer-Perceptron with LeCun’s approximation is shown to largely track what was found in ITEM in terms of the general utility of the ICE approach. The results section concludes with Section 5.3 establishing the reduction in generalization error produced by ICE for the Multilayer-Perceptron model.

4. Item Model

To show the viability of the ICE approach for real-world computations, a mortgage model was constructed from Freddie Mac single family loan level data. The model chosen here is ITEM, as described in [17]. This particular model was the basis for the US mortgage models at the Royal Bank of Canada starting from 2014 (Tyler Ward was the head of US mortgage modeling at RBC from 2014 to 2016). ITEM is an automated system for producing decompositions of datasets into analytic curves. It is chosen here due to its use in the industry for this problem, and because it uses AIC to automatically produce parsimonious models, and therefore direct computation using Equation (14) is viable as a basis for comparison. The raw output and code used for this section can be found in [18].
The ITEM procedure produces a sequence of models from a random seed, just as a Multilayer-Perceptron would produce different models for different random seeds due to the pseudo-random nature of the weight initialization. In this way, a large number of plausible models of varying parameter counts can be generated. Statistics can be collected describing what a typical operator would be likely to obtain from each of the estimation methods considered.
To implement this in a real-world situation, two main difficulties must be overcome.
  • The ICE objective must be computed efficiently.
  • Approximate gradients must be computed efficiently.
Approximation formulas were developed above in Equations (16), (21), and (22).

4.1. Model Construction

In the following sections, the ITEM model generation procedure was allowed to run from various starting seeds. For the parameter estimation approaches used, see Table 1.
For each of these models, 20 series of ITEM models (100 series total) were generated. Each series produced several models as larger models were iteratively constructed from smaller ones, see [17] for a description of how this is performed. The analysis then considered all intermediate and final models from each series, for a total of 2123 models with parameter counts ranging from 2 to 83.

L2 Regularization

L 2 regularization (i.e., ridge-regression) was attempted with various values of λ , but all values of λ 0 were found to be harmful or statistically indistinguishable from zero. Consequently, these models were not qualitatively different from the MLE series described above. This was an expected outcome, and these approaches were not considered further in this paper.
For an example of why λ 0 was not helpful, see the results in Section 4.2 of [1], and note that the ITEM models generated here also use standard deviation-like parameters, and so suffer from the same problems with L 2 regularization. Additionally, the scale of the regressors to this model covers more than 9 orders of magnitude (e.g., unpaid balance is of order 10 7 and incentive is of order 10 2 ), greatly hampering L 2 and LASSO-like approaches unless data normalization is applied as a preprocessing step.

4.2. Numerical Stability of TIC and ICE

To evaluate the numerical stability of ICE and TIC, we found the MLE parameter estimate (i.e., θ ^ ) for each of the 2123 models, and then computed the inverse condition number of J ^ and I ^ at each of these optimum points. For this analysis, the matrix J ^ is numerically singular whenever its inverse condition number is less than ε , with ε being machine precision, approximately 10 16 for double precision floating point.
Within the literature, proper analysis of numerical stability of this term is severely lacking. Kitagawa and Konishi performed some simulations in [15], but only for m = 2 . Therefore, they did not encounter difficulty inverting J, which (in the simulations below) begins to rapidly escalate for m > 10 . Section 2.3 of Burnham and Anderson [9] gives the numerical instability of TIC when m 20 as a primary reason for avoiding it, and for it not seeing widespread use.
Additional analysis of the numerical stability of TIC and related methods can be found in [8], where Section 3 provides a good overview of recent research in the area, and some numerical results for approximations of J. The computation of an accurate inverse Hessian ( J 1 ) is a persistent source of difficulty in machine learning.
In this circumstance, these approaches are being used as information criteria since they are evaluated at θ ^ . For clarity, the approaches are listed here as information criteria in Table 2.
The approaches TIC2 and TIC3 are applying to TIC the approximations developed for ICE.
When J ^ is numerically singular, we expect that J ^ 1 has unstable behavior and TIC (the only approach directly using J ^ 1 ) becomes unstable. The other approaches based on Equation (16) are not expected to be affected by this, since a diagonal matrix may be safely pseudo-inverted regardless of its condition number.
The numerical instability displayed in Table 3 indicates that TIC when directly computed will not be numerically stable, in addition to its O ( m 3 ) computational cost.
To verify the numerical stability of Equations (14) and (16), we compute the size of the adjustment term ( t r ( I ^ J ^ 1 ) ) , and compare it to the parameter count (m), which is its asymptotic limit if the model is correctly specified, see [4]. The results are labeled according to the approach as described in Table 2.
In Table 4, it can be seen that the TIC3 approach is more clustered near 1.0 than either of the other approaches. The direct TIC approach shows signs of instability for higher parameter counts where the average adjustment turns negative at the MLE estimate θ ^ where J ^ should be positive definite. This is due to the instability described in Table 3. The approach TIC2 has large swings in value through the parameter space, and between models within each of these groups, indicating that it too is suffering from instability that the TIC approach is able to correct using the methodology described in Equation (23).
In Table 5, it is shown that TIC and TIC2 have a significant proportion of models with a negative objective function adjustment, even though J ^ should be positive definite at θ ^ . This indicates substantial numerical instability with these approaches. The approach TIC3 does not have any negative adjustments, in fact the lowest scaled adjustment (in the sense of Table 4) among any of the 2123 models considered here is 0.53 .
The conclusion that can be drawn here is that TIC is inappropriate for direct use for many models with even moderate parameter counts. However, applying the approximations and numerical stabilization described in [1] corrects many of these issues and might allow for a wider application of this adjusted approach to TIC. The additional numerical stabilization from Equation (23) is necessary in order to achieve reasonable results.
In Table 6, the sum of absolute errors is shown for each group of models between the test set value of ( θ ^ ) and the information criterion computed for AIC, TIC, and TIC3. Curiously, TIC does worst for relatively lower parameter counts. Its results have higher variability for higher parameter counts, but the mean is not appreciably different from AIC on average. These results are, however, highly unstable for TIC and thus not appropriate for model selection.
Though the approach ICE_A was used to produce approximately 1/5 of the 2123 models considered, it is clear from the analysis above that it is substantially worse than the ICE approach (TIC3 in the information criterion context), and thus it need not be considered further.

4.3. Gradient Accuracy

The finite-difference gradients of Equation (16) with stabilization via Equation (23) for the 2123 target models were computed. These were then compared to the approximate gradients computed using Equations (21) and (22). The average cosine similarity was computed, and also the fraction of gradients with positive cosine similarity, summarizing the results in Table 7.
This analysis finds good agreement between the finite difference derivatives and the approximation through Equation (21), and somewhat lesser agreement using Equation (22). This indicates that approach ICE from Table 1 may outperform approach ICE_B.

4.4. Prediction Accuracy

For the 2123 target models, we refit the parameters of each using each of the target methodologies, and then compute the out of sample cross entropy. The results are summarized in Table 8. Here, the approach ICE_A has been eliminated, but ICE_RAW has been retained to represent the numerically unstable approaches and their impact on accuracy.
As can be seen in Table 8, the ICE and ICE_B approaches perform similarly. This is expected, since they share the same objective function. Both of these approaches are a small improvement on MLE overall for every parameter group listed here. The approach ICE_RAW performs very badly due to its numerical instability for parameter counts larger than 20, and the performance of ICE_A (not shown) is similar. The individual entropy differences are small, but the outperformance of ICE is highly significant.
As can be seen in Table 9, ICE outperforms MLE at the 4 sigma level throughout most of the parameter range. The ICE_RAW approach has a comparatively large standard deviation due to numerical instability, but it underperforms at the 2 sigma level for most parameter counts.

4.5. Computational Performance

For each of the target models, we recorded how long (in ms) a computer required to perform a parameter fit. The results are summarized in Table 10. The MLE estimates are omitted, because the optimization starts at θ ^ so this optimization is vacuous.
As can be seen in Table 10, the cost of the ICE_RAW methodology appears to be super linear in the parameter count. The other ICE methodologies are more linear, though with considerable noise. Much of this variation is due to the optimizers requiring more or fewer objective function evaluations to find an optimum. Therefore, some approaches could be more expensive due to poor derivatives causing more evaluations to be needed in order to find the optimum. To correct for this, we measure the time required for a computer to evaluate the objective function for each of these approaches. The time required is divided by the parameter count for each model, and then the results are grouped by parameter count and averaged. The results are summarized in Table 11.
As can be seen from Table 11, since ICE and ICE_B share an objective function, they have equivalent costs. In both cases, the cost is highly linear with the parameter count, as expected. For these parameter sizes, the MLE objective cost is dominated by exponentials and logarithms in the multinomial logistic and entropy calculations, respectively, and the MLE objective does grow sub-linearly through this parameter range. The ICE_RAW objective function cost is dominated by the O ( m 3 ) inversion of J ^ , and in this parameter range its cost grows super linearly. ICE_RAW and ICE begin at nearly the same cost, but for models with at least 30 parameters ICE_RAW is already more than twice as expensive as ICE. We expect that for larger parameter counts, the cost of ICE_RAW would be prohibitive.
The computational cost of each gradient computation was measured, and the results are summarized in Table 12. Again, each value was divided by the parameter count, as we expect all of these approaches to be O ( m ) .
In Table 12, the gradient computations for ICE, ICE_B, and ICE_RAW are almost exactly 4 times the cost of MLE throughout the entire parameter range. The approach ICE_RAW uses the same gradient computation as ICE, and ICE_B should have nearly identical computational complexity. We see here that this is indeed the case. For most model optimization approaches, gradient computation is the limiting factor. For such approaches, the ICE methodologies incur a small constant multiple in fitting costs.
Additional performance improvements are beyond the scope of the present work, but the current implementation is not efficiently sharing computations needed to produce v ( θ , x i ) and those needed to compute D ^ . In a more tuned implementation, the cost of ICE could be reduced by a small constant factor.

4.6. Large Model Accuracy

The most accurate (out of sample) model was selected from among the target models. This model had 32 parameters and an out of sample entropy of 0.19677 . That model was then repeatedly expanded in order to generate a sequence of overfit models.
For each regressor, for each quantization, from 3 to 10 buckets was produced. Then, for each such bucket except the first and last from each quantization, a Gaussian and Logistic curve was added centered on that bucket. For each such curve, the width of the curve (std. dev. of the Gaussian, and inverse slope for the Logistic) was chosen to match the width of the target bucket. This procedure produced a sequence of 83 models having between 32 and 764 parameters. Each such model was fit using MLE, and then re-fit using each of MLE, ICE and ICE_B to examine the quality of bias reduction in the case of overfit models. Many of these models settled on local minima and thus exhibited considerably worse performance than the baseline model. The results were grouped by the parameter count and then summarized in Table 13.
The T-statistics of the differences between the ICE and ICE_B and MLE models are summarized in Table 14.
The ICE_B approach may have statistically significant degradation in performance for large models (more than 300 parameters), but the ICE methodology itself does not appear to suffer from this. Some of its most significant results are actually produced for comparatively large parameter counts. Similarly, in Table 13, it can be seen that many of the largest improvements in absolute magnitude for the ICE model are also produced at relatively high parameter counts. None of these values are significant at the 5 sigma level, and only three of them are significant at the 3 sigma level (all in favor of ICE and ICE_B).

5. Neural Network Implementation

For implementation within neural networks, it is necessary to be able to compute D ^ using back-propagation. The techniques for performing this computation are described by LeCun in Section 3.2 of [23]. Another description of this approach is given in Section 4.1 of [24].
Consider the neural network with L layers, and cost function C. Assume also that no connections skip layers. Typically, for a classifier, C would be a cross entropy loss, with y being the known labels of the training data.
C ( y , f L ( W L f L 1 ( W L 1 f 1 ( W 1 x ) ) ) ) ) ) .
Here, W l is the matrix of edge weights for layer l, and it is assumed that the activation function at each layer is uniform, hence univariate function f l when applied to a vector argument produces a vector output. We may define the activation of layer l as
a 0 = x ,
a l = f l ( W l f l 1 ( W l 1 f 1 ( W 1 x ) ) ) )   =   f l ( W l a l 1 ) .
Then, we can rewrite the neural network, ignoring the parameter y, as
C ( a L ) .
Note that the weights contain an implicit bias term, so more explicitly, the activation of the i’th node in layer l would be
( a l ) i = f l ( ( W l ) ( i , 0 ) + k ( a l 1 ) k ( W l ) ( i , k ) ) .
Then, the second derivative of the objective function C of the network may be constructed by inverting this sum (so it runs over i that is connected to by k).
2 C ( a l 1 ) k 2 = i 2 C ( a l ) i 2 ( ( f l ( W l a l 1 ) ) i ( W l ) ( i , k ) ) 2 + C ( a l ) i ( f l ( W l a l 1 ) ) i ( W l ) ( i , k ) 2
where here the derivatives f l and f l are taken with respect to the function’s sole argument. Note that this equation is only accurate for the case where the off diagonal elements of 2 C ( a l 1 ) k 2 are actually zero. If any are nonzero (as would be the case in practice), then this equation is only an approximation. Renaming this quantity
( u l ) i = f l ( W l a l 1 )
and
( u l ) i = f l ( W l a l 1 )
Equation (30) may be rewritten as
2 C ( a l 1 ) k 2 = i 2 C ( a l ) i 2 ( u l ) i 2 + C ( a l ) i ( u l ) i ( W l ) ( i , k ) 2 .
The derivatives with respect to the weights are then
2 C ( W l ) ( i , k ) 2 = 2 C ( a l ) i 2 ( u l ) i 2 + C ( a l ) i ( u l ) i ( a l 1 ) k 2 .
These formulas are then suitable for a back-propagation implementation.

5.1. Back-Propagation Implementation

For modern neural nets, derivatives must be computed using back-propagation for efficiency reasons. This section describes the back-propagation techniques used to compute first and second derivatives.

5.1.1. Back-Propagation Gradient Implementation

Considering the network as previously defined, we may define the auxiliary value
δ L = ( u L ) · a L C
and then recursively define it for all other layers.
δ l 1 = ( u l 1 ) ( W l ) T δ l .
We then may compute the gradient of C using these values.
W l C = ( δ l ) ( a l 1 ) T .
For future reference, note that
C ( a l 1 ) = a l 1 C = ( δ l ) ( W l ) T
and that C ( a L ) is directly computable from the definition of C.

5.1.2. Back-Propagation Hessian Diagonal Implementation

Analogously to the definition of δ , we define an auxiliary value γ using Equation (30). Because this will be computing only the diagonal of the Hessian, it is necessary to write it in summation form.
( γ l 1 ) k = 2 C ( a l 1 ) k 2
  = i 2 C ( a l ) i 2 ( u l ) i 2 + C ( a l ) i ( u l ) i ( W l ) ( i , k ) 2
  = i ( γ l ) i ( u l ) i 2 + C ( a l ) i ( u l ) i ( W l ) ( i , k ) 2
and that ( γ L ) = 2 C ( a L ) 2 is computable directly from the definition of C. Additionally, C ( a l ) i may be computed using Equation (38).
Then, the diagonal of the Hessian itself is computed using Equation (34).
2 C ( W l ) ( i , k ) 2 = ( γ l ) i ( u l ) i 2 + C ( a l ) i ( u l ) i ( a l 1 ) k 2 .
The combination of Equations (41), (42), and (37) are sufficient to compute the first and (non-mixed) second derivatives of the neural network in a single back-propagation pass.
Recall that Equation (30) is only an approximation. If more accuracy is needed (at the expense of more computation), then the matrix ( Γ l ) ( i , k ) (instead of the vector ( γ l ) i ) may be computed and back-propagated using a similar formula. In which case Equation (42) relies instead on ( Γ l ) ( i , i ) , but is otherwise unchanged. That analysis is beyond the scope of the current work.

5.2. Derivatives of Cross-Entropy Multinomial Logistic Loss

Suppose the loss function C is cross-entropy loss using a multinomial logistic (i.e., softmax) classifier. Defining the vector valued multinomial logistic function as
( L ( a L ) ) i = e x p ( ( a L ) i ) k e x p ( ( a L ) k ) .
Then, the cross entropy loss of a single observation is
C ( y , ( a L ) ) i = y i ln [ e x p ( ( a L ) i ) k e x p ( ( a L ) k ) ] = y i ln [ ( L ( a L ) ) i ]
where y is a one-hot encoding of the classes for the given observation. The derivatives of this loss function with respect to a L are
C ( y , a L ) ( a L ) i = ( L ( a L ) i y i )
and
( 2 C ( a L ) i 2 ) i = ( a L ) i [ L ( a L ) i y i ] = [ 1 L ( a L ) i ] L ( a L ) i .
Note that traditionally, a Multilayer-Perceptron will use the identity activation function for the last layer, in which case f L ( x ) = x .

5.3. Prediction Accuracy

The ICE estimator was implemented in the Apache Spark MultilayerPerceptronClassifier, and compared against a stock MultilayerPerceptronClassifier using Spark version 2.4.5. This implementation was chosen due to the dominant marketshare of Spark and the ease of implementation and testing within that codebase. Because the Spark MLP model does not provide for regularization or drop-out, this approach could not be compared against those approaches within this codebase.
The computation was performed on the same data set used for the ITEM calculations above, described in Appendix A.1.
For this section, accuracy was tested on four layer configurations. Each model has 11 input regressors and three classification states. The models tested are described in Table 15. The data were standardized before applying the neural network, as is common practice. The objective function used Equation (16) with Equation (23), and used LeCun’s approximation (i.e., Equation (42)) to compute D, the diagonal of J. The gradients were computed using Equation (21). With the exception of the addition of LeCun’s approximation, this is the same setup as was used for the models labeled ICE above.
Each configuration was fit 10 times on randomly drawn fitting sets of various sizes using both MLE and ICE. The cross-entropy on the testing set was averaged for each series of tests. All optimizations are performed using l-bfgs, which generally produced better fits in all the tests. The results are presented in Figure 1, Figure 2, Figure 3 and Figure 4.
The models given here are relatively small compared to the huge models often found in machine learning (e.g., see [8]), but they are still much larger than the very small models with a handful of parameters often analyzed in statistical research. Whether or not these approaches generalize to much larger models with thousands or millions of parameters is beyond the scope of this present work, but there is no impediment found here that would prevent wider application to larger models.
In all four configurations, ICE effectively eliminates overfitting for all but the smallest sample sizes, whereas MLE suffers severe overfitting for smaller sample sizes. In all four tests, MLE performs slightly better with very large sample sizes, but the difference is not large. For the [ 11 , 3 ] configuration shown in Figure 1, ICE shows some overfitting, but much less than MLE. For the other configurations, no material amount of overfitting is present. This is likely due to the specifics of the l-bfgs fitting algorithm, which can generally search the parameter space much more efficiently for a more nearly linear model such as [ 11 , 3 ] than it can for more complicated configurations. The bias reduction from ICE is asymptotic, so it is not surprising that the approach is weaker with very small sample sizes. For larger models with correspondingly larger sample sizes, ICE is more consistently helpful. Regardless, ICE still greatly outperforms MLE for small sample sizes in even this smaller model.
For all four configurations, ICE fitting time (not shown) was not materially different from the time required to fit with MLE. The computation of the ICE loss and gradient as described here theoretically requires a small constant factor more computation than MLE loss and gradients. For these tests, both costs are swamped by other factors and overheads.
For the neural network model described here, a more full analysis of the TIC term numerical instability cannot be performed due to the reliance on LeCun’s approximation, which provides only the diagonal matrix D, not the full Hessian J. Additionally, the inversion of J would be overly costly at these parameter counts, therefore those analyses are available only in Section 4.

6. Conclusions

It was shown in this paper that for a real world mortgage model in use within the industry, the incorporation of ICE can substantially improve the prediction accuracy at the cost of a small constant multiple increase in fitting time. Additionally, it was shown that the approach described by [1] can be successfully implemented in a Multilayer-Perceptron, and should be applicable to any back-propagating neural network using the techniques described here.
The numerical stability of the TIC term from [3] was explored on a real world problem using industrial models. Numerical approximations and stabilization techniques were demonstrated that greatly reduce the effect of numerical instability for this term, which might otherwise prevent the application of TIC for problems with a significant number of parameters.
The diagonal approximation of LeCun was shown to produce good results in networks of reasonable depth, and may serve as the basis for the application of ICE and stabilized TIC techniques to a broad class of neural networks of moderate depth.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Appendix A.1. Mortgage Data

The mortgage data chosen are a sample of loan-month observations from Freddie Mac fixed rate mortgages originated in 2001. Loan months are selected such that each loan is current on all payments at the start of the month, and then has the potential to prepay the loan, remain current, or miss a payment. Therefore, a classifier is constructed over these three outcomes. From this data, 13 regressors are chosen.
  • Loan Age;
  • Mark-to-Market Loan-to-Value ratio;
  • Loan prepayment incentive;
  • Loan credit score at origination;
  • Indicator for first-time-buyer;
  • Loan term (usually 360 months);
  • Mortgage-Interest coverage percent;
  • Unit count;
  • Combined Loan-to-Value at origination;
  • Debt-to-Income at origination;
  • Unpaid balance at month start;
  • Interest rate;
  • Indicator for prepayment penalties.
The exact definition of these regressors is beyond the scope of this paper, but this represents a broad set of applicable regressors for a typical loan. It includes some highly unbalanced regressors (such as loan term), and also some highly co-linear regressors (such as Mark-to-Market and combined Loan-to-Value ratios). All regressors are demanded to be non-negative, except for loan-to-value and unpaid balance regressors, which are required to be strictly positive, and incentive, which is required to be between −1.0 and 1.0 to remove a handful of loans with data entry errors. This filtering removes less than 0.5% of the data. The data are randomly split between fitting and testing datasets using probabilities (0.25, 0.75). The fitting set is reduced to 100,000 observations after the split, and the testing set is 1,471,313 observations from this dataset.

References

  1. Dixon, M.; Ward, T. Information-Corrected Estimation: A Generalization Error Reducing Parameter Estimation Method. Entropy 2021, 23, 1419. [Google Scholar] [CrossRef] [PubMed]
  2. Stone, M. An Asymptotic Equivalence of Choice of Model by Cross-Validation and Akaike’s Criterion. J. R. Stat. Soc. Ser. B (Methodol.) 1977, 39, 44–47. [Google Scholar] [CrossRef]
  3. Takeuchi, K. Distribution of information statistics and validity criteria of models. Math. Sci. 1976, 153, 12–18. [Google Scholar]
  4. Akaike, H. Information Theory and an Extension of the Maximum Likelihood Principle. In 2nd International Symposium on Information Theory; Petrov, B.N., Csaki, F., Eds.; Akademiai Kiado: Budapest, Hungary, 1973; pp. 267–281. [Google Scholar]
  5. Hudson, D. Interval estimation from the likelihood function. J. R. Stat. Soc. Ser. B (Methodol.) 1971, 33, 256–262. [Google Scholar] [CrossRef]
  6. Konishi, S.; Kitagawa, G. Generalised Information Criteria in Model Selection. Biometrika 1996, 83, 875–890. [Google Scholar] [CrossRef] [Green Version]
  7. Bickel, P.; Li, B.; Tsybakov, A.; Geer, S.; Yu, B.; Valds, T.; Rivero, C.; Fan, J.; Vaart, A. Regularization in statistics. TEST Off. J. Span. Soc. Stat. Oper. Res. 2006, 15, 271–344. [Google Scholar] [CrossRef] [Green Version]
  8. Singh, S.P.; Alistarh, D. Woodfisher: Efficient second-order approximation for neural network compression. Adv. Neural Inf. Process. Syst. 2020, 33, 18098–18109. [Google Scholar]
  9. Burnham, K.P.; Anderson, D.R. (Eds.) Information and Likelihood Theory: A Basis for Model Selection and Inference. In Model Selection and Multimodel Inference: A Practical Information-Theoretic Approach; Springer: New York, NY, USA, 2002; pp. 49–97. [Google Scholar] [CrossRef]
  10. Ishiguro, M.; Sakamoto, Y.; Kitagawa, G. Bootstrapping Log Likelihood and EIC, an Extension of AIC. Ann. Inst. Stat. Math. 1997, 49, 411–434. [Google Scholar] [CrossRef]
  11. Kitagawa, G.; Konishi, S. Bias and variance reduction techniques for bootstrap information criteria. Ann. Inst. Stat. Math. 2009, 62, 209. [Google Scholar] [CrossRef]
  12. Byerly, A.; Kalganova, T.; Dear, I. No routing needed between capsules. Neurocomputing 2021, 463, 545–553. [Google Scholar] [CrossRef]
  13. White, H. Maximum Likelihood Estimation of Misspecified Models. Econometrica 1982, 50, 1–25. [Google Scholar] [CrossRef]
  14. Kunstner, F.; Hennig, P.; Balles, L. Limitations of the empirical Fisher approximation for natural gradient descent. Adv. Neural Inf. Process. Syst. 2019, 32, 4156–4167. [Google Scholar]
  15. Konishi, S.; Kitagawa, G. Asymptotic theory for information criteria in model selection—functional approach. J. Stat. Plan. Inference 2003, 114, 45–61. [Google Scholar] [CrossRef]
  16. Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
  17. Ward, T. The Information Theoretically Efficient Model (ITEM): A model for computerized analysis of large datasets. arXiv 2014, arXiv:1409.6075. [Google Scholar]
  18. Ward, T. TIC and ICE Analysis Material 2022. Available online: https://doi.org/10.6084/m9.figshare.20751181.v1 (accessed on 14 March 2023).
  19. Single Family Loan-Level Dataset. Available online: https://www.freddiemac.com/research/datasets/sf-loanlevel-dataset (accessed on 22 August 2018).
  20. Federal Reserve Economic Data: Fred; St. Louis Fed: St. Louis, MO, USA; Available online: https://fred.stlouisfed.org (accessed on 22 August 2018).
  21. Campbell, J.Y. Mortgage Market Design*. Rev. Financ. 2012, 17, 1–33. Available online: https://academic.oup.com/rof/article-pdf/17/1/1/26303403/rfs030.pdf (accessed on 14 March 2023). [CrossRef]
  22. Hastie, T.; Tibshirani, R.; Friedman, J. Neural Networks. In The Elements of Statistical Learning: Data Mining, Inference, and Prediction; Springer: New York, NY, USA, 2009; pp. 389–414. [Google Scholar]
  23. Lecun, Y. Generalization and network design strategies. In Connectionism in Perspective; Pfeifer, R., Schreter, Z., Fogelman, F., Steels, L., Eds.; Elsevier: Amsterdam, The Netherlands, 1989. [Google Scholar]
  24. Buntine, W.L.; Weigend, A.S. Computing second derivatives in feed-forward networks: A review. IEEE Trans. Neural Netw. 1994, 5, 480–488. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Cross entropy loss for configuration [ 11 , 3 ] (36 parameters).
Figure 1. Cross entropy loss for configuration [ 11 , 3 ] (36 parameters).
Entropy 25 00512 g001
Figure 2. Cross entropy loss for configuration [ 11 , 5 , 3 ] (78 parameters).
Figure 2. Cross entropy loss for configuration [ 11 , 5 , 3 ] (78 parameters).
Entropy 25 00512 g002
Figure 3. Cross entropy loss for configuration [ 11 , 8 , 5 , 3 ] (159 parameters).
Figure 3. Cross entropy loss for configuration [ 11 , 8 , 5 , 3 ] (159 parameters).
Entropy 25 00512 g003
Figure 4. Cross entropy loss for configuration [ 11 , 11 , 8 , 5 , 3 ] (291 parameters).
Figure 4. Cross entropy loss for configuration [ 11 , 11 , 8 , 5 , 3 ] (291 parameters).
Entropy 25 00512 g004
Table 1. Estimation approaches compared.
Table 1. Estimation approaches compared.
NameObjective FunctionGradient Approximation
MLE ( θ ) Exact Analytic Gradients
ICE_RAWEquation (14)Equation (21)
ICEEquation (16) with Equation (23)Equation (21)
ICE_AEquation (16)Equation (21)
ICE_BEquation (16) with Equation (23)Equation (22)
Table 2. Information criteria compared.
Table 2. Information criteria compared.
NameCalculation
AICEquation (11)
TICEquation (14)
TIC2Equation (16)
TIC3Equation (16) with Equation (23)
Table 3. The fraction of J ^ that are numerically singular, and actually singular by parameter count.
Table 3. The fraction of J ^ that are numerically singular, and actually singular by parameter count.
Parameter RangeModel CountNumerically Singular J ^ Singular J ^
0–95290.060.00
10–193560.710.02
20–294590.980.14
30+7791.00.16
Table 4. The objective function adjustment divided by parameter count (i.e., 1 m t r ( I ^ J ^ 1 ) ) for several objective functions, grouped by parameter count. Individual models have their computations bounded between −100 and 100 for TIC, as otherwise those results are driven by a few severe outliers.
Table 4. The objective function adjustment divided by parameter count (i.e., 1 m t r ( I ^ J ^ 1 ) ) for several objective functions, grouped by parameter count. Individual models have their computations bounded between −100 and 100 for TIC, as otherwise those results are driven by a few severe outliers.
Parameter RangeModel CountTICTIC2TIC3
0–9529−1.130.841.09
10–19356−5.86−0.010.97
20–29459−4.630.680.85
30+779−4.580.960.79
Table 5. The fraction of models having negative objective function adjustment at θ ^ , grouped by parameter count.
Table 5. The fraction of models having negative objective function adjustment at θ ^ , grouped by parameter count.
Parameter RangeModel CountTICTIC2TIC3
0–95290.090.010.00
10–193560.250.030.00
20–294590.190.030.00
30+7790.210.030.00
Table 6. The mean of absolute errors between test set cross entropy and information criterion. Maximum value in parentheses.
Table 6. The mean of absolute errors between test set cross entropy and information criterion. Maximum value in parentheses.
Parameter RangeModel CountAICTICTIC3
0–95290.0026 (0.0036)0.0563 (28.4430)0.0026 (0.0036)
10–193560.0030 (0.0037)0.0112 (2.8471)0.0030 (0.0037)
20–294590.0030 (0.0036)0.0029 (0.0084)0.0030 (0.0041)
30+7790.0031 (0.0038)0.0030 (0.0743)0.0030 (0.0037)
Table 7. Comparison gradients using analytical approximations with their finite difference values.
Table 7. Comparison gradients using analytical approximations with their finite difference values.
Approximation UsedCosine SimilarityPositive Fraction
ICE (Equation (21))0.730.91
ICE_B (Equation (22))0.540.75
Table 8. Out of sample cross entropy of fitting methodologies.
Table 8. Out of sample cross entropy of fitting methodologies.
Parameter RangeModel CountMLEICEICE_BICE_RAW
0–95290.208130.208120.208120.20815
10–193560.200560.200550.200550.20065
20–294590.198510.198490.198510.19875
30 + 7790.197250.197220.197250.19806
Table 9. T-statistics of differences between given methodology and MLE out of sample cross entropy (negative indicates the approach is performing better).
Table 9. T-statistics of differences between given methodology and MLE out of sample cross entropy (negative indicates the approach is performing better).
Parameter RangeModel CountICEICE_BICE_RAW
0–9529−4.472−3.793.83
10–19356−1.89−0.915.96
20–29459−4.561.062.68
30+779−8.18−0.371.43
Table 10. Average computational cost (in ms) of parameter optimization starting from θ ^ .
Table 10. Average computational cost (in ms) of parameter optimization starting from θ ^ .
Parameter RangeModel CountICEICE_BICE_RAW
0–9529573592592
10–19356254824873563
20–29459261127055363
30+779316633499263
Table 11. Cost (in ms) per evaluation of the objective function divided by the parameter count.
Table 11. Cost (in ms) per evaluation of the objective function divided by the parameter count.
Parameter RangeModel CountMLEICEICE_BICE_RAW
0–95296.8823.4923.6332.98
10–193562.8523.2723.1946.94
20–294592.2922.0021.9455.87
30+7791.9721.1421.4376.25
Table 12. Cost (in ms) per evaluation of the objective function gradient divided by the parameter count.
Table 12. Cost (in ms) per evaluation of the objective function gradient divided by the parameter count.
Parameter RangeModel CountMLEICEICE_BICE_RAW
0–952923.6797.5197.5597.82
10–1935623.1795.3295.5195.32
20–2945921.9790.4790.4790.57
30+77921.4588.4888.4588.36
Table 13. Out of sample performance of fitting methodologies for overfit models.
Table 13. Out of sample performance of fitting methodologies for overfit models.
Parameter RangeModel CountMLEICEICE_B
32–199370.197660.197530.19755
200–299160.203940.202980.20224
300–399130.217940.214230.21604
400–49970.237720.233600.23302
500–59950.255080.251140.25316
600–69930.292030.280520.30099
700+20.263920.268330.25448
Table 14. T-statistics of differences between the given methodology and MLE out of sample cross entropy (negative indicates the approach is performing better) for large models.
Table 14. T-statistics of differences between the given methodology and MLE out of sample cross entropy (negative indicates the approach is performing better) for large models.
Parameter RangeModel CountICEICE_B
32–19937−1.47−1.51
200–29916−1.45−3.12
300–39913−3.62−1.86
400–4997−1.67−1.28
500–5995−0.54−0.72
600–6993−3.172.95
700+21.19−0.49
Table 15. The model configurations.
Table 15. The model configurations.
Layer ConfigurationParameter CountDescription
[ 11 , 3 ] 36The simplest model, with no hidden layers.
[ 11 , 5 , 3 ] 78A model with a single 5 wide hidden layer.
[ 11 , 8 , 5 , 3 ] 159A model with two hidden layers.
[ 11 , 11 , 8 , 5 , 3 ] 291A model with three hidden layers.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ward, T. Improving the Performance and Stability of TIC and ICE. Entropy 2023, 25, 512. https://doi.org/10.3390/e25030512

AMA Style

Ward T. Improving the Performance and Stability of TIC and ICE. Entropy. 2023; 25(3):512. https://doi.org/10.3390/e25030512

Chicago/Turabian Style

Ward, Tyler. 2023. "Improving the Performance and Stability of TIC and ICE" Entropy 25, no. 3: 512. https://doi.org/10.3390/e25030512

APA Style

Ward, T. (2023). Improving the Performance and Stability of TIC and ICE. Entropy, 25(3), 512. https://doi.org/10.3390/e25030512

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop