This invention is related to systems and methods for identifying both legitimate (e.g., good mail) and undesired information (e.g., junk mail), and more particularly to detecting spam messages in part by scanning messages using a filter trained on IP address or URL features and another filter independently trained on text-related features and/or other features extractable from a message.
The advent of global communications networks such as the Internet has presented commercial opportunities for reaching vast numbers of potential customers. Electronic messaging, and particularly electronic mail (“email”), is becoming increasingly pervasive as a means for disseminating unwanted advertisements and promotions (also denoted as “spam”) to network users.
The Radicati Group, Inc., a consulting and market research firm, estimates that as of August 2002, two billion junk e-mail messages are sent each day—this number is expected to triple every two years. Individuals and entities (e.g., businesses, government agencies) are becoming increasingly inconvenienced and oftentimes offended by junk messages. As such, spam is now or soon will become a major threat to trustworthy computing.
A key technique utilized to thwart spam is employment of filtering systems/methodologies. One proven filtering technique is based upon a machine learning approach—machine learning filters assign to an incoming message a probability that the message is spam. In this approach, features typically are extracted from two classes of example messages (e.g., spam and non-spam messages), and a learning filter is applied to discriminate probabilistically between the two classes. Since many message features are related to content (e.g., words and phrases in the subject and/or body of the message), such types of filters are commonly referred to as “content-based filters”.
With the onslaught of such spam filtering techniques, many spammers have thought of ways to disguise their identities to avoid and/or bypass spam filters. Thus, conventional content-based and adaptive filters may become ineffective in recognizing and blocking disguised spam messages.
The following presents a simplified summary of the invention in order to provide a basic understanding of some aspects of the invention. This summary is not an extensive overview of the invention. It is not intended to identify key/critical elements of the invention or to delineate the scope of the invention. Its sole purpose is to present some concepts of the invention in a simplified form as a prelude to the more detailed description that is presented later.
The present invention provides for a system and method that facilitate distinguishing between spam and good messages in part by employing various smoothing techniques to place less emphasis on making weights associated with origination or destination features small and more emphasis on making weights associated with words small. As a result, a machine learning filter can rely more on internet protocol (IP) addresses, for example, since they may need to see them fewer times than words to give them a higher weight.
According to one aspect of the present invention, the system and method provide for a machine learning filter that utilizes origination features such as IP addresses and/or destination features such as universal resource locators (URLs) apart or independently from other features such as text-based features (e.g., key words or phrases). In particular, at least two filters can be trained independently of the other to handle different features. For example, a first filter can be trained on only origination or destination features and any other relevant features can be learned by a second filter, such that the training of the first filter does not influence the training of the second filter, or vice versa.
Messages can be subjected to at least one of the two filters, depending on the particular feature in focus or the most relevant feature in the particular message. For instance, imagine that the feature in focus is an IP address or a URL. Thus, one of the at least two filters can be trained on IP addresses or URLs and the other on non-IP address or non-URL features (e.g., text, key words, character strings, etc.).
Spammers typically send out the same message over and over again from a known IP address; however every few weeks, spammers can send the same message but from a different or new IP address. Had the IP address stayed the same on the current message, one filter trained only on known IP addresses (e.g., known to be spam or known to be good) could have readily identified the message as spam. However, because the IP address is now unknown, a filter trained only on text-related or other features can be employed to determine whether the message is spam. Thus, two different filters can be trained for different features. As a result, the present invention can better generalize to cases when the IP address or URL is known or unknown.
Alternatively or in addition, the two filters can be used together either concurrently or consecutively to scan for the different features without any undue influence from or reliance on the other. For example, imagine that a spammer is sending “get out of debt” spam from a particular IP address and imagine that a filter has learned that this IP address is a near perfect indicator of whether such messages are spam. In addition, a second filter has learned that key words or phrases such as “out of debt” “debt” “relief” and “free quote” included in the message are also strongly indicative of spam. By combining the results of both filters, a spam prevention system can better distinguish between legitimate messages and spam, thereby improving spam catch rates.
Another approach involves training multiple models of a filter. For example, one can be trained using IP addresses, another can be trained using the top (first) 24 bits of IP addresses, and yet another can be trained using the top 16 bits of IP addresses (or some number of bits less than 32 bits). For instance, if there is insufficient data on a particular IP address but the filter or model has observed several messages with the top 24 bits of that IP address, the model trained using the top 24 bits can be selected to scan or “filter” the IP address data that is on hand. Thus, multiple models can be trained such that only a specific model for which there is sufficient training data is used. This is also applicable to domain names.
According to a further aspect of the invention, the ambiguity of origination or destination features in messages can be resolved to a large extent so that a machine learning filter can appropriately and accurately identify the relevant features to determine whether the message is spam. This can referred to as the ambiguity problem.
The ambiguity problem can arise with respect to URLs as well as IP addresses. Any number of URLs can be added to a spam message in order to mislead and confuse a filter. A conventional filter may not be able to tell which URL is the relevant destination feature of the message. Hence, an accurate determination as to whether the message is spam can be compromised and perhaps unattainable the majority of the time. With respect to IP addresses, most clients cannot decipher which is the last IP address external to the system, the identification of which can be important to classify the message as spam or legitimate. To address either situation, various heuristics and/or algorithmic functions can be employed to learn the worst scoring IP address as well as to optimize or maximize accuracy of training data. In addition, user feedback as to which messages are marked as spam and which are marked as good can also be collected and used as input for a machine learning filter to at least facilitate determining which IP addresses or URLs appear to be spam or legitimate.
As previously mentioned, the IP address and/or URL features may be the most valuable features extractable from a message for spam classification and prevention. However, machine learning filters can have no way of knowing this and in most cases, may assign equal or comparable weights to an IP address in a message as well as to the words in the message. Most machine learning systems provide some type of technique to smooth their parameters. The present invention also facilitates modifying the smoothing or regularization techniques so that IP addresses and URLs are counted as more valuable.
Furthermore, it should be appreciated that various aspects of the present invention can be used in conjunction with a feedback loop, in which users who opt-in provide feedback regarding messages they have received to a machine learning system to affect filter updates and the like.
To the accomplishment of the foregoing and related ends, certain illustrative aspects of the invention are described herein in connection with the following description and the annexed drawings. These aspects are indicative, however, of but a few of the various ways in which the principles of the invention may be employed and the present invention is intended to include all such aspects and their equivalents. Other advantages and novel features of the invention may become apparent from the following detailed description of the invention when considered in conjunction with the drawings.
The present invention is now described with reference to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It may be evident, however, that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to facilitate describing the present invention.
As used in this application, the terms “component” and “system” are intended to refer to a computer-related entity, either hardware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a server and the server can be a component. One or more components may reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers.
The subject invention can incorporate various inference schemes and/or techniques in connection with generating training data for machine learned spam filtering. As used herein, the term “inference” refers generally to the process of reasoning about or inferring states of the system, environment, and/or user from a set of observations as captured via events and/or data. Inference can be employed to identify a specific context or action, or can generate a probability distribution over states, for example. The inference can be probabilistic—that is, the computation of a probability distribution over states of interest based on a consideration of data and events. Inference can also refer to techniques employed for composing higher-level events from a set of events and/or data. Such inference results in the construction of new events or actions from a set of observed events and/or stored event data, whether or not the events are correlated in close temporal proximity, and whether the events and data come from one or several event and data sources.
It is to be appreciated that although the term message is employed extensively throughout the specification, such term is not limited to electronic mail per se, but can be suitably adapted to include electronic messaging of any form that can be distributed over any suitable communication architecture. For example, conferencing applications that facilitate a conference or conversation between two or more people (e.g., interactive chat programs, and instant messaging programs) can also utilize the filtering benefits disclosed herein, since unwanted text can be electronically interspersed into normal chat messages as users exchange messages and/or inserted as a lead-off message, a closing message, or all of the above. In this particular application, a filter can be trained to automatically filter particular message content (text and images) in order to capture and tag as junk the undesirable content (e.g., commercials, promotions, or advertisements).
In the subject invention, the term “recipient” refers to an addressee of an incoming message. The term “user” refers to a recipient who makes use of messaging programs as well as filtering systems to detect and prevent spam and/or who has chosen, either passively or actively, or has been indirectly selected to participate in the feedback loop systems and processes as described herein.
One of the primary tasks of filtering systems can be to improve catch rates and to increase gains in spam detection. According to an aspect of the present invention, changing the smoothing of particular message features can facilitate increasing gains in spam detection. Smoothing can refer to an amount of trust for a particular feature. In general, smoothing or regularization techniques try to keep weights of features small. Since the weights of features of a message, for example, are added together to compute a score, a small weight means it contributes very little to the final score.
For instance, a random odd word in a message may just be there by chance. Therefore, it does not mean that the word can be trusted to indicate or identify either good or spam messages just because it has been seen in a few spam messages or a few good messages. However, the IP address indicates where the message comes from and can be difficult to forge. Furthermore, most IP addresses are pure: pure good or pure spam. Thus, if the same IP address is seen a few times, one can be pretty certain that it can identify either good or bad messages, as the case may be. By changing the smoothing such that less emphasis is put on making the weight of an IP address small or that more emphasis is put on making the weight of words small, the filter can rely more on the IP address. Because machine learning systems can see IP addresses fewer times than words to understand that it indicates good messages or spam, the IP addresses can be given a higher weight and thus more value can be added to the overall determination of whether a message is spam. As shown by experimentation of this, substantial increases in gains were observed.
Moreover, origination features like IP addresses and destination features like URLs are both very powerful parts of a message because they cannot be easily faked by spammers. As a result, they can be very powerful features for a spam filter and in particular, a machine learning based spam filter. Unfortunately, a generalization problem can exist. In particular, the IP address and/or URL features can change from day to day; thus filters trained to emphasize IP addresses over words can be ineffective and useless.
For instance, a spammer who sells mortgage refinancing can change his IP address from week to week. Some messages about mortgage refinancing are legitimate, although the vast majority is spam. If a filter has been trained to learn key words such as “mortgage” “refinance” “no” “obligation” and “free” as well as IP addresses, then it can determine to ignore all of those key words common to the mortgage-type messages and only look at the IP addresses because that may be the only feature different among the messages. This means that the filter may not factor the presence of the above key words in to its decision as to whether the message is most likely to be spam. When the spammer changes his IP address and sends the mortgage message again, the filter may not generalize to the new message because it does not recognize the new IP address. In the meantime, it can take a few weeks to update the filter and this delay can lead to the delivery of undesirable amounts of spam.
The extracted data can be analyzed or organized by a feature analysis component 120 into two or more sets or subsets of training data for use with a respective training component 130. For instance, the extracted data can include IP addresses, the top 24 bits of IP addresses, the top 16 bits of IP addresses, URLs as well as domain names (fully qualified domain names and the sub-domains thereof), header line information, words, phrases, and/or character strings. Thus, the set of training data can comprise a first subset comprising IP address data, a second subset comprising the top 24 bits of IP addresses, a third subset comprising the top 16 bits of IP addresses, a fourth subset comprising URL data, and/or a fifth subset comprising substantially all other relevant text-related data.
The filter training component 130 can include a plurality of subcomponents that can individually train a first filter 140 on a particular subset of training data which is separate and apart from the training of a second filter 150 using a different subset of training data. For example, the first filter 140 can be trained on the IP address data (160) (or URL data 170). Meanwhile, the second filter 150 can be trained on the text-related features. As a result, the two filters are trained independently of the other such that the training of the one filter does not unduly influence the training of the other. Thus, when spammers change their IP addresses every few weeks, the IP address is not blindly relied upon to detect for spam. Instead the text-feature trained filter (150) can be employed to catch it.
Moreover, multiple filters can be trained, whereby each filter is trained on a different feature type to facilitate generalizing to new variations of features in spam messages. For example, when a full 32 bits of an IP address are not discernible, filters can be trained on less than 32 bits of the IP addresses. One filter can be trained on the top 24 bits of IP addresses, another filter can be trained on the top 16 bits of IP addresses, still another filter can be trained on URL data, etc. The same can be done with respect to domain names (sub-domains of fully qualified domain names). As a result, the most specific filter or model can be used based on the most amount of information available in an incoming message. For instance, if there is insufficient data on a particular IP address extracted from the message, but the top 16 bits of that IP address has been observed in previous messages, the filter trained on the top 16 bits can be employed since this is the most specific filter available based on the available data.
It should be appreciated that such specific filters can include or exclude other features and in particular, text-based features. For example, the filter trained on the top 16 bits of an IP address can also be trained on text-based features such as keywords, phrases, and the like. Conversely, the 16-bit filter can forgo training on text-based features. In such a case, an additional filter trained on the text-based features may be employed to filter the incoming messages.
In an alternative scheme, two or more different machine learning filters can be trained and employed concurrently or consecutively to more accurately detect spam—for example, one using at least one of the IP address features and the URLs, and the other using other relevant features. If these are probabilistic models, this is equivalent to assuming independence between the features in one model and the features in the other model. This can be somewhat unintuitive—one would expect the source of spam to be highly correlated with its content, so an explicit assumption of independence is surprising. Some model types (Naïve Bayes) assume independence between all features, and adding IP addresses and URLs as independent features to such a model is natural. Naïve Bayes models typically assume independence not because such independence is true, nor because it improves the model, but primarily because when all features are assumed independent, modeling becomes very simple. However, Naïve Bayes models typically have mediocre performance for spam filtering when compared to other model types (e.g., support vector machines (SVMs), perceptrons, maximum entropy (a.k.a. logistic regression), neural networks) that explicitly model dependence.
One of these more powerful model types can be used for modeling non-IP, non-domain features. When the base model type used for other features is powerful enough to model dependencies, it is very surprising to explicitly model either the URLs or the IP addresses as independent of the other features. The two or more models so trained can then be combined in multiple ways. If both models return scores of some sort (e.g., probabilities), the scores can be added together or multiplied together. Alternatively, an additional model such as a weighted linear combination, for example, can be trained to combine the scores.
Referring now to
In this instance, the text trained filter 220 can be applied to the message together with the unknown IP address filter 240 in order to determine whether the message is spam since the IP address extracted from the message is unknown. The unknown IP address filter can be trained by using other messages having unknown IP addresses which were received during a particular time frame. For example, messages also having unknown IP addresses that were received at about the same time as the current message can be used.
Unknown IP addresses can be viewed at several levels. For example, an unknown IP address can be one that has never been seen in its exact form; however, the top 16 or 24 bits of the IP address may have been observed before. Thus, a filter trained only on the top 24 bits can be employed. If only the top 16 bits of the IP address in the message have been seen before, then the 16-bit filter can be used—with or without the text-related filter. However, if the top 16 bits have never been seen before, then the text-related filter can be used alone. Thus, the filtering system can be optimized to generalize to employ the most specific filter or model for which there is sufficient data.
Various methodologies in accordance with the subject invention will now be described via a series of acts. It is to be understood and appreciated that the present invention is not limited by the order of acts, as some acts may, in accordance with the present invention, occur in different orders and/or concurrently with other acts from that shown and described herein. For example, those skilled in the art will understand and appreciate that a methodology could alternatively be represented as a series of interrelated states or events, such as in a state diagram. Moreover, not all illustrated acts may be required to implement a methodology in accordance with the present invention.
Referring now to
As can be seen in the figure, the second filter trained only on non-origination and non-destination features is trained separately and independently from the origination or destination-based filter. This mitigates undue influence from either feature over the other when examining messages for spam-like qualities and characteristics, which can be particularly pertinent when spam messages have changed slightly from previous known versions.
Though not depicted in the figure, extracting and filtering URL data presents additional challenges since a message can have multiple URLs included therein. Some URLs may be known and some may be unknown. In view of this, one filter for the known URLs can be employed and a different filter can be employed when at least one URL is unknown in the message.
Moreover, the present invention assumes independence between an IP address (or URL) and other features such as text features. However, the invention can assume dependence between text features. For example, the system or method as described in
Referring now to
Conversely, if the IP address is unknown at 430, then the method can determine if the top 24 bits of the IP address data are known at 440. This can be an important determination since it is possible that the IP address extracted from the message is incomplete. Alternatively, if an exact match to the IP address is unknown, but other messages having the same top 24 bits have been observed in previous messages, a filter trained on the top 24 bits of that IP address can be used to determine if the message is spam at 445. However, the top 24 bits may be unknown as well. In this case, it can be determined whether the top 16 bits of that IP address are known at 450. If yes, then the top 16 bits of the extracted IP address data can be run through a 16-bit trained filter at 455. If no, then the available IP address data can be run through a filter trained up on other messages received near the same time as the current message that also have unknown IP addresses at 460.
Concurrently or following therefrom, extracted text-based features can be run through a text-based feature filter at 470. The results (scores) from the filtering runs can be collected and then combined at 480. There are different ways to combine filter results from the at least two filter models. In one approach, the scores can be multiplied. Another approach calls for adding the scores together while a third approach assesses both scores based on the particular filter's effectiveness in detecting spam, for example. In other words, if an IP address model is about 90% effective and a text features model is about 10% effective, the overall effectiveness of the filtering scheme can be concluded to be about 80% effective because the IP address model can be trusted more, and hence given more value or weight in this determination. An additional filter can be trained to combine scores in such a manner. Finally, a message verdict can be obtained at 490.
Messages can include many features of a particular type, and in many cases, it is not clear which feature is the relevant one because spammers may try to confuse spam filters, thus rendering the features ambiguous. In particular, there are two cases. First, with URLs, a spammer may add as many URLs as he wants to the message. Second, there is the IP address. In many cases, such as on a server, the system can tell which is the last IP address external to the system, but this is relatively uncommon on a client. In particular, messages are typically sent from server to server to server. In some cases, especially email server software, the last IP address external to the recipient's organization can be clearly identified. Unfortunately, this is the only (external) IP address that the recipient can trust—since there is no reliable way to know which other IP addresses were actually used. On client software, the client will receive a list of IP addresses (in reverse order from which they were received.) He does not know which ones are external to his organization, and which ones are internal. As on the server, of the external IP addresses, he can only trust the last external address (highest external server on the list)—except he does not know which IP address this is.
As previously mentioned, the ambiguity problem also exists for URLs. Typically, a spammer will only send users to one URL, but he can include links to other domains, including known good domains. The links to the known good domains will typically be in places where users are unable to click on them, but where it is difficult for an automatic spam filter to tell the difference between the true link and the false ones.
There are a couple of common heuristics for finding the last external IP address. Unfortunately, none of them consistently work with reasonable accuracy. In one heuristic, the MX record for the recipient's organization is looked up. For example, if his email address is known to be name@yourdomain.com, the MX record, which contains the list of IP addresses for yourdomain's gateway servers for yourdomain.com can be looked up. The client then looks down through the received-from list until one of these addresses is found. Unfortunately, this does not always work because the inwards and outwards IP addresses may be different for the gateway box.
A similar heuristic uses internal IP addresses. Some IP address ranges are internal-only (those that start with 192, for instance). By going down through the list until one finds an IP address that is not definitely internal, perhaps one can find the first external one. Similarly, one can perform reverse IP lookups on each IP address in the list, and see if it maps to the same domain as the recipient. Eventually, one finds an IP address that fails both of these heuristics, and assumes it is the last external one. Unfortunately, these heuristics don't necessarily work either. For instance, some companies' servers use statically defined addresses, not the ones in the internal only ranges. Furthermore, the reverse-IP mapping is not always set up correctly. Finally, some domains owned by a common owner may use the same servers for both domains. Imagine that Zoomail and ZNN are domains which use the same serves for both domains and Zoobox is used to access messages on Zoomail or ZNN on a client. If Zoomail uses .zoomail.com for all its servers—then a Zoobox client for a ZNN user would find such a server on its list and assume it was external—so even requiring all admins to set up their internal server reverse IP addresses correctly would not work.
One algorithmic methodology that has been shown to work has been described in the related co-pending application (Ser. No. 10/454,168). As stated therein, one way for spam filtering software to find this sender's IP address is to know the mail server configurations at an organization. In general, if one knows which machines pass to which other machines in which situations, one can determine the sender's IP address. However, especially for spam filtering software installed on email clients, it may not be convenient to describe the server configuration. An alternate approach involves utilizing MX records to determine the true source of a message. MX records list, for each domain, the FQDNs (fully qualified domain names—the names of the machines) of recipients of email for that domain. These FQDNs can be mapped to their IP addresses, and we can trace back through the received from list until we find an IP address corresponding to an FQDN corresponding to an entry in the domain's MX record. The IP addresses that this machine received from is the sender's IP address. Imagine that 1.2.3.101 is the only MX record for x.com. Then by finding the line that received from 1.2.3.101, we know the next line corresponds to x.com's incoming mail server, and thus that the IP address in that line corresponds to the IP address that sent to x.com.
Note that there is no currently accepted standard for listing outgoing mail servers, and note that this heuristic can fail if, for instance, IP addresses internal to an organization are different than those external to an organization, or if an organization sends mail from one machine listed in an MX record indirectly to another machine listed in an MX record. Note also that in the special case where the sender's IP as found above is found to be internal to the organization, as could happen if one machine in the MX record sent to another in the MX record, the process is continued as above. In addition, certain IP addresses can be detected as internal (because they are of the form 10.x.y.z or 172.16.y.z through 172.31.y.z or 192.168.0.z through 192.168.255.z, a form used only for internal IP addresses); any address internal to an organization can be trusted. Finally, if a received from line is of the form “Received from a.x.com [1.2.3.100]” and an IP address lookup of a.x.com yields 1.2.3.100 or a reverse IP address lookup of 1.2.3.100 yields a.x.com and if x.com is the organization, then the next line can also be trusted.
Using these observations, it is often possible to find the sender's IP address. The exemplary pseudocode is as follows:
Unfortunately, much of the time, the previous algorithmic methodology simply concludes that it is unable to find the sender's actual IP address with confidence.
Turning now to
Referring now to
Yet another option is to assume that the worst scoring IP address or worst scoring URL in a message is the most accurate predictor. That is, let SCORE(input) represent the score of an INPUT (e.g., an IP address or URL). High values are considered bad (more spammy) in the present system. So, then the overall score returned for the IP part of a message in our system with n incoming IP addresses would be MAX(SCORE(IP1), SCORE(IP2), . . . , SCORE(IPn)). The score function might be a constant for each IP address. In other words, there is a list of IP addresses and their corresponding scores, or it might be a function in its own right, e.g., we use information such as the IP address, the top 24 bits of the IP address, reverse DNS lookups on the IP address, etc., as features to a scoring function. The same can be done for URLs.
It is typically hard to do machine learning for functions that are not smoothly differentiable, such as the MAX function. However, the following describes a technique for doing such learning. This algorithm can be written as if it is for messages and IP addresses and features of IP addresses, but it will be evident that the same algorithm can be used for inputs other than email messages, e.g., any “instance” for a machine learning system, and it will be evident that the properties of interest are not limited to IP addresses, but could be URLs, words, or any properties of the training instance that may occur more than one time within a training instance.
The algorithm that is proposed is as follows:
Let MAXSCORE(mk) be the overall score of message k.
Let IPk1 IPk2, . . . IPkk1 represent the IP addresses in message k.
Then MAXSCORE(mk)=MAX(SCORE(IPk1), SCORE(IPk2), . . . , SCORE(IPkk1)).
Assume there is an objective function that we are trying to maximize (e.g., maximize accuracy on the training data, maximize the log probability of the training data, maximize a combination of accuracy and negative sum of square of weights, etc.). Call this function OBJECTIVE(m1 . . . mk, w1 . . . wn): it is a function of the weights and the training messages.
Assume that OBJECTIVE is a differentiable function of the weights.
Assume that the SCORE function is the sum of the weights. The exemplary pseudocode is as follows:
Thus, the method 700 is concerned with optimizing the weights associated with one feature at any given time. Messages that have that feature can be found; thus any other messages are not a concern. Essentially, the method wants to find the best weight for a feature. If it is a really high weight, it will be higher than everything else so as this weight changes, every other weight can change as well. However, if it is a really low weight, it will be lower than everything else and changing it will not change any other weight. So for each message, finding the value of that weight (vq) which the message would be dependent on is desired. Once the vq values for each message are determined, the messages can be sorted accordingly. Instead of checking different ranges and looking within each range to find the best value of vq, the change points can be looked at since these can be true points of interest.
Yet another technique for learning such functions is to notice that MAX(a1, a2, . . . , an) is approximately equal to SUM(a1x, a2x, . . . , anx)(1/x) where the approximation becomes more accurate the larger the value of x. One can use this function instead of the MAX function to get a function that is differentiable, and then one can use standard gradient descent style optimization techniques. Gradients may become steep for large values of x, so one may wish to initially use a small value of x, e.g., 1 or 2, perform gradient descent, and then increase x and repeat.
When an IP address or URL is present and known, it can typically be one of the most valuable features in the message. Machine learning systems may not naturally assign more weight to these known IP addresses and URLs than to other features, such as known words. The system must be told in some way that these weights are more useful than other weights. This can be referred to as a value problem.
The value problem can be addressed through smoothing, which is also known as regularization. Typical machine learning systems smooth their parameters in some way. To give five examples, neural networks often use weight decay; maximum entropy models (also known as logistic regression) can use a Gaussian or Exponential prior; Support Vector Machines (SVMs) typically have a term minimizing the sum square of the weights, or the sum of the absolute values of the weights; and decision trees are often smoothed with a Dirichlet prior.
For all of these techniques, it is possible to modify the regularization so that the IP addresses or URLs are counted as more valuable. In addition, the smoothing can vary for sub-portions of features such as IP addresses or URLs. For example, different smoothing values can be employed for all 32-bits, a top 24-bits, and a top 16-bits of an IP address.
where penalty is a penalty function.
This can be rewritten as:
If we want, we can use different weights for different features. Instead of having one value of c, we can have one value of ci for each weight wi:
With maximum entropy models 820, one can use a larger standard deviation for the Gaussian prior at 825. For maximum entropy models, the formula usually optimized is
That is, the first term is the probability of the training data, given the parameters of the model (Λ). The second term is the probabilities of each parameter. The probability of a parameter is defined by, for instance, a Gaussian distribution, typically with mean 0, and standard deviation σi. We can make the value of σi be different for different parameter types, including making it larger for IP address or URL features.
Typically, features are assigned values of 0 or 1. For instance, the presence of an IP feature such as 1.2.3.4 might result in the presence of a feature f1000 that has value 1 when the IP address is present and 0 when it is not. It will be recognized by those skilled in the art of machine learning that using a larger value for f1000, e.g. f1000=10 when the IP address is present, 0 when it is not, will have a similar or identical effect in many model types, including SVMs and maximum entropy models, as changing the smoothing explicitly.
Note that in practice for IP addresses, features based not just on the IP address, but based also on the top 24 and top 16 bits, or other combinations of bits can be employed. Note that for URL features portions of the URL, such as the fully qualified domain name, and sub-domains of the fully qualified domain name can also be used. The systems and method described hereinabove can also be combined with quarantining techniques (e.g., suspending delivery of messages until more information can be collected about the messages) and with a feedback loop, whereby participating users provide feedback in the form of classifications of messages to facilitate updating and/or building filters.
In order to provide additional context for various aspects of the present invention,
Generally, however, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular data types. The operating environment 910 is only one example of a suitable operating environment and is not intended to suggest any limitation as to the scope of use or functionality of the invention. Other well known computer systems, environments, and/or configurations that may be suitable for use with the invention include but are not limited to, personal computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include the above systems or devices, and the like.
With reference to
The system bus 918 can be any of several types of bus structure(s) including the memory bus or memory controller, a peripheral bus or external bus, and/or a local bus using any variety of available bus architectures including, but not limited to, 11-bit bus, Industrial Standard Architecture (ISA), Micro-Channel Architecture (MSA), Extended ISA (EISA), Intelligent Drive Electronics (IDE), VESA Local Bus (VLB), Peripheral Component Interconnect (PCI), Universal Serial Bus (USB), Advanced Graphics Port (AGP), Personal Computer Memory Card International Association bus (PCMCIA), and Small Computer Systems Interface (SCSI).
The system memory 916 includes volatile memory 920 and nonvolatile memory 922. The basic input/output system (BIOS), containing the basic routines to transfer information between elements within the computer 912, such as during start-up, is stored in nonvolatile memory 922. By way of illustration, and not limitation, nonvolatile memory 922 can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory 920 includes random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as synchronous RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM).
Computer 912 also includes removable/nonremovable, volatile/nonvolatile computer storage media.
It is to be appreciated that
A user enters commands or information into the computer 912 through input device(s) 936. Input devices 936 include, but are not limited to, a pointing device such as a mouse, trackball, stylus, touch pad, keyboard, microphone, joystick, game pad, satellite dish, scanner, TV tuner card, digital camera, digital video camera, web camera, and the like. These and other input devices connect to the processing unit 914 through the system bus 918 via interface port(s) 938. Interface port(s) 938 include, for example, a serial port, a parallel port, a game port, and a universal serial bus (USB). Output device(s) 940 use some of the same type of ports as input device(s) 936. Thus, for example, a USB port may be used to provide input to computer 912 and to output information from computer 912 to an output device 940. Output adapter 942 is provided to illustrate that there are some output devices 940 like monitors, speakers, and printers among other output devices 940 that require special adapters. The output adapters 942 include, by way of illustration and not limitation, video and sound cards that provide a means of connection between the output device 940 and the system bus 918. It should be noted that other devices and/or systems of devices provide both input and output capabilities such as remote computer(s) 944.
Computer 912 can operate in a networked environment using logical connections to one or more remote computers, such as remote computer(s) 944. The remote computer(s) 944 can be a personal computer, a server, a router, a network PC, a workstation, a microprocessor based appliance, a peer device or other common network node and the like, and typically includes many or all of the elements described relative to computer 912. For purposes of brevity, only a memory storage device 946 is illustrated with remote computer(s) 944. Remote computer(s) 944 is logically connected to computer 912 through a network interface 948 and then physically connected via communication connection 950. Network interface 948 encompasses communication networks such as local-area networks (LAN) and wide-area networks (WAN). LAN technologies include Fiber Distributed Data Interface (FDDI), Copper Distributed Data Interface (CDDI), Ethernet/IEEE 1102.3, Token Ring/IEEE 1102.5 and the like. WAN technologies include, but are not limited to, point-to-point links, circuit switching networks like Integrated Services Digital Networks (ISDN) and variations thereon, packet switching networks, and Digital Subscriber Lines (DSL).
Communication connection(s) 950 refers to the hardware/software employed to connect the network interface 948 to the bus 918. While communication connection 950 is shown for illustrative clarity inside computer 912, it can also be external to computer 912. The hardware/software necessary for connection to the network interface 948 includes, for exemplary purposes only, internal and external technologies such as, modems including regular telephone grade modems, cable modems and DSL modems, ISDN adapters, and Ethernet cards.
What has been described above includes examples of the present invention. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the present invention, but one of ordinary skill in the art may recognize that many further combinations and permutations of the present invention are possible. Accordingly, the present invention is intended to embrace all such alterations, modifications, and variations that fall within the spirit and scope of the appended claims. Furthermore, to the extent that the term “includes” is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term “comprising” as “comprising” is interpreted when employed as a transitional word in a claim.
This application is a continuation-in part of U.S. application Ser. No. 10/454,168, entitled Origination/Destination Features and Lists For Spam Prevention and filed on Jun. 4, 2003 now U.S. Pat. No. 7,272,853 , the entirety of which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5377354 | Scannell et al. | Dec 1994 | A |
5619648 | Canale et al. | Apr 1997 | A |
5638487 | Chigier | Jun 1997 | A |
5704017 | Heckerman et al. | Dec 1997 | A |
5805801 | Holloway et al. | Sep 1998 | A |
5835087 | Herz et al. | Nov 1998 | A |
5884033 | Duvall et al. | Mar 1999 | A |
5905859 | Holloway et al. | May 1999 | A |
6003027 | Prager | Dec 1999 | A |
6023723 | McCormick et al. | Feb 2000 | A |
6047242 | Benson | Apr 2000 | A |
6052709 | Paul | Apr 2000 | A |
6072942 | Stockwell et al. | Jun 2000 | A |
6101531 | Eggleston et al. | Aug 2000 | A |
6112227 | Heiner | Aug 2000 | A |
6122657 | Hoffman, Jr. et al. | Sep 2000 | A |
6161130 | Horvitz et al. | Dec 2000 | A |
6167434 | Pang | Dec 2000 | A |
6192360 | Dumais et al. | Feb 2001 | B1 |
6199102 | Cobb | Mar 2001 | B1 |
6266692 | Greenstein | Jul 2001 | B1 |
6308273 | Goertzel et al. | Oct 2001 | B1 |
6314421 | Sharnoff et al. | Nov 2001 | B1 |
6321267 | Donaldson | Nov 2001 | B1 |
6327617 | Fawcett | Dec 2001 | B1 |
6330590 | Cotten | Dec 2001 | B1 |
6370526 | Agrawal et al. | Apr 2002 | B1 |
6393465 | Leeds | May 2002 | B2 |
6421709 | McCormick et al. | Jul 2002 | B1 |
6424997 | Buskirk, Jr. et al. | Jul 2002 | B1 |
6434600 | Waite et al. | Aug 2002 | B2 |
6453327 | Nielsen | Sep 2002 | B1 |
6477551 | Johnson et al. | Nov 2002 | B1 |
6484197 | Donohue | Nov 2002 | B1 |
6484261 | Wiegel | Nov 2002 | B1 |
6505250 | Freund et al. | Jan 2003 | B2 |
6546416 | Kirsch | Apr 2003 | B1 |
6592627 | Agrawal et al. | Jul 2003 | B1 |
6615242 | Riemers | Sep 2003 | B1 |
6633855 | Auvenshine | Oct 2003 | B1 |
6643686 | Hall | Nov 2003 | B1 |
6654787 | Aronson et al. | Nov 2003 | B1 |
6684201 | Brill et al. | Jan 2004 | B1 |
6691156 | Drummond et al. | Feb 2004 | B1 |
6701350 | Mitchell | Mar 2004 | B1 |
6701440 | Kim et al. | Mar 2004 | B1 |
6728690 | Meek et al. | Apr 2004 | B1 |
6732149 | Kephart | May 2004 | B1 |
6732157 | Gordon et al. | May 2004 | B1 |
6732273 | Byers | May 2004 | B1 |
6742047 | Tso | May 2004 | B1 |
6748422 | Morin et al. | Jun 2004 | B2 |
6751348 | Buzuloiu et al. | Jun 2004 | B2 |
6757830 | Tarbotton et al. | Jun 2004 | B1 |
6768991 | Hearnden | Jul 2004 | B2 |
6775704 | Watson et al. | Aug 2004 | B1 |
6779021 | Bates et al. | Aug 2004 | B1 |
6785820 | Muttik | Aug 2004 | B1 |
6842773 | Ralston et al. | Jan 2005 | B1 |
6853749 | Watanabe et al. | Feb 2005 | B2 |
6915334 | Hall | Jul 2005 | B1 |
6920477 | Mitzenmacher | Jul 2005 | B2 |
6928465 | Earnest | Aug 2005 | B2 |
6971023 | Markinson et al. | Nov 2005 | B1 |
7003555 | Jungck | Feb 2006 | B1 |
7032030 | Codignotto | Apr 2006 | B1 |
7051077 | Lin | May 2006 | B2 |
7117358 | Bandini et al. | Oct 2006 | B2 |
7155243 | Baldwin et al. | Dec 2006 | B2 |
7155484 | Malik | Dec 2006 | B2 |
7188369 | Ho et al. | Mar 2007 | B2 |
7219148 | Rounthwaite et al. | May 2007 | B2 |
7263607 | Ingerman et al. | Aug 2007 | B2 |
7293063 | Sobel | Nov 2007 | B1 |
20010046307 | Wong | Nov 2001 | A1 |
20020016956 | Fawcett | Feb 2002 | A1 |
20020034186 | Huang | Mar 2002 | A1 |
20020059425 | Belfiore et al. | May 2002 | A1 |
20020073157 | Newman et al. | Jun 2002 | A1 |
20020091738 | Rohrabaugh et al. | Jul 2002 | A1 |
20020124025 | Janakiraman et al. | Sep 2002 | A1 |
20020147782 | Dimitrova et al. | Oct 2002 | A1 |
20020174185 | Rawat et al. | Nov 2002 | A1 |
20020184315 | Earnest | Dec 2002 | A1 |
20020199095 | Bandini et al. | Dec 2002 | A1 |
20030009495 | Adjaoute | Jan 2003 | A1 |
20030009698 | Lindeman et al. | Jan 2003 | A1 |
20030016872 | Sun | Jan 2003 | A1 |
20030037074 | Dwork et al. | Feb 2003 | A1 |
20030041126 | Buford et al. | Feb 2003 | A1 |
20030088627 | Rothwell et al. | May 2003 | A1 |
20030149733 | Capiel | Aug 2003 | A1 |
20030167311 | Kirsch | Sep 2003 | A1 |
20030191969 | Katsikas | Oct 2003 | A1 |
20030200541 | Cheng et al. | Oct 2003 | A1 |
20030204569 | Andrews et al. | Oct 2003 | A1 |
20030229672 | Kohn | Dec 2003 | A1 |
20040003283 | Goodman et al. | Jan 2004 | A1 |
20040015554 | Wilson | Jan 2004 | A1 |
20040054887 | Paulsen et al. | Mar 2004 | A1 |
20040073617 | Milliken et al. | Apr 2004 | A1 |
20040083270 | Heckerman et al. | Apr 2004 | A1 |
20040093371 | Burrows et al. | May 2004 | A1 |
20040139160 | Wallace et al. | Jul 2004 | A1 |
20040139165 | McMillan et al. | Jul 2004 | A1 |
20040148330 | Alspector et al. | Jul 2004 | A1 |
20040177120 | Kirsch | Sep 2004 | A1 |
20040199585 | Wang | Oct 2004 | A1 |
20040199594 | Radatti et al. | Oct 2004 | A1 |
20040210640 | Chadwick et al. | Oct 2004 | A1 |
20040255122 | Ingerman et al. | Dec 2004 | A1 |
20040260776 | Starbuck et al. | Dec 2004 | A1 |
20050015455 | Liu | Jan 2005 | A1 |
20050050150 | Dinkin | Mar 2005 | A1 |
20050060643 | Glass et al. | Mar 2005 | A1 |
20050076084 | Loughmiller et al. | Apr 2005 | A1 |
20050080855 | Murray | Apr 2005 | A1 |
20050080889 | Malik et al. | Apr 2005 | A1 |
20050081059 | Bandini et al. | Apr 2005 | A1 |
20050091321 | Daniell et al. | Apr 2005 | A1 |
20050097174 | Daniell | May 2005 | A1 |
20050114452 | Prakash | May 2005 | A1 |
20050120019 | Rigoutsos et al. | Jun 2005 | A1 |
20050159136 | Rouse et al. | Jul 2005 | A1 |
20050160148 | Yu | Jul 2005 | A1 |
20050165895 | Rajan et al. | Jul 2005 | A1 |
20050182735 | Zager et al. | Aug 2005 | A1 |
20050188023 | Doan et al. | Aug 2005 | A1 |
20050204159 | Davis et al. | Sep 2005 | A1 |
20060031303 | Pang | Feb 2006 | A1 |
20060031306 | Haverkos | Feb 2006 | A1 |
20060036701 | Bulfer et al. | Feb 2006 | A1 |
20060123083 | Goutte et al. | Jun 2006 | A1 |
20060265498 | Turgeman et al. | Nov 2006 | A1 |
20070130350 | Alperovitch et al. | Jun 2007 | A1 |
20070130351 | Alperovitch et al. | Jun 2007 | A1 |
20070133034 | Jindal et al. | Jun 2007 | A1 |
Number | Date | Country |
---|---|---|
413 537 | Feb 1991 | EP |
720 333 | Jul 1996 | EP |
1376427 | Mar 2003 | EP |
1376427 | Jan 2004 | EP |
1376427 | Jan 2004 | EP |
WO 9635994 | Nov 1996 | WO |
9967731 | Dec 1999 | WO |
WO 02071286 | Sep 2002 | WO |
03054764 | Jul 2003 | WO |
WO 2004059506 | Jul 2004 | WO |
Number | Date | Country | |
---|---|---|---|
20040260922 A1 | Dec 2004 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10454168 | Jun 2003 | US |
Child | 10809163 | US |