From Entity Mentions to Tone: An LLM-Based Pipeline for Media Bias Analysis

arXiv cs.CL Papers

Summary

This paper presents an LLM-based pipeline for analyzing media bias and framing in online news, tested on Albanian articles with moderate agreement in annotations compared to automated methods.

arXiv:2608.17454v1 Announce Type: new Abstract: This paper presents a pipeline for analyzing media bias and framing in online news. The pipeline groups articles into topics and events, adds named-entity and sentiment annotations, and compares news sources through people mentions, source-level tone, and event-level coverage patterns. We apply it to 8,358 Albanian news articles collected from GDELT and compare the resulting annotations with GDELT's automated annotations. The results show moderate agreement for sentiment and entity extraction, as well as additional person-entity pairs that can potentially support the bias analysis. We compare two annotation prompts and find that stricter sentiment-validation rules remove label-score inconsistencies but increase execution time and reduce annotation coverage. Based on these results, the simpler prompt is used for the rest of the analysis. We have provided sample analysis on source-level framing pro les, person-level tone differences across sources, and event-level gatekeeping and coverage indicators. These outputs show how the same news collection can be used to examine what sources cover, how they describe public figures, and where coverage is concentrated. The approach is particularly useful in settings where manually verified datasets or specialized language tools are limited.
Original Article
View Cached Full Text

Cached at: 08/19/26, 09:57 AM

