Upload folder using huggingface_hub
Browse filesFiles changed (6)
- README.mdAdded+54
- config.jsonAdded+38
- metrics.jsonAdded+154
- model.safetensorsAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+21
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354---license: apache-2.0base_model: cross-encoder/nli-deberta-v3-basepipeline_tag: text-classificationlanguage: - entags: - memory - agents - recallic---
# recallic-update-classifier
Does a later message **replace** the fact a question asks about? Given a question and two messages the same user sent(earlier, then later), the model scores the probability that the later one makes the earlier one no longer the answer.
[Recallic](https://www.recallic.com) (self-hosted long-term memory for AI agents) uses it in its cautious recall mode torecognise updates that carry no change word, for example "taking the bus to the office every morning" followed weekslater by "taking the metro to the office these days".
## Input format
```Question: <the user's question>Earlier message: <earlier message>Later message: <later message>```
Two labels: 0 = keeps (both can stay true, someone else's fact, or nothing changed yet), 1 = replaces.Recallic treats a score of 0.8 or more as "replaces".
## Training
Fine-tuned from `cross-encoder/nli-deberta-v3-base` (3 epochs, learning rate 2e-5, batch 16, fp32) on 4,864 pairswritten by open-weight models (`openai/gpt-oss-120b` and `qwen/qwen3.8-27b`), with each label fixed by how the pair wasrequested (replaces, not yet changed, both true, someone else's fact), plus a reversed copy of every "replaces" pairlabelled 0. The added implicit-update and look-alike pairs were checked by the other model and kept only when itagreed with the label. 10% of personas were held out for validation. Training code:https://github.com/Recallic/Recallic/tree/main/training/update_classifier
## Evaluation
On update scenarios written independently by a different model family (Gemini), never used for training. InsideRecallic's recall, cautious mode, 240 scenarios: wrong answers 26 -> 11, right answers 162 -> 165 with the classifier.Full results and the per-batch protocol: https://github.com/Recallic/Recallic/tree/main/eval/results/update_classifier
## Limits
- English only; trained on short, chat-style personal messages.- It can mistake a second item of the same kind for a replacement (a suitcase for a trip versus the bag taken to work). Recallic applies it only to questions about the present and keeps its default mode free of it.
Licence: Apache-2.0 (as the base model).1234567891011121314151617181920212223242526272829303132333435363738{ "architectures": [ "DebertaV2ForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": null, "dtype": "float32", "eos_token_id": null, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-07, "legacy": true, "max_position_embeddings": 512, "max_relative_positions": -1, "model_type": "deberta-v2", "norm_rel_ebd": "layer_norm", "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 0, "pooler_dropout": 0, "pooler_hidden_act": "gelu", "pooler_hidden_size": 768, "pos_att_type": [ "p2c", "c2p" ], "position_biased_input": false, "position_buckets": 256, "relative_attention": true, "share_att_key": true, "tie_word_embeddings": true, "transformers_version": "5.24.1", "type_vocab_size": 0, "vocab_size": 128100}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154{ "base": "cross-encoder/nli-deberta-v3-base", "train": 6137, "validation_n": 606, "gemini_n": 210, "epochs": 3.0, "lr": 2e-05, "batch": 16, "device": "cuda", "minutes": 6.6, "gemini_before_training": { "n": 210, "accuracy": 0.4095, "replaces_precision": 0.402, "replaces_recall": 0.9762, "accuracy_by_kind": { "both_true": 0.0, "unrelated": 0.0635, "update": 0.9762 } }, "threshold_sweep": { "0.50": { "validation": { "n": 606, "accuracy": 0.967, "replaces_precision": 0.9176, "replaces_recall": 0.963, "accuracy_by_kind": { "both_true": 0.9888, "not_yet": 0.9906, "other_person": 0.9885, "replaces": 0.963, "replaces_reversed": 0.9321 } }, "gemini": { "n": 210, "accuracy": 0.9333, "replaces_precision": 0.9375, "replaces_recall": 0.8929, "accuracy_by_kind": { "both_true": 0.9683, "unrelated": 0.9524, "update": 0.8929 } } }, "0.70": { "validation": { "n": 606, "accuracy": 0.9653, "replaces_precision": 0.9172, "replaces_recall": 0.9568, "accuracy_by_kind": { "both_true": 0.9888, "not_yet": 0.9906, "other_person": 0.9885, "replaces": 0.9568, "replaces_reversed": 0.9321 } }, "gemini": { "n": 210, "accuracy": 0.9333, "replaces_precision": 0.9375, "replaces_recall": 0.8929, "accuracy_by_kind": { "both_true": 0.9683, "unrelated": 0.9524, "update": 0.8929 } } }, "0.80": { "validation": { "n": 606, "accuracy": 0.9653, "replaces_precision": 0.9222, "replaces_recall": 0.9506, "accuracy_by_kind": { "both_true": 1.0, "not_yet": 0.9906, "other_person": 0.9885, "replaces": 0.9506, "replaces_reversed": 0.9321 } }, "gemini": { "n": 210, "accuracy": 0.9381, "replaces_precision": 0.9494, "replaces_recall": 0.8929, "accuracy_by_kind": { "both_true": 0.9841, "unrelated": 0.9524, "update": 0.8929 } } }, "0.90": { "validation": { "n": 606, "accuracy": 0.9719, "replaces_precision": 0.9448, "replaces_recall": 0.9506, "accuracy_by_kind": { "both_true": 1.0, "not_yet": 0.9906, "other_person": 1.0, "replaces": 0.9506, "replaces_reversed": 0.9506 } }, "gemini": { "n": 210, "accuracy": 0.9286, "replaces_precision": 0.9481, "replaces_recall": 0.869, "accuracy_by_kind": { "both_true": 0.9841, "unrelated": 0.9524, "update": 0.869 } } }, "0.95": { "validation": { "n": 606, "accuracy": 0.9719, "replaces_precision": 0.9503, "replaces_recall": 0.9444, "accuracy_by_kind": { "both_true": 1.0, "not_yet": 0.9906, "other_person": 1.0, "replaces": 0.9444, "replaces_reversed": 0.9568 } }, "gemini": { "n": 210, "accuracy": 0.9286, "replaces_precision": 0.9481, "replaces_recall": 0.869, "accuracy_by_kind": { "both_true": 0.9841, "unrelated": 0.9524, "update": 0.869 } } } }}123version https://git-lfs.github.com/spec/v1oid sha256:87b292510bf553c9d368a5315d15ce53e97b339654b055288b4e94a1c4eda4b0size 737719272123456789101112131415161718192021{ "add_prefix_space": true, "backend": "tokenizers", "bos_token": "[CLS]", "clean_up_tokenization_spaces": false, "cls_token": "[CLS]", "do_lower_case": false, "eos_token": "[SEP]", "is_local": false, "local_files_only": false, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "sp_model_kwargs": {}, "split_by_punct": false, "tokenizer_class": "DebertaV2Tokenizer", "unk_id": 3, "unk_token": "[UNK]", "vocab_type": "spm"}README.mdAdded+54
config.jsonAdded+38
metrics.jsonAdded+154
model.safetensorsAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+21