[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-698713-105":59,"doc-detail-698713-en":134,"doc-similar-698713":166},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":127,"head_meta":129,"extra_data":131,"updated_unix":133},105,"en","a-llama-walks-into-the-bar-efficient-supervised-fine-tuning-for-legal-reasoning-in-the-multi-state-bar-exam","A Llama walks into the ’Bar’ - Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Exam","","Legal reasoning tasks challenge large language models with complex domain knowledge and structured reasoning. This paper examines supervised fine-tuning of smaller open-weight LLMs—Llama 2 7B and Llama 3 8B—using 1,514 Multi-state Bar Examination questions to improve legal question answering. Models are evaluated on the 2022 MBE benchmark and compared across distilled versus non-distilled training, sample sizes, prompt settings, answer ordering, output formats, and decoding temperatures, plus analysis of option-selection biases. Results show that targeted SFT can approach human baselines with limited data and compute, and the authors release the dataset and optimized SFT adapters.",{"@graph":69,"@context":126},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-llama-walks-into-the-bar-efficient-supervised-fine-tuning-for-legal-reasoning-in-the-multi-state-bar-exam/698713/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-llama-walks-into-the-bar-efficient-supervised-fine-tuning-for-legal-reasoning-in-the-multi-state-bar-exam/698713.png","ImageObject",300,407,{"name":92,"@type":93},"Damian","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118,122],{"name":109,"@type":110,"acceptedAnswer":111},"What is the main goal of the paper?","Question",{"text":112,"@type":113},"To determine how effectively smaller open-weight language models can be fine-tuned with a limited dataset to improve legal question answering on the Multi-state Bar Examination.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Which models and dataset size are used for supervised fine-tuning?",{"text":117,"@type":113},"The study fine-tunes Llama 2 7B and Llama 3 8B using 1,514 Multi-state Bar Examination questions collected across seven legal domains.",{"name":119,"@type":110,"acceptedAnswer":120},"How do the authors evaluate performance and compare training strategies?",{"text":121,"@type":113},"They evaluate on the 2022 MBE questions and compare non-fine-tuned models with supervised fine-tuned counterparts, including checks of distilled versus non-distilled datasets and multiple prompt/format/decoding settings.",{"name":123,"@type":110,"acceptedAnswer":124},"What resources does the paper release to the community?",{"text":125,"@type":113},"The authors release the gathered supervised fine-tuning dataset and a family of supervised fine-tuned adapters optimized for Multi-state Bar Examination performance.","https://schema.org",{"og:url":83,"og:type":128,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":130,"canonical":83},"index,follow",{"doc_id":132,"site_id":62},698713,1794455128,{"code":4,"msg":5,"data":135},{"doc_id":132,"user_id":136,"nickname":92,"user_avatar":137,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":138,"file_id":139,"file_url":140,"file_type":141,"file_size":142,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":143,"language":144,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":145,"faqs":146,"seo_title":147,"seo_description":67,"update_tm":133,"read_time":148,"preview_page_count":19,"preview_urls":149},137451208677,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","arXiv :2504 .04945v 1 [ cs .LG] 7 Apr 2025  \nA Llama walks into the ’Bar’: Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Exam  \nRean Fernandes, 1 Andr Biedenkapp, 1 Frank Hutter,2,1 Noor Awad 1  \n1 Albert Ludwigs University Freiburg, Germany  \n2 ELLIS Institute T¨ubingen, Germany  \n[reanclive@gmail.com](reanclive@gmail.com) , {biedenka,fh,[awad](awad}@cs.uni-freiburg.de)[}](awad}@cs.uni-freiburg.de)[@cs.uni-freiburg.de](awad}@cs.uni-freiburg.de)  \nAbstract  \nLegal reasoning tasks present unique challenges for large language models (LLMs) due to the complexity of domain-specific knowledge and reasoning processes. This paper investigates how effectively smaller language models (Llama 2 7B and Llama 3 8B) can be fine-tuned with a limited dataset of 1,514 Multi-state Bar Examination (MBE) questions to improve legal question answering accuracy. We evaluate these models on the 2022 MBE questions licensed from JD Advising, the same dataset used in the ’GPT-4 passes the Bar exam’ study. Our methodology involves collecting approximately  \n200 questions per legal domain across 7 domains. We distill the dataset using Llama 3 (70B) to transform explanations into a structured IRAC (Issue, Rule, Application, Conclusion) format as a guided reasoning process to see if it results in better performance over the non-distilled dataset. We compare the non-fine-tuned models against their supervised fine-tuned (SFT) counterparts, trained for different sample sizes per domain, to study the effect on accuracy and prompt adherence. We also analyse option selection biases and their mitigation following SFT. In addition, we consolidate the performance across multiple variables: prompt type (few-shot vs zeroshot), answer ordering (chosen-option first vs generated-explanation first), response format (Numbered list vs Markdown vs JSON), and different decoding temperatures. Our findings show that domain-specific SFT helps some model configurations achieve close to human baseline performance, despite limited computational resources and a relatively small dataset. We release both the gathered SFT dataset and the family of Supervised Finetuned (SFT) adapters optimised for MBE performance. This establishes a practical lower bound on resources needed towards achieving effective legal question answering in smaller LLMs.  \n1 Introduction  \nLarge language models (LLMs) have demonstrated remarkable abilities in complex reasoning tasks across various domains. OpenAI’s GPT-4 achieved a significant milestone in the legal field when it passed the Uniform Bar Examination (UBE) in a zero-shot setting (Katz et al. , 2024), reportedly outperforming the passing threshold in all jurisdictions and surpassing human test-takers. This is a considerable achievement as the the bar exam represents the final hurdle that aspiring lawyers must clear to be licensed to practice law. This exam requires factual knowledge and analytical reasoning making it a good benchmark for evaluating legal reasoning capabilities in LLMs.  \nLarger commercial models like GPT-4 and Claude are essentially black boxes, with limited transparency regarding their model size and pretraining data was used. The capabilities of such models in a zero-shot setting might not be so surprising, given the huge capital and the compute used for their training. This is why, we try to investigate the following question in our paper: Can we achieve similar performance with smaller, open-weight models, with a limited dataset of questions, capable of being run on consumer grade hardware?  \nOur work tries to answer this question by applying supervised fine-tuning (SFT) to the Llama family of models, specifically Llama 2 7B and Llama 3 8B, fine-tuned to answer the Multistate Bar Exam (MBE) . We perform SFT using a limited dataset of 1514 questions from previous year MBE exams, spread across the 7 legal domains tested in the exam. Our evaluation benchmark uses the same dataset that was used by Katz et ","cbCaishQnnfZSIWR","https://ap.wps.com/l/cbCaishQnnfZSIWR","pdf",1310052,28,"English","# Abstract\n# 1 Introduction\n# 2 Related works","[{\"question\":\"What is the main goal of the paper?\",\"answer\":\"To determine how effectively smaller open-weight language models can be fine-tuned with a limited dataset to improve legal question answering on the Multi-state Bar Examination.\"},{\"question\":\"Which models and dataset size are used for supervised fine-tuning?\",\"answer\":\"The study fine-tunes Llama 2 7B and Llama 3 8B using 1,514 Multi-state Bar Examination questions collected across seven legal domains.\"},{\"question\":\"How do the authors evaluate performance and compare training strategies?\",\"answer\":\"They evaluate on the 2022 MBE questions and compare non-fine-tuned models with supervised fine-tuned counterparts, including checks of distilled versus non-distilled datasets and multiple prompt/format/decoding settings.\"},{\"question\":\"What resources does the paper release to the community?\",\"answer\":\"The authors release the gathered supervised fine-tuning dataset and a family of supervised fine-tuned adapters optimized for Multi-state Bar Examination performance.\"}]","A Llama walks into the ’Bar’ - Efficient Supervised Fine-Tuning for Legal Reasoning in the Multi-state Bar Exam | PDF",71,[150,154,158,162],{"page_no":8,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/55bd70c163ccd754cad956ee76cd6736.webp",983,1272,{"page_no":14,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/de163225a7e08182d87daec63ef1f927.webp",982,1270,{"page_no":81,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/bebec052b66cd3a753d827fba525ea36.webp",981,1269,{"page_no":19,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6464c3e7f951b879218e6d88121f583a.webp",980,1268,{"list":167,"token":66},[168,175,182,189,196,203,210,217,223,230],{"doc_id":169,"doc_title":170,"file_type":141,"home_preview_img_url":171,"slug":172,"view_count":173,"category_name":40,"create_tm":174},273570,"Are LLMs Safe Beyond Text: Do Emojis Expose Gaps in Safety Evaluation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899950019/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=7bP0YZxl3XNBNW%2FocgFyE6wcN4g%3D","are-llms-safe-beyond-text-do-emojis-expose-gaps-in-safety-evaluation",15,1789472092,{"doc_id":176,"doc_title":177,"file_type":141,"home_preview_img_url":178,"slug":179,"view_count":180,"category_name":40,"create_tm":181},327384,"Robust for the Wrong Reasons - The Representational Geometry of LLM Robustness to Science Skepticism","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909321200/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=g7r106%2FCbRlkBUQkvALEiYwVYVo%3D","robust-for-the-wrong-reasons-the-representational-geometry-of-llm-robustness-to-science-skepticism",13,1789977112,{"doc_id":183,"doc_title":184,"file_type":141,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":40,"create_tm":188},509090,"Does Reasoning Help LLM Agents Play Dungeons and Dragons? - A Prompt Engineering Experiment","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935319181/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=Q2W%2BJxM4gwWqoHhyOEZ3aeGFZAk%3D","does-reasoning-help-llm-agents-play-dungeons-and-dragons-a-prompt-engineering-experiment",14,1791234297,{"doc_id":190,"doc_title":191,"file_type":141,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":40,"create_tm":195},84519,"Helpfulness Hurts: Domain-Dependent Degradation of Mid-Trained Compassion Values Under Post-Training","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809180158/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=n6ElhDdr%2BimxF8urmeuHxNvVjks%3D","helpfulness-hurts-domain-dependent-degradation-of-mid-trained-compassion-values-under-post-training",36,1784196273,{"doc_id":197,"doc_title":198,"file_type":141,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":40,"create_tm":202},85332,"HyperSafe: Inference-Time Safety Recovery for Fine-Tuned Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809258356/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=mCEPYg0%2FR8IqSRaaa6jNnOmm0FY%3D","hypersafe-inference-time-safety-recovery-for-fine-tuned-language-models",29,1784202553,{"doc_id":204,"doc_title":205,"file_type":141,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":40,"create_tm":209},201195,"Logical Reasoning in Large Language Models - A Survey - Comprehensive Review","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882720518/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=Roy%2FFaTYFXz6jpSRNjWijM0P1Ww%3D","logical-reasoning-in-large-language-models-a-survey-comprehensive-review",24,1788526889,{"doc_id":211,"doc_title":212,"file_type":141,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":40,"create_tm":216},508836,"Reinforcement Learning Environment with LLM-Controlled Adversary in D&D 5th Edition - Combat","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935314046/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=ZjecVIklq2TfbiVIG0O3%2BSifSpk%3D","reinforcement-learning-environment-with-llm-controlled-adversary-in-dd-5th-edition-combat",11,1791232628,{"doc_id":218,"doc_title":219,"file_type":141,"home_preview_img_url":220,"slug":221,"view_count":46,"category_name":40,"create_tm":222},327872,"CritiqueDriveVLM - From Verifier-Guided Reinforcement Learning to Latent Thought Distillation for Autonomous Driving","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909096745/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=k%2BXsP17taKuSiK69yjWYPlXipIE%3D","critiquedrivevlm-from-verifier-guided-reinforcement-learning-to-latent-thought-distillation-for-autonomous-driving",1789978234,{"doc_id":224,"doc_title":225,"file_type":141,"home_preview_img_url":226,"slug":227,"view_count":228,"category_name":40,"create_tm":229},83948,"Benchmarking KV Cache Optimizations for Long-Context Serving","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809117799/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=r8UBf%2Fblh0FWzyZjD1VCGMrV9EI%3D","benchmarking-kv-cache-optimizations-for-long-context-serving",32,1784191616,{"doc_id":231,"doc_title":232,"file_type":141,"home_preview_img_url":233,"slug":234,"view_count":235,"category_name":40,"create_tm":236},497935,"DeAR: Dual-Stage Document Reranking with Reasoning Agents via LLM - Distillation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229930680491/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796236319&Signature=Zatnc9ekb7WjaPFaTY4Q9T8P8SE%3D","dear-dual-stage-document-reranking-with-reasoning-agents-via-llm-distillation",16,1790971796]