# Financial Sts Eval

> Evaluates a model's ability to detect subtle semantic shifts between pairs of financial narratives by ranking similar pairs higher than dissimilar ones. It probes nuanced understanding of financial language, including intensified sentiment, elaborated details, plan realization, and emerging situations. Use when the user wants to benchmark on LLM-augmented FinSTS, Human-annotated FinSTS, or asks about evaluating this task. Reports AUC.

- Skill: `qhjqhj00/financial-sts-eval` (Agent Skill)
- Install (CLI): `npx skillmds add qhjqhj00/financial-sts-eval`
- Raw SKILL.md: https://api.skillmd.com/api/skills/qhjqhj00/financial-sts-eval/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: qhjqhj00 (https://skillmd.com/u/qhjqhj00)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/qhjqhj00/financial-sts-eval

---


# financial-sts-eval

> Beyond Surface Similarity: Detecting Subtle Semantic Shifts in Financial Narratives — Liu et al. (2024) (arXiv:2403.14341, 2024)

## What this evaluates

Evaluates a model's ability to detect subtle semantic shifts between pairs of financial narratives by ranking similar pairs higher than dissimilar ones. It probes nuanced understanding of financial language, including intensified sentiment, elaborated details, plan realization, and emerging situations.

## Datasets

- **LLM-augmented FinSTS** — total ?; splits: train (-1), test (-1)
- **Human-annotated FinSTS** — total ?; splits: test (-1)

## Metrics

- `AUC` **(primary)** — range: [0, 1]
  - Area Under the Receiver Operating Characteristic Curve. It measures the probability that a randomly chosen positive (similar) pair receives a higher similarity score than a randomly chosen negative (dissimilar) pair.

## Input / output format

**Input**: Pairs of financial narrative sentences.

**Output**: Cosine similarity score between the sentence embeddings.

## Scoring recipe

```python
def compute_auc(predictions, gold_labels):
    # predictions: list of cosine similarity scores
    # gold_labels: list of binary labels (1=similar, 0=dissimilar)
    from sklearn.metrics import roc_auc_score
    auc = roc_auc_score(gold_labels, predictions)
    return auc
```

## Common pitfalls

- AUC evaluates ranking quality rather than direct similarity score accuracy, so models can score high on AUC while having poorly calibrated similarity scores.
- The LLM-augmented test set is drawn from the same generation process as the training set, so high AUC there reflects memorization/domain alignment rather than true generalization; the human-annotated test set is the proper out-of-distribution benchmark.
- Cosine similarity is used as the raw output for ranking, not a normalized [0,1] similarity metric, which can affect threshold-dependent evaluations if misinterpreted.

## Evidence (verbatim from paper)

> We use Area Under the ROC Curve (AUC) as the evaluation metric to assess the quality of identified semantic simiarlity between a pair of financial narratives. A high AUC means that a model ranks the positive (similar) pairs higher than the negative (dissimilar) pairs consistently.

## Citation

```bibtex
@misc{liu2024financialsts,
  title={Beyond Surface Similarity: Detecting Subtle Semantic Shifts in Financial Narratives},
  author={Liu et al. (2024)},
  year={2024},
  note={arXiv:2403.14341}
}
```

- arXiv: 2403.14341

