Model compression
Lighter AI for near-real-time deception detection
Artificial Intelligence (AI) models are increasingly capable of analyzing and understanding large amounts of information. However, this capability usually comes with high demands on computing resources, memory and energy. This can become a limitation when AI has to be used outside large processing infrastructures, especially in situations where connectivity is limited or a quick response is needed.
To address this challenge, GUARDIANES proposes a use case focused on the compression and optimization of AI models for near-real-time deception detection. The aim is to investigate to what extent it is possible to reduce the size and computational needs of these models while maintaining performance suited to the task they must carry out, incorporating information about the confidence of their predictions and the possibility of abstaining when the available evidence is not sufficient.
01Smaller models to work with fewer resources
One of the main challenges of the use case is to make these capabilities run on reduced models and on devices with limited resources. Instead of the permanent use of large models hosted on external servers, alternatives will be studied that allow more of the processing to be moved to the device itself.
This approach can bring especially relevant advantages when the connection to external systems is limited or unstable. Recent advances in embedded devices and in techniques such as model size reduction, quantization or inference optimization make it possible to envisage increasingly lightweight and efficient systems.
However, reducing a model too much can affect its ability to perform the task correctly. For this reason, the use case will study the balance between size, inference speed and performance, seeking to identify how far the computational cost can be reduced without introducing a significant degradation of its capabilities.
02From reference models to running on limited devices
The work begins with a review of the state of the art and the identification of open reference models that provide a starting point. In parallel, suitable datasets are being analyzed to train, test and compare the different approaches.
On this basis, different strategies for model reduction and optimization can be evaluated. These include established techniques such as quantization, which reduces the precision with which parameters are represented; pruning, aimed at removing components of little relevance; or distillation, in which a smaller model learns to reproduce part of the behavior of a larger one. Alongside these approaches, the potential of Tensor Networks to obtain more compact representations and reduce memory and computing needs will be studied in particular. Comparing the different alternatives will make it possible to analyze which techniques, or combinations of them, offer the best balance between model reduction, execution speed and retention of performance.
The result will not be measured in terms of accuracy alone. It will be necessary to check how much space the model takes up, how much memory it needs, how long it takes to produce a response and how it behaves with information different from that used during its development. The approach also takes into account aspects such as the confidence of the predictions and the system's ability to abstain when it does not have enough information.
03Finding the right balance
The question posed by this use case is, ultimately, how much capability a model can keep when we reduce the resources it needs to run. A large model can offer good performance but be impractical for certain devices. At the opposite extreme, a very lightweight model loses usefulness if the reduction significantly affects the quality of its results.
The project will investigate that middle ground, comparing different alternatives to identify configurations that offer an adequate balance between quality, size, speed and computational requirements.
Disinformation detection thus provides a concrete and demanding case on which to experiment with model compression technologies. Beyond this specific application, the knowledge obtained will make it possible to move toward an Artificial Intelligence that can run more efficiently and autonomously, bringing advanced processing capabilities to devices and environments where the available resources are necessarily limited.