{"id":{"repo_id":"vilnius","oai_identifier":"oai:vu.lt:elaba:308337155"},"canonical_url":"https://search.ndltd.org/etd/vilnius/oai:vu.lt:elaba:308337155","repository":{"repo_id":"vilnius","name":"Vilnius University","base_url":"https://epublications.vu.lt/oai"},"display":{"title":"Natūralios kalbos transliavimo į predikatų logikos kalbą galimybės, naudojant didžiuosius kalbos modelius /","abstract":"This bachelor's thesis investigates the applicability of open-source large language models to the task of translating natural language into first-order logic formulas. Traditional formalization methods, such as Montague grammar, are precise but impractical due to the significant manual effort required, while commercial models such as GPT-4, despite achieving high syntactic accuracy, raise concerns regarding data privacy and economic accessibility. The thesis reviews the existing literature on commercial GPT models and the specialized LogicLLaMA solution. The practical contribution consists of fine-tuning two base models from different generations, LLaMA-2-7B and LLaMA-3-8B, using the LoRA method on the MALLS dataset. The results were evaluated using four metrics (SynV, BSC, BLEU, LE) on the gold-standard FOLIO dataset. The experimental results demonstrated that LoRA fine-tuning significantly improved the performance of both models while fine-tuning less than (1 %) of all model parameters. The fine-tuned LLaMA-2-7B surpassed the direct translation stage of LogicLLaMA, while the fine-tuned LLaMA-3-8B outperformed all LogicLLaMA variants and achieved results practically identical to GPT-4 in the 5-shot prompting, despite being substantially smaller in size.","abstract_html":"This bachelor&#x27;s thesis investigates the applicability of open-source large language models to the task of translating natural language into first-order logic formulas. Traditional formalization methods, such as Montague grammar, are precise but impractical due to the significant manual effort required, while commercial models such as GPT-4, despite achieving high syntactic accuracy, raise concerns regarding data privacy and economic accessibility. The thesis reviews the existing literature on commercial GPT models and the specialized LogicLLaMA solution. The practical contribution consists of fine-tuning two base models from different generations, LLaMA-2-7B and LLaMA-3-8B, using the LoRA method on the MALLS dataset. The results were evaluated using four metrics (SynV, BSC, BLEU, LE) on the gold-standard FOLIO dataset. The experimental results demonstrated that LoRA fine-tuning significantly improved the performance of both models while fine-tuning less than (1 %) of all model parameters. The fine-tuned LLaMA-2-7B surpassed the direct translation stage of LogicLLaMA, while the fine-tuned LLaMA-3-8B outperformed all LogicLLaMA variants and achieved results practically identical to GPT-4 in the 5-shot prompting, despite being substantially smaller in size.","abstract_has_math":false,"creators":["Bukauskas, Andenis,"],"institution":"Institutional Repository of Vilnius University","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T10:12:59Z","subjects":[],"languages":["lit"],"rights":["info:eu-repo/semantics/openAccess"],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://repository.vu.lt/VU:ELABAETD308337155&prefLang=en_US","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://repository.vu.lt/VU:ELABAETD308337155&prefLang=en_US","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","download_url":null,"download_label":null,"download_source":null,"access_status":"open","embargo_until":null,"access_note":null},"source_record":{"url":"https://epublications.vu.lt/oai?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Avu.lt%3Aelaba%3A308337155","prefix":"oai_dc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Bukauskas, Andenis,"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026"]},{"key":"dc:publisher","label":"Institution","values":["Institutional Repository of Vilnius University"]},{"key":"dc:relation","label":"Dc Relation","values":["https://epublications.vu.lt/object/elaba:308337155/308337155.pdf"]},{"key":"dc:type","label":"Dc Type","values":["info:eu-repo/semantics/bachelorThesis"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["lit"]},{"key":"dc:rights","label":"Dc Rights","values":["info:eu-repo/semantics/openAccess"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://repository.vu.lt/VU:ELABAETD308337155&prefLang=en_US"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["This bachelor's thesis investigates the applicability of open-source large language models to the task of translating natural language into first-order logic formulas. Traditional formalization methods, such as Montague grammar, are precise but impractical due to the significant manual effort required, while commercial models such as GPT-4, despite achieving high syntactic accuracy, raise concerns regarding data privacy and economic accessibility. The thesis reviews the existing literature on commercial GPT models and the specialized LogicLLaMA solution. The practical contribution consists of fine-tuning two base models from different generations, LLaMA-2-7B and LLaMA-3-8B, using the LoRA method on the MALLS dataset. The results were evaluated using four metrics (SynV, BSC, BLEU, LE) on the gold-standard FOLIO dataset. The experimental results demonstrated that LoRA fine-tuning significantly improved the performance of both models while fine-tuning less than (1 %) of all model parameters. The fine-tuned LLaMA-2-7B surpassed the direct translation stage of LogicLLaMA, while the fine-tuned LLaMA-3-8B outperformed all LogicLLaMA variants and achieved results practically identical to GPT-4 in the 5-shot prompting, despite being substantially smaller in size."]},{"key":"dc:format","label":"Dc Format","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Natūralios kalbos transliavimo į predikatų logikos kalbą galimybės, naudojant didžiuosius kalbos modelius /","Possibilities of translating natural language into the language of predicate logic using large language models."]}]}],"canonical_facts":{"dc:creator":["Bukauskas, Andenis,"],"dc:date":["2026"],"dc:description":["This bachelor's thesis investigates the applicability of open-source large language models to the task of translating natural language into first-order logic formulas. Traditional formalization methods, such as Montague grammar, are precise but impractical due to the significant manual effort required, while commercial models such as GPT-4, despite achieving high syntactic accuracy, raise concerns regarding data privacy and economic accessibility. The thesis reviews the existing literature on commercial GPT models and the specialized LogicLLaMA solution. The practical contribution consists of fine-tuning two base models from different generations, LLaMA-2-7B and LLaMA-3-8B, using the LoRA method on the MALLS dataset. The results were evaluated using four metrics (SynV, BSC, BLEU, LE) on the gold-standard FOLIO dataset. The experimental results demonstrated that LoRA fine-tuning significantly improved the performance of both models while fine-tuning less than (1 %) of all model parameters. The fine-tuned LLaMA-2-7B surpassed the direct translation stage of LogicLLaMA, while the fine-tuned LLaMA-3-8B outperformed all LogicLLaMA variants and achieved results practically identical to GPT-4 in the 5-shot prompting, despite being substantially smaller in size."],"dc:format":["application/pdf"],"dc:identifier":["https://repository.vu.lt/VU:ELABAETD308337155&prefLang=en_US"],"dc:language":["lit"],"dc:publisher":["Institutional Repository of Vilnius University"],"dc:relation":["https://epublications.vu.lt/object/elaba:308337155/308337155.pdf"],"dc:rights":["info:eu-repo/semantics/openAccess"],"dc:title":["Natūralios kalbos transliavimo į predikatų logikos kalbą galimybės, naudojant didžiuosius kalbos modelius /","Possibilities of translating natural language into the language of predicate logic using large language models."],"dc:type":["info:eu-repo/semantics/bachelorThesis"]},"updated_at":"2026-11-19T10:12:59Z"}