# An LLM-Based Pipeline for Media Bias Analysis
Source: [https://arxiv.org/html/2608.17454](https://arxiv.org/html/2608.17454)
## From Entity Mentions to Tone: An LLM\-Based Pipeline for Media Bias AnalysisAuthor’s accepted manuscript of K\. Hoxha and O\. Qirici, “From Entity Mentions to Tone: An LLM\-Based Pipeline for Media Bias Analysis,” in*2026 18th International Conference on Electronics, Computers and Artificial Intelligence \(ECAI\)*, 2026, pp\. 1–8, doi:[10\.1109/ECAI69016\.2026\.11613638](https://doi.org/10.1109/ECAI69016.2026.11613638)\. © 2026 IEEE\. Personal use of this material is permitted\. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works\.PubID:pubid:©2026 IEEE

Klesti Hoxha and Olti QiriciAffiliation:Department of Informatics Faculty of Natural Sciences University of Tirana Tirana, Albania \{klesti\.hoxha, olti\.qirici\}@unitir\.edu\.al

###### Abstract

This paper presents a pipeline for analyzing media bias and framing in online news\. The pipeline groups articles into topics and events, adds named\-entity and sentiment annotations, and compares news sources through people mentions, source\-level tone, and event\-level coverage patterns\. We apply it to 8,358 Albanian news articles collected from GDELT and compare the resulting annotations with GDELT’s automated annotations\. The results show moderate agreement for sentiment and entity extraction, as well as additional person\-entity pairs that can potentially support the bias analysis\. We compare two annotation prompts and find that stricter sentiment\-validation rules remove label\-score inconsistencies but increase execution time and reduce annotation coverage\. Based on these results, the simpler prompt is used for the rest of the analysis\. We have provided sample analysis on source\-level framing profiles, person\-level tone differences across sources, and event\-level gatekeeping and coverage indicators\. These outputs show how the same news collection can be used to examine what sources cover, how they describe public figures, and where coverage is concentrated\. The approach is particularly useful in settings where manually verified datasets or specialized language tools are limited\.

###### Keywords:

media bias, media framing, large language models, named\-entity recognition, sentiment analysis, news analysis

## IIntroduction

Online news providers have become the default way for many people to be informed\. They can be accessed directly or, quite often, through social media platforms\. In both cases, recommender\-system algorithms\[[11](https://arxiv.org/html/2608.17454#bib.bib10)\]boost specific news items or topics\[[3](https://arxiv.org/html/2608.17454#bib.bib9)\], making readers vulnerable to disinformation and selective representations of events or facts\[[14](https://arxiv.org/html/2608.17454#bib.bib4)\]\. Selection may focus on individuals, organizations, or specific topics covered in the news\[[14](https://arxiv.org/html/2608.17454#bib.bib4)\], while framing can be related to the tone used when covering people, organizations, or topics in specific news items\[[10](https://arxiv.org/html/2608.17454#bib.bib5)\]\.

Traditionally, this problem has been addressed through manual investigations of news providers by communication experts\[[1](https://arxiv.org/html/2608.17454#bib.bib2)\]\. However, this process is heavyweight, costly, and itself prone to bias\. Furthermore, it is difficult to apply continuously at the level of individual media providers or news articles\.

As an alternative, machine\-learning algorithms, such as classifiers, have been used to identify bias or framing in media content\[[15](https://arxiv.org/html/2608.17454#bib.bib8)\]\. However, these methods also rely on language\-specific training data, which are usually created by human annotators\.

To address gatekeeping and reduce disinformation\[[6](https://arxiv.org/html/2608.17454#bib.bib11)\]in light of recent advances in news dissemination technologies, reliable and fact\-centered tools are needed to continuously assess bias and framing at the level of individual news providers and articles\. Such tools are able to enhance news aggregator applications by enabling the visualization of these assessments\.

This need is especially visible in smaller language settings such as Albanian\. News is published by many outlets with different editorial positions, but there are fewer ready\-made resources for large\-scale entity recognition, sentiment analysis, and source comparison\. As a result, even basic questions can be difficult to answer consistently: which sources covered an event, which public figures were mentioned, and whether the tone differed across outlets\.

For this reason, media\-bias analysis should not rely on a single score\. It should separate several related signals: source\-level tendencies, person\-level tone, and event\-level coverage\. Source\-level summaries help show whether a provider is generally more favorable or critical\. Person\-level summaries show how public figures are described by different outlets\. Event\-level indicators show how widely an event is covered and where coverage is concentrated\.

Recent advances in multilingual LLMs have enabled accurate and reliable approaches to NLP tasks such as named\-entity recognition \(NER\) and sentiment analysis\[[9](https://arxiv.org/html/2608.17454#bib.bib12)\]\. Both tasks are strongly related to the automated monitoring of bias and framing in news articles\. In this work, we introduce a language\-independent pipeline that continuously monitors media bias and framing by using LLMs to track mentions and tone\. Beyond a static evaluation of a news provider’s bias toward individuals or organizations, the pipeline compares coverage of the same event across different news outlets to identify shifts in tone and visibility\. We test this system in a low\-resource media environment, showing how local open\-source language models can support structured sentiment and entity analysis without requiring prior language\-specific adaptation\.

This work makes four main contributions\. First, it implements a pipeline, built with Kedro and a local Gemma model, for studying bias, framing, and gatekeeping in Albanian news\. Second, it compares two annotation prompts and shows that stricter validation removes label\-score inconsistencies but also slows processing and reduces annotation coverage\. Third, it compares the resulting annotations with GDELT outputs on 8,358 Albanian news articles\. Fourth, it uses the annotated dataset to provide a general framework for evaluating source\-level framing profiles, person\-level tone differences, and event\-level coverage indicators across 124 news sources, establishing a reproducible blueprint applicable to other low\-resource language news environments\.

The rest of the paper follows this structure\. We first define the bias and framing categories used in the study and then review related work\. Next, we describe the dataset, prompts, and processing pipeline\. We then evaluate the annotations and present the source\-, person\-, and event\-level analyses\. The paper ends with a discussion of the main limitations of the approach and potential directions for future work\.

## IIBias and Framing Categories

From the reviewed literature, we identified several recurring categories of media bias and framing\. These categories distinguish between what news outlets choose to cover, how they describe it, and how much attention they allocate to specific actors or events\.

Media bias is commonly treated as a deviation from neutrality\[[14](https://arxiv.org/html/2608.17454#bib.bib4)\]\. Table[I](https://arxiv.org/html/2608.17454#S2.T1)summarizes the bias categories considered in this work\.

TABLE I:Media Bias CategoriesMedia framing captures how a narrative is structured once an event is selected for coverage\. Table[II](https://arxiv.org/html/2608.17454#S2.T2)lists the framing categories used to characterize these narrative choices\.

TABLE II:Media Framing Categories
## IIIRelated Work

Several recent studies have used LLMs to detect bias and framing in news outlets\.

Wang et al\.\[[14](https://arxiv.org/html/2608.17454#bib.bib4)\]created a real\-time dashboard that visualizes bias metrics such as tone, topic, and political lean\. LLMs are used to quantify and categorize these metrics\. The user interface allows users to browse individual events and coverage details, while also providing aggregated bias metrics at the publisher level\. The developed system was evaluated with communication experts and crowdsourced participants\. The results were promising, showing a high statistical correlation with human\-based annotations\.

In another study, Kumar et al\.\[[10](https://arxiv.org/html/2608.17454#bib.bib5)\]created a framework and application that measure possible bias at the level of individual stories or events\. It allows users to compare news stories side by side, highlighting possible polarization in their framing\. The authors use LLMs to perform sentiment analysis and emphasize their benefits for deeper, context\-based sentiment detection\. LLMs are also used to compare coverage across news providers reporting on the same story\.

In earlier pre\-LLM work, Ye and Skiena\[[16](https://arxiv.org/html/2608.17454#bib.bib1)\]computed source\-related rankings for 50,000 news sources globally\. Their ranking framework included reporting bias, peer reputation, and social\-media\-based popularity\. The results were evaluated against independent expert scorecards and showed good agreement\.

Similarly, Rönnback et al\.\[[12](https://arxiv.org/html/2608.17454#bib.bib6)\]used machine learning to perform large\-scale labeling and classification of large datasets of news providers \(domains\)\. The outputs of their system were human\-interpretable\. Training was based on the GDELT dataset\[[7](https://arxiv.org/html/2608.17454#bib.bib13)\], while evaluation was conducted using a human\-labeled dataset\. They also included an LLM baseline, but it performed worse than a non\-LLM neural network\.

LLMs have also been used for dataset augmentation and synthetic news generation\. Wessel\[[15](https://arxiv.org/html/2608.17454#bib.bib8)\]used LLMs to augment a dataset of bias\-indicating keywords by replacing keywords with generated alternatives\. This approach aims to reduce the effect of “spurious cues” in machine\-learning models\. The author argues that the resulting model is less dependent on the context of the observed keywords\. Tohidi et al\.\[[13](https://arxiv.org/html/2608.17454#bib.bib3)\], on the other hand, used LLMs to demonstrate that generated biased news can affect public opinion\. Their results showed that the way news is presented to readers can influence their perceptions, even when the underlying facts remain unchanged\. This further indicates the need for better ways to address bias and framing when combating disinformation\.

Despite the successful use of LLMs for detecting bias and framing, LLMs have also been shown to carry biases\. Elbouanani et al\.\[[2](https://arxiv.org/html/2608.17454#bib.bib7)\]found experimentally that tone \(sentiment\) classification differs for identical phrases when the political targets in those phrases are substituted\. As a mitigation strategy, they show that replacing politician names with fictitious ones reduces bias during sentiment classification\. In this way, the context in which those politicians are mentioned carries more weight in the sentiment classification\.

## IVMethod

In this work, we develop a media\-bias analysis pipeline that tracks mentions of people in news articles and measures their sentiment polarization, or tone \(Fig\.[1](https://arxiv.org/html/2608.17454#S4.F1)\)\. The tracked news articles are written in Albanian, a low\-resource language\.

To the best of our knowledge, there is no widely used state\-of\-the\-art NER toolkit for Albanian, and the same holds for sentiment analysis\. Most previous work consists of scholarly experiments involving the creation of small\-scale, human\-annotated datasets\[[4](https://arxiv.org/html/2608.17454#bib.bib15),[5](https://arxiv.org/html/2608.17454#bib.bib14)\]or fine\-tuned language models such as XLM\-RoBERTa\[[8](https://arxiv.org/html/2608.17454#bib.bib16)\]\. Therefore, using LLMs to tackle these tasks may offer practical benefits\.

Fig\. 1:Overview of the proposed media\-bias analysis pipeline\.For our experiments, we used a dataset of 8,358 Albanian news articles from GDELT\[[7](https://arxiv.org/html/2608.17454#bib.bib13)\], published in April 2026 \(Table[III](https://arxiv.org/html/2608.17454#S4.T3)\)\. To detect potential bias toward specific topics or events, the incoming news items are grouped into topics using a simple TF\-IDF and k\-means approach\. We then identify events within these topics using TF\-IDF in combination with cosine similarity and time windows\. Each news item, identified by a unique URL, is enriched with NER and sentiment\-analysis outputs using Gemma 4111[https://ai\.google\.dev/gemma](https://ai.google.dev/gemma), a local LLM\.

TABLE III:News Dataset DetailsThe pipeline was developed using the Kedro222[https://kedro\.org/](https://kedro.org/)Python framework\. It measures bias and framing by tracking tone variation in topic and event coverage, as well as tonal bias in mentions of people\. It also computes possible gatekeeping indicators by analyzing which people, topics, or events are repeatedly covered or omitted across news sources\.

## VExperiments and Results

In this section, we describe the experiments and their results\. Our aim is to demonstrate the feasibility of implementing such a pipeline by presenting potential use cases\.

### V\-ANER and Sentiment Enrichment

Our experiments were run on a cloud instance with an NVIDIA A10 GPU \(24 GB\), 30 vCPUs, and 200 GiB of RAM\. We relied on the local LLMGemma 4for NER and sentiment\-analysis enrichment\. The model temperature was set to 0\.0 to obtain deterministic outputs, and generation was limited to 250 tokens\. Requests used a 90\-second timeout with one retry in case of failure\. The prompts instructed the model to extract sentiment and NER data from the full text of each news article and return the output in JSON format\.

Listings[1](https://arxiv.org/html/2608.17454#LST1)and[2](https://arxiv.org/html/2608.17454#LST2)show the two prompts used for NER and sentiment enrichment\. The output of the first version showed inconsistencies between the sentiment labels \(positive, negative, neutral\) and their corresponding scores\. The second version addresses this issue by adding explicit validation rules\.

Youareaninformationextractionassistant\.

ReturnJSONonlywiththisexactschema:

\{

"sentiment":\{"label":"positive\|neutral\|negative","score":numberbetween\-1and1\},

"entities":\{

"PER":\[\{"original":string,"canonical\_en":string\}\],

"ORG":\[\{"original":string,"canonical\_en":string\}\],

"LOC":\[\{"original":string,"canonical\_en":string\}\]

\}

\}\.

Rules:canonical\_enmustbeanEnglishcanonicalform,keeporiginalastextsurfaceformfromarticle,omituncertainentities,noextrakeys,nomarkdown\.

ARTICLE:

\{article\_text\}

Listing 1:Prompt v1 for NER and sentiment enrichmentYouareaninformationextractionassistant\.

ReturnJSONonlywiththisexactschema:

\{

"sentiment":\{"label":"positive\|neutral\|negative","score":numberbetween\-1and1\},

"entities":\{

"PER":\[\{"original":string,"canonical\_en":string\}\],

"ORG":\[\{"original":string,"canonical\_en":string\}\],

"LOC":\[\{"original":string,"canonical\_en":string\}\]

\}

\}\.

Rules:

1\.Sentimentscoremustrangefrom\-1\.0\(verynegative\)to1\.0\(verypositive\)\.

2\.LabelMUSTmatchscore:use’negative’ifscore<\-0\.3,’positive’ifscore\>0\.3,’neutral’otherwise\.

3\.canonical\_enmustbeanEnglishcanonicalform,keeporiginalastextsurfaceformfromarticle\.

4\.Omituncertainentities,noextrakeys,nomarkdown,andnoreasoningtext\.

ARTICLE:

\{article\_text\}

Listing 2:Prompt v2 for NER and sentiment enrichmentPrompt v2 was slower and produced fewer labeled articles for both sentiment and NER \(Table[IV](https://arxiv.org/html/2608.17454#S5.T4)\)\. The inconsistency rate between sentiment labels and scores in the first version was 8\.53%\. The gain in consistency did not justify the doubled execution time, and the remaining inconsistencies can be addressed in a cleaning step\.

TABLE IV:LLM Enrichment Versions ComparisonIn the absence of a gold\-standard test dataset, we evaluated the quality of the LLM\-based annotations by measuring their agreement with the annotations provided by GDELT\. These annotations are also generated by an automated NLP pipeline\. The NER evaluation was based only on the PERSON category because our pipeline focuses on mentions of people\. For this evaluation, we considered only articles labeled by both GDELT and the LLM\-based annotator\. We used the following evaluation metrics\.

For sentiment, we report the number of comparable articles and the label agreement rate, defined as the percentage of articles where the LLM and GDELT sentiment labels match\. For NER, we compare URL–entity\-type pairs and report three macro\-averaged agreement rates: one from the LLM side, one from the GDELT side, and a balanced score that averages both perspectives\.

Overall, the agreement rates in Table[V](https://arxiv.org/html/2608.17454#S5.T5)and Table[VI](https://arxiv.org/html/2608.17454#S5.T6)show moderate alignment between the LLM\-based annotations and the GDELT annotations\. For sentiment, Prompt v2 achieves a slightly higher label agreement rate than Prompt v1\. For NER, the LLM identifies more person\-entity pairs than GDELT\. At the same time, the high GDELT\-side agreement shows that entities identified by GDELT are also found by the LLM to a large degree\.

Rather than contradicting the existing data, the LLM actually validates it\. It recovers the majority of GDELT’s person mentions while successfully identifying additional ones the source overlooked\. These additional pairs should not be treated as automatically correct without manual validation, but when lacking a better alternative, they can still be used for media\-bias analysis because missed person mentions can reduce the quality of source\-level and person\-level tone comparisons\. Because the analysis focuses on people mentioned in the news, less frequent mentions can still be manually verified in the later stages of the pipeline\.

TABLE V:Sentiment Evaluation Against GDELTTABLE VI:People\-Only NER Agreement Rates Against GDELTWhile the agreement rates in Table[VI](https://arxiv.org/html/2608.17454#S5.T6)measure overlap from both the LLM and GDELT perspectives for person\-name identification, we also report precision, recall, and F1 scores to summarize the same comparison in a more standard information extraction format\. The results are very similar across prompt versions\. Recall is higher than precision because the LLM\-based person recognizer identifies most names also found in the GDELT dataset while extracting additional names\.

TABLE VII:People\-Only NER Precision and Recall Against GDELTThe evaluation results suggest that, for low\-resource languages such as Albanian, LLM\-based annotation can provide a useful starting point when no gold\-standard dataset or well\-trained alternative tools are available for NER and sentiment extraction\. GDELT is also based on automated annotation, so these results should be read as a comparison with an existing large\-scale system rather than as a definitive evaluation\. The agreement with GDELT suggests that the LLM outputs are generally consistent with an established reference, while also identifying additional entities that may be useful for bias analysis\.

Furthermore, although Prompt v2 reduces inconsistencies between sentiment labels and scores, it does so at the cost of slower execution and does not substantially improve the evaluation results\. Therefore, we decided to continue with the dataset labeled using Prompt v1\.

### V\-BMedia Bias and Framing Analysis

Table[VIII](https://arxiv.org/html/2608.17454#S5.T8)presents an excerpt from the source\-level framing and bias profiles\. The table summarizes how frequently each source uses positive, neutral, or negative framing, together with aggregate sentiment and bias measures\. The reported measures are defined as follows\.

- •Pos\. / Neu\. / Neg\.— share of the source’s labeled articles classified as positive, neutral, and negative sentiment, respectively\.
- •Mean score— average raw sentiment score across all labeled articles of the source; positive values indicate favorable coverage, while negative values indicate critical coverage\.
- •Avg\. bias— source\-level framing bias, computed as the average of per\-topic framing bias scores \(positive rate minus negative rate for each topic\), then averaged across all topics covered by the source\.
- •Bias vs\. corpus— deviation of the source’s average bias from the corpus\-wide baseline \(baseline=−0\.192=\-0\.192in this study\)\. A positive value indicates the source frames topics more favorably than the corpus average; a negative value indicates systematically more critical coverage\.

The results are broadly consistent with the generally perceived editorial positions of the these news sources in the Albanian news landscape\. This analysis can help highlight differences in how news providers frame the same topics\.

TABLE VIII:Aggregate Source Framing and Bias ProfilesCorpus baseline = \-0\.192; only sources with at least 10 sentiment labeled articles are included\.

Table[IX](https://arxiv.org/html/2608.17454#S5.T9)shows an excerpt of a person\-tone bias analysis\. The table reveals how different news sources frame specific people in their coverage, showing whether sources systematically portray particular individuals more favorably or critically\. For each person, only the lowest and highest tone\-balance rows across different sources are displayed, illustrating the range of framing\. The reported measures are defined as follows\.

- •Source— the news source that mentioned the person\.
- •Mentioned articles— number of labeled articles from that source in which the person was mentioned\.
- •Mean score— average raw sentiment score across all mentions of the person in that source’s articles; positive values indicate favorable coverage, negative values indicate critical coverage\.
- •Tone balance— framing balance for the person at that source, computed as positive rate minus negative rate across all mentions; ranges from−1\-1\(uniformly negative\) to\+1\+1\(uniformly positive\)\.
- •Pos\. / Neg\.— share of mentions of the person in that source’s articles classified as positive or negative sentiment, respectively\.

This analysis can be used to compare how the same public figure is framed across news sources\. For example, a news aggregator could surface cases where a person receives strongly positive coverage in one source and strongly negative coverage in another, helping readers identify possible framing differences around the same actor\. While our practical testing focuses on well\-known regional and international players to show effective local tracking, the basic extraction method works for any target and can easily handle any group of entities\.

As noted in\[[2](https://arxiv.org/html/2608.17454#bib.bib7)\], pre\-trained models may carry biases when processing mentions of politicians in news articles\. However, the results can still serve as a useful baseline, and such biases can be mitigated through name anonymization or user\-provided feedback\.

TABLE IX:Person\-Tone Extremes by Person Across News SourcesExcerpt showing minimum and maximum tone balance per person; person\-source pairs with≥5\\geq 5mentions are included\.

Table[X](https://arxiv.org/html/2608.17454#S5.T10)presents event\-level gatekeeping and coverage indicators\. It shows how widely events are covered across news sources and how concentrated that coverage is\. This approach is similar to those applied by Wang et al\.\[[14](https://arxiv.org/html/2608.17454#bib.bib4)\]and Kumar et al\.\[[10](https://arxiv.org/html/2608.17454#bib.bib5)\]\. The reported measures are defined as follows\.

- •Event— event identifier, sorted by article count in descending order\.
- •Articles— total number of articles assigned to that event\.
- •Covering Sources— number of distinct news sources that covered the event\.
- •Omitting Sources— number of active sources in the corpus that did not cover the event, computed as total active sources minus covering sources\.
- •Gatekeeping Score— structural selectivity index defined as1−covering sourcestotal active sources1\-\\frac\{\\text\{covering sources\}\}\{\\text\{total active sources\}\}; higher values indicate narrower dissemination and stronger gatekeeping\.
- •Framing Polarity— event\-level sentiment balance computed as positive rate minus negative rate across labeled articles for that event; positive values indicate more favorable framing, negative values indicate more critical framing\.

This analysis can be used to identify events that receive broad attention and events that are covered by only a small set of sources\. For example, a news aggregator could flag events with high gatekeeping scores and compare their framing polarity across sources, helping readers notice possible gaps in coverage or differences in tone\.

TABLE X:Gatekeeping and Coverage Indicators for Major EventsRows are ranked by article count, then by source count\.

## VIDiscussion

The comparison with GDELT should be interpreted with care\. GDELT is not a human\-labeled gold standard, but another automated annotation system\. Therefore, differences between our results and GDELT do not automatically mean that one side is wrong\. The moderate agreement scores show that the two systems often overlap, but also capture different parts of the text\. In particular, the LLM found many person mentions that were not present in the GDELT output, which is useful for bias analysis because missing a public figure can weaken later source and tone comparisons\.

The prompt comparison also shows a practical trade\-off\. Prompt v2 reduced inconsistencies between sentiment labels and scores, but it also processed fewer articles and took longer to run\. This suggests that adding strict validation rules directly to the prompt can make the task harder for a local model\. For a continuous pipeline, Prompt v1 is therefore more practical: it produces broader coverage, runs faster, and remaining inconsistencies can be handled afterward with simple rule\-based checks\.

Another useful benefit of LLM\-based annotation is that the model helps clean up messy news data\. In multilingual and low\-resource situations, raw article text often has inconsistent names, different spellings, formatting errors, and mixed language forms\. A traditional process would need a lot of manual cleaning before entity and sentiment analysis could be done reliably\. In contrast, the LLM can often turn these surface differences into more consistent entity and sentiment results, lowering the amount of preparation needed before analysis\.

The person\-tone results should also be read with caution\. Large tone differences across sources may reflect real editorial framing, but they may also be affected by biases already present in the model\. This is especially important for political figures, where the model may have learned associations before seeing the article being analyzed\. Future versions of the pipeline should test mitigation strategies such as replacing politician names with neutral placeholders\[[2](https://arxiv.org/html/2608.17454#bib.bib7)\]and adding human feedback for disputed cases\.

## VIIConclusion

In this paper, we presented an end\-to\-end NLP pipeline that uses local LLMs and the Kedro framework to track media bias, framing, and gatekeeping in online news\. We applied the pipeline to 8,358 Albanian news articles from April 2026 and showed that a general\-purpose open\-weights model such as Gemma 4 can extract useful semantic signals in a low\-resource setting without a large local training corpus\. The evaluation showed that stricter prompt\-level validation improves label\-score consistency and JSON schema compliance, but reduces processing speed and annotation coverage\. For this reason, the simpler prompt, combined with external rule\-based data cleaning, is the more practical choice for continuous ingestion pipelines\.

Given the relatively low coverage rates and the computational cost of extracting NER and sentiment information from news articles, future work will train lighter\-weight machine\-learning models using LLM annotations and crowdsourced data\.

The media\-bias and framing analysis in Section[V\-B](https://arxiv.org/html/2608.17454#S5.SS2)shows how source\-level profiles summarize general framing tendencies, person\-level tone balances show how public figures are treated across outlets, and event\-level indicators show how widely stories are covered\. Taken together, these views provide a practical basis for comparing news sources and for building tools that help readers inspect coverage differences more easily\.

These results also show the practical role of LLM\-based enrichment in a news\-analysis workflow\. The goal is not to replace editorial judgment or expert review, but to reduce the amount of material that must be inspected manually by turning large article collections into clearer signals\. This is particularly useful in low\-resource media settings, where continuous monitoring is difficult and language\-specific NLP tools are still limited\.

For this reason, LLM annotations are best understood here as a fast bootstrapping layer rather than as a state\-of\-the\-art alternative to human validation\. They provide a useful baseline from which similar media\-bias analyses can be started quickly, especially when no manually normalized dataset is available\. Since most people mentioned in news articles are public figures, a later human editorial validation step is also feasible: editors can review a relatively constrained set of extracted names, aliases, and disputed tone assignments instead of annotating the full article collection from scratch\.

In addition to providing dashboard visualizations, we plan to create an MCP server that would make the media\-bias and framing functions available to AI\-powered systems\. We believe that a continuous media\-bias monitoring pipeline is most useful when integrated into an existing system, such as a news aggregator, where it can show readers polarization indicators or surface events covered from different angles by other news providers\.

## References

- \[1\]\(2025\)Automated Detection of Media Bias Using Artificial Intelligence and Natural Language Processing: A Systematic Review\.Social Science Computer Review,pp\. 08944393251331510\(en\)\.External Links:ISSN 0894\-4393, 1552\-8286,[Link](https://journals.sagepub.com/doi/10.1177/08944393251331510),[Document](https://dx.doi.org/10.1177/08944393251331510)Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p2.1)\.
- \[2\]A\. Elbouanani, E\. Dufraisse, and A\. Popescu\(2025\)Analyzing Political Bias in LLMs via Target\-Oriented Sentiment Classification\.InFindings of the Association for Computational Linguistics: ACL 2025,W\. Che, J\. Nabende, E\. Shutova, and M\. T\. Pilehvar \(Eds\.\),Vienna, Austria,pp\. 15476–15505\.External Links:ISBN 979\-8\-89176\-256\-5,[Link](https://aclanthology.org/2025.findings-acl.799/),[Document](https://dx.doi.org/10.18653/v1/2025.findings-acl.799)Cited by:[TABLE II](https://arxiv.org/html/2608.17454#S2.T2.2.5.3.1.1),[§III](https://arxiv.org/html/2608.17454#S3.p7.1),[§V\-B](https://arxiv.org/html/2608.17454#S5.SS2.p7.1),[§VI](https://arxiv.org/html/2608.17454#S6.p4.1)\.
- \[3\]K\. Hoxha\(2026\)Real Time Media Bias and Framing Detection using LLMs\.InBook of Abstracts Scientific\-practical Conference Innovations in Publishing, Printing and Multimedia Technologies 2026,Kaunas, Lituania\.Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p1.1)\.
- \[4\]F\. Kadriu, D\. Murtezaj, F\. Gashi, L\. Ahmedi, A\. Kurti, and Z\. Kastrati\(2022\)Human\-annotated dataset for social media sentiment analysis for Albanian language\.Data in Brief43,pp\. 108436\(en\)\.External Links:ISSN 23523409,[Link](https://linkinghub.elsevier.com/retrieve/pii/S2352340922006333),[Document](https://dx.doi.org/10.1016/j.dib.2022.108436)Cited by:[§IV](https://arxiv.org/html/2608.17454#S4.p2.1)\.
- \[5\]N\. Kote, K\. Kalliri, K\. Kalliri, A\. Haveriku, B\. Muraku, and E\. K\. Meçe\(2025\)NER for Albanian Language: A Manually Annotated Corpus and Machine Learning Models\.InAdvanced Information Networking and Applications,L\. Barolli \(Ed\.\),Vol\.247,pp\. 153–165\(en\)\.Note:Series Title: Lecture Notes on Data Engineering and Communications TechnologiesExternal Links:ISBN 978\-3\-031\-87768\-1 978\-3\-031\-87769\-8,[Link](https://link.springer.com/10.1007/978-3-031-87769-8_14),[Document](https://dx.doi.org/10.1007/978-3-031-87769-8%5F14)Cited by:[§IV](https://arxiv.org/html/2608.17454#S4.p2.1)\.
- \[6\]D\. M\. J\. Lazer, M\. A\. Baum, Y\. Benkler, A\. J\. Berinsky, K\. M\. Greenhill, F\. Menczer, M\. J\. Metzger, B\. Nyhan, G\. Pennycook, D\. Rothschild, M\. Schudson, S\. A\. Sloman, C\. R\. Sunstein, E\. A\. Thorson, D\. J\. Watts, and J\. L\. Zittrain\(2018\)The science of fake news\.Science359\(6380\),pp\. 1094–1096\.External Links:[Link](https://www.science.org/doi/abs/10.1126/science.aao2998),[Document](https://dx.doi.org/10.1126/science.aao2998)Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p4.1)\.
- \[7\]K\. Leetaru and P\. A\. Schrodt\(2013\)GDELT: global data on events, location, and tone, 1979–2012\.InProceedings of the International Studies Association Annual Convention,San Diego, CA,pp\. April 2013\.Cited by:[§III](https://arxiv.org/html/2608.17454#S3.p5.1),[§IV](https://arxiv.org/html/2608.17454#S4.p3.1)\.
- \[8\]K\. P\. Nuci, P\. Landes, and B\. Di Eugenio\(2024\)RoBERTa Low Resource Fine Tuning for Sentiment Analysis in Albanian\.InProceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation \(LREC\-COLING 2024\),N\. Calzolari, M\. Kan, V\. Hoste, A\. Lenci, S\. Sakti, and N\. Xue \(Eds\.\),Torino, Italia,pp\. 14146–14151\.External Links:[Link](https://aclanthology.org/2024.lrec-main.1233/)Cited by:[§IV](https://arxiv.org/html/2608.17454#S4.p2.1)\.
- \[9\]L\. Qin, Q\. Chen, X\. Feng, Y\. Wu, Y\. Zhang, Y\. Li, M\. Li, W\. Che, and P\. S\. Yu\(2026\)Large language models meet NLP: a survey\.Frontiers of Computer Science20\(11\),pp\. 2011361\(en\)\.External Links:ISSN 2095\-2236,[Link](https://doi.org/10.1007/s11704-025-50472-3),[Document](https://dx.doi.org/10.1007/s11704-025-50472-3)Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p7.1)\.
- \[10\]P\. K\. R, B\. Mohan G, A\. R\. S, and J\. Y\(2025\)Sentinel: An Integrated Framework for News Sentiment Analysis, Bias Detection, and Coverage Comparison Using LLMs\.In2025 Fourth International Conference on Smart Technologies, Communication and Robotics \(STCR\),Sathyamangalam, India,pp\. 1–6\.External Links:ISBN 979\-8\-3503\-5753\-0,[Link](https://ieeexplore.ieee.org/document/11019897/),[Document](https://dx.doi.org/10.1109/STCR62650.2025.11019897)Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p1.1),[TABLE I](https://arxiv.org/html/2608.17454#S2.T1.2.5.3.1.1),[TABLE II](https://arxiv.org/html/2608.17454#S2.T2.2.3.3.1.1),[§III](https://arxiv.org/html/2608.17454#S3.p3.1),[§V\-B](https://arxiv.org/html/2608.17454#S5.SS2.p8.1)\.
- \[11\]S\. Raza and C\. Ding\(2022\)News recommender system: a review of recent progress, challenges, and opportunities\.Artificial Intelligence Review55\(1\),pp\. 749–800\(en\)\.External Links:ISSN 1573\-7462,[Link](https://doi.org/10.1007/s10462-021-10043-x),[Document](https://dx.doi.org/10.1007/s10462-021-10043-x)Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p1.1)\.
- \[12\]R\. Rönnback, C\. Emmery, and H\. Brighton\(2025\)Automatic large\-scale political bias detection of news outlets\.PLOS ONE20\(5\),pp\. e0321418\(en\)\.External Links:ISSN 1932\-6203,[Link](https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0321418),[Document](https://dx.doi.org/10.1371/journal.pone.0321418)Cited by:[TABLE I](https://arxiv.org/html/2608.17454#S2.T1.2.4.3.1.1),[§III](https://arxiv.org/html/2608.17454#S3.p5.1)\.
- \[13\]A\. Tohidi, S\. Haider, and D\. J\. Watts\(2025\)Rethinking news framing with large language models\.Scientific Reports15\(1\),pp\. 45592\(en\)\.External Links:ISSN 2045\-2322,[Link](https://www.nature.com/articles/s41598-025-29519-9),[Document](https://dx.doi.org/10.1038/s41598-025-29519-9)Cited by:[TABLE I](https://arxiv.org/html/2608.17454#S2.T1.2.3.3.1.1),[TABLE II](https://arxiv.org/html/2608.17454#S2.T2.2.2.3.1.1),[TABLE II](https://arxiv.org/html/2608.17454#S2.T2.2.3.3.1.1),[§III](https://arxiv.org/html/2608.17454#S3.p6.1)\.
- \[14\]J\. S\. Wang, S\. Haider, A\. Tohidi, A\. Gupta, Y\. Zhang, C\. Callison\-Burch, D\. Rothschild, and D\. J\. Watts\(2025\)Media Bias Detector: Designing and Implementing a Tool for Real\-Time Selection and Framing Bias Analysis in News Coverage\.InProceedings of the 2025 CHI Conference on Human Factors in Computing Systems,Yokohama Japan,pp\. 1–27\(en\)\.External Links:ISBN 979\-8\-4007\-1394\-1,[Link](https://dl.acm.org/doi/10.1145/3706598.3713716),[Document](https://dx.doi.org/10.1145/3706598.3713716)Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p1.1),[TABLE I](https://arxiv.org/html/2608.17454#S2.T1.2.2.3.1.1),[TABLE II](https://arxiv.org/html/2608.17454#S2.T2.2.2.3.1.1),[TABLE II](https://arxiv.org/html/2608.17454#S2.T2.2.4.3.1.1),[§II](https://arxiv.org/html/2608.17454#S2.p2.1),[§III](https://arxiv.org/html/2608.17454#S3.p2.1),[§V\-B](https://arxiv.org/html/2608.17454#S5.SS2.p8.1)\.
- \[15\]M\. Wessel\(2025\)LLM\-based Adversarial Dataset Augmentation for Automatic Media Bias Detection\.InProceedings of the 9th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature \(LaTeCH\-CLfL 2025\),A\. Kazantseva, S\. Szpakowicz, S\. Degaetano\-Ortlieb, Y\. Bizzoni, and J\. Pagel \(Eds\.\),Albuquerque, New Mexico,pp\. 19–24\.External Links:ISBN 979\-8\-89176\-241\-1,[Link](https://aclanthology.org/2025.latechclfl-1.3/),[Document](https://dx.doi.org/10.18653/v1/2025.latechclfl-1.3)Cited by:[§I](https://arxiv.org/html/2608.17454#S1.p3.1),[§III](https://arxiv.org/html/2608.17454#S3.p6.1)\.
- \[16\]J\. Ye and S\. Skiena\(2019\)MediaRank: Computational Ranking of Online News Sources\.InProceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining,Anchorage AK USA,pp\. 2469–2477\(en\)\.External Links:ISBN 978\-1\-4503\-6201\-6,[Link](https://dl.acm.org/doi/10.1145/3292500.3330709),[Document](https://dx.doi.org/10.1145/3292500.3330709)Cited by:[§III](https://arxiv.org/html/2608.17454#S3.p4.1)\.

Similar Articles

Does Topic Sentiment Cause Perceived Ideology? Comparing Human and LLM Annotations in Political News Articles

arXiv cs.CL

This paper investigates whether topic sentiment causally affects perceived political ideology in news articles, comparing human annotations from AllSides with those from LLMs including GPT-4o-mini and Llama-3.3-70B. It finds that fine-tuned GPT-4o-mini exhibits a spurious sentiment-ideology coupling not present in human judgments, highlighting risks of using LLM annotations as proxies in causal analyses.

Polarization by Default: Auditing Recommendation Bias in LLM-Based Content Curation

arXiv cs.CL

This paper presents a large-scale audit of recommendation biases in LLM-based content curation across OpenAI, Anthropic, and Google using 540,000 simulated selections from Twitter/X, Bluesky, and Reddit data. The study finds that LLMs systematically amplify polarization, exhibit distinct toxicity handling trade-offs, and show significant political leaning bias favoring left-leaning authors despite right-leaning plurality in datasets.