Next Article in Journal
Weighted-Sum Optimization of Shopping-Mall Atrium Morphology Using a Field-Based Visual Satisfaction Proxy and sDA-Based Daylight Sufficiency
Previous Article in Journal
Performance of Wild Saccharomyces cerevisiae Strains in Enriched-Dough Kouglof
Previous Article in Special Issue
Indoor Localization for 6G Communication Systems Under Single Co-Channel Interference Using a Back Propagation Neural Network with Hybrid Self-Attention
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Variable Forgetting Factor RLS Adaptive Algorithms Based on Line Search Methods

by
Radu-Andrei Otopeleanu
1,2,
Cristian-Lucian Stanciu
1,2,*,
Constantin Paleologu
1 and
Jacob Benesty
3
1
Department of Telecommunications, National University of Science and Technology POLITEHNICA Bucharest, Splaiul Independenței 313, 060042 Bucharest, Romania
2
Academy of Romanian Scientists, Ilfov 3, 050044 Bucharest, Romania
3
INRS-EMT, University of Quebec, Montreal, QC H5A 1K6, Canada
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(10), 4681; https://doi.org/10.3390/app16104681
Submission received: 6 April 2026 / Revised: 27 April 2026 / Accepted: 30 April 2026 / Published: 9 May 2026

Abstract

Recursive least-squares (RLS) adaptive algorithms are capable of outperforming least-mean-square (LMS) methods for the identification of long-length impulse responses due to their ability to mitigate the high correlation properties of input signals, such as speech. Despite the encouraging results obtained in terms of tracking speed and accuracy, with respect to LMS methods, most RLS algorithms manifest numerical stability issues. Moreover, when an unknown system changes, the identification process needs to adapt to the new impulse response as soon as possible. The algorithm can require a significant amount of time to generate new accurate results in acoustic echo cancellation (AEC) scenarios. Due to the slow propagation speed of sound, acoustic echo paths are usually modeled using thousands of numerical coefficients, and adaptation energy remains relatively limited. A compromise is usually made between tracking capabilities and steady-state accuracy when choosing the forgetting factor (the most important parameter of the RLS algorithm). This paper analyzes a variable forgetting factor (VFF) RLS type of adaptive filter combined with the conjugate gradient (CG) line search method, which is designed to avoid the classical matrix inversion approach. This VFF-RLS-CG adaptive method is not susceptible to numerical stability issues and is designed to adapt its statistical estimates by determining whether a tracking situation occurs or whether the unknown system is not significantly different. Correspondingly, when necessary, the forgetting factor is decreased for faster adaptation to changes in the working environment. When the filter is estimated to work at steady-state, the above-mentioned parameter’s value is increased in order to boost the accuracy of the adaptive filter. The theoretical model is validated using simulations in AEC scenarios with tracking occurrences and relevant steady-state intervals.

1. Introduction

Adaptive algorithms are employed in system identification configurations, such as acoustic echo cancellation (AEC) setups, in order to continuously track acoustic impulse responses and estimate their corresponding outputs [1,2]. An acoustic echo causes the speaker to hear a delayed replica of their own voice, which is caused by acoustic reflections created in the environment in which the other interlocutors are located.
Least-mean-square (LMS) adaptive methods are strongly preferred for hardware implementation in the industry, due to their reduced associated computational costs [3,4,5]. However, they offer poor performance when working with highly correlated input signals, such as in the case of speech. Consequently, a lot of research resources are invested in other types of adaptive algorithms, which are more capable of mitigating the statistical properties of the input signals.
Least-squares (LS) methods represent an attractive alternative to LMS, due to their abilities to “decorrelate” the input signals and achieve superior tracking speeds [1,6,7,8,9]. For example, the exponentially weighted recursive least-squares (RLS) algorithm based on Woodbury’s inversion lemma is often employed as a reference in research works, and it can outperform the popular normalized LMS (NLMS) algorithm in terms of tracking speed and steady-state accuracy. The memory of RLS adaptive algorithms is adjusted using their main parameter, the forgetting factor  λ , which is usually chosen as a fixed value in the numerical interval 0 < λ 1 [1,4,10]. As the name would suggest, when λ has a lower value, the memory of the RLS is reduced, and it has the benefit of adapting faster to potential changes in the unknown system. When λ is closer to 1, the memory of the algorithm favors the accuracy at steady-state, when no relevant changes happen in the unknown impulse response. In the standard approach, a compromise is made between the two capabilities through the choice of a fixed value of λ .
Many RLS variants have several flaws, which make them prohibitive in practice. They manifest occasional numerical stability issues and have high computational requirements for hardware implementations (the corresponding arithmetic complexity is proportional to the square of the adaptive filter’s length). Consequently, an important part of the mentioned research effort is invested in alternative versions of the RLS, which can preserve the performances associated with the Woodbury RLS approach. Such is the case of exponentially weighted RLS methods combined with line search methods (LSMs) [6,8,11]. The RLS-LSM approach employs an alternative solution for the classical associated matrix inversion problem and is designed to favor iterative methods, which exploit the statistical properties of the input signals.
In this paper, the forgetting factor is analyzed as a variable value for the combination between the RLS and the conjugate gradient (CG) LSM [12,13]. The purpose is to present a method for adjusting λ depending on the circumstances in which the adaptive system is working. If the tracking capabilities of RLS-CG need to be increased, the value of λ is set to a lower value. Vice versa, at steady-state, the value of λ is expected to increase and be closer to the value 1. The proposed solution requires no extra adjustment of other parameters or control mechanisms, as in the cases of other similar methods, which are difficult to apply in real-world scenarios [14,15,16,17,18,19,20,21].
Section 2 of this paper comprises a general presentation of RLS-LSM adaptive algorithms. In Section 3, the value of λ is theoretically developed as a function of the discrete time index n [i.e., as λ ( n ) ] in order to match the general criteria mentioned above. The proposed variable forgetting factor (VFF) approach [22] is applied to RLS-CG in Section 4, while the simulation results are presented in Section 5, in order to validate the VFF-RLS-CG adaptive algorithm. These simulation results are shown for AEC scenarios using different types of input signals and tracking scenarios. Conclusions are described in Section 6 with respect to the theoretical information, simulation results, and the implications for hardware applications.

