KFKarlis Freivalds

Karlis Freivalds

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Karlis Freivalds has a total of 30 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Differentially Private Federated Learning for Remaining Useful Life Prediction

    by Arturs Nikulins, Kārlis Freivalds, Ivars Namatēvs, Kaspars Sudars, Audris Arzovs, Wilhelm Söderkvist Vermelin, Madhav Mishra, Kaspars Ozols

    Accurate remaining useful life (RUL) prediction is essential for the safe and cost-effective operation of safety-critical systems such as electronic components and engines. While data-driven machine learning approaches have demonstrated strong performance for RUL estimation, their effectiveness is limited by the lack of full run-to-failure data and by strict privacy and intellectual property constraints in industrial settings. Federated learning (FL) enables collaborative model training across multiple data owners without direct data sharing, but it does not, by itself, provide formal privacy guarantees and remains vulnerable to information leakage. This paper presents a privacy-preserving DP-enhanced FL setup for RUL prediction that combines federated learning with differential privacy (DP). We describe an end-to-end implementation based on the Opacus DP library, highlight practical challenges arising from the integration of DP into recurrent neural network architectures, and propose solutions to address them. Using two representative RUL datasets (CMAPSS and SiC MOSFET), we analyze the effect of DP noise on prediction performance and on the functional dependence between the predicted RUL and the already lived life feature. The results demonstrate that differential privacy can be integrated into federated RUL prediction with limited degradation in predictive performance, providing practical insights for deploying privacy-aware collaborative models in industrial environments.


  • Open Access

    Learning to Move Objects with Fluid Streams in a Differentiable Simulation

    by Karlis Freivalds, Laura Leja, Oskars Teikmanis

    We introduce a method for manipulating objects in three-dimensional space using controlled fluid streams. To achieve this, we train a neural network controller in a differentiable simulation and evaluate it in a simulated environment consisting of an 8x8 grid of vertical emitters. By carrying out various horizontal displacement tasks such as moving objects to specific positions while reacting to external perturbations, we demonstrate that a controller, trained with a limited number of iterations, can generalise to longer episodes and learn the complex dynamics of fluid-solid interactions. Importantly, our approach requires only the observation of the manipulated object's state, paving the way for the development of physical systems that enable contactless manipulation of objects using air streams.

  • Open Access

    Gates Are Not What You Need in RNNs

    by Ronalds Zakovskis, Andis Draguns, Eliza Gaile, Emils Ozolins, Karlis Freivalds

    Recurrent neural networks have flourished in many areas. Consequently, we can see new RNN cells being developed continuously, usually by creating or using gates in a new, original way. But what if we told you that gates in RNNs are redundant? In this paper, we propose a new recurrent cell called Residual Recurrent Unit (RRU) which beats traditional cells and does not employ a single gate. It is based on the residual shortcut connection, linear transformations, ReLU, and normalization. To evaluate our cell's effectiveness, we compare its performance against the widely-used GRU and LSTM cells and the recently proposed Mogrifier LSTM on several tasks including, polyphonic music modeling, language modeling, and sentiment analysis. Our experiments show that RRU outperforms the traditional gated units on most of these tasks. Also, it has better robustness to parameter selection, allowing immediate application in new tasks without much tuning. We have implemented the RRU in TensorFlow, and the code is made available at https://github.com/LUMII-Syslab/RRU .

  • Discrete Denoising Diffusion Approach to Integer Factorization

    by Kārlis Freivalds, Emīls Ozoliņš, Guntis Bārzdiņš


  • Gates Are Not What You Need in RNNs

    by Ronalds Zakovskis, Andis Draguns, Eliza Gaile, Emils Ozolins, Karlis Freivalds


  • Open Access

    Discrete Denoising Diffusion Approach to Integer Factorization

    by Karlis Freivalds, Emils Ozolins, Guntis Barzdins

    Integer factorization is a famous computational problem unknown whether being solvable in the polynomial time. With the rise of deep neural networks, it is interesting whether they can facilitate faster factorization. We present an approach to factorization utilizing deep neural networks and discrete denoising diffusion that works by iteratively correcting errors in a partially-correct solution. To this end, we develop a new seq2seq neural network architecture, employ relaxed categorical distribution and adapt the reverse diffusion process to cope better with inaccuracies in the denoising step. The approach is able to find factors for integers of up to 56 bits long. Our analysis indicates that investment in training leads to an exponential decrease of sampling steps required at inference to achieve a given success rate, thus counteracting an exponential run-time increase depending on the bit-length.

  • Open Access

    Robotic System for Post Office Package Handling

    by Oskars Vismanis, Janis Arents, Karlis Freivalds, Vaibhav Ahluwalia, Kaspars Ozols

    Parcel sorting is becoming a significant challenge for delivery distribution centers and is mostly automated by using high-throughput sorting machinery, but manual work is still used to feed these machines by placing the parcels on the conveyor belt. In this paper, an AI-based robotic solution that automates the parcel placement task was developed. The architecture of the proposed system along with methods on how to implement it are described by using the currently available hardware and software components. The described choices lead to a well-functioning system and the gained insights will facilitate building similar systems for parcel delivery automation.


  • Open Access

    Denoising Diffusion for Sampling SAT Solutions

    by Karlis Freivalds, Sergejs Kozlovics

    Generating diverse solutions to the Boolean Satisfiability Problem (SAT) is a hard computational problem with practical applications for testing and functional verification of software and hardware designs. We explore the way to generate such solutions using Denoising Diffusion coupled with a Graph Neural Network to implement the denoising function. We find that the obtained accuracy is similar to the currently best purely neural method and the produced SAT solutions are highly diverse, even if the system is trained with non-random solutions from a standard solver.

  • Unsupervised Training for Neural TSP Solver

    by Elīza Gaile, Andis Draguns, Emīls Ozoliņš, Kārlis Freivalds