Do Small Models Use the Law You Give Them? Context-Injected Fine-Tuning for Legal QA in Bangladesh
This paper demonstrates that fine-tuning small bilingual language models on context-injected legal examples significantly improves their ability to correctly apply retrieved Bangladeshi statutory provisions and maintain language consistency, though these gains vary by model size and do not uniformly benefit larger models.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a world where computers are like incredibly fast, super-smart students who have read almost every book in the library. These students are called "Large Language Models." They are great at chatting, writing stories, and solving puzzles, but they have a tricky habit: sometimes they make things up or forget the specific rules of a game they are playing. In the field of Artificial Intelligence, researchers are constantly trying to teach these digital students how to stop guessing and start following the rules exactly. One popular way to do this is "retrieval," which is like handing the student a specific page from a textbook right before they take a test, hoping they will read it and use that information to answer correctly. But here is the big question: if you hand a small, less powerful student that textbook page, will they actually read it and use it, or will they just ignore it and keep guessing? This is the puzzle scientists in Bangladesh are trying to solve, especially because legal systems there rely on specific laws written in both English and Bengali, and getting the answer wrong can have serious real-world consequences.
The researchers behind this study decided to test a clever idea: instead of just hoping the student reads the book when they get to the test, what if we train them with the book open in front of them from the very beginning? They created a special training set of 2,165 legal questions and answers, where every single question came with the exact law needed to solve it, written right next to it. They then took a small, open-source computer brain called Qwen3.5 and gave it three different sizes: a tiny 0.8-billion-parameter version, a medium 2-billion version, and a slightly larger 4-billion version. They taught these models using their "context-injected" method, where the law was always part of the lesson.
After the training, they put the models to the test using real exam questions from the Bangladesh Bar Council, the organization that tests lawyers. They gave the models the same questions again, but this time, they didn't just let the models guess; they also tried giving them the relevant laws using two different search methods (BM25 and FAISS) to see if the models could actually use the information provided. The results were a mix of great success and surprising confusion. For the smallest model (0.8B), the training worked like magic. Before training, it barely got any questions right when laws were provided, scoring just 2 out of 100. After training, it jumped to 34 out of 100. The medium model (2B) also got significantly better, showing that it learned to actually read the laws it was given.
However, the story changed for the largest model (4B). While it got slightly better at answering in the correct language, it actually got worse at answering the English questions when the laws were provided, suggesting that for this size, the training might have confused it rather than helped. Another huge win for the training was fixing a silly mistake: before training, when asked a question in Bengali, the models often ignored the language and answered in English about 44% to 53% of the time. After training, this mistake almost vanished, dropping to less than 1%. The study suggests that for smaller models, teaching them to use the laws they are given is a game-changer, but for larger models, it's not a guaranteed fix, and simply having the right information isn't enough if the model doesn't know how to use it.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.