2. RLS Algorithm with Line Search Methods

In the system identification process for AEC scenarios, the adaptive filter’s purpose is to estimate the unknown system defined by an impulse response vector h of length L. The reference (or microphone) signal is obtained as
d ( n ) = x T ( n ) h + v ( n ) = y ( n ) + v ( n ) ,
where x ( n ) is a buffer vector containing the most recent L samples of the input signal, the superscript T denotes the transposition, and v ( n ) is a zero-mean additive noise signal corrupting the output y ( n ) of the system [1,4]. The noise is considered to be uncorrelated with the samples comprising x ( n ) . The a priori error signal is defined as the following difference:
e ( n ) = d ( n ) x T ( n ) h ^ ( n 1 ) ,
where d ( n ) is the reference (i.e., microphone) signal, and h ^ ( n ) is the set of coefficients used to estimate the unknown impulse response h . The LS approach for estimating h is associated with the minimization of the cost function:
J h ^ ( n ) = i = 1 n λ n i d ( i ) x T ( i ) h ^ ( n ) 2 ,
where λ controls the memory of the algorithm and is called the forgetting factor. Minimizing the cost function leads to the following system of linear equations:
R ( n ) h ^ ( n ) = p ( n ) ,
where R ( n ) is the estimated L × L positive definite covariance matrix associated with the samples of the input signal x ( n ) , and p ( n ) is the L × 1 cross-correlation vector between the samples of x ( n ) and d ( n ) [1,2,6]. The known quantities in (4) are R ( n ) and p ( n ) , which can be recursively updated using λ as
R ( n ) = λ R ( n 1 ) + x ( n ) x T ( n ) ,
p ( n ) = λ p ( n 1 ) + x ( n ) d ( n ) .
In order to avoid applying direct solutions for solving the system in (4), the associated expression can be reinterpreted in order to solve an auxiliary system of equations [6,23]. New notations are introduced to track the variations in the covariance matrix R ( n ) and the cross-correlation vector p ( n ) from consecutive time indices:
Δ R ( n ) = R ( n ) R ( n 1 ) = ( λ 1 ) R ( n ) + x ( n ) x T ( n ) ,
Δ p ( n ) = p ( n ) p ( n 1 ) = ( λ 1 ) p ( n ) + d ( n ) x ( n ) ,
where Δ R ( n ) is an L × L matrix, and Δ p ( n ) is an L-valued vector. Moreover, the variation in the filter’s coefficients between consecutive time indices is denoted using the L × 1 vector:
Δ h ( n ) = h ( n ) h ^ ( n 1 ) .
The new purpose is to replace the direct determination of the estimate h ^ ( n ) with the computation of the estimate Δ h ^ ( n ) , which is called the solution vector. By considering that at time index n, the estimate h ^ ( n 1 ) is already known, the expression in (9) can be used in (4) to obtain
R ( n ) Δ h ( n ) = p 0 ( n ) ,
where the L × 1  residual component  p 0 ( n ) is defined as
p 0 ( n ) = p ( n ) R ( n ) h ^ ( n 1 ) .
The system of equations in (10) is the new problem, which requires a solution in order to perform the adaptive filter update [7,8]. After Δ h ^ ( n ) is determined, the column vector of filter coefficients can be updated, yielding h ^ ( n ) as
h ^ ( n ) = h ^ ( n 1 ) + Δ h ^ ( n ) .
Solving (10) is equivalent to finding the global minimum of the quadratic function
f Δ h ^ ( n ) = 1 2 Δ h ^ T ( n ) R ( n ) Δ h ^ ( n ) p 0 ( n ) Δ h ^ ( n ) ,
by computing its gradient and setting it equal to zero [7]. The concept of the residual vector is also used as
r ( n ) = p ( n ) R ( n ) h ^ ( n ) ,
which is computed at the end of the adaptive filter’s iteration. The residual vector can be seen as an error measure regarding the accuracy of the adaptive filter at time index n and is part of the adaptation process at the next time index. Moreover, the residual component can be recursively expressed using (7) and (8), then (14), in (11), in order to obtain
p 0 ( n ) = r ( n 1 ) + Δ p ( n ) Δ R ( n ) h ^ ( n 1 ) = r ( n 1 ) + ( λ 1 ) p ( n 1 ) + d ( n ) x ( n ) ( λ 1 ) R ( n 1 ) h ^ ( n 1 ) x ( n ) x T ( n ) h ^ ( n 1 ) = λ r ( n 1 ) + x ( n ) e ( n ) ,
where it can be noticed that the update for p 0 ( n ) can be performed with the most recent input samples, the error signal, and the residual vector from the previous time index [6].
The framework based on the described auxiliary system of equations is summarized in Table 1. The constant Φ multiplied by the L × L identity matrix I L is used for the initialization of R ( 0 ) and ensures the non-singular property of the matrix in the initial stages of the algorithm. The vectors h ^ ( 0 ) and r ( 0 ) are initialized using zero-valued L × 1 column vectors ( 0 L × 1 ). The algorithm is suitable for using LSMs, which perform two roles: they compute the estimate Δ h ^ ( n ) and provide an updated version of the residual vector r ( n ) (step 6). The RLS-LSM combination can exploit the properties of the input signals and does not manifest the numerical stability issues specific to the RLS based on Woodbury’s identity.

