← Latest papers
💬 NLP

Quecto-V1: Empirical Analysis of 8-bit Quantized Small Language Models for On-Device Legal Retrieval

This paper introduces Quecto-V1, a 124-million-parameter Small Language Model trained exclusively on Indian statutes and compressed to under 150 MB via 8-bit quantization, demonstrating that domain-specific, offline deployment can effectively democratize legal intelligence while preserving data sovereignty and maintaining high retrieval accuracy.

Original authors: Subrit Dikshit

Published 2026-02-19
📖 5 min read🧠 Deep dive

Original authors: Subrit Dikshit

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

🏛️ The Problem: The "Giant Library" vs. The "Pocket Guide"

Imagine you are a lawyer or a law student in a small town in India. You need to find a specific rule in the Indian Penal Code (like "What is the punishment for theft?").

Currently, the "Smart Legal Assistants" available are like massive, cloud-based super-computers.

  • The Issue: They are huge, expensive, and require a super-fast internet connection to talk to.
  • The Risk: To use them, you have to send your private client details to a giant server in the cloud. This feels like shouting your client's secrets across a crowded room; it's risky and violates privacy.
  • The Barrier: Most local lawyers can't afford the expensive computers needed to run these giant models.

The paper argues that we don't need a "Super-Brain" that knows everything about the world (like cooking, space, and pop culture) to answer legal questions. We just need a specialized brain that knows only the law, fits in a pocket, and works offline.


🚀 The Solution: Quecto-V1 (The "Legal Specialist")

The authors built Quecto-V1, a tiny, super-focused AI model. Here is how they made it work, using simple analogies:

1. The "Blank Slate" Approach (Training from Scratch)

Most AI models are like students who read the entire internet before learning law. They know a lot, but they might get confused by all that extra noise.

  • Quecto-V1's Strategy: The authors took a blank notebook (a basic computer architecture called GPT-2) and only fed it Indian laws (The Constitution, IPC, CrPC).
  • The Analogy: Imagine a student who ignores all the news, sports, and movies and spends 100% of their time memorizing the Indian Penal Code. They aren't smart about everything, but they are a master of the law.

2. The "Compression" Trick (8-bit Quantization)

Usually, these AI models are huge files (like a 500MB video file). You can't run them on a regular laptop or phone.

  • The Fix: The team used a technique called 8-bit Quantization.
  • The Analogy: Think of the model as a high-resolution photo.
    • Original: A 4K photo that takes up 1GB of space.
    • Quecto-V1: They "compressed" it like turning that 4K photo into a high-quality JPEG. It looks almost exactly the same to the human eye, but it's 74% smaller.
    • Result: The model shrunk from nearly 500MB to under 150MB. That's small enough to fit on a basic laptop or even a phone, and it runs offline (no internet needed).

📊 The Results: Small but Mighty

The authors tested Quecto-V1 against two other models:

  1. GPT-2 (Base): A generic model with no legal training.
  2. TinyLlama: A slightly bigger, general-purpose model.

The Race:

  • The Generic Models: They got confused. They tried to guess the answer based on general knowledge and often made things up (hallucinations). They were slow and needed big computers.
  • Quecto-V1: Because it only knows the law, it found the exact answer 88.2% of the time.
  • The Winner: Even though Quecto-V1 is 10 times smaller than the other models, it beat them by a huge margin on legal questions.

The Trade-off:
When they compressed the model (Quantization), it got slightly less accurate (dropped by only 2.5%), but it became 2.5 times faster and took up 73% less space.

  • Analogy: It's like trading a slow, gas-guzzling limousine for a nimble, electric scooter. You lose a little bit of luxury, but you gain speed, efficiency, and you can drive it anywhere without needing a gas station (internet).

🔮 What's Next? (Future Plans)

The authors admit Quecto-V1 is a "proof of concept" and has some limits. Here is their roadmap:

  1. The "Citation" Upgrade (RAG): Currently, the AI relies on its memory. If it forgets a detail, it might guess. They plan to give it a "cheat sheet" (a database of real laws) so it can look up the exact text before answering.
  2. Learning from the Big Boss (Distillation): They want to teach Quecto-V1 by having a giant, smart AI (like Llama-3) explain complex legal logic to it, so the small model gets smarter without getting bigger.
  3. Speaking Local Languages: Right now, it only speaks English. They want to teach it Hindi, Tamil, and Marathi so it can help more people in India.
  4. Case Law: Currently, it knows the rules (statutes). They want to teach it the history (court judgments) so it understands how judges have interpreted those rules in the past.

💡 The Big Takeaway

"You don't need a giant brain to do a specific job."

For specialized fields like law, a small, focused, and private AI that runs on your own computer is often better than a massive, cloud-based AI that costs a fortune and risks your privacy. Quecto-V1 proves that with the right training and compression, we can bring powerful legal intelligence to everyone, even without high-speed internet.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →