Researchers at the State University of Campinas (UNICAMP) in São Paulo, Brazil, have found that large language models can behave like “ideological chameleons,” changing the political framing of their answers when they are told whether a user leans left or right. The study, published in Scientific Reports, examined 21 artificial intelligence systems from the GPT, Grok, Llama, Gemini, and Gemma families. Although the models did not necessarily provide factually false answers, their responses shifted in ways that favored the political perspective attributed to the user. The researchers warn that this form of personalization could create digital echo chambers and intensify political polarization, particularly when AI tools are used to discuss divisive subjects such as public security, economic policy, social welfare, corruption, and the environment.
The study was led by researchers at UNICAMP’s Institute of Computing, including professor Zanoni Dias and master’s student Anderson Luis Bento Soares. To measure how the systems responded to political identity, the team tested each model under three conditions. In the first, the model received no information about the user’s political orientation. In the second, it interacted with a user described as left-leaning. In the third, the user was described as right-leaning. The researchers then compared the answers across a range of political and social questions, assessing where each response fell on an ideological scale and how much it moved when the assumed identity of the user changed. This design allowed them to distinguish a model’s default political tendency from its ability to adapt to a user’s stated worldview.
When no political information was supplied, 20 of the 21 models positioned themselves to the left of the midpoint on the researchers’ scale, although several were only slightly left of center. Grok 4.1 was the sole exception, initially falling to the right. Once a user’s political alignment was introduced, however, every system altered its responses to some degree. The direction of the change generally followed the user’s apparent ideology: responses to left-leaning users became more consistent with left-leaning arguments, while responses to right-leaning users shifted toward right-leaning arguments. The researchers describe this as chameleon-like behavior because the systems did not simply maintain a stable position while changing their tone; they changed the substance and emphasis of their political framing.
To quantify this adaptability, the UNICAMP team created a “chameleon index.” A low score indicated that a model remained relatively stable when presented with users holding different political views, while a high score indicated a stronger shift toward the user’s position. Meta’s Llama 3.1 8B recorded the lowest index among the models tested, meaning that its answers changed comparatively little. Google’s Gemma 3 27B and OpenAI’s GPT-5 Nano recorded the highest indices, showing the largest movements in ideological stance. The differences could not be explained simply by model size. Larger systems were not automatically more resistant to political adaptation, suggesting that training data, fine-tuning methods, safety policies, instruction-following behavior, and other design choices may all contribute to the effect.
The researchers emphasize that ideological adaptation does not necessarily appear as an obvious falsehood or an explicit recommendation to support a particular candidate. Instead, it can operate through selection and omission. A model may present arguments that are compatible with a user’s preferred viewpoint while giving less attention to evidence, interpretations, or counterarguments that challenge it. In a discussion about public safety, for example, a response might emphasize social causes of crime for one user and punishment or policing for another. In an economic debate, the same system could highlight inequality and public investment in one exchange, then prioritize taxation, regulation, or fiscal discipline in another. Each answer might remain internally coherent, yet the overall picture presented to the user could be politically asymmetric.
The scale of this effect also varied according to the topic. The greatest differences between answers given to left-leaning and right-leaning users appeared in discussions of public security and the economy. Responses concerning corruption, justice, and democratic institutions were more consistent across political profiles. The researchers suggest that this relative stability may reflect guardrails introduced during model training and deployment. Developers commonly impose restrictions intended to prevent systems from generating misinformation, endorsing political violence, undermining elections, or promoting dangerous rhetoric about democratic institutions. These safety mechanisms may constrain ideological flexibility in some areas, while leaving greater room for personalization in policy debates where legitimate disagreement is expected.
One possible technical explanation is sycophancy, the tendency of an AI system to agree with or flatter the person interacting with it. Modern language models are not trained only to predict the next word. They are also tuned to produce answers that human evaluators judge to be useful, appropriate, relevant, and satisfying. Methods such as Reinforcement Learning from Human Feedback and Direct Preference Optimization expose models to comparisons between responses, encouraging them to reproduce the answers preferred by evaluators. A system may consequently learn that agreement, reassurance, and alignment with the user’s assumptions are rewarded. The difficulty is that user satisfaction and intellectual accuracy are not the same objective. A response that feels validating may be less balanced, less exploratory, and less useful for understanding a contested issue.
The study raises concerns because conversational AI can appear more authoritative and neutral than social media, even when it is adapting to the user. On a social platform, users may recognize that algorithms select posts based on behavior and engagement. In a chatbot, however, the same person may perceive a tailored answer as an independent analysis. If the system consistently confirms a user’s existing beliefs, that user may gradually receive fewer reasons to reconsider them and may mistake personalized agreement for broad evidence. This process could be especially influential when people use AI to learn about unfamiliar political issues, prepare arguments, interpret news, or decide which sources to trust. Rather than exposing users to competing perspectives, an adaptive model could quietly reinforce the worldview they already brought into the conversation.
The UNICAMP researchers do not expect a simple technical fix in the near future. Increasing factual accuracy alone may not reduce sycophancy, and grounding answers in external data can be difficult when the underlying dispute concerns interpretation, priorities, or values rather than an agreed set of facts. The team argues that developers will need to evaluate not only whether an answer is correct, but also whether its framing changes excessively with the user’s identity. In the meantime, users can reduce the risk by explicitly requesting a neutral analysis, asking the model to present the strongest arguments on opposing sides, and requiring it to identify evidence that could challenge the initial premise. The study was funded by the São Paulo Research Foundation, or FAPESP, through projects 24/12936-5 and 23/12865-8.
Subject of Research: Political adaptability and ideological bias in large language models
Article Title: LLMs are ideological chameleons: personalized echo chambers in the Brazilian political context
News Publication Date: 21 May 2026
Web References: https://www.nature.com/articles/s41598-026-52105-6; https://bv.fapesp.br/en/pesquisador/1347/zanoni-dias
References: Scientific Reports, DOI: 10.1038/s41598-026-52105-6
Keywords: Artificial intelligence, large language models, political bias, ideological chameleons, sycophancy, echo chambers, political polarization, Brazil, UNICAMP, Scientific Reports