3. Variable Forgetting Factor for RLS-LSM Algorithms

In most RLS versions, the forgetting factor is chosen as a constant with the following form:
λ = 1 1 K L ,
where the constant K is usually chosen as a non-zero natural number [22]. Considering that an adaptive filter for AEC scenarios can perform the update of thousands of coefficients, the possibility of dynamically improving the adaptation energy in tracking intervals, with respect to increasing the accuracy level in steady-state intervals, can allow for a customized behavior of the RLS in accordance with the environmental conditions. The purpose of the VFF approach is to define a mechanism for adjusting λ ( n ) in order to obtain a good balance between tracking capabilities and accuracy at steady-state, depending on the most important requirement at the moment of the computation [22]. Different VFF-based techniques can be found in the literature, in the framework of various applications, e.g., see [21,24,25,26,27,28,29] and the references therein. Nevertheless, most of the existing VFF-RLS algorithms require extra tuning parameters related to the evaluation of their forgetting factors and/or additional decision mechanisms (e.g., threshold-based), which are not easy to handle in practice, especially in real-time applications.
The development of the expression for λ ( n ) takes into consideration the basic RLS algorithm, which determines the error signal in (2) and updates the filter coefficients (with an arithmetic complexity proportional to the cube of L) as
h ^ ( n ) = h ^ ( n 1 ) + R 1 ( n ) x ( n ) e ( n ) .
Considering that the RLS-LSM family of adaptive methods is designed to achieve the performances of the basic RLS, the following considerations can be applied to the former method, just as in the case of the latter.
The a posteriori error can be expressed after each update of the filter coefficients as
ϵ ( n ) = d ( n ) x T ( n ) h ^ ( n ) ,
which can also be written using (2) and (17)
ϵ ( n ) = 1 x T ( n ) R 1 ( n ) x ( n ) e ( n ) ,
then rewritten considering the form of the reference signal in (1) as
ϵ ( n ) = x T ( n ) h h ^ ( n ) + v ( n ) .
In an ideal situation, the a posteriori error is equal to the noise influencing the microphone signal, i.e., ϵ ( n ) = v ( n ) . The condition was replaced in [22] by
E ϵ 2 ( n ) = σ v 2 ,
where E [ · ] expresses the mathematical expectation, and σ v 2 is the noise power, which is considered to be constant.
In order to develop (21), several approximations will be employed considering the statistical properties of the input signal. Firstly, the covariance matrix is considered to be close to a diagonal matrix so that we can write
E x ( n ) x T ( n ) σ x 2 I L ,
where σ x 2 is the variance in the input signal. This represents a key approximation for the upcoming development. Indeed, this assumption holds especially for white Gaussian signals or mild correlated inputs, when the covariance matrix is close to a diagonal one. The reason behind using this approximation is basically twofold: (A) It allows for an important simplification of the development related to the VFF design, which results in a practical and easy way to handle the formula for the time-dependent forgetting factor. (B) Even for highly correlated input signals (like speech), when this assumption is biased, the resulting RLS-type algorithm still uses the full estimate of the covariance matrix based on (5) so that information about the true character of the input signal is still available. This aspect will also be supported in Section 5, in terms of the simulation results, showing that the proposed VFF-type algorithm obtains good performance for various inputs, including highly correlated ones (e.g., autoregressive processes with a pole very close to 1 and speech sequences).
Secondly, after the algorithm has run for a reasonable amount of time (i.e., for n large enough), the covariance matrix can be expressed as
R ( n ) ( 1 λ ) 1 σ x 2 I L .
By also taking into consideration that L 1 , we can write
x T ( n ) x ( n ) L σ x 2 .
The approximations can be used to rewrite ϵ ( n ) by using (23), then (24), in (19), and we obtain
ϵ ( n ) = 1 ( 1 λ ) L e ( n ) .
Consequently, when squaring (20) and applying the mathematical expectation operator, the condition in (21) is transformed into
σ e 2 ( n ) 1 ( 1 λ ) L 2 = σ v 2 ,
where σ e 2 ( n ) = E [ e 2 ( n ) ] .
The process of developing a variable λ ( n ) can be considered equivalent to rewriting the expression in (16) as
λ ( n ) = 1 1 K ( n ) L ,
where the variable form K ( n ) can be expressed as α ( n ) = 1 / K ( n ) . Thus, the variable λ ( n ) can also be written as
λ ( n ) = 1 α ( n ) L .
The form in (28) and the developed condition in (26) lead to the following quadratic equation:
σ e 2 ( n ) α 2 ( n ) 2 σ e 2 ( n ) α ( n ) + σ e 2 ( n ) = σ v 2 ,
where α ( n ) is considered the unknown quantity. The corresponding valid solution is
α ( n ) = 1 σ v σ e ( n ) ,
where σ e 2 ( n ) can be recursively determined using the exponential window
σ e 2 ( n ) = γ σ e 2 ( n 1 ) + ( 1 γ ) e 2 ( n ) ,
with 0 γ < 1 . In practice, the value of γ can be chosen as (or similar to) 1 1 / L [30].
It can be noticed that when the algorithm converges (i.e., it is at steady-state), the values of σ e ( n ) and σ v become similar, and the value of λ ( n ) becomes closer to 1. Otherwise, σ e ( n ) increases considerably with respect to σ v , the value of the forgetting factor decreases, and it favors an RLS behavior with smaller memory, suitable for tracking intervals. Although the value of α ( n ) should always be positive subunitary, the corresponding expression can be written to avoid potential numerical issues as
α ( n ) = min 1 , max 0 , 1 σ v ζ + σ e ( n ) ,
where ζ is a very small positive number employed to avoid division by zero.
Finally, the VFF-RLS-LSM adaptive algorithm is described in Table 2, with the corresponding arithmetic costs in terms of multiplications and divisions for each step of the adaptive filter iteration n. The most costly steps are the ones performing operations with vectors, as they require amounts of multiplications proportional to L. The computational complexity associated with step 9 depends on the employed LSM and cannot be specified in this generic form. The VFF portion of the algorithm is developed from (21) and is applied to the RLS-LSM general algorithm (steps 4 to 8). It requires a single division for step 5. For step 6, it was considered that the length of the adaptive filter is employed as a power of 2, and the corresponding division can be replaced by a bit-shift. This methodology is remarkable given the fact that it can be applied to RLS-based algorithms without following the conventional RLS version based on the matrix inversion lemma. It relies on assumptions made on the statistical properties of the input signal, which also impact the covariance matrix. However, the algorithm is expected to maintain good convergence and accuracy features even with strongly correlated signals, such as speech. The simulation results presented in this paper will demonstrate the validity of the theoretical model using the CG LSM for solving the auxiliary system of equations in (10).

