Work

Portuguese Media Charts: Automated Media Assessment Using Large Language Models

Year: 2025
Type: dissertation
Abstract: Many times, media producers exhibit certain types of bias that are passed through to news consumers, potentially shaping their opinions and perception of the facts.This can have multiple negative effects in the form of polarized speech and general distrust on institutions and news producers themselves.There are several stages in the news production cycle at which media bias can be injected into the final product.In addition, there are also several types of bias.This dissertation approaches media bias that originates exclusively in the writing stage, mostly created through word choice and labeling.Also, the focus is on the European Portuguese landscape, which is very limited in terms of research in the field.The main goal was to create an automated system that allows news consumers to directly frame news pieces according to four axes: political bias, reliability, objectivity, and readability.The classification methods are mainly focused on prompt-based techniques allied to open-weight large language models (LLMs) such as EuroLLM 9B and LLaMA 3.3 70B.Two specific techniques are explored: zero-shot prompting and a vector database technique tailored for the purpose.Additionally, a new prompt optimization procedure is presented based on the popular Particle Swarm Optimization (PSO) algorithm.Lastly, and exclusively for the readability axis, pre-established readability metrics are employed.The results suggest that medium-sized LLMs are, in general, significantly more capable than small-sized ones, performing better on all tasks.However, the proposed vector database approach revealed to be a reliable way of improving the small model's performance.The 70B parameter model was able to reach, in some cases, an accuracy of approximately 90%, which is remarkable.Finally, the adaptation of PSO as a prompt optimizer revealed promising results, always contributing to an improved performance at the end of the process, showcasing clear optimization capabilities.As the final product of this dissertation, the classification system is fully integrated with an interactive visualization tool in order to represent the Portuguese news landscape in interesting ways, providing the user a high level of freedom in terms of axis choice, number of dimensions (1D, 2D, or 3D plot), filtering, and a live-classification functionality.The exploration of the Portuguese case from multiple perspectives, the mix of techniques including state-of-the-art methodologies, a new prompt optimization methodology, as well as the development of an interactive visualization tool, are the main contributions of this work.
Author: João David Ribeiro Carvalho
Language: English
Open Access status: green
OpenAlex ID: W7080059143
Cites: 112
Cited by:
Related to: 10