Sayeem Mahmood

Sayeem Mahmood

I'm building a legal AI that checks its own answers, starting with a benchmark of how current models fail.

My final-year project, LegalReliBench, benchmarks how LLMs fail on legal documents: 457 questions across five legal genres, annotated at the claim level. I am now building a self-verifying agent that checks its own claims against the contract, corrects them, and defers risky cases to a human lawyer. After graduating I plan to pursue graduate study and become a university lecturer and researcher.

Current CGPA
3.91
Graduating
Spring 2027

Final-year design project

Toward a document agent that corrects itself

Status: benchmark and baseline audit complete · verification modules in development · agent and interface planned · paper in preparation

When a model answers from a long contract, a wrong claim can depend on text several pages away. FYDP 262-043 asks whether an agent can notice that kind of error and correct it before answering.

Phase 1 is complete: LegalReliBench, 457 questions across five legal genres (CUAD, ContractNLI, LegalBench, PrivacyQA, MAUD), evaluated in 25 conditions on three open models. Phase 2, in progress, builds the verification modules. I am supervised by Tahmid Mosaddeque and work in a team of five. The paper is in preparation, targeting ACL/NAACL 2027.

  • LegalReliBench
  • Hallucination correction
  • Self-verifying agents
  • Multi-page QA
  • RAG
  • CUAD
  • MAUD

Evaluation protocol, Schema v2.0

One slice of the benchmark: MAUD · 99 questions per model · 297 evaluations · condition: Gold Evidence

How often is an answer legally acceptable?

Qwen 2.5-7B88.9% 88 acceptable · 6 reservations · 5 unacceptable
LLaMA 3.1-8B81.8% 81 acceptable · 11 reservations · 7 unacceptable
Mistral-7B79.8% 79 acceptable · 5 reservations · 15 unacceptable
AcceptableReservationsUnacceptable

Benchmark-wide findings (457 questions, 25 conditions)

  • Legal acceptability falls below 9% without retrieval
  • Claim hallucination stays at 25.6% to 53% even with RAG
  • Raw model confidence barely predicts correctness (AUROC about 0.53 to 0.54)

An answer is acceptable only if it meets all four

  • Sound doctrine, with no reversed temporal conditions or misstated contract mechanics
  • Every mandatory element of the gold rubric is extracted
  • No fabricated law or contract terms
  • Safe for a professional to rely on

One failure recurred across models: the universal temporal inversion fallacy, coded REA-02.

Bars show baseline models only. The self-verifying agent is still in development, so no agent results are reported yet.

Illustrative example · Hallucination vs. Self-Correction

Baseline Model (Hallucination · REA-02) "The non-disclosure restriction terminates 30 days prior to closing." Inverts condition polarity; fatal contract risk.
Self-Verifying Agent (Corrected) "Restrictions persist until 30 days after closing (§14.2); temporal check auto-corrected." Atomic claim verified against source span.

Publications

Papers and preprints

  • In preparationLegalReliBench: A Reliability Benchmark for Large Language Models in Legal Document Question Answering. Md. Sayeem Mahmood, Tamimul Mufid, Md. Redwanul Haque Peash, Md. Zakir Hossen, Tanjid Ahmad Anik; supervised by Tahmid Mosaddeque. Targeting ACL/NAACL 2027.

Related work: Evaluates against legal hallucination benchmarks like Large Legal Fictions (Dahl et al., 2024) and Hallucination-Free? (Magesh et al., 2025), while extending atomic claim-decomposition frameworks including FActScore (Min et al., 2023) and SelfCheckGPT (Manakul et al., 2023) to high-stakes legal QA.

Engineering & Research

Featured Projects

Research · FYDP 262-043 In Progress

Self-Verifying Document Agent

Verification modules (NLI claim checker, citation checker, grey-area classifier, confidence calibration) feeding a self-correction loop. Planned: a dual-pane legal workspace for lawyers.

Python LLMs RAG CUAD MAUD
Research · Dataset & Evaluation Paper in Prep

LegalReliBench

A 457-question reliability benchmark across five legal genres, with double-blind claim-level annotation and third-party adjudication. Question types include hallucination traps and multi-clause reasoning.

JSON SEC Filings Benchmarking
Academic Web Tool · Architecture Live tool

C to MIPS Converter

A powerful tool to convert C code into MIPS assembly language, supporting loops, arrays, functions, and complex expressions with live validation.