4. VFF-RLS-CG

The CG iterative method can be employed in VFF-RLS-LSM to generate a solution for the system in (10) (i.e., at step 9 in Table 2). Similarly to other LSMs, it generates the solution vector Δ h ^ ( n ) and the residual vector r ( n ) . The RLS-CG combination can achieve performances comparable to the RLS based on Woodbury’s identity, with similar arithmetic complexity and without manifesting numerical stability issues. The former will be used as a benchmark for its VFF counterpart. The steps of the CG method are described in Table 3. For simplicity and fluency, the time index n is dropped in some places. Information regarding arithmetic complexity was also added, with respect to the numbers of multiplications and divisions for each step of the CG iterations. It can be noticed that steps 2 and 4 perform multiplications with the entire covariance matrix and require amounts of such operations proportional to the square of the adaptive filter’s length. Thus, the overall complexity of the RLS-CG is set to a value proportional to L 2 . Moreover, a division is required for every value of k > N u , and another one is employed for the computation of the term η .
The CG generates successive approximations for the solution vector Δ h ^ ( n ) by exploiting the A-conjugacy property [6]. Two vectors u and v , u v , are said to be A-conjugate if uAv T = 0 and A is a symmetric and positive definite matrix (as is the case for the covariance matrix). The minimum of the quadratic function can be obtained by adding a single A-conjugated vector, with respect to all the previous ones, at every new iteration. Each new iteration is considered to bring the estimate Δ h ^ ( n ) closer to the ideal solution.
The algorithm starts by initializing Δ h ^ ( n ) with a zero-valued vector. Then it sets the residual vector as the value of p 0 ( n ) . For the rest of the iterations, the solution vector is not zero-valued as in the initialization stage, and the values comprising the residual vector are determined as the difference between p 0 ( n ) and R ( n ) h ^ ( n ) .
In step 1, the new form of the vector d can be seen as a direction vector that needs to go through a process similar to the Gramm–Schmidt method, in order to ensure it is A-conjugated to all the previous directions. The direction vector is also multiplied by the term η calculated at step 2, which scales the estimate Δ h ^ ( n ) in the direction of minimizing the function in (13). The update of the solution vector is then performed in step 3, and the residual vector is also changed (step 4) to reflect the new form of Δ h ^ ( n ) . The parameter N u controls the number of conjugate directions contained in the set of vectors. The overall arithmetic complexity of RLS-CG is proportional to the square of the adaptive filter’s length, which is similar to the RLS based on Woodbury’s method. Moreover, the extra operations necessary for the VFF portion of the algorithm are the same when being employed for any RLS variant, such as RLS-LSMs or the RLS based on the matrix inversion lemma.

5. Simulation Results

