Tucano2-qwen-0.5B-TaskAdd-W-Merge (Task-Addition Checkpoint)
The best multi-task merged model in the study (Final Merge_w), produced at Step 6 of the Balanced-Weight Iterative Task-Addition pipeline via TIES-Merging.
Lineage / Parent Models:
Assaoka/Tucano2-qwen-0.5B-GoEmotionsAssaoka/Tucano2-qwen-0.5B-TaskAdd-BrighterAssaoka/Tucano2-qwen-0.5B-TaskAdd-W-ReLiSAAssaoka/Tucano2-qwen-0.5B-TaskAdd-W-PhrasebankAssaoka/Tucano2-qwen-0.5B-TaskAdd-W-FinBERT
This model is part of the ENIAC 2026 paper "United Experts: Efficient Multi-Task Sentiment Analysis in Portuguese via Model Merging" (ENIAC 2026 Paper (SBC OpenLib) | DOI: 10.5753/eniac.2026.31064 | Hugging Face Collection).
📌 Model Details
- Experimental Group: Iterative Task-Addition (Balanced Weights)
- Base / Parent Model(s):
Assaoka/Tucano2-qwen-0.5B-GoEmotions,Assaoka/Tucano2-qwen-0.5B-TaskAdd-Brighter,Assaoka/Tucano2-qwen-0.5B-TaskAdd-W-ReLiSA,Assaoka/Tucano2-qwen-0.5B-TaskAdd-W-Phrasebank,Assaoka/Tucano2-qwen-0.5B-TaskAdd-W-FinBERT - Relation (
base_model_relation):merge - Datasets Used: ReLi-SA (book reviews), BRIGHTER (ptbr) (6 multi-label emotions), Sentiments-FinBERT-PT-BR (financial news), Financial Phrasebank PT-BR (Kaggle), GoEmotions PT-BR (50% random training split, 28 emotions)
- Method: Step 6 Final Balanced-Weight Merge (TIES)
- Parameters: TIES merge (
0.50TaskAdd-W-FinBERT +0.125each for the 4 earlier checkpoints,density = 0.50). - Language: Portuguese (PT-BR)
- License: Apache 2.0
- Retention Policy: Permanent hosting guaranteed (one of the 8 core models of the study).
📊 Full Evaluation (In-Domain & Out-of-Domain)
Metrics across all 5 Portuguese sentiment and emotion benchmarks (evaluated with Guided Decoding via vLLM + Pydantic), compared against the zero-shot baseline (Polygl0t/Tucano2-qwen-0.5B-Instruct) and the Joint multi-task SFT baseline. Summary rows report the unweighted mean and min-max normalized mean across all 5 tasks.
| Dataset / Task | Metric | Model | Baseline | Joint |
|---|---|---|---|---|
| RELI-SA | Macro F1Micro F1AccuracyHamming Loss | 48.26%69.22%69.22%0.3078 | 30.66%37.07%37.07%0.6293 | 59.51%74.51%74.51%0.2549 |
| BRIGHTER | Macro F1Micro F1AccuracyHamming Loss | 42.55%58.18%42.00%0.1314 | 33.47%38.07%24.66%0.2731 | 40.83%59.14%49.60%0.1174 |
| FINBERT-PT-BR | Macro F1Micro F1AccuracyHamming Loss | 86.07%86.14%86.14%0.1386 | 54.77%66.34%66.34%0.3366 | 85.91%86.14%86.14%0.1386 |
| FINANCIAL-PHRASEBANK | Macro F1Micro F1AccuracyHamming Loss | 80.87%82.77%82.77%0.1723 | 38.14%39.32%39.32%0.6068 | 82.18%83.69%83.69%0.1631 |
| GO-EMOTIONS | Macro F1Micro F1AccuracyHamming Loss | 24.94%36.88%32.06%0.0494 | 7.59%10.31%6.08%0.0720 | 29.99%41.84%36.55%0.0464 |
| Mean | Macro F1Micro F1AccuracyHamming Loss | 56.54%66.64%62.44%0.1599 | 32.92%38.22%34.70%0.3835 | 59.68%69.07%66.10%0.1441 |
| Normalized Mean | Macro F1Micro F1AccuracyHamming Loss | 81.95%86.40%82.53%0.1126 | 21.92%13.58%14.15%0.7757 | 88.23%93.07%93.47%0.0548 |
🚀 How to Use (vLLM or Transformers)
You can run inference with transformers or vLLM (Guided Decoding recommended to enforce strict JSON output). All prompts are in Portuguese to match the training distribution:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Assaoka/Tucano2-qwen-0.5B-TaskAdd-W-Merge"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
messages = [
{"role": "system", "content": 'Você é um classificador de sentimentos de resenhas de livros em português. Sua tarefa é analisar o texto fornecido pelo usuário e retornar um JSON válido no seguinte formato: {"sentimento": "positivo/negativo/neutro/misto"}. Responda APENAS com o JSON válido.'},
{"role": "user", "content": 'Resenha: O livro tem uma escrita envolvente, mas o final deixou a desejar.'},
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
# Expected output: {"sentimento": "misto"}
📚 Citation (BibTeX)
If you use this model or the evaluation benchmarks in your research, please cite our ENIAC 2026 paper:
@inproceedings{unitedexperts2026assaoka,
author = {Jo{\~a}o Assaoka and Evangelos Milios and Vlado Keselj and Jos{\'e} Vitor Sousa Cardoso Requena and Diego de Almeida Miranda and Lilian Berton},
title = {United Experts: Efficient Multi-Task Sentiment Analysis in {P}ortuguese via Model Merging},
booktitle = {Anais do XXIII Encontro Nacional de Intelig{\^e}ncia Artificial e Computacional},
location = {Cuiab{\'a}/MT},
year = {2026},
issn = {2763-9061},
pages = {3035--3046},
publisher = {SBC},
address = {Porto Alegre, RS, Brasil},
doi = {10.5753/eniac.2026.31064},
url = {https://sol.sbc.org.br/index.php/eniac/article/view/47030}
}