Debugging Tool for Recommendation Systems Using Segmented Logging

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Machine-learned recommendation systems in job search platforms face challenges in debugging erroneous recommendations due to the time gap between when errors occur and when they are reported, making it difficult to recreate the error conditions as inputs to the model may have changed during this period.

Innovation Solution

A debugging tool that logs information including the model used, user identification, and timestamp for each recommendation, allowing administrators to replay the recommendation process and identify the source of errors without the need to log all features, thus enabling precise error analysis.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If all features are logged for every recommendation, then error recreation precision is improved, but system complexity and storage requirements worsen

Engineering Contradiction:
Improveerror recreation precisionVSAvoidlogging system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the logging approach by creating two distinct logging mechanisms: a detailed debug log that captures all features and model states for error analysis, and a separate summary log that records only essential information (user ID, job ID, recommendation score, timestamp). This segmentation allows the system to maintain high error recreation precision when needed while avoiding the complexity of continuously logging all features during normal operation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements preliminary action by pre-computing and storing feature snapshots at the time of each recommendation before the error occurs. When an error is reported, these pre-stored feature snapshots can be immediately retrieved and used for error recreation without needing to log all features continuously, thus reducing system complexity while maintaining error analysis capability.

Inventive Principle:
Principle #10Preliminary action

2Difficulty of detecting and measuring

If detailed feature logging is implemented, then debugging capability is improved, but data processing time and storage costs worsen

Engineering Contradiction:
Improvedebugging capabilityVSAvoiddata processing time
Core Design Contradiction:
Difficulty of detecting and measuringVSLoss of time

Solution Approach 1:

The patent extracts only the essential debugging information needed for error analysis from the complete feature set. Instead of processing and storing all features, the system extracts and stores specifically the feature values, model parameters, and recommendation scores at the time of each recommendation. This extraction approach maintains full debugging capability while significantly reducing data processing time and storage requirements.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent creates lightweight, disposable debug log entries that are generated only when errors occur or at scheduled intervals, rather than maintaining continuous detailed logging. These short-living log entries are processed and analyzed only when needed for debugging, minimizing data processing time while preserving the ability to detect and measure errors when they occur.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

3Measurement precision

If the time gap between error occurrence and reporting is reduced, then error recreation accuracy is improved, but system responsiveness requirements worsen

Engineering Contradiction:
Improveerror recreation accuracyVSAvoidsystem responsiveness
Core Design Contradiction:
Measurement precisionVSSpeed

Solution Approach 1:

The patent implements a feedback mechanism where the system automatically detects when a recommendation error occurs and immediately triggers an error log entry. This real-time feedback loop ensures that error information is captured at the exact moment of occurrence, maintaining high error recreation accuracy without requiring the system to respond faster than normal operational speed, as the logging is triggered automatically by the error condition itself.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11397924B1Debugging tool for recommendation systems
Publication Date: 2022.07.26 MICROSOFT TECHNOLOGY LICENSING LLC
  • US11397924B1 patent drawing
  • US11397924B1 patent drawing
  • US11397924B1 patent drawing

AI summary

In an example embodiment, a debugging tool is provided that includes logging functionality to allow a machine learned model administrator to replay machine learned recommendation model executions in order to identify points of error, without the scaling difficulties that would be involved in logging all features used in every recommendation.