Simulations are performed in the AEC context in order to validate the theoretical content. Several scenarios are studied using various types of input signals and different real-world unknown acoustic impulse responses decimated in order to obtain the corresponding desired lengths, which are changed between scenarios.
The proposed VFF-RLS-CG algorithm is compared to RLS-CG variants using fixed values for the forgetting factor and N u = 1 , which is enough to match the performances of the RLS based on the matrix inversion lemma. The initial convergence of the adaptive methods is not illustrated as it is not considered relevant [8]. The criterion for evaluating the performance of the adaptive algorithms is the normalized misalignment, which is measured in dB as
NM ( n ) = 10 log 10 h h ^ ( n ) 2 2 h 2 2 [ dB ] ,
where · 2 denotes the Euclidean norm.
For all simulations, the echo-to-noise ratio (ENR) is experimentally set to 20 dB, and the unknown impulse responses are changed one or two times per scenario in order to evaluate the tracking capabilities of the adaptive algorithms. The variance in the noise signal, v ( n ) , is considered known for VFF-RLS-CG unless otherwise specified.
In the first scenario (Figure 1), the input signal is Gaussian noise, and the length of the echo path is set to L = 128 . Considering (16), the RLS-CG with K = 1 is simulated as a reference method with high tracking capabilities. The echo path is changed after 10 s of simulation by switching the sign of all the corresponding coefficients.
It can be noticed that VFF-RLS-CG matches the tracking of RLS-CG with K = 1 when the echo path changes. Moreover, at steady-state, the former adjusts the variable forgetting factor to increase its accuracy. The performances of the RLS-CG with K = 50 are also added to the graphic in order to demonstrate the compromise made when the algorithm has a forgetting factor chosen to match the performances of VFF-RLS-CG at steady-state. When the tracking situation occurs, the RLS-CG with K = 50 identifies the new impulse response much slower than the RLS-CG with K = 1 , namely VFF-RLS-CG. The scenario shows that a constant value for λ cannot ensure the maximum efficiency for tracking and steady-state accuracy at the same time.
A tracking scenario is also simulated using (as input signal) a Gaussian noise filtered through an autoregressive system with a single pole [AR(1)] with the value 0.99 . The length of the echo path is set to L = 256 , and a tracking situation is obtained by shifting its coefficients by 25 positions at time index 24 s. VFF-RLS-CG is again compared with the RLS-CG with K = 1 , with respect to an RLS-CG variant matching VFF-RLS-CG accuracy at steady-state ( K = 60 ). The results in Figure 2 show that the VFF reproduces the desired behavior of its counterparts without manifesting their weaknesses. When the unknown impulse response changes, the value of λ ( n ) decreases, and the tracking capabilities increase to match the performances of the RLS-CG with the lower forgetting factor value. Moreover, at steady-state, VFF-RLS-CG increases the value of λ ( n ) to ensure improved accuracy. The classical compromise made when choosing the constant value of λ is eliminated. The proposed algorithm demonstrates the mentioned performances despite working with a highly correlated input signal (see the approximation employed in Section 3).
In the third experiment, the correlation properties of the input signal are further considered by employing a speech sequence, which is also non-stationary [31]. The length of the unknown system is set to a value closer to that in scenarios associated with real-world acoustic applications ( L = 512 ). The unknown system is changed twice by using both methods employed in the previous simulations. Tracking is expected to be more challenging for any adaptive algorithm performing AEC.
Furthermore, in order to demonstrate the practical value of VFF-RLS-CG, the variance in the noise signal, v ( n ) , is estimated in real time using an exponential window similar to (31) by determining σ v 2 ( n ) as
σ v 2 ( n ) = β σ v 2 ( n 1 ) + ( 1 β ) e 2 ( n ) ,
with β > γ ensuring that the value of σ v 2 ( n ) is estimated using a longer exponential window, with respect to the case of σ e 2 ( n ) [22,30]. The corresponding results are displayed in Figure 3, while the evolution of the forgetting factor associated with VFF-RLS-CG is shown in Figure 4. Additionally, the variation in the condition number corresponding to the covariance matrix R ( n ) is depicted in Figure 5, showing a stable behavior [32].
It can be noticed that VFF-RLS-CG can match the tracking performances of the RLS-CG variant with reduced memory and the steady-state accuracy of the RLS-CG with the higher memory set through a higher value of λ . The evolution of the variable λ ( n ) shown in Figure 4 indicates the corresponding values decreasing in the intervals in which the tracking should be optimized. When convergence is achieved, the values of λ ( n ) oscillate closer to the value 1. In this context, we should outline that the additional control of α ( n ) from Equation (32) avoids numerical issues (which should be considered in practical implementations), while it could disrupt the continuity of the solution. Nevertheless, this truncation does not affect the algorithm’s performance, as indicated in Figure 4. As can be noticed, the lower limit (zero) is never reached, while the upper bound (one) is used for a short period of time, especially after the system changes (i.e., for tracking situations). However, using the maximum value of the forgetting factor does not affect but it rather favors the stability of the algorithm, which is a well-known conclusion reported in many convergence analyses of RLS-type algorithms [1,4,5].
The previous experiment was repeated in Figure 6 for ENR = 10 dB. Similar conclusions can be outlined. The RLS-CG variant with low (constant) λ demonstrates poor performances, while the version with the higher constant forgetting factor demonstrates good accuracy at steady-state, with degradation in terms of tracking. However, VFF-RLS-CG demonstrates high tracking capabilities and the capacity to adjust its λ ( n ) in order to attain accurate steady-state performances.

6. Conclusions

This paper presented a combination between the RLS adaptive algorithm and the CG LSM with the capability of adjusting its memory by computing the associated forgetting factor at every adaptive filter’s iteration. VFF-RLS-CG decreases the value of λ ( n ) when the unknown impulse response is changed, and it increases λ ( n ) at steady-state. The VFF part of the algorithm adds reduced arithmetical effort in terms of multiplications and divisions and eliminates the compromise made when choosing a fixed value for λ in classical RLS methods.
Simulations demonstrated the validity of the theoretical VFF-RLS-CG model. It can match the performances of the RLS-CG optimized for tracking situations and for steady-state portions. The algorithm is numerically stable and suitable for working with AEC configurations and with highly correlated signals.
Future works will focus on studying low-complexity VFF-RLS-LSM variants by combining RLS with dichotomous coordinate descent (DCD) iterations [6,7,8]. The main benefits will be achieving the advantages of RLS methods with the VFF approach and obtaining a VFF-RLS-DCD version with an overall arithmetic complexity proportional to the adaptive filter’s length, which is attractive for real-time signal processing platforms.

Author Contributions

Conceptualization, R.-A.O. and C.-L.S.; Formal Analysis, J.B. and C.P.; Methodology, C.-L.S. and C.P.; Software, C.-L.S. and R.-A.O. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by a grant of the Academy of Romanian Scientists (AOŞR), within AOŞR-TEAMS-III, project registration code 131/2024.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Haykin, S. Adaptive Filter Theory, 5th ed.; Pearson: Hoboken, NJ, USA, 2014. [Google Scholar]
  2. Benesty, J.; Huang, Y. Adaptive Signal Processing—Applications to Real-World Problems; Springer: Berlin/Heidelberg, Germany, 2003. [Google Scholar]
  3. Hänsler, E.; Schmidt, G. Acoustic Echo and Noise Control—A Practical Approach; Wiley: Hoboken, NJ, USA, 2004. [Google Scholar]
  4. Sayed, A. Adaptive Filters; Wiley: New York, NY, USA, 2008. [Google Scholar]
  5. Diniz, P.S.R. Adaptive Filtering: Algorithms and Practical Implementation, 4th ed.; Springer: New York, NY, USA, 2013. [Google Scholar]
  6. Zakharov, Y.V.; White, G.P.; Liu, J. Low-Complexity RLS Algorithms Using Dichotomous Coordinate Descent Iterations. IEEE Trans. Signal Process. 2008, 56, 3150–3161. [Google Scholar] [CrossRef]
  7. Liu, J.; Zakharov, Y.V.; Weaver, B. Architecture and FPGA Design of Dichotomous Coordinate Descent Algorithms. IEEE Trans. Circuits Syst. I Regul. Pap. 2009, 56, 2425–2438. [Google Scholar]
  8. Zakharov, Y.V.; Nascimento, V.H. DCD-RLS Adaptive Filters with Penalties for Sparse Identification. IEEE Trans. Signal Process. 2013, 61, 3198–3213. [Google Scholar] [CrossRef]
  9. Yu, Y.; Lu, L.; Zheng, Z.; Wang, W.; Zakharov, Y.; de Lamare, R.C. DCD-Based Recursive Adaptive Algorithms Robust Against Impulsive Noise. IEEE Trans. Circuits Syst. II Express Briefs 2020, 67, 1359–1363. [Google Scholar] [CrossRef]
  10. Sondhi, M.; Morgan, D.; Hall, J. Stereophonic Acoustic Echo Cancellation—An Overview of the Fundamental Problem. IEEE Signal Process. Lett. 1995, 2, 148–151. [Google Scholar] [CrossRef] [PubMed]
  11. Zhang, Y.; Wu, T.; Zakharov, Y.; Li, J. MMP-DCD-CV Based Sparse Channel Estimation Algorithm for Underwater Acoustic Transform Domain Communication System. Appl. Acoust. 2019, 154, 43–52. [Google Scholar] [CrossRef]
  12. Boray, G.K.; Srinath, M.D. Conjugate Gradient Techniques for Adaptive Filtering. IEEE Trans. Circuits Syst. I Fundam. Theory Appl. 1992, 39, 1–10. [Google Scholar] [CrossRef]
  13. Chang, P.S.; Willson, A.N. Analysis of Conjugate Gradient Algorithms for Adaptive Filtering. IEEE Trans. Signal Process. 2000, 48, 409–418. [Google Scholar] [CrossRef]
  14. Albu, F. Improved Variable Forgetting Factor Recursive Least Square Algorithm. In Proceedings of the International Conference on Control, Automation, Robotics & Vision, Guangzhou, China, 5–7 December 2012; pp. 1789–1793. [Google Scholar]
  15. Cai, Y.; de Lamare, R.; Zhao, M.; Zhong, J. Low-Complexity Variable Forgetting Factor Mechanism for Blind Adaptive Constrained Constant Modulus Algorithms. IEEE Trans. Signal Process. 2012, 60, 3988–4002. [Google Scholar] [CrossRef]
  16. Qin, B.; Cai, Y.; Champagne, B.; de Lamare, R.; Zhao, M. A Low Complexity Variable Forgetting Factor Constant Modulus RLS Algorithm for Blind Adaptive Beamforming. Signal Process. 2014, 105, 277–282. [Google Scholar] [CrossRef]
  17. Lu, L.; Zhao, M.; Chen, B. Improved Variable Forgetting Factor Recursive Algorithm Based on the Logarithmic Cost for Volterra System Identification. IEEE Trans. Circuits Syst. II Exp. Briefs 2016, 63, 588–592. [Google Scholar] [CrossRef]
  18. Tan, H.; Chan, S.; Lin, J.; Sun, X. A New Variable Forgetting Factor-Based Bias-Compensated RLS Algorithm for Identification of FIR Systems With Input Noise and Its Hardware Implementation. IEEE Trans. Circuits Syst. I Reg. Pap. 2020, 67, 198–211. [Google Scholar] [CrossRef]
  19. Chan, S.; Tan, H.; Lin, J.Q. A New Variable Forgetting Factor and Variable Regularized Square Root Extended Instrumental Variable PAST Algorithm with Applications. IEEE Trans. Aerosp. Electron. Syst. 2020, 56, 1886–1902. [Google Scholar] [CrossRef]
  20. Lin, J.; Chan, S.; Wu, H. A Robust PAST-Based ESPRIT Algorithm with Variable Forgetting Factor and Regularization for Frequencies/Harmonics Estimation in Impulsive Noise. IEEE Trans. Instrum. Meas. 2022, 71, 6502213. [Google Scholar] [CrossRef]
  21. Han, Z.; Zhang, F.; Zhang, Y.; Han, Y.; Jiang, P. Improved Variable Forgetting Factor Proportionate RLS Algorithm with Sparse Penalty and Fast Implementation Using DCD Iterations. China Commun. 2024, 21, 1–12. [Google Scholar] [CrossRef]
  22. Paleologu, C.; Benesty, J.; Otopeleanu, R.; Ciochină, S. A Nonparametric Variable Forgetting Factor Recursive Least-Squares Algorithm. IEEE Signal Process. Lett. 2026, 33, 36–40. [Google Scholar] [CrossRef]
  23. Stanciu, C.; Benesty, J.; Paleologu, C.; Gänsler, T.; Ciochină, S. A Widely Linear Model for Stereophonic Acoustic Echo Cancellation. Signal Process. 2013, 93, 511–516. [Google Scholar] [CrossRef]
  24. Nachtsheim, M.; Ernst, J.; Endisch, C.; Kennel, R. Performance of recursive least squares algorithm configurations for online parameter identification of induction machines in an automotive environment. IEEE Trans. Transp. Electrif. 2023, 9, 4236–4254. [Google Scholar] [CrossRef]
  25. Zhu, Z.; Tong, F.; Zhou, Y. Enhanced sparsity-aware RLS algorithm for efficient estimation of time-varying sparse system. IEEE Trans. Circuits Syst. II Express Briefs 2023, 70, 4589–4593. [Google Scholar] [CrossRef]
  26. Mao, Y.; Bao, Y.; Zhang, Y.; Yang, Y. An ultrafast variable forgetting factor recursive least square method for determining the state-of-health of Li-Ion batteries. IEEE Access 2023, 11, 141152–141161. [Google Scholar] [CrossRef]
  27. Yang, Q.; Li, Y.; Zheng, M.; Song, R. An adaptive Hammerstein model for FES-induced torque prediction based on variable forgetting factor recursive least squares algorithm. IEEE Trans. Neural Syst. Rehabil. Eng. 2024, 32, 1109–1118. [Google Scholar] [CrossRef]
  28. Abdelkarim, T.; Driss, R.; Eichwald, O.; Vido, L.; Kamel, N.; Abdelkrim, B. Influence of the forgetting factor in the recursive least squares RLS algorithm on the quality and precision of the identified parameters in a DC corona discharge. IEEE Trans. Plasma Sci. 2025, 53, 108–115. [Google Scholar] [CrossRef]
  29. Xu, S.; Yu, H.; Du, H.; Chai, Y.; Chen, H.; He, Y.; Zheng, W.X. Diagnosis of open-switch faults in grid-tied three-level NPC inverters with parameter uncertainty using variable forgetting factor bias-compensation recursive least squares. IEEE Trans. Circuits Syst. I Regul. Pap. 2025, 72, 7423–7435. [Google Scholar] [CrossRef]
  30. Leung, S.H.; So, C. Gradient-Based Variable Forgetting Factor RLS Algorithm in Time-Varying Environments. IEEE Trans. Signal Process. 2005, 53, 3141–3150. [Google Scholar] [CrossRef]
  31. Open Speech Repository. Available online: https://www.voiptroubleshooter.com/open_speech/index.html (accessed on 26 January 2026).
  32. Benesty, J.; Gänsler, T. New insights into the RLS algorithm. EURASIP J. Adv. Signal Process. 2004, 3, 331–339. [Google Scholar] [CrossRef]
