Instructions to use harshdevjha/indicclaimver-labse-retriever with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use harshdevjha/indicclaimver-labse-retriever with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("harshdevjha/indicclaimver-labse-retriever") sentences = [ "Srijan Scam: Patna High Court Rejects Bail Plea Of Accused In Money Laundering Case", "The Patna High Court, presided over by Justice Madhuresh Prasad, rejected the bail plea of Pranav Kumar Ghosh, former Secretary of SMVSSL, accused in a money laundering case tied to the Srijan Scam involving fraudulent transfers and misappropriation of government funds under a conspiracy with officials and bank employees. Ghosh was arrested in 2021. The court found no reasonable grounds to believe he is not guilty or unlikely to reoffend, rejecting his claim of involvement below Rs. 1 crore under Section 45 PMLA proviso, as the case involves several crores. Prosecution alleged Ghosh received Rs. 25 lakh as undocumented home loan and was involved in auditing (2003-2004) and tax consultancy (2007-2008) for SMVSSL", "Escalating his attack on Nitish Kumar, Narendra Modi today raked up the issue of Patna blasts to allege that the Bihar Chief Minister was insensitive and had \"arrogantly\" refused a proper probe into the attack which he claimed was aimed at him and other BJP leaders. Modi said Kumar was enjoying a \"mehfil\" (party) when bombs were exploding at his election rally in Patna last week and drew a contrast with Chhattisgarh Chief Minister Raman Singh, saying he had sensitively handled the situation after naxal attack on a Congress rally earlier this year. \"Such a big thing happened in Patna… He (Kumar) was in a mehfil (bash) in Rajgir and they -- JD(U) leaders -- were enjoying a sumptuous meal. When he was asked about any likely security lapse, he arrogantly dismissed it. There was no mention of any inquiry,\" the BJP's Prime Ministerial candidate said at an election rally here. \"Terrorists carried out attack in Patna. One blast after another occurred. There was a conspiracy to blast our dais and to kill BJP leaders,\" he said. Terming Kumar's attitude as \"callous\", Modi said there was \"no trace\" of pain on the Chief Minister's face in the wake of the explosions and that he behaved as if some pleasant thing had happened.", "The Karnataka High Court declared Section 17 of the Maintenance and Welfare of Parents and Senior Citizens Act, 2007, ultra vires Section 30 of the Advocates’ Act, 1961, as it barred advocates from representing parties before tribunals. Justice M Nagaprasanna ruled that senior citizens, often unable to defend themselves, require legal aid under Article 21, and Section 17 cannot override advocates' rights post-2011 amendment. The court allowed a petition by 82-year-old K. Srinivas Ganiga, quashed a Deputy Commissioner order, and remitted the case for advocate representation. It emphasized that legal assistance streamlines proceedings without delay" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
IndicClaimVer LaBSE Retriever
A LaBSE-based multilingual sentence retriever fine-tuned for claim → evidence retrieval, built for the IndicClaimVer@FIRE-2026 shared task on claim verification across English, Hindi, Bengali, and CodeMix.
Why This Model Exists
The shared task's Subtask 1 (closed-evidence claim verification) requires, given a claim, retrieving the top-3 most relevant pieces of evidence from a large fixed pool (13,333 items at dev time, 28,618 at test time) spanning four languages/scripts. No baseline retriever was provided by the organizers, so this model was built from scratch on top of a pretrained multilingual sentence encoder.
Off-the-shelf sentence-transformers/LaBSE is a strong general-purpose multilingual encoder, but it isn't specialized for the specific way claims and evidence are phrased in this task — claims are often short, headline-style statements (sometimes in CodeMix or a mix of scripts), while evidence passages are longer news/fact-check style paragraphs. Fine-tuning on labeled (claim, gold evidence) pairs from the task's training set closes that gap, teaching the model to pull the two closer together in embedding space specifically for this claim-to-evidence retrieval pattern, rather than relying on generic semantic similarity alone.
This retriever is one half of a two-model pipeline (paired with a fine-tuned mDeBERTa veracity classifier) that powers both subtasks of IndicClaimVer@FIRE-2026 end-to-end — see the full pipeline repo for how it fits together with FAISS indexing, the classifier, and the open-web evidence pipeline used in Subtask 2.
What Changed From the Base Model
Fine-tuning was done with MultipleNegativesRankingLoss on 4,536 (claim, gold evidence) training pairs, treating each claim's true evidence as the positive and other evidence in the batch as in-batch negatives — a standard, efficient way to specialize a sentence encoder for retrieval without needing explicitly mined hard negatives.
The result, measured on the task's dev set (1,134 claims against a 13,333-item evidence pool):
| Metric | Off-the-shelf LaBSE | This fine-tuned model |
|---|---|---|
| Success@3 | 0.664 | 0.793 |
| nDCG@3 | 0.464 | 0.502 |
Success@3 — whether at least one gold evidence item lands in the top-3 retrieved — improved by nearly 13 points, which directly matters here since Subtask 1's downstream veracity classifier only ever sees the top-3 retrieved evidence, not the full pool.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: sentence-transformers/LaBSE
- Maximum Sequence Length: 256 tokens
- Output Dimensionality: 768 dimensions
- Similarity Function: Cosine Similarity
- Supported Modality: Text
- Languages: English, Hindi, Bengali, CodeMix (Hindi/Bengali-English mixed script)
- Fine-tuning task: Claim → evidence retrieval for the IndicClaimVer@FIRE-2026 shared task
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
- Full pipeline (retriever + classifier + open-web verification): IndicClaim-FIRE on GitHub
- Paired classifier: indicclaimver-mdeberta-classifier
Full Model Architecture
SentenceTransformer(
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'cls', 'include_prompt': True})
(2): Dense({'in_features': 768, 'out_features': 768, 'bias': True, 'activation_function': 'torch.nn.modules.activation.Tanh', 'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
(3): Normalize({})
)
Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("harshdevjha/indicclaimver-labse-retriever")
# Run inference
sentences = [
'Tarun Tejpal case: Law should not intervene, Says Meira Kumar',
'Lok Sabha Speaker Meira Kumar on Saturday said the “law should take its own course”, reacting to the alleged sexual assault by Tarun Tejpal, Editor-in-Chief of Tehelka magazine. “Anything where the dignity and security of women is compromised is something of great concern and it should not happen… I think law should take its own course and whatever needs to be done according to law must be done expeditiously,” Kumar told mediapersons here. She was addressing an interactive session on ‘Empowerment of the people and rising violence in society – Contradictory signal for Indian Democracy’ organised by the MCC Chamber of Commerce & Industry.',
'भारत में कोरोनावायरस के संक्रमण की रफ्तार कम होने का नाम नहीं ले रही है। http://www.covid19india.org के मुताबिक, मंगलवार रात 11:30 बजे तक देश में कोरोनावायरस संक्रमितों की कुल संख्या 11 लाख 92 हजार 151 हो चुकी है। मंगलवार को 37238 नए केस सामने आए, जबकि 670 लोगों की मौत हुई। कोरोना के कारण अब तक देश में 28769 लोगों की जान जा चुकी है। देश में अब एक्टिव केसों की संख्या 4 लाख 10 हजार 665 है, जबकि 7 लाख 52 हजार 312 लोग कोरोना को मात दे चुके हैं। यह लगातार छठा दिन रहा जब देश में कोरोना संक्रमितों की संख्या एक दिन में 35 हजार पार की।',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[ 1.0000, 0.6509, 0.0532],
# [ 0.6509, 1.0000, -0.0342],
# [ 0.0532, -0.0342, 1.0000]])
Usage in the IndicClaimVer Pipeline
Within the full pipeline, this model is used to build a FAISS index over an evidence pool, then retrieve the top-3 evidence candidates for each claim at inference time, which are then passed to the paired mDeBERTa classifier for SUPPORTS/REFUTES prediction. See subtask1/build_faiss_index.py and subtask1/retriever.py in that repo for the exact retrieval code this model was trained to work with.
Training Details
Training Dataset
IndicClaimVer@FIRE-2026 Subtask 1 Training Pairs
- Size: 4,536 training samples
- Source:
train_subtask1.jsonfrom the IndicClaimVer@FIRE-2026 organizers, reduced to(claim, gold evidence)pairs - Columns:
sentence_0andsentence_1 - Approximate statistics based on the first 100 samples:
sentence_0 sentence_1 type string string modality text text details - min: 13 tokens
- mean: 25.76 tokens
- max: 43 tokens
- min: 61 tokens
- mean: 153.09 tokens
- max: 256 tokens
- Samples:
sentence_0 sentence_1 মোদির দুনিয়ায় সত্য়কে চাপা যায়, বাস্তবে নয়; কটাক্ষ রাহুলের - Rahul Gandhiমোদিজির দুনিয়ায় সত্যকে উড়িয়ে দেওয়া যায়, কিন্তু বাস্তবে সত্যকে নির্মূল করা যায় না ।" এ দিন সংসদ চত্বরে সাংবাদিকদের প্রশ্নের জবাবে রাহুল গান্ধি আরও বলেন, "আমাকে যা বলার ছিল, আমি বলেছি এবং এটাই সত্য । তারা যত খুশি উড়িয়ে দিতে পারে, কিন্তু সত্যের জয় হবে ।উল্লেখ্য, 2014 ও 2019 সালে কোনও রাজনৈতিক দলই প্রধান বিরোধী দলের তকমা পায়নি ৷ ফলে গত দশ বছরে লোকসভায় বিরোধী দলনেতা বলে কেউ ছিলেন না ৷ বিরোধীদের মধ্যে সবচেয়ে বেশি সাংসদ থাকায় কংগ্রেসের লোকসভার দলনেতাই কার্যত বিরোধী দলনেতার কাজ করতেন ৷जयपुर में पीएम मोदी ने कहा, 'कांग्रेस एक ‘बेल गाड़ी’ है क्योंकि इसके ज्यादातर नेता जमानत पर हैं'प्रधानमंत्री नरेंद्र मोदी ने जयपुर में एक रैली के दौरान कांग्रेस पर निशाना साधते हुए कहा कि यह पार्टी एक बेल गाड़ी की तरह है क्योंकि इसके अधिकांश नेता जमानत पर बाहर हैं। उन्होंने आरोप लगाया कि कांग्रेस के नेताओं पर भ्रष्टाचार और घोटालों के गंभीर आरोप हैं, जिसके कारण उन्हें अदालतों से जमानत लेनी पड़ती है। मोदी ने इस बयान के जरिए कांग्रेस की विश्वसनीयता पर सवाल उठाया और जनता से भाजपा को समर्थन देने का आग्रह किया। यह टिप्पणी चुनावी माहौल में राजनीतिक प्रतिद्वंद्विता को और तीखा करने वाली मानी जा रही है।মুখ্যমন্ত্রীকে শো-কজ রাজ্যপালের, পালটা কড়া সমালোচনা রাজ্য সরকারের - show cause notice issued to CMমুখ্যমন্ত্রীকে শো-কজ করেছিলেন রাজ্যপাল ৷ তার পালটা মন্ত্রিসভার বৈঠক ডেকে রাজ্যপালের ভূমিকার তীব্র সমালোচনা করল রাজ্য সরকার ৷ পাশাপাশি শো-কজ নোটিশ প্রত্যাহারের কথাও বলা হয়েছে ৷কর্ণাটকের রাজ্যপাল থাওয়ারচাঁদ গেহলত মুখ্যমন্ত্রী সিদ্দারামাইয়াকে একটি বিষয়ে কারণ দর্শানোর নোটিশ দিয়েছিলেন ৷ তা প্রত্যাহার করার পরামর্শ দিয়েছে সরকার ৷ রাজ্যের সাংবিধানিক প্রধান মইসুরু আরবান ডেভেলপমেন্ট অথরিটি (MUDA) সংক্রান্ত একটি অভিযোগের প্রেক্ষিতে বিচারপ্রক্রিয়ায় অনুমোদন দেওয়া হবে না কেন তা জানতে চান প্রশাসনিক প্রধানের কাছে।এই ইস্যুতে মুখ্যমন্ত্রী সিদ্দারামাইয়াকে রাজ্যপালের নোটিশ দেওয়া নিয়ে মন্ত্রিসভার বৈঠকে বৃহস্পতিবার দীর্ঘ আলোচনাও হয় - Loss:
MultipleNegativesRankingLosswith these parameters:{ "scale": 20.0, "similarity_fct": "cos_sim", "gather_across_devices": false, "directions": [ "query_to_doc" ], "partition_mode": "joint", "hardness_mode": null, "hardness_strength": 0.0 }
Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 4per_device_eval_batch_size: 4multi_dataset_batch_sampler: round_robin
All Hyperparameters
Click to expand
per_device_train_batch_size: 4num_train_epochs: 3max_steps: -1learning_rate: 5e-05lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_steps: 0optim: adamw_torch_fusedoptim_args: Noneweight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08optim_target_modules: Nonegradient_accumulation_steps: 1average_tokens_across_devices: Truemax_grad_norm: 1label_smoothing_factor: 0.0bf16: Falsefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Nonetorch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneuse_liger_kernel: Falseliger_kernel_config: Noneuse_cache: Falseneftune_noise_alpha: Nonetorch_empty_cache_steps: Noneauto_find_batch_size: Falselog_on_each_node: Truelogging_nan_inf_filter: Trueinclude_num_input_tokens_seen: nolog_level: passivelog_level_replica: warningdisable_tqdm: Falseproject: huggingfacetrackio_space_id: Nonetrackio_bucket_id: Nonetrackio_static_space_id: Noneper_device_eval_batch_size: 4prediction_loss_only: Trueeval_on_start: Falseeval_do_concat_batches: Trueeval_use_gather_object: Falseeval_accumulation_steps: Noneinclude_for_metrics: []batch_eval_metrics: Falsesave_only_model: Falsesave_on_each_node: Falseenable_jit_checkpoint: Falsepush_to_hub: Falsehub_private_repo: Nonehub_model_id: Nonehub_strategy: every_savehub_always_push: Falsehub_revision: Noneload_best_model_at_end: Falseignore_data_skip: Falserestore_callback_states_from_checkpoint: Falsefull_determinism: Falseseed: 42data_seed: Noneuse_cpu: Falseaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedataloader_drop_last: Falsedataloader_num_workers: 0dataloader_pin_memory: Truedataloader_persistent_workers: Falsedataloader_prefetch_factor: Noneremove_unused_columns: Truelabel_names: Nonetrain_sampling_strategy: randomlength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falseddp_static_graph: Noneddp_backend: Noneddp_timeout: 1800fsdp: Nonefsdp_config: Nonedeepspeed: Nonedebug: []skip_memory_metrics: Truedo_predict: Falseresume_from_checkpoint: Nonewarmup_ratio: Nonelocal_rank: -1prompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: round_robinrouter_mapping: {}learning_rate_mapping: {}
Training Logs
| Epoch | Step | Training Loss |
|---|---|---|
| 0.4409 | 500 | 0.0173 |
| 0.8818 | 1000 | 0.0120 |
| 1.3228 | 1500 | 0.0072 |
| 1.7637 | 2000 | 0.0063 |
| 2.2046 | 2500 | 0.0030 |
| 2.6455 | 3000 | 0.0057 |
Training Time
- Training: 1.8 hours
Framework Versions
- Python: 3.10.20
- Sentence Transformers: 5.6.0
- Transformers: 5.14.1
- PyTorch: 2.11.0+cu128
- Accelerate: 1.14.0
- Datasets: 5.0.0
- Tokenizers: 0.22.2
Evaluation
Evaluated on dev_subtask1.json (1,134 claims) against the dev-time evidence pool (13,333 items):
| Metric | Off-the-shelf LaBSE | Fine-tuned LaBSE (this model) |
|---|---|---|
| Success@3 | 0.664 | 0.793 |
| nDCG@3 | 0.464 | 0.502 |
Citation
If you use this model, please cite the IndicClaimVer@FIRE-2026 shared task and link back to the pipeline repository and this model card.
BibTeX
Sentence Transformers
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MultipleNegativesRankingLoss
@misc{oord2019representationlearningcontrastivepredictive,
title={Representation Learning with Contrastive Predictive Coding},
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
year={2019},
eprint={1807.03748},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1807.03748},
}
- Downloads last month
- -
Model tree for harshdevjha/indicclaimver-labse-retriever
Base model
sentence-transformers/LaBSE