Views
No views yet
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("fmr34/reformulatee-reformulator-merged")
4tokenizer = AutoTokenizer.from_pretrained("fmr34/reformulatee-reformulator-merged")
5
6messages = [
7 {"role": "system", "content": (
8 "You are an expert in philosophy of science. "
9 "Reformulate the research question to make it more epistemically tractable: "
10 "operationalizable, methodologically grounded, and answerable with existing tools. "
11 "Respond with ONLY the reformulated question."
12 )},
13 {"role": "user", "content": "Original question: What is consciousness?"},
14]
15
16text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
17inputs = tokenizer(text, return_tensors="pt")
18outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.9, do_sample=True)
19print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
20# → "What measurable neural correlates distinguish conscious from unconscious processing?"
21
22
23Training
24Dataset: ~700 chosen/rejected pairs of research question reformulations
25Data sources: curated pairs across philosophy, biology, cognitive science, and physics
26Training: DPO + LoRA (rank=16, alpha=32, 4-bit QLoRA) on Google Colab T4 GPU (~45 min)
27Epochs: 3 | Batch size: 4 | Learning rate: 5e-5
28Evaluation
29The model is evaluated via the Epistemic Effectiveness (EE) score:
30
31EE(Q) = 0.05 · Respondibilidade + 0.05 · Tratabilidade + 0.90 · Não-trivialidade
32
33Input Output EE
34"What is consciousness?" "What measurable neural correlates distinguish conscious from unconscious processing?" 0.137 → 0.926
35"Does free will exist?" "What neural mechanisms underlie the experience of voluntary action initiation?" 0.201 → 0.883
36Limitations
37Optimized for academic research questions; may underperform on highly domain-specific technical questions
38Output quality depends on the input being a genuine research question (not factual queries)
39English only at the model level; Portuguese requires the MarianMT translation layer from the full pipeline
40Citation
41@software{reformulatee_2025,
42 title = {ReformulatEE: Epistemic Effectiveness Reformulation},
43 author = {fmr34},
44 year = {2025},
45 url = {https://github.com/fmr34/ReformulatEE},
46 license = {Apache-2.0}
47}