Figure 1. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 50 , and VFF-RLS-CG. The input signal is Gaussian noise. The length of the unknown impulse response is L = 128 . The echo path changes at time index t 0 = 10 s. The ENR is experimentally set to 20 dB, ζ = 10 7 , and γ = 1 1 / L .
Figure 1. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 50 , and VFF-RLS-CG. The input signal is Gaussian noise. The length of the unknown impulse response is L = 128 . The echo path changes at time index t 0 = 10 s. The ENR is experimentally set to 20 dB, ζ = 10 7 , and γ = 1 1 / L .
Applsci 16 04681 g001
Figure 2. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 60 , and VFF-RLS-CG. The input signal is Gaussian noise through an AR(1) model with the pole 0.99 . The length of the unknown impulse response is L = 256 . The echo path changes at time index t 0 = 24 s. The ENR is experimentally set to 20 dB, ζ = 10 7 , and γ = 1 1 / L .
Figure 2. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 60 , and VFF-RLS-CG. The input signal is Gaussian noise through an AR(1) model with the pole 0.99 . The length of the unknown impulse response is L = 256 . The echo path changes at time index t 0 = 24 s. The ENR is experimentally set to 20 dB, ζ = 10 7 , and γ = 1 1 / L .
Applsci 16 04681 g002
Figure 3. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 120 , and VFF-RLS-CG. The input signal is a speech sequence. The length of the unknown impulse response is L = 512 . The echo path changes at time indices t 0 = 60 s and t 1 = 120 s. The ENR is experimentally set to 20 dB, ζ = 10 7 , γ = 1 1 / L , and β = 1 1 / ( 15 L ) .
Figure 3. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 120 , and VFF-RLS-CG. The input signal is a speech sequence. The length of the unknown impulse response is L = 512 . The echo path changes at time indices t 0 = 60 s and t 1 = 120 s. The ENR is experimentally set to 20 dB, ζ = 10 7 , γ = 1 1 / L , and β = 1 1 / ( 15 L ) .
Applsci 16 04681 g003
Figure 4. The evolution of the parameter λ ( n ) corresponding to the VFF-RLS-CG results displayed in Figure 3.
Figure 4. The evolution of the parameter λ ( n ) corresponding to the VFF-RLS-CG results displayed in Figure 3.
Applsci 16 04681 g004
Figure 5. The evolution of the condition number of R ( n ) corresponding to the VFF-RLS-CG results displayed in Figure 3.
Figure 5. The evolution of the condition number of R ( n ) corresponding to the VFF-RLS-CG results displayed in Figure 3.
Applsci 16 04681 g005
Figure 6. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 120 , and VFF-RLS-CG. The input signal is a speech sequence. The length of the unknown impulse response is L = 512 . The echo path changes at time indices t 0 = 60 s and t 1 = 120 s. The ENR is experimentally set to 10 dB, ζ = 10 7 , γ = 1 1 / L , and β = 1 1 / ( 15 L ) .
Figure 6. The misalignment of the RLS-CG with K = 1 , the RLS-CG with K = 120 , and VFF-RLS-CG. The input signal is a speech sequence. The length of the unknown impulse response is L = 512 . The echo path changes at time indices t 0 = 60 s and t 1 = 120 s. The ENR is experimentally set to 10 dB, ζ = 10 7 , γ = 1 1 / L , and β = 1 1 / ( 15 L ) .
Applsci 16 04681 g006
Table 1. The RLS-LSM adaptive algorithm.
Table 1. The RLS-LSM adaptive algorithm.
StepActions
Initialization :
h ^ ( 0 ) = 0 L × 1
r ( 0 ) = 0 L × 1
R ( 0 ) = Φ I L , Φ > 0
For n = 1 , 2 ,
1              Update x ( n )
2              Update R ( n ) using (5)
3               y ( n ) = h ^ T ( n 1 ) x ( n )
4               e ( n ) = d ( n ) y ( n )
5               p 0 ( n ) = λ r ( n 1 ) + e ( n ) x ( n )
6               R ( n ) Δ h ( n ) = p 0 ( n ) LSM Δ h ^ ( n ) , r ( n )
7               h ^ ( n ) = h ^ ( n 1 ) + Δ h ^ ( n )
Table 2. The VFF-RLS-LSM adaptive algorithm.
Table 2. The VFF-RLS-LSM adaptive algorithm.
StepActions×/
Initialization :
h ^ ( 0 ) = 0 L × 1
r ( 0 ) = 0 L × 1
R ( 0 ) = Φ I L , Φ > 0
For n = 1 , 2 ,
1        Update x ( n ) 00
2         y ( n ) = h ^ T ( n 1 ) x ( n ) L0
3         e ( n ) = d ( n ) y ( n ) 00
4         σ e 2 ( n ) = γ σ e 2 ( n 1 ) + ( 1 γ ) e 2 ( n ) 30
5         α ( n ) = min 1 , max 0 , 1 σ v ζ + σ e ( n ) 01
6         λ ( n ) = 1 α ( n ) L 00
7        Update R ( n ) using λ ( n ) and the time-shift property [6] 2 L 0
8         p 0 ( n ) = λ ( n ) r ( n 1 ) + e ( n ) x ( n ) 2 L 0
9         R ( n ) Δ h ( n ) = p 0 ( n ) LSM Δ h ^ ( n ) , r ( n ) O × , LSM O / , LSM
10         h ^ ( n ) = h ^ ( n 1 ) + Δ h ^ ( n ) 00
Table 3. CG iterations.
Table 3. CG iterations.
StepActions×/
Initialization :
Δ h ^ ( n ) = 0 L × 1
r = p 0 ( n )
ρ 0 = r T r
d = r
For k = 1 , 2 , , N u
1              If k > 1 d = r + ρ k 1 ρ k 2 d L1
2               η = ρ k 1 d T R ( n ) d L 2 + L 1
3               Δ h ^ ( n ) = Δ h ^ ( n ) + η d L0
4               r = r η R ( n ) d L 2 + L 0
5               ρ k = r T r L0
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

Otopeleanu, R.-A.; Stanciu, C.-L.; Paleologu, C.; Benesty, J. Variable Forgetting Factor RLS Adaptive Algorithms Based on Line Search Methods. Appl. Sci. 2026, 16, 4681. https://doi.org/10.3390/app16104681

AMA Style

Otopeleanu R-A, Stanciu C-L, Paleologu C, Benesty J. Variable Forgetting Factor RLS Adaptive Algorithms Based on Line Search Methods. Applied Sciences. 2026; 16(10):4681. https://doi.org/10.3390/app16104681

Chicago/Turabian Style

Otopeleanu, Radu-Andrei, Cristian-Lucian Stanciu, Constantin Paleologu, and Jacob Benesty. 2026. "Variable Forgetting Factor RLS Adaptive Algorithms Based on Line Search Methods" Applied Sciences 16, no. 10: 4681. https://doi.org/10.3390/app16104681

APA Style

Otopeleanu, R.-A., Stanciu, C.-L., Paleologu, C., & Benesty, J. (2026). Variable Forgetting Factor RLS Adaptive Algorithms Based on Line Search Methods. Applied Sciences, 16(10), 4681. https://doi.org/10.3390/app16104681

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