rishanthrajendhran's picture
Card: link the IdeaLens collection
c5bb16d verified
|
Raw History Blame Contribute Delete
4.1 kB
metadata
license: apache-2.0
language:
  - en
tags:
  - ai-text-detection
  - idea-provenance
datasets:
  - rishanthrajendhran/WildOutlines
extra_gated_prompt: >-
  Access is granted individually. Please say who you are and what you intend to
  use the weights for.

IdeaLens-LogisticClassifier

IdeaLens-LogisticClassifier is an idea-level detector: it judges whose ideas a document contains, not who wrote its words, so a document whose ideas are a person's counts as human however much of its prose an AI wrote. It is one of the detectors released with IdeaLens and trained on the same data.

Model logistic regression over OpenAI text-embedding-3-large embeddings
Reads the whole role-labelled outline, embedded as one text
Training data WildOutlines, train split
Output P(human); a document is flagged as AI when P(human) is below a cut
Default cut 0.05954 (global, 1% false-positive rate)
Hardware CPU only; embedding calls need OPENAI_API_KEY

Usage

The idealens package (PyPI) runs the whole pipeline: it assigns each document one of the eight formats, extracts the outline with the prompt, role vocabulary and worked examples the detectors were trained with, and scores it with this model and the thresholds in this repo.

pip install "idealens[openai]"
idealens run docs.jsonl -o scores.jsonl --model IdeaLens-LogisticClassifier

Input is JSONL with a text field per document. To score outlines you already have, use idealens score outlines.jsonl -o scores.jsonl --model IdeaLens-LogisticClassifier. Score outlines as extracted; the paraphrasing step is only for training data.

In Python, step by step:

import idealens as il

texts = [open("document.txt").read()]
formats = il.classify(texts)                  # one of the eight formats per document
outlines = il.extract(texts, formats)         # role-labelled outlines
with il.Detector("IdeaLens-LogisticClassifier") as det:
    records = det.score_outlines(outlines, format=formats)

r = records[0]
print(r["p_human"], r["verdict"]["ai"])       # P(human); flagged at the 1% global cut?
print(outlines[0].render())                   # the outline that was scored

Or in one call: records = il.run(texts, det). classify and extract use Gemini 3.7 Flash, the extractor the thresholds were fitted with (GEMINI_API_KEY); pass provider=idealens.providers.make(...) to use Vertex, OpenAI, Anthropic, OpenRouter or a local server. The package README covers the other ways to run it.

Thresholds

thresholds.json holds this model's cuts at 0.1%, 0.5%, 1%, 2% and 5% false-positive rates, fitted on the 80,000 human documents of WildOutlines' calibration split: one global cut per rate, plus per-format and per-topic cuts. The package applies them. A cut fitted for one model does not transfer to another model's scores. For documents unlike English web text, fit cuts on human documents from your own domain with idealens calibrate.

Related

Citation

@article{idealens2026,
  title   = {IdeaLens: Detecting AI Ideas in Long-form Writing},
  author  = {Anonymous},
  journal = {arXiv preprint arXiv:TBD},
  year    = {2026},
  url     = {https://arxiv.org/abs/TBD}
}