Cosine Similarity
A similarity measure that computes the cosine of the angle between two vectors, with values ranging from -1 to 1. It considers only the direction of vectors, not their magnitude, and is widely used in NLP text similarity computation and information retrieval.
Core Facts
Semantic search converts text into high-dimensional vectors and finds the most relevant conclusions by computing cosine similarity, allowing queries phrased in different ways to match semantically equivalent results.
余弦相似度是衡量两个向量方向接近程度的指标,值域在-1到1之间,越接近1表示语义越相似
Vector similarity computation typically uses cosine similarity, which measures the angle between vector directions rather than absolute distance and is insensitive to vector magnitude.
Timeline (last 90 days)
Similarity scoring typically encodes resume text and job descriptions as vectors and then computes cosine similarity or scores using word-frequency statistics methods such as BM25.
Compared with the baselines, PULSE improves ROUGE-1 and BERTScore by about 3 points, and ROUGE-2 and cosine similarity by about 2 points.
In music taste matching scenarios, cosine similarity is more commonly used than Euclidean distance because it can ignore differences in total listening volume and focus on the similarity of preference structure.
Ridge, Kernel Ridge and MLP outperformed Scaled Procrustes on R² and cosine similarity but lagged on transfer performance at every N (up to 20,000).
R² and cosine similarity are computed on the source domain or paired data, measuring how well the mapping fits the seen data, and do not directly constrain the mapping's generalization on downstream tasks in the target domain.
Vector geometry cannot accomplish the proposition verification task: cosine similarity saturates, and a sentence's embedding is not a linear combination of its individual proposition embeddings.
When judging whether a proposition belongs to a sentence, an NLI judge is a more reliable choice than cosine similarity.
Gradient alignment typically uses metrics such as cosine similarity to compute the consistency of the direction of two gradients.
The study proposes two practical tools: backbone identification based on cosine similarity, and a registered-adapter reuse inner-product test that requires no coordinate alignment.
Developers can quickly determine via cosine similarity whether an adapter comes from the target backbone, avoiding blind reuse.
40 more timeline events
All Facts (20)
Semantic search converts text into high-dimensional vectors and finds the most relevant conclusions by computing cosine similarity, allowing queries phrased in different ways to match semantically equivalent results.
80%Verified余弦相似度是衡量两个向量方向接近程度的指标,值域在-1到1之间,越接近1表示语义越相似
80%VerifiedVector similarity computation typically uses cosine similarity, which measures the angle between vector directions rather than absolute distance and is insensitive to vector magnitude.
80%VerifiedThe core of semantic search is vector embedding technology, which converts code snippets and natural language queries into high-dimensional vectors and calculates semantic distance using methods such as cosine similarity.
80%VerifiedWhen feature vectors are L2-normalized, cosine similarity is equivalent to the dot product operation.
70%VerifiedText is encoded by an Embedding model into floating-point vectors of 768 to 3072 dimensions, stored in a vector database, and similarity retrieval is completed at millisecond speed via approximate nearest neighbor algorithms (HNSW, IVF, etc.).
70%VerifiedCosine similarity has a value range of [-1, 1]; in semantic retrieval, attention is typically focused only on the positively correlated range of 0 to 1, with values closer to 1 indicating greater semantic similarity.
65%VerifiedA cosine similarity value of 1 indicates completely identical directions (angle 0°), a value of 0 indicates orthogonality (angle 90°), and a value of -1 indicates completely opposite directions (angle 180°).
65%VerifiedCosine similarity only cares about vector direction and not length, with values strictly falling in the range [-1, 1].
65%VerifiedCosine similarity is the default standard in the field of face recognition for measuring whether two feature vectors belong to the same person.
65%UnverifiedEvaluation metrics based on semantic similarity (such as cosine similarity) cannot capture differences at the level of behavioral constraints and have systematic blind spots.
70%UnverifiedRAG relies on cosine similarity between embedding vectors to recall fragments, but similarity only measures "how alike" things are, not "what relationship" they have.
60%UnverifiedThe embedding model concatenates a tool's name, function description, parameter descriptions, and so on, and maps them into a fixed-dimensional vector; when a task arrives, the cosine similarity between the task vector and each tool vector can be computed to rank and recall.
60%UnverifiedCosine similarity measures the directional consistency of two vectors, has a range of [-1, 1], and is the foundation of tasks such as semantic search and clustering.
60%UnverifiedVectors are normalized when building the index, so that cosine similarity at runtime reduces to a single dot product.
60%UnverifiedIn RAG, documents are split into chunks, an embedding model converts each chunk into a high-dimensional vector, and the system finds the segments semantically closest to the user's query by computing similarity between vectors (such as cosine similarity).
60%UnverifiedCosine similarity measures closeness by computing the cosine of the angle between two vectors: 1 indicates perfect agreement, 0 indicates orthogonality, and -1 indicates complete opposition.
60%UnverifiedExact-match-based duplicate detection is difficult to cover semantic duplication scenarios, which can be addressed by introducing embedding cosine similarity to determine semantic duplicates.
60%UnverifiedCosine similarity measures the cosine of the angle between two vectors, with the formula cos(θ) = (A · B) / (||A|| × ||B||).
60%UnverifiedSimilarity scoring typically encodes resume text and job descriptions as vectors and then computes cosine similarity or scores using word-frequency statistics methods such as BM25.
50%