Run this model with HF Jobs
Run mindoval/fles1-v14 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mindoval/fles1-v14. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mindoval/fles1-v14 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mindoval/fles1-v14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mindoval/fles1-v14 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mindoval/fles1-v14", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update model card: Mindoval Inc + CLFR paper + honest reproducibility stats
Browse files12345678910111213141516171819202122232425262728293031323334352 unmodified lines38394041424344454647484950515253545556572 unmodified lines6061626364656611 unmodified lines787980818283842 unmodified lines87888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137---language: enlicense: apache-2.0tags:- sparse-retrieval- lexical-embeddings- bert- information-retrieval- splade-family- flops-regularizationdatasets:- ms_marcometrics:- ndcg- mrr- recallpipeline_tag: feature-extraction---# FLES-1 v14 β Sparse Lexical Encoder (Best Quality)> Full paper coming soon.FLES-1 transforms text into interpretable sparse vectors using BERT's MLM predictions. Each of the 30,522 dimensions corresponds to a real vocabulary word β readable, debuggable, and compatible with standard inverted indices (Elasticsearch, OpenSearch).Built by **Eyelid AI Labs / Mindoval, Inc.** β small lab, AI-first development. Supported by Microsoft for Startups.Trained with two novel techniques:- **L1 FLOPS regularization** β eliminates the gradient explosion that causes training instability in all published sparse retrieval models- **Step-interval CLFR** β closed-loop sparsity control that adjusts regularization every ~6,250 steps based on measured sparsity## Results (nfcorpus, threshold=0.3)| Metric | Value ||--------|-------|2 unmodified lines| Recall@100 | 0.2544 || Avg NNZ | 359 |### Baselines| Model | NDCG@10 | NNZ | Distillation ||-------|---------|-----|-------------|| **FLES-1 v14** | **0.305** | **359** | **None** || BM25 (Pyserini, stemmed) | 0.325 | β | β || SPLADE-Doc (no distillation) | 0.323 | β | None || SPLADE original (no distillation) | 0.336 | β | None || SPLADE-cocondenser (distilled) | 0.340 | 125 | Cross-encoder |FLES-1 v14 is 6% behind Pyserini BM25 and 6-10% behind non-distilled SPLADE. The paper's contribution is the training methodology (CLFR, L1 FLOPS, lambda-steps tradeoff), not the absolute numbers.### Reproducibility| Seed | NDCG@10 ||------|---------|| v14 (original) | 0.305 |2 unmodified lines| v32 (seed=7777) | 0.299 || v26a (seed=42) | 0.272 |**Mean: 0.295. Std: 0.013.**### Cross-Domain (zero-shot)11 unmodified lines|--------|-----------|-----|| Encoding | 245 docs/sec | 87 docs/sec || Query latency | 10 ms avg | 33 ms avg || Index size (1K docs) | 0.32 MB (9.5x smaller than dense 768d) |## Training2 unmodified linesData: 200,000 MS MARCO random negativesEpochs: 2 (12,500 steps)Loss: InfoNCE (Ο=0.05) + L1 FLOPS (Ξ»_d=0.00003) + anti-collapseController: Step-interval CLFR (target_nnz_d=400, gain=0.1)Optimizer: AdamW, lr=2e-5, batch_size=32, 7 negatives per queryHardware: 1x A100 80GB, ~2 hours```## Usage```pythonfrom fles1_encoder import FLES1Encoderencoder = FLES1Encoder.from_pretrained("eyelid-ai-labs/fles1-v14")sparse = encoder.encode("What is machine learning?")# {'machine': 1.31, 'learning': 1.24, 'train': 0.61, ...}# Batch encodevectors = encoder.encode_batch(["query 1", "query 2"], batch_size=32)# For inverted index storageids, weights = encoder.encode_to_ids("What is machine learning?")```## The CLFR PaperThis model is the primary result of a 75-run empirical study of training dynamics in sparse retrieval. Three core contributions:1. **L1 FLOPS regularization** β reduces training crashes from 10-17 to 0-7 per run2. **Step-interval CLFR** β 1 adjustment outperforms 12,500 per-step adjustments3. **Lambda-steps tradeoff** β eff_reg = Ξ» Γ steps, sweet spot 0.10-0.20Full paper coming soon.## Citation```bibtex@article{tavarez2026clfr,title={Closed-Loop FLOPS Regulation for Learned Sparse Retrieval: A 75-Run Empirical Study},author={Tavarez, Golvis},organization={Eyelid AI Labs / Mindoval, Inc.},year={2026},note={Supported by Microsoft for Startups}}```## LicenseApache 2.0*Eyelid AI Labs by Mindoval, Inc.*1234567891011121314151617182 unmodified lines212223242526272829302 unmodified lines333435363738394041424344454647484950515211 unmodified lines64656667686970712 unmodified lines7475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126# FLES-1 v14 β Sparse Lexical Encoder (Best Quality)> Full paper coming soon.## Model DescriptionFLES-1 transforms text into interpretable sparse vectors using BERT's MLM predictions. Each of the 30,522 dimensions corresponds to a real vocabulary word β readable, debuggable, and compatible with standard inverted indices (Elasticsearch, OpenSearch).Trained with two novel techniques:- **L1 FLOPS regularization** β eliminates the gradient explosion that causes training instability in all published sparse retrieval models- **Step-interval CLFR** β closed-loop sparsity control that adjusts regularization every ~6,250 steps (one epoch in our setup) based on measured sparsity## Metrics### nfcorpus (threshold=0.3)| Metric | Value ||--------|-------|2 unmodified lines| Recall@100 | 0.2544 || Avg NNZ | 359 |### ReproducibilityThis recipe was run 5 times with different seeds:| Seed | NDCG@10 ||------|---------|| v14 (original) | 0.305 |2 unmodified lines| v32 (seed=7777) | 0.299 || v26a (seed=42) | 0.272 |**Mean: 0.295. Std: 0.013.** v14 is at the high end of variance. Expected reproduction: 0.295 Β± 0.013.### Baselines| Model | NDCG@10 | NNZ | Distillation | Training Data ||-------|---------|-----|-------------|---------------|| **FLES-1 v14** | **0.305** | **359** | **None** | **200K MS MARCO** || BM25 (Pyserini, stemmed) | 0.325 | β | β | β || BM25 (regex, no stemming) | 0.307 | β | β | β || SPLADE-Doc (no distillation) | 0.323 | β | None | Full MS MARCO || SPLADE original (no distillation) | 0.336 | β | None | Full MS MARCO || SPLADE-cocondenser (distilled) | 0.340 | 125 | Cross-encoder | Full MS MARCO |FLES-1 v14 is 6% behind Pyserini BM25 (0.325) and 6-10% behind non-distilled SPLADE variants. The paper's contribution is the training methodology (CLFR, L1 FLOPS, lambda-steps tradeoff), not the absolute numbers.### Cross-Domain (zero-shot)11 unmodified lines|--------|-----------|-----|| Encoding | 245 docs/sec | 87 docs/sec || Query latency | 10 ms avg | 33 ms avg || Index size (1K docs) | 0.32 MB | β || vs dense 768d | 9.5x smaller | β |## Training2 unmodified linesData: 200,000 MS MARCO random negativesEpochs: 2 (12,500 steps)Loss: InfoNCE (Ο=0.05) + L1 FLOPS (Ξ»_d=0.00003) + anti-collapseController: Step-interval CLFR, adjusted every ~6,250 steps (target_nnz_d=400, gain=0.1)Optimizer: AdamW, lr=2e-5, batch_size=32, 7 negatives per queryHardware: 1Γ A100 80GB, ~2 hours```## The CLFR Paper> Full paper coming soon.This model is the primary result of a 75-run empirical study of training dynamics in sparse retrieval. The study discovered:- L1 FLOPS regularization (reduces training crashes from 10-17 to 0-7 per run)- Epoch-level closed-loop sparsity control (1 adjustment per ~6,250 steps outperforms 12,500 per-step adjustments)- The lambda-steps tradeoff (eff_reg = Ξ» Γ steps, sweet spot 0.10-0.20)- The binary contrastive ceiling (0.298 Β± 0.007 for InfoNCE with random negatives)- Checkpoint archaeology (longitudinal weight analysis across 43 training runs)## Limitations- Trained on MS MARCO (English web Q&A). Domain transfer to non-English or specialized domains requires fine-tuning.- NNZ=359 is denser than SPLADE (125). For latency-critical deployments, consider [fles1-v12b](../fles1-v12b/) (NNZ=139).- The 0.305 result is at the high end of variance for this recipe (mean=0.295).- Does not use knowledge distillation β the gap to SPLADE (10.4%) is structural.## Usage```pythonfrom fles1_encoder import FLES1Encoder# Load modelencoder = FLES1Encoder.from_pretrained("mindoval/fles1-v14")# Encode text to sparse vectorsparse = encoder.encode("What is machine learning?")# Returns: {'machine': 1.39, 'learning': 1.08, 'machines': 0.63, ...}# Batch encodevectors = encoder.encode_batch(["query 1", "query 2"], batch_size=32)# Encode to term IDs (for inverted index)ids, weights = encoder.encode_to_ids("What is machine learning?")```## LicenseApache 2.0*Golvis Tavarez β Mindoval, Inc.**We thank Microsoft, Inc. for supporting this research through the Microsoft for Startups program.**[https://mindoval.com/ai-research](https://mindoval.com/ai-research)*
README.md+54-65