JavaScript MIPS Assembly Compiler Vercel
Open converter ↗
Academic Web Tool · Scheduling Live tool

Section Selection Tool

A smart schedule builder that lets you upload course offerings (.xlsx), select sections with automatic conflict detection, preview your weekly timetable live, and export the final schedule as CSV or PDF.

JavaScript SheetJS (.xlsx) Algorithms Cloudflare Pages
Open tool ↗
Academic Web Tool · Utilities Live tool

Assignment Cover Page Maker

Automatically generates professional assignment cover pages based on user input. Instant print-ready A4 formatting.

HTML5 CSS3 JavaScript GitHub Pages
Open tool ↗
Full Stack · Retail Operations Built for Shop

Inventory & Sales Management System

Built for a retail shoe store. Replaces manual record-keeping with a centralized platform: product lifecycle tracking, per-size inventory with auto audit logging, real-time stock-validated sales commits, Chart.js reporting, and self-bootstrapping database.

PHP Supabase Bootstrap 5 JavaScript Chart.js MySQL
Full Stack · CineVault Core PHP & MVC

Movie Review & Rating Platform

Full-stack movie review web app (CineVault) with star-rated reviews, community trending lists, user profiles with review history, crowdsourced entries, persistent theme toggle, and an MVC architecture with parameterized PDO queries.

Core PHP MySQL PDO Vanilla JS HTML5 CSS3
Full Stack · Recruitment

Job Portal Management System

Full stack job recruitment portal enabling employers to post opportunities, manage candidate applications, and provide job seekers with searchable career listings.

Laravel (PHP) MySQL HTML5 CSS3 JS
Desktop Application · HR

Job & Hiring Management System

Desktop-based recruitment system designed with graphical desktop interface, applicant tracking, hiring workflow stages, and relational MySQL database persistence.

Java (Swing) MySQL Desktop UI
Simulation · Robotics

Warehouse Robot Picker Simulation

Robot picking and pathfinding simulation modeling automated item retrieval, spatial navigation, and trajectory efficiency in logistics warehousing.

Python Simulation Pathfinding
Console System · Data Structures

Shopping Mall Management System

Console-based management system managing retail store accounts, tenant inventories, billing calculations, and record tracking using core algorithms.

C Data Structures File Systems
Hardware · Green Energy Course

Thermal Cooling Jacket

Smart wearable cooling jacket pairing a phase-change material (PCM) with a Peltier thermoelectric element for energy-efficient personal thermal comfort.

Arduino IDE Peltier Thermoelectric PCM Material Sensors

Teaching & Instruction

Teaching CSE with clarity and open access

Undergraduate Assistant

United International University

  • Assist faculty in lab classes
  • Counsel students inside and outside the lab
  • Help check assignments during lab sessions
  • Run extra tutorial classes for students who are falling behind
  • Review lab topics when the course teacher asks

The role takes about five hours a week: two and a half in class and two and a half counselling.

Academic background

Education

Undergraduate · 2023 – 2027

B.Sc. in Computer Science & Engineering

United International University, Dhaka

Current CGPA 3.91 / 4.00

Higher Secondary · 2020 – 2022

Higher Secondary Certificate (HSC)

Dhaka Imperial College · Science

GPA 5.00 / 5.00

Secondary School · 2018 – 2020

Secondary School Certificate (SSC)

Monpura School and College · Science

GPA 5.00 / 5.00

Toolkit and recognition

Skills and awards

Languages

  • C
  • C++
  • Java
  • Python
  • PHP
  • JavaScript

Tools

  • OpenCV
  • Selenium
  • Laravel
  • MySQL
  • Arduino IDE
  • Supabase
  • Bootstrap 5
  • Chart.js

Research areas

  • NLP
  • RAG
  • LLMs
  • Vision-language models

Certifications

  • AI Workflows and Agents Grameenphone Ltd
  • GenAI & Prompt Engineering Grameenphone Ltd

Awards

  • Fall 2025Microprocessor and Microcontroller Laboratory Champion, Dept. of CSE, UIU
  • Spring 2025Electronics Laboratory Champion, Dept. of CSE, UIU
  • RepeatedUniversity Academic Merit Scholarship

Contact

Let's talk about research, teaching or collaboration.

Open to: MS/PhD positions in NLP, VLM, LLMs, research assistantships focused on LLM reliability, and teaching assistantships in CSE.

sayeemmahmood2@gmail.com

Project Category

Project Title

Key Features

    Architecture & Technical Highlights

      Technologies