← Back to Pull requests

dataset: Add Dapfam patent retrieval tasks #2946

Closed
unknown closed this pull request without merging on Sep 09, 2025 08:40 UTC
View on GitHub
unknown unknown commented on Jul 23, 2025 16:06 UTC
Author

Dataset: DAPFAM – Domain-Aware Patent Retrieval Dataset
Aggregated at the Family Level (Ayaou et al. 2025, paper link ).
New TaskSubtype: Patent retrieval (added to TaskMetadata).
Variants (18)
Domains: ALL / IN / OUT
Query text: TitleAbstract or TitleAbstractClaims
Corpus text: TitleAbstract, TitleAbstractClaims (paper), TitleAbstractClaimsDescription (extra)
Classes are named Dapfam_{Domain}_{Query}_{Corpus}.

This table lists the 18 tasks generated by DAPFAMPatentRetrieval.py.
Columns:

  • Task name: the Python class registered in MTEB

  • Domain: ALL / IN / OUT

  • Query fields: which fields make up the query text

  • Corpus fields: which fields make up the corpus text

  • In paper: ✅ were these variants in Ayaou et al. (2025)?
  • | Task name | Domain | Query fields | Corpus fields | In paper? |
    |-------------------------------------------------------------------|:------:|:-----------------------:|:---------------------------:|:---------:|
    | Dapfam_ALL_TitleAbstract_TitleAbstract | ALL | Title, Abstract | Title, Abstract | ✨ extra |
    | Dapfam_ALL_TitleAbstract_TitleAbstractClaims | ALL | Title, Abstract | Title, Abstract, Claims | ✅ |
    | Dapfam_ALL_TitleAbstract_TitleAbstractClaimsDescription | ALL | Title, Abstract | Title, Abstract, Claims, Description | ✨ extra |
    | Dapfam_ALL_TitleAbstractClaims_TitleAbstract | ALL | Title, Abstract, Claims| Title, Abstract | ✨ extra |
    | Dapfam_ALL_TitleAbstractClaims_TitleAbstractClaims | ALL | Title, Abstract, Claims| Title, Abstract, Claims | ✅ |
    | Dapfam_ALL_TitleAbstractClaims_TitleAbstractClaimsDescription | ALL | Title, Abstract, Claims| Title, Abstract, Claims, Description | ✨ extra |
    | Dapfam_IN_TitleAbstract_TitleAbstract | IN | Title, Abstract | Title, Abstract | ✨ extra |
    | Dapfam_IN_TitleAbstract_TitleAbstractClaims | IN | Title, Abstract | Title, Abstract, Claims | ✅ |
    | Dapfam_IN_TitleAbstract_TitleAbstractClaimsDescription | IN | Title, Abstract | Title, Abstract, Claims, Description | ✨ extra |
    | Dapfam_IN_TitleAbstractClaims_TitleAbstract | IN | Title, Abstract, Claims| Title, Abstract | ✨ extra |
    | Dapfam_IN_TitleAbstractClaims_TitleAbstractClaims | IN | Title, Abstract, Claims| Title, Abstract, Claims | ✅ |
    | Dapfam_IN_TitleAbstractClaims_TitleAbstractClaimsDescription | IN | Title, Abstract, Claims| Title, Abstract, Claims, Description | ✨ extra |
    | Dapfam_OUT_TitleAbstract_TitleAbstract | OUT | Title, Abstract | Title, Abstract | ✨ extra |
    | Dapfam_OUT_TitleAbstract_TitleAbstractClaims | OUT | Title, Abstract | Title, Abstract, Claims | ✅ |
    | Dapfam_OUT_TitleAbstract_TitleAbstractClaimsDescription | OUT | Title, Abstract | Title, Abstract, Claims, Description | ✨ extra |
    | Dapfam_OUT_TitleAbstractClaims_TitleAbstract | OUT | Title, Abstract, Claims| Title, Abstract | ✨ extra |
    | Dapfam_OUT_TitleAbstractClaims_TitleAbstractClaims | OUT | Title, Abstract, Claims| Title, Abstract, Claims | ✅ |
    | Dapfam_OUT_TitleAbstractClaims_TitleAbstractClaimsDescription | OUT | Title, Abstract, Claims| Title, Abstract, Claims, Description | ✨ extra |

    Note: “✨ extra” variants were _not_ in the original paper but are provided here for extended evaluation.

    How to replicate paper document neural embedding tests :


    import mteb, torch
    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer(
        "Snowflake/snowflake-arctic-embed-m-v2.0",
        trust_remote_code=True,
        model_kwargs={"torch_dtype":"float16"},
    ).cuda().eval()
    
    tasks = [t for t in mteb.get_tasks() if t.startswith("Dapfam") and "_Description" not in t]
    mteb.MTEB(tasks).run(model, output_folder="results/snowflake_arctic_fp16")
    

  • [X] I have outlined why this dataset is filling an existing gap in mteb

  • I have tested that the dataset runs with the mteb package.
  • Thank you for reviewing! I’m happy to address any feedback.

    Diff: 589 lines (+441 / -148) across 7 files Reviewer: iliass-y Review duration: 68674m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 589 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.382
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2946"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.0% (MEDIUM) · Higher = larger blast radius
    50.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.7% · Safe to merge
    19.7%