Exploring Language Model Generalization in Low-Resource Extractive QA
Saptarshi Sengupta, Wenpeng Yin, Preslav Nakov, Shreya Ghosh, Suhang Wang
TL;DR
This work investigates zero-shot generalization of extractive QA to closed domains (e.g., medicine and law) using a broad set of architectures across five datasets. It jointly analyzes model factors (answer length, polysemy, architecture, and tokenization) and dataset factors (similarity to SQuAD and dataset perplexity) to explain cross-domain failures. Key findings show that scaling alone does not ensure transfer, and mismatches in answer-length distributions, domain sense discrimination, tokenization, and dataset similarity drive performance gaps; aspects like SentencePiece Unigram tokenization and whole-word masking can mitigate some of these gaps. The results offer actionable guidance for building and evaluating cross-domain EQA systems, highlighting directions for tokenization choices, prompt design, and leveraging dataset similarity as a predictor of transfer success.
Abstract
In this paper, we investigate Extractive Question Answering (EQA) with Large Language Models (LLMs) under domain drift, i.e., can LLMs generalize to domains that require specific knowledge such as medicine and law in a zero-shot fashion without additional in-domain training? To this end, we devise a series of experiments to explain the performance gap empirically. Our findings suggest that: (a) LLMs struggle with dataset demands of closed domains such as retrieving long answer spans; (b) Certain LLMs, despite showing strong overall performance, display weaknesses in meeting basic requirements as discriminating between domain-specific senses of words which we link to pre-processing decisions; (c) Scaling model parameters is not always effective for cross domain generalization; and (d) Closed-domain datasets are quantitatively much different than open-domain EQA datasets and current LLMs struggle to deal with them. Our findings point out important directions for improving existing LLMs.
