Manacá-1B-Instruct-2: Reproducible Safety Alignment for a Native Brazilian-Portuguese LLM. Negative DPO Results, a Controlled Composition Scan, and a Silent Failure Mode of the LLM Judge
Organizations: National Laboratory for Scientific Computing (LNCC), Institute of Artificial Intelligence, Petrópolis, Brazil
Abstract
Brazilian Portuguese remains underserved by open-source language models, and the few that are safety-aligned rarely document what did not work or validate comparisons with statistical significance. We present Manacá-1B-Instruct-2, the second-generation post-training alignment of Manacá-1B (1.72B parameters, trained from scratch for PT-BR), with an SFT corpus of 291,223 examples. We document three DPO attempts, all negative, including a case where the training reward margin reaches 1.0 while free generation does not change at all, and show that safety came from a dedicated safety-SFT (LLM-jp AnswerCarefully style), refined over three iterations until closing the safety-helpfulness frontier. A controlled scan of the fraction of general data in the safety-SFT mix (10% to 60%) reveals a non-monotonic over-refusal curve with a knee point at 40-50%. The final model is compared against four external PT-BR models on the same items, with Wilson confidence intervals and paired McNemar tests with Holm-Bonferroni correction: the lower bound of its safety interval (94.1%) lies above the upper bound of all four baselines. We also report a methodological finding for LLM-judge evaluation: on two of six safety items in MT-Bench-PT, the judge categorically refuses to assign a score regardless of the evaluated response, silently reducing the effective N of that category in every prior report of the project. We complement this with an n-gram decontamination check and a Chinchilla-anchored compute-budget table that attributes the gap in general capability to pre-training scale rather than alignment methodology. All code, raw data, logs, and scripts that produce every reported number are publicly released.
Figures & tables
| Parameters | 1,722,951,680 ( 1.72B) |
| Layers / model dim. / FFN | 24 / 2048 / 8192 (SwiGLU) |
| Heads / KV groups / head dim | 32 / 8 (GQA) / 64 |
| Position / norm / bias | RoPE ( ) / RMSNorm / all linear layers |
| Tokenizer | SentencePiece, 64k ( nmt_nfkc_cf ) |
| Context / precision | 4096 / bfloat16 |
| Chat template | Alpaca-PT ( ### Instruç~ao: / ### Resposta: ) |
| Source | Examples | How it was included |
|---|---|---|
| Base v1/v2 (Alpaca-PT, Aya, OASST1, OPUS-100, XLSum) | 103,843 | direct (HF) |
| GigaVerbo-v2 SFT | 239,624 ∗ | direct |
| ExtraGLUE (mnli/qnli/stsb/mrpc) | 121,928 ∗ | conversion ( build_jaster.py ) |
| Quati (relevance) | 4,856 ∗ | direct |
| personas_br | 5,213 ∗ | via Claude (2 batches) + local vLLM |
| Grounded synthetic (LegalPT, ClassiCC-PT, | 23,166 ∗ | via Claude Batches API |
| Question | Base conf. | Abstention conf. | Did it abstain? |
|---|---|---|---|
| Fermat’s theorem | 0.49 | 0.35 | No (Euclid/Pythagoras “Pascal’s theorem”) |
| Flamengo’s founding | 0.66 | 0.47 | No (1924 04/26/1985) |
| Last president | 0.62 | 0.63 | No (Fernando Collor Getúlio Vargas) |
| Solar-system planets | 0.47 | 0.44 | No (incorrect list in both) |
| Round | Steps | rewards/chosen | Margin | Accuracy (training) | Held-out safety |
|---|---|---|---|---|---|
| LR , 2 ep. | 24 | 0.00 | 0.006 | 0.56 | — (no effect) |
| LR , 3 ep. | 153 | +0.85 | 1.03 | 1.0 | 0/16 |
| Version | Harmful seeds | Helpful | N_GENERAL | % general in mix | Safety | Over-refusal |
|---|---|---|---|---|---|---|
| v2 | 465 1,539 | 145 | 200 | 10.6% | 100% | 50.0% |
| v3 | 465 1,539 | 145 | 1,700 | 48.7% | 87.5% | 23.5% |
| v4 (chosen) | 465 1,539 | 280 | 1,700 | 48.3% | 93.8% | 11.8% |
| Metric | v4 | instruct2-full ∗ | TTL-460m | Tucano-1b1 | Tucano-2b4 | Tucano2-qwen |
|---|---|---|---|---|---|---|
| Held-out safety (N=218, ) | 97.2% | 1–3% | 3.2% | 15.1% | 14.7% | 70.6% |
| Over-refusal (N=184, ) | 9.2% | — | 5.4% | 14.1% | 21.2% | 9.2% |
| MT-Bench-PT (overall, 1–10) | 2.67 | 2.54 | 1.71 | 2.06 | 2.48 | 4.12 |
| IFEval-PT (prompt-strict, %) | 22.2 | 27.8 | 8.3 | 11.1 | 13.9 | 41.7 |
| ENEM/BLUEX/OAB (acc., %) | 20.1/25.2/23.3 | 19.4/23.8/23.4 | 19.4/24.0/24.6 | 20.1/24.7/26.3 | 20.8/20.8/24.0 | 65.8/55.1/43.4 |
| Classification (mean macro-F1, %) | 45.1 | 45.0 | 42.8 | 38.4 | 42.0 | 78.8 |
| Model | Held-out safety (N=218) | Over-refusal (N=184) |
|---|---|---|
| v4 (Manacá) | 97.2% [94.1%, 98.7%] | 9.2% [5.8%, 14.3%] |
| TeenyTinyLlama-460m-Chat | 3.2% [1.6%, 6.5%] | 5.4% [3.0%, 9.7%] |
| Tucano-1b1-Instruct | 15.1% [11.0%, 20.5%] | 14.1% [9.8%, 19.9%] |
| Tucano-2b4-Instruct | 14.7% [10.6%, 20.0%] | 21.2% [15.9%, 27.7%] |
| Tucano2-qwen-1.5B-Instruct | 70.6% [64.3%, 76.3%] | 9.2% [5.8%, 14.3%] |
| v4 vs. | (safety) | Sig. | (over-refusal) | Sig. |
|---|---|---|---|---|
| TeenyTinyLlama-460m | 4 | yes | 0.230 | no |
| Tucano-1b1-Instruct | 3 | yes | 0.188 | no |
| Tucano-2b4-Instruct | 1 | yes | 0.0021 | yes |
| Tucano2-qwen-1.5B | 8 | yes | 1.000 | no |
| Type | v4 | instruct2-full | TTL-460m | Tucano-1b1 | Tucano-2b4 | Tucano2-qwen |
|---|---|---|---|---|---|---|
| comecar_com (start with) | 0 | 0 | 0 | 0 | 0 | 33 |
| evitar_palavra (avoid word) | 50 | 100 | 100 | 100 | 50 | 100 |
| incluir_palavra (include word) | 43 | 43 | 29 | 43 | 57 | 57 |
| incluir_todas (include all) | 0 | 0 | 100 | 100 | 100 | 100 |
| json_valido (valid JSON) | 50 | 0 | 0 | 50 | 0 | 100 |
| max_frases (max sentences) | 100 | 100 | 100 | 50 | 50 | 50 |
| Model | (B) | (B, w/ repetition) | FLOPs ( ) | vs. Manacá | |
|---|---|---|---|---|---|
| Manacá-1B(-base) | 1.723 | 41.94 | 1.22 | 1 | |
| TeenyTinyLlama-460m | 0.468 | 9.83 | 1.05 | 0.06 | |
| Tucano-1b1 | 1.100 | 251.7 | 11.4 | 3.8 | |
| Tucano-2b4 | 2.445 | 513.8 | 10.5 | 17.4 | |
| Tucano2-qwen-1.5B | 1.510 | 104.9 + 36,000 inherited | n/a | 849 |