Master's Thesis

Exploring Large Language Models’ Internal Mechanisms for Handling Ambiguous Pronouns

Rodrigo Souza Lopes — 2026

Key information

Authors:

Rodrigo Souza Lopes (Rodrigo Souza Lopes)

Supervisors:

Chrysoula Zerva

Published in

May 26, 2026

Abstract

Large Language Models (LLMs) can produce confident answers even when the input is ambiguous or when the evidence supporting an answer is weak. This thesis studies this problem in pronoun coreference resolution, where a model must decide which entity a pronoun refers to. The main goal is to investigate whether features extracted by Sparse AutoEncoders (SAEs) can reveal internal signals associated with model uncertainty and behaviour on ambiguous and difficult examples, and whether these signals can support refusal decisions. Using the KnowRef-60K dataset, we construct ambiguous and disambiguated variants of the examples, as well as accuracy-based splits that distinguish examples in which the Gemma-2-2B model is more or less reliable. We extract residual-stream activations with pretrained SAEs and compare feature activation frequencies across different layers and token positions. We also evaluate the model's performance when selected features are used as refusal signals. The results show that the features with the largest activation differences appear mainly at entity-related positions. However, many effects are split-dependent and weaken when evaluated with stricter accuracy-based controls. Features selected from low- versus high-accuracy comparisons are not effective direct refusal signals, while features that distinguish between correct and wrong entities can improve post-refusal accuracy, at the cost of refusing many examples. Overall, SAEs expose some internal structure related to coreference accuracy and uncertainty, but these signals remain limited and context-dependent.

Publication details

Authors in the community:

Fields of Science and Technology (FOS)

electrical-engineering-electronic-engineering-information-engineering - Electrical engineering, electronic engineering, information engineering

Publication language (ISO code)

eng - English

Rights type:

Embargoed access

Date available:

April 30, 2027

Institution name

Instituto Superior Técnico