Views
No views yet
general_knowledge_modelQwen/Qwen3-1.7B
for the General Knowledge benchmark of EPFL CS-552 — Modern NLP (Spring 2026),
team CentraleSupéchec.<think> ... </think> block and ends its reply with the answer wrapped in
\boxed{LETTER}, which is parsed for pass@1 scoring.n=8 completions (T=0.7) from the base model over a ~4.7k-question
pool of GPQA and MMLU-Pro (excluding Math/CS).pass@1 but solves under repeated
sampling, producing self-generated correct reasoning traces.r=16, α=32) with the cross-entropy loss
masked to the \boxed{} answer span only — the <think> reasoning
conditions the forward pass but receives no gradient. This preserves the
model's pretrained reasoning while sharpening answer commitment and output
formatting.\boxed{LETTER}
output and a 16,384-token reasoning budget.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3repo = "cs-552-2026-centralesupechec/general_knowledge_model"
4tok = AutoTokenizer.from_pretrained(repo)
5model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="bfloat16", device_map="cuda")
6
7question = (
8 "Which of the following is the capital of Australia?\n\n"
9 "Choices:\nA. Sydney\nB. Melbourne\nC. Canberra\nD. Perth"
10)
11inputs = tok.apply_chat_template(
12 [{"role": "user", "content": question}],
13 add_generation_prompt=True, return_tensors="pt",
14).to(model.device)
15
16out = model.generate(inputs, max_new_tokens=16384, temperature=0.6, top_p=0.95, top_k=20)
17print(tok.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
18# ... reasoning ... \boxed{C}seed=42,
max_new_tokens=16384, temperature=0.6, top_p=0.95, top_k=20.max_new_tokens: 16384 · temperature: 0.6 · top_p: 0.95 · top_k: 20 ·
do_sample: true. The 16k budget is essential: it removes the format failures
that occur when reasoning is truncated before the boxed answer.pass@1 on held-out sets disjoint from training (n=4, 16k tokens):| Set | pass@1 |
|---|---|
| 650-question MMLU sweep (26 subjects) | ~0.74 |
| Internal 100-question expert set | ~0.59 |
1@inproceedings{zelikman2022star,
2 title = {{STaR}: Bootstrapping Reasoning With Reasoning},
3 author = {Zelikman, Eric and Wu, Yuhuai and Mu, Jesse and Goodman, Noah D.},
4 booktitle = {Advances in Neural Information Processing Systems},
5 year = {2022}
6}