Urgent.News

What's breaking now, across thousands of outlets.

Tech

Three things I got wrong measuring my own cache

A team that produces regulatory documents kept getting the same kind of question from other teams: does the current rule allow X? Answering meant someone reading through memos, manuals and regulations to find where the rule was stated, then writing a summary with the source cited. The work was real, and the answer was almost always already written down somewhere. Retrieval fits this exactly. The…

In the process of measuring my own cache, I made three significant mistakes. First, I overlooked a crucial issue with my negation pairs. I had two of the five pairs that were supposed to be negative interrogatives that require a confirmatory answer. However, they were incorrectly labeled as pairs that should be rejected by the cache.

This mistake was linguistic rather than technical, and it would not have been caught through testing. This oversight led to an incorrect rate of 0.9702 for my negation row, which was included in the report. The corrected version now has an erratum, and these two pairs have been moved to a separate confirmatory category.

Secondly, my control group was too easy. The pairs that my cache was supposed to accept differed by nearly all of their tokens, while the pairs that should be rejected only differed by a single token. This imbalance made it difficult to accurately measure the cache's performance. The experiment inadvertently proved that the embedder could distinguish between near-identical strings and strings with slight differences, rather than semantic differences.

Finally, I initially believed the embedder failed at semantics due to the results I observed. However, I later realized that a function counting shared tokens, unaware of meaning, could produce similar outcomes. This realization meant that the embedder was not failing at semantics as initially thought but rather was succeeding at surface form while I misinterpreted the output as semantic.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Backtesting overfitting: why your backtest lies and how to make it honest

Cross-post. Original: stellarbytecapital.com/blog/backtesting-overfitting A profitable backtest is the easiest thing to produce in all of quant trading, and the most worthless.

  • Overfitting occurs when strategies learn noise in historical data instead of genuine patterns
  • Multiple testing and random noise can create impressive Sharpe ratios by chance
  • Honest backtesting requires out-of-sample and walk-forward testing, avoiding over-optimization

AWS Shared Responsibility Model Who Takes Care of What in the Cloud

Boa parte dos incidentes de segurança na nuvem não acontece porque a AWS falhou — acontece porque alguém assumiu, incorretamente, que a AWS cuidaria de algo que na verdade era responsabilidade do…

  • AWS Shared Responsibility Model clarifies security responsibilities in cloud services.
  • AWS responsible for infrastructure security, customer responsible for data and application security.

My tests could fail. They still could not tell me I was wrong.

A test proves your code does what you meant. It cannot prove that what you meant was correct. I could have written that sentence a year ago. I still shipped on the wrong side of it this week.

  • Test failed to confirm code correctness
  • Bug related to QIF payee and memo fields
  • Writer discovered importance of testing assumptions

More from Tuesday 25 August →