← Latest papers
💬 NLP

QSTN: A Modular Framework for Robust Questionnaire Inference with Large Language Models

This paper introduces QSTN, an open-source Python framework with a no-code interface designed to systematically generate and robustly evaluate large-scale LLM-based questionnaire responses, demonstrating that prompt structure and generation methods significantly impact alignment with human answers while reducing compute costs.

Original authors: Maximilian Kreutner, Jens Rupprecht, Georg Ahnert, Ahmed Salem, Markus Strohmaier

Published 2026-02-20
📖 5 min read🧠 Deep dive

Original authors: Maximilian Kreutner, Jens Rupprecht, Georg Ahnert, Ahmed Salem, Markus Strohmaier

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a researcher trying to understand how people feel about politics, or perhaps you need to label thousands of images for a computer vision project. Traditionally, you'd have to hire real humans to fill out surveys or do the labeling. It's expensive, slow, and hard to manage.

Enter Large Language Models (LLMs)—the super-smart AI chatbots. Researchers started using them as "fake humans" to fill out these surveys instantly. But there's a catch: AI is incredibly fragile.

If you ask an AI the same question but change the order of the answers from "A, B, C" to "C, B, A," the AI might give a completely different answer. If you ask it all at once versus one by one, it acts differently. It's like trying to measure the temperature of a room with a thermometer that changes its mind every time you move it three inches to the left.

This is where QSTN (pronounced "Question") comes in. Think of QSTN as a "Swiss Army Knife for AI Surveys."

What is QSTN?

QSTN is a free, open-source toolkit (a set of computer tools) that helps researchers use AI to answer surveys in a way that is robust, reliable, and cheap.

Here is how it works, using some simple analogies:

1. The "Mad Libs" of Survey Design (Prompt Perturbation)

Imagine you are testing a new recipe. If you only taste it once, you might get lucky. But if you taste it with the salt added first, then with the salt added last, then with the salt doubled, you get a true picture of how the recipe works.

QSTN does this for AI. It automatically creates thousands of "versions" of the same survey question:

  • Shuffling the deck: It randomly changes the order of questions so the AI doesn't just guess based on what came last.
  • Changing the labels: It swaps "A, B, C" for "1, 2, 3" or even "Red, Green, Blue" to see if the AI is biased toward the letter "A."
  • Adding typos: It intentionally makes small spelling mistakes to see if the AI gets confused or stays smart.

By running the survey through all these "twists and turns," QSTN tells you: "Is this AI actually smart, or is it just guessing because of how you asked the question?"

2. The "Group Chat" vs. "One-on-One" (Questionnaire Presentation)

How do you ask the AI the questions?

  • The "One-on-One" (Single-Item): You ask Question 1, get an answer, start a brand new conversation, and ask Question 2. The AI has no memory of the first question.
  • The "Group Chat" (Battery): You ask all 10 questions in one big message, and the AI answers them all at once, remembering the context of the previous ones.

QSTN tested this on over 40 million fake survey responses. They found a surprising result: Asking all questions at once (the "Group Chat") often makes the AI act more like a real human and saves a massive amount of money and computer time. It's like asking a friend to write a list of 10 grocery items in one go, rather than calling them 10 separate times to ask for one item each.

3. The "Magic Decoder Ring" (Response Generation)

Sometimes you just want the AI to say "Yes" or "No." But AI loves to ramble. QSTN gives you different "modes" to force the AI to be precise:

  • The "Strict Boss" Mode: Forces the AI to pick only from the allowed options (like a multiple-choice bubble sheet).
  • The "Confidence Meter" Mode: Instead of just picking an answer, the AI tells you the probability of each answer (e.g., "I'm 80% sure it's A, 10% B, 10% C"). This turns out to be incredibly accurate and aligns better with real human data.

Why Should You Care?

Before QSTN, using AI for surveys was like driving a car with no steering wheel—you could go fast, but you couldn't control where you were going.

  • For Researchers: It makes their work reproducible. If they say, "Our AI thinks people like X," QSTN proves they checked if the AI was just biased by the question format.
  • For Everyone Else: It means the data we get from AI simulations is more trustworthy. Whether it's predicting election results or understanding human psychology, QSTN helps ensure the AI isn't just hallucinating answers.

The Best Part?

You don't need to be a coding wizard to use it. The creators built a visual interface (like a website form) where you can upload your survey, click a few buttons to "shake things up" (add perturbations), and hit "Run." It's like having a professional survey lab in your browser, without needing to write a single line of code.

In short: QSTN is the tool that stops AI from being a "diva" that changes its mind based on how you ask, and turns it into a reliable, consistent research assistant.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →