Modello Italia COMARE 0.1

Modello Italia COMARE 0.1 (short: COMARE 0.1) is a LoRA adapter for Mistral-Small-24B-Base-2501 that simulates how an Italian adult with a given socio-demographic and political profile would answer a closed-ended opinion survey question, and gives a short first-person justification in Italian.

It is a research release. It was trained on a single Italian survey fielded in the second half of 2024, with a single seed, and it is meant for studying LLM-based survey simulation ("silicon sampling"), not for replacing real polls.

What the model does

Input: a plain-text prompt (no chat template) with a system line, a first-person profile (age, gender, region, education, work, economic situation, left-right self-placement, party closeness / European election vote), and a survey question with numbered options.

Output: N. Option. Justification (about 50 to 60 words, first person, Italian), then EOS.

The answer distribution can also be read directly from the next-token logits on the option digits 1..K (renormalised over the K options). This is how all the numbers below were computed.

Prompt format

<s>Sei un cittadino italiano con il profilo descritto. Rispondi in prima persona, esprimendo le tue opinioni e i tuoi valori con il tuo modo di parlare.

Sono una donna di 52 anni e vivo in Toscana.

Per quanto riguarda la mia vita: ho il diploma di scuola superiore e lavoro. Dal punto di vista economico, ho un reddito che mi permette di affrontare le spese correnti senza troppi problemi.

Politicamente parlando, mi considero di centro. Non mi sento vicina a nessun partito.

Un intervistatore mi ha fermato oggi per un sondaggio d'opinione nazionale. Mi ha posto questa domanda:

«Quanto è favorevole o contrario/a alla seguente misura? "Vietare la circolazione dei mezzi di trasporto più inquinanti"»

Le opzioni di risposta sono:
1. Completamente favorevole
2. Favorevole
3. Contrario
4. Completamente contrario
5. Non so

Considerando chi sono e cosa penso, la mia risposta onesta è 

Notes:

  • The prompt ends with a trailing space: the answer starts directly with the option digit.
  • Sentences for missing profile fields are simply omitted (the political block was missing in about 4,800 training examples). No names are ever used.
  • The example profile above is synthetic.

Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_id = "mistralai/Mistral-Small-24B-Base-2501"
adapter_id = "EugenioDac/Modello-Italia-COMARE-0.1"

tok = AutoTokenizer.from_pretrained(base_id)
model = AutoModelForCausalLM.from_pretrained(base_id, torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, adapter_id).merge_and_unload()

SYSTEM = ("Sei un cittadino italiano con il profilo descritto. Rispondi in prima persona, "
          "esprimendo le tue opinioni e i tuoi valori con il tuo modo di parlare.")
user = "..."  # profile + question + options, as in the template above
prompt = SYSTEM + "\n\n" + user + " "
ids = tok(prompt, return_tensors="pt").to(model.device)   # BOS added by the tokenizer

# 1) answer distribution over the K options
K = 5
with torch.no_grad():
    logits = model(**ids).logits[0, -1].float()
digit_ids = [tok.convert_tokens_to_ids(str(i)) for i in range(1, K + 1)]
probs = torch.softmax(logits[digit_ids], dim=-1)

# 2) a sampled answer with justification
out = model.generate(**ids, do_sample=True, temperature=0.9, top_p=0.95, max_new_tokens=160)
print(tok.decode(out[0, ids["input_ids"].shape[1]:], skip_special_tokens=True))

Hardware: the base model in bf16 needs about 48 GB of GPU memory (one A100/H100 80GB, or two 24-48 GB GPUs).

Training

Base model mistralai/Mistral-Small-24B-Base-2501 (Apache 2.0)
Method LoRA, r=32, alpha=64, dropout 0.05, targets q/k/v/o/gate/up/down_proj
Data COMARE survey, Italy, H2 2024: about 4,500 respondents, 24 of 29 questions (60,575 train / 1,877 validation examples)
Targets Respondent's real answer + a ~50-word first-person justification distilled from Italia-9B and filtered by an LLM judge (see below)
Loss Answer tokens only; the first token (the option digit) weighted x8
Optimiser AdamW (0.9, 0.95), lr 1e-4, cosine with 3% warm-up, weight decay 0, grad clip 1.0
Batch / epochs Effective batch 32, 2 epochs (3,784 steps), max length 1024, bf16, no quantisation
Compute 1x H100, about 5.5 hours
Seeds 1

Training questions cover: EU membership, climate change (causes, impact, sacrifices, building renovation mandates), military aid to Ukraine, whether nine countries are friends or enemies of Italy (China, Russia, USA, Israel, France, Germany, Poland, Spain, Sweden), same-sex parent families, mandatory pandemic vaccination, taxes on multinationals and high incomes, minimum income, welfare priority for Italians, risk to democracy, abortion, end-of-life.

Held-out questions (never seen in training): the UK as friend/enemy, European integration, ban on the most polluting vehicles, stopping illegal immigration "by any means", Orbán and the EU.

Where the justifications come from. The survey only records the respondents' answers, not their reasons. The first-person justifications in the training targets were generated by Italia-9B (sapienzanlp/modello-italia-9b-bf16, base version), a smaller model trained primarily on Italian, given each respondent's profile and real answer, and then distilled into COMARE 0.1. Italia-9B was chosen because, despite its size, it produced Italian justifications that sounded much more natural and credible for the given profiles than larger general-purpose models. Italia-9B never chose the answer: it was given the respondent's real answer and only wrote the justification. Its outputs were filtered by an LLM judge before training; 99.4% of the training rows have a justification.

Evaluation

Metrics: Jensen-Shannon divergence (JSD) between predicted and real answer distributions, nationally and within demographic/political groups ("group JSD"), log-loss and accuracy on individual answers. Lower JSD is better.

Known questions, new respondents (10,905 cases)

JSD national JSD group log-loss acc.
Base model, zero-shot 0.045 0.071 1.312 0.363
Marginal of training respondents 0.001 0.023 1.192 0.437
COMARE 0.1 0.001 0.015 1.150 0.464

New questions (4 held-out questions with a "sister" question in training, 11,519 cases)

JSD national JSD group log-loss acc.
Base model, zero-shot 0.048 0.061 1.336 0.350
Sister question, by group 0.005 0.019 1.216 0.421
National oracle (true marginal) 0 0.017 1.211 0.419
COMARE 0.1 0.005 0.010 1.162 0.451

Important caveat on the new-question result. About 85% of the cases in the table above are respondents who were also in the training set (with answers to other questions). On new respondents x new questions only (2,094 cases) the model is worse than the simple baselines: group JSD 0.041, against 0.035 for the national oracle and 0.031 for the sister question (the comparison includes Orbán for the model only, so it is not perfectly like for like, but the sign is clear). In other words, the generalisation to unseen questions shown above relies partly on having seen the same people before.

Free generation: correct output format in 100% of samples; an LLM judge accepts 90% of the justifications; a style discriminator separating model justifications from the training ones is at chance (49.3%).

Limitations

  • One survey, one period. Everything was learned from one Italian survey of late 2024. The model has no notion of time and should not be used to predict opinions in other periods or countries.
  • Fails on topics without a related training question. On the Orbán question (national JSD 0.071) it predicts 4% "Don't know" against 24.5% in reality. In general it underestimates "Don't know".
  • New people x new questions is the weakest case (see above).
  • Single seed, no ablations, no check for contamination from the base model's pre-training.
  • Justifications are not the respondents' words. They were written by Italia-9B (see Training) to be plausible for the profile and the real answer. They are plausible rationalisations, not evidence of why people think what they think.
  • Profiles are coarse (a few socio-demographic and political variables). Group-level distributions are more reliable than individual answers (individual accuracy is about 45%).

Intended use and out-of-scope use

Intended: academic research on survey simulation, questionnaire pre-testing, teaching.

Out of scope:

  • Presenting simulated answers as poll results, or publishing them as such (in Italy this would also fall under AGCOM rules on polls).
  • Political campaigning, micro-targeting or any attempt to influence voting behaviour.
  • Decisions about individuals.
  • Commercial use (see licence).

Data and privacy

The training data are individual answers from the COMARE 2024 survey, which include political opinions (special-category data under GDPR art. 9). The survey microdata are not released. The adapter was trained on coarse profiles, but memorisation of individual respondents cannot be ruled out; please report any case where the model appears to reproduce a specific real respondent.

No GESIS / Eurobarometer data were used for this model.

Licence

  • Adapter: CC BY-NC 4.0.
  • Base model: Apache 2.0 (Mistral AI).
  • Training targets generated with Modello Italia 9B: iGenius Termini e Condizioni d'Uso Modello Italia V. 0.1 and MIT licence, Copyright (c) 2024 iGenius S.p.A. Both apply to this derived work; see italia_terms_and_conditions.pdf and NOTICE-Modello-Italia-MIT.txt.

Citation

@misc{comare01,
  title  = {Modello Italia COMARE 0.1: a LoRA adapter for simulating Italian survey respondents},
  author = {Dacrema, Eugenio},
  year   = {2026},
  url    = {https://huggingface.co/EugenioDac/Modello-Italia-COMARE-0.1}
}

Modello Italia attribution

Sviluppato da Modello Italia. This model was trained on outputs of Modello Italia 9B (iGenius S.p.A., developed with CINECA) and is distributed as a work derived from Modello Italia, under the iGenius Termini e Condizioni d'Uso Modello Italia V. 0.1 (included in this repository as italia_terms_and_conditions.pdf) and the MIT licence of Modello Italia (notice in NOTICE-Modello-Italia-MIT.txt).

Downloads last month
23
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for EugenioDac/Modello-Italia-COMARE-0.1

Adapter
(